aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2013-11-08 02:39:28 +0800
committernemysis <nemysis@FreeBSD.org>2013-11-08 02:39:28 +0800
commit7a7d2134c20445f4d99dd304eed773351de38774 (patch)
tree3982f9c05bebbec948bb0d9299860487e6dbca06 /misc
parentcf89feb1dd994f1d6e66f41aacf465f9225680c7 (diff)
downloadfreebsd-ports-graphics-7a7d2134c20445f4d99dd304eed773351de38774.tar.gz
freebsd-ports-graphics-7a7d2134c20445f4d99dd304eed773351de38774.tar.zst
freebsd-ports-graphics-7a7d2134c20445f4d99dd304eed773351de38774.zip
- Update to 0.2.34
- Change maintainer email to @FreeBSD.org - Add DOCS and NLS Options - Support STAGEDIR and add OPTIONS_SUB Approved by: pawel / wg (mentors, implicit)
Diffstat (limited to 'misc')
-rw-r--r--misc/gonvert/Makefile44
-rw-r--r--misc/gonvert/distinfo4
2 files changed, 23 insertions, 25 deletions
diff --git a/misc/gonvert/Makefile b/misc/gonvert/Makefile
index 29dc89a8466..a27a732371b 100644
--- a/misc/gonvert/Makefile
+++ b/misc/gonvert/Makefile
@@ -2,11 +2,11 @@
# $FreeBSD$
PORTNAME= gonvert
-PORTVERSION= 0.2.33
+PORTVERSION= 0.2.34
CATEGORIES= misc python gnome
MASTER_SITES= http://www.unihedron.com/projects/gonvert/downloads/
-MAINTAINER= nemysis@gmx.ch
+MAINTAINER= nemysis@FreeBSD.org
COMMENT= Conversion utility that allows conversion between many units
LICENSE= GPLv2
@@ -17,15 +17,14 @@ NO_BUILD= yes
PORTDOCS= CHANGELOG FAQ README THANKS TODO
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS NLS
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-PLIST_SUB+= NLS="@comment "
-.endif
+OPTIONS_SUB= yes
+
+NLS_CONFIGURE_ENABLE= nls
+NLS_USES= gettext
+
+.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!/usr/bin/env python|g ; \
@@ -33,23 +32,22 @@ post-patch:
s|/\.\./pixmaps/|/pixmaps/|g' ${WRKSRC}/gonvert
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/gonvert ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/gonvert.desktop ${PREFIX}/share/applications
- @${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/gonvert.glade ${DATADIR}
- @${MKDIR} ${DATADIR}/pixmaps
- ${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${DATADIR}/pixmaps
- ${LN} -sf ${DATADIR}/pixmaps/gonvert.png ${PREFIX}/share/pixmaps
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+ @${MKDIR} ${STAGEDIR}${DESKTOPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.glade ${STAGEDIR}${DATADIR}
+ @${MKDIR} ${STAGEDIR}${DATADIR}/pixmaps
+ ${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${STAGEDIR}${DATADIR}/pixmaps/
+ ${LN} -sf ${DATADIR}/pixmaps/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
.if ${PORT_OPTIONS:MNLS}
- @${MKDIR} ${PREFIX}/share/locale/pl/LC_MESSAGES
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/pl/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/i18n/pl_messages.gmo \
- ${PREFIX}/share/locale/pl/LC_MESSAGES/gonvert.mo
+ ${STAGEDIR}${PREFIX}/share/locale/pl/LC_MESSAGES/gonvert.mo
.endif
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/misc/gonvert/distinfo b/misc/gonvert/distinfo
index ad6a1f90590..1e62eb67747 100644
--- a/misc/gonvert/distinfo
+++ b/misc/gonvert/distinfo
@@ -1,2 +1,2 @@
-SHA256 (gonvert-0.2.33.tar.gz) = 64bca246019e3704912a962f7d8f54bfadca78b746d8b08935c7ed456af52c27
-SIZE (gonvert-0.2.33.tar.gz) = 124208
+SHA256 (gonvert-0.2.34.tar.gz) = deed2542bed898f1202b6e9a55f7bbd27714ffb94985c0cdf034823bfb2832f4
+SIZE (gonvert-0.2.34.tar.gz) = 124341