aboutsummaryrefslogtreecommitdiffstats
path: root/biology
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-07-02 17:05:22 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-07-02 17:05:22 +0800
commit7e8873fe17c38d737c9e6a0e03a4f2904e4b9674 (patch)
tree0ed1f0b8a33b721d42f19aad0c092dd31d7238cb /biology
parentd9ba33ad36fa4dce8960535d5d17d75903cfd674 (diff)
downloadfreebsd-ports-gnome-7e8873fe17c38d737c9e6a0e03a4f2904e4b9674.tar.gz
freebsd-ports-gnome-7e8873fe17c38d737c9e6a0e03a4f2904e4b9674.tar.zst
freebsd-ports-gnome-7e8873fe17c38d737c9e6a0e03a4f2904e4b9674.zip
- LICENSE
- Optionalize NLS - Switch to options helpers
Diffstat (limited to 'biology')
-rw-r--r--biology/gperiodic/Makefile16
-rw-r--r--biology/gperiodic/pkg-plist16
2 files changed, 22 insertions, 10 deletions
diff --git a/biology/gperiodic/Makefile b/biology/gperiodic/Makefile
index 251a0cad7b22..732d3072b28e 100644
--- a/biology/gperiodic/Makefile
+++ b/biology/gperiodic/Makefile
@@ -11,18 +11,26 @@ MASTER_SITES= http://www.frantz.fi/software/
MAINTAINER= ports@FreeBSD.org
COMMENT= Displays a periodic table of the elements
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/gpl.txt
+
USE_GNOME= gtk20
-USES= gettext pkgconfig
+USES= pkgconfig
LANGS= da fr gl it pl ru sv tr
PORTDOCS= AUTHORS ChangeLog README
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
+
+NLS_USES= gettext
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} `pkg-config --cflags --libs gtk+-2.0` \
gperiodic.c -o gperiodic
+
+do-build-NLS-on:
.for lang in ${LANGS}
cd ${WRKSRC}/po && msgfmt -f -v -o ${lang}.mo ${lang}.po
.endfor
@@ -33,11 +41,15 @@ do-install:
${STAGEDIR}${PREFIX}/share/applications
(cd ${WRKSRC} && ${INSTALL_DATA} gperiodic.png gperiodic-crystal.png \
${STAGEDIR}${PREFIX}/share/pixmaps)
+
+do-install-NLS-on:
.for lang in ${LANGS}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
.endfor
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
diff --git a/biology/gperiodic/pkg-plist b/biology/gperiodic/pkg-plist
index 0520be903881..22ba3a5d6e5c 100644
--- a/biology/gperiodic/pkg-plist
+++ b/biology/gperiodic/pkg-plist
@@ -1,12 +1,12 @@
bin/gperiodic
share/applications/gperiodic.desktop
-share/locale/da/LC_MESSAGES/gperiodic.mo
-share/locale/fr/LC_MESSAGES/gperiodic.mo
-share/locale/gl/LC_MESSAGES/gperiodic.mo
-share/locale/it/LC_MESSAGES/gperiodic.mo
-share/locale/pl/LC_MESSAGES/gperiodic.mo
-share/locale/ru/LC_MESSAGES/gperiodic.mo
-share/locale/sv/LC_MESSAGES/gperiodic.mo
-share/locale/tr/LC_MESSAGES/gperiodic.mo
+%%NLS%%share/locale/da/LC_MESSAGES/gperiodic.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gperiodic.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/gperiodic.mo
+%%NLS%%share/locale/it/LC_MESSAGES/gperiodic.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/gperiodic.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/gperiodic.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/gperiodic.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/gperiodic.mo
share/pixmaps/gperiodic.png
share/pixmaps/gperiodic-crystal.png