Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Mar 2014 09:50:06 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r348458 - head/mail/mailsync
Message-ID:  <201403170950.s2H9o6fR075856@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Mon Mar 17 09:50:06 2014
New Revision: 348458
URL: http://svnweb.freebsd.org/changeset/ports/348458
QAT: https://qat.redports.org/buildarchive/r348458/

Log:
  - Support staging
  - USES -> gmake
  - New LIB_DEPENDS definition
  - Define EXAMPLES option
  - Define DOCS option

Modified:
  head/mail/mailsync/Makefile
  head/mail/mailsync/pkg-plist

Modified: head/mail/mailsync/Makefile
==============================================================================
--- head/mail/mailsync/Makefile	Mon Mar 17 09:41:52 2014	(r348457)
+++ head/mail/mailsync/Makefile	Mon Mar 17 09:50:06 2014	(r348458)
@@ -11,32 +11,28 @@ DISTNAME=	${PORTNAME}_${PORTVERSION}.ori
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Mailsync is a way of keeping a collection of mailboxes synchronized
 
-LIB_DEPENDS=	c-client4.9:${PORTSDIR}/mail/cclient
+LIB_DEPENDS=	libc-client4.so:${PORTSDIR}/mail/cclient
 
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
-USE_GMAKE=	yes
+USES=		gmake
 USE_OPENSSL=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-c-client=${LOCALBASE}
 
-MAN1=		mailsync.1
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
-NO_STAGE=	yes
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/src/mailsync ${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/doc/mailsync.1 ${PREFIX}/man/man1
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/src/mailsync ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/doc/mailsync.1 ${STAGEDIR}${MANPREFIX}/man/man1
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS COPYING NEWS README \
-		THANKS TODO ${DOCSDIR}
+		THANKS TODO ${STAGEDIR}${DOCSDIR}
 	cd ${WRKSRC}/doc && ${INSTALL_DATA} ABSTRACT HACKING \
 		mail_open_close_flowchart.dia \
 		mail_open_close_flowchart.svg \
-		mail_open_close_flowchart2.svg ${DOCSDIR}
-.endif
-.if !defined(NOPORTEXAMPLES)
-	${MKDIR} ${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/doc/examples/mailsync ${EXAMPLESDIR}
-.endif
+		mail_open_close_flowchart2.svg ${STAGEDIR}${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/examples/mailsync ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>

Modified: head/mail/mailsync/pkg-plist
==============================================================================
--- head/mail/mailsync/pkg-plist	Mon Mar 17 09:41:52 2014	(r348457)
+++ head/mail/mailsync/pkg-plist	Mon Mar 17 09:50:06 2014	(r348458)
@@ -1,4 +1,5 @@
 bin/mailsync
+man/man1/mailsync.1.gz
 %%PORTDOCS%%%%DOCSDIR%%/ABSTRACT
 %%PORTDOCS%%%%DOCSDIR%%/AUTHORS
 %%PORTDOCS%%%%DOCSDIR%%/COPYING



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403170950.s2H9o6fR075856>