svn commit: r356128 - head/mail/abook

Pawel Pekala pawel at FreeBSD.org
Sun Jun 1 14:39:33 UTC 2014


Author: pawel
Date: Sun Jun  1 14:39:32 2014
New Revision: 356128
URL: http://svnweb.freebsd.org/changeset/ports/356128
QAT: https://qat.redports.org/buildarchive/r356128/

Log:
  - Add staging support
  - Remove leading article from COMMENT
  - Use options subs, helpers

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

Modified: head/mail/abook/Makefile
==============================================================================
--- head/mail/abook/Makefile	Sun Jun  1 14:26:42 2014	(r356127)
+++ head/mail/abook/Makefile	Sun Jun  1 14:39:32 2014	(r356128)
@@ -8,38 +8,27 @@ CATEGORIES=	mail
 MASTER_SITES=	SF
 
 MAINTAINER=	ports at FreeBSD.org
-COMMENT=	An addressbook program with mutt mail client support
+COMMENT=	Addressbook program with mutt mail client support
 
 LICENSE=	GPLv2
 
-OPTIONS_DEFINE=	NLS DOCS
-
 USES=		ncurses readline
 GNU_CONFIGURE=	yes
 
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-MAN1=		abook.1
-MAN5=		abookrc.5
 PORTDOCS=	ANNOUNCE AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README \
 		THANKS TODO
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	NLS DOCS
+OPTIONS_SUB=	yes
 
-.if ${PORT_OPTIONS:MNLS}
-USES+=		gettext
-PLIST_SUB+=	NLS=""
-.else
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+=	NLS="@comment "
-.endif
+NLS_CONFIGURE_ENABLE=	nls
+NLS_USES=		gettext
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/mail/abook/pkg-plist
==============================================================================
--- head/mail/abook/pkg-plist	Sun Jun  1 14:26:42 2014	(r356127)
+++ head/mail/abook/pkg-plist	Sun Jun  1 14:39:32 2014	(r356128)
@@ -1,4 +1,6 @@
 bin/abook
+man/man1/abook.1.gz
+man/man5/abookrc.5.gz
 %%NLS%%share/locale/de/LC_MESSAGES/abook.mo
 %%NLS%%share/locale/fr/LC_MESSAGES/abook.mo
 %%NLS%%share/locale/ja/LC_MESSAGES/abook.mo


More information about the svn-ports-all mailing list