Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2013 19:05:48 +0000 (UTC)
From:      Boris Samorodov <bsam@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r321310 - head/biology/gperiodic
Message-ID:  <201306191905.r5JJ5mDW036063@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bsam
Date: Wed Jun 19 19:05:47 2013
New Revision: 321310
URL: http://svnweb.freebsd.org/changeset/ports/321310

Log:
  . NOPORTDOCS -> PORT_OPTIONS:MDOCS;
  . use PORTDOCS at Makefile (thus simplify pkg-plist);
  . use plain install instead of a .for loop;
  . trim Makefile headers.

Modified:
  head/biology/gperiodic/Makefile
  head/biology/gperiodic/pkg-plist

Modified: head/biology/gperiodic/Makefile
==============================================================================
--- head/biology/gperiodic/Makefile	Wed Jun 19 19:01:47 2013	(r321309)
+++ head/biology/gperiodic/Makefile	Wed Jun 19 19:05:47 2013	(r321310)
@@ -1,7 +1,4 @@
-# New ports collection makefile for:	gperiodic
-# Date created:				16 July 1999
-# Whom:					Andrey Zakhvatov
-#
+# Created by: Andrey Zakhvatov
 # $FreeBSD$
 #    $MCom: ports/biology/gperiodic/Makefile,v 1.1 2006/09/29 23:42:13 ahze Exp $
 
@@ -19,6 +16,10 @@ USES=		gettext
 
 LANGS=		da fr gl it pl ru sv tr
 
+PORTDOCS=	AUTHORS ChangeLog README
+
+OPTIONS_DEFINE=	DOCS
+
 do-build:
 	cd ${WRKSRC} && ${CC} ${CFLAGS} `pkg-config --cflags --libs gtk+-2.0` \
 		gperiodic.c -o gperiodic
@@ -26,6 +27,8 @@ do-build:
 	cd ${WRKSRC}/po && msgfmt -f -v -o ${lang}.mo ${lang}.po
 .endfor
 
+.include <bsd.port.options.mk>
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/gperiodic ${PREFIX}/bin
 	@${MKDIR} ${PREFIX}/share/applications
@@ -41,11 +44,9 @@ do-install:
 	${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
 		${PREFIX}/share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
 .endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-.for file in AUTHORS ChangeLog README
-	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>

Modified: head/biology/gperiodic/pkg-plist
==============================================================================
--- head/biology/gperiodic/pkg-plist	Wed Jun 19 19:01:47 2013	(r321309)
+++ head/biology/gperiodic/pkg-plist	Wed Jun 19 19:05:47 2013	(r321310)
@@ -1,8 +1,5 @@
 bin/gperiodic
 share/applications/gperiodic.desktop
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/README
 share/locale/da/LC_MESSAGES/gperiodic.mo
 share/locale/fr/LC_MESSAGES/gperiodic.mo
 share/locale/gl/LC_MESSAGES/gperiodic.mo
@@ -13,5 +10,4 @@ share/locale/sv/LC_MESSAGES/gperiodic.mo
 share/locale/tr/LC_MESSAGES/gperiodic.mo
 share/pixmaps/gperiodic.png
 share/pixmaps/gperiodic-crystal.png
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
 @dirrmtry share/applications



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