From 6c227ca468397f94ec9dd7eba83f764c66aa7215 Mon Sep 17 00:00:00 2001 From: Boris Samorodov Date: Wed, 19 Jun 2013 19:05:47 +0000 Subject: [PATCH] . NOPORTDOCS -> PORT_OPTIONS:MDOCS; . use PORTDOCS at Makefile (thus simplify pkg-plist); . use plain install instead of a .for loop; . trim Makefile headers. --- biology/gperiodic/Makefile | 17 +++++++++-------- biology/gperiodic/pkg-plist | 4 ---- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/biology/gperiodic/Makefile b/biology/gperiodic/Makefile index ba4d2e5cd209..c398fc8f2175 100644 --- a/biology/gperiodic/Makefile +++ b/biology/gperiodic/Makefile @@ -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 + 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 diff --git a/biology/gperiodic/pkg-plist b/biology/gperiodic/pkg-plist index 8256232e9780..cf1839f7c641 100644 --- a/biology/gperiodic/pkg-plist +++ b/biology/gperiodic/pkg-plist @@ -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