- 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)
This commit is contained in:
Rusmir Dusko 2013-11-07 18:39:28 +00:00
parent 57dd141497
commit 1c8c69c5e7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333146
2 changed files with 23 additions and 25 deletions

View File

@ -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>

View File

@ -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