mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- 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:
parent
57dd141497
commit
1c8c69c5e7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333146
@ -2,11 +2,11 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME= gonvert
|
PORTNAME= gonvert
|
||||||
PORTVERSION= 0.2.33
|
PORTVERSION= 0.2.34
|
||||||
CATEGORIES= misc python gnome
|
CATEGORIES= misc python gnome
|
||||||
MASTER_SITES= http://www.unihedron.com/projects/gonvert/downloads/
|
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
|
COMMENT= Conversion utility that allows conversion between many units
|
||||||
|
|
||||||
LICENSE= GPLv2
|
LICENSE= GPLv2
|
||||||
@ -17,15 +17,14 @@ NO_BUILD= yes
|
|||||||
|
|
||||||
PORTDOCS= CHANGELOG FAQ README THANKS TODO
|
PORTDOCS= CHANGELOG FAQ README THANKS TODO
|
||||||
|
|
||||||
NO_STAGE= yes
|
OPTIONS_DEFINE= DOCS NLS
|
||||||
.include <bsd.port.options.mk>
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MNLS}
|
OPTIONS_SUB= yes
|
||||||
USES+= gettext
|
|
||||||
PLIST_SUB+= NLS=""
|
NLS_CONFIGURE_ENABLE= nls
|
||||||
.else
|
NLS_USES= gettext
|
||||||
PLIST_SUB+= NLS="@comment "
|
|
||||||
.endif
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!/usr/bin/env python|g ; \
|
@${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!/usr/bin/env python|g ; \
|
||||||
@ -33,23 +32,22 @@ post-patch:
|
|||||||
s|/\.\./pixmaps/|/pixmaps/|g' ${WRKSRC}/gonvert
|
s|/\.\./pixmaps/|/pixmaps/|g' ${WRKSRC}/gonvert
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/gonvert ${PREFIX}/bin
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
||||||
${INSTALL_DATA} ${WRKSRC}/gonvert.desktop ${PREFIX}/share/applications
|
@${MKDIR} ${STAGEDIR}${DESKTOPDIR}
|
||||||
@${MKDIR} ${DATADIR}
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/gonvert.glade ${DATADIR}
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||||
@${MKDIR} ${DATADIR}/pixmaps
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.glade ${STAGEDIR}${DATADIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${DATADIR}/pixmaps
|
@${MKDIR} ${STAGEDIR}${DATADIR}/pixmaps
|
||||||
${LN} -sf ${DATADIR}/pixmaps/gonvert.png ${PREFIX}/share/pixmaps
|
${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${STAGEDIR}${DATADIR}/pixmaps/
|
||||||
|
${LN} -sf ${DATADIR}/pixmaps/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MNLS}
|
.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 \
|
${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
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MDOCS}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
@${MKDIR} ${DOCSDIR}
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
|
||||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
SHA256 (gonvert-0.2.33.tar.gz) = 64bca246019e3704912a962f7d8f54bfadca78b746d8b08935c7ed456af52c27
|
SHA256 (gonvert-0.2.34.tar.gz) = deed2542bed898f1202b6e9a55f7bbd27714ffb94985c0cdf034823bfb2832f4
|
||||||
SIZE (gonvert-0.2.33.tar.gz) = 124208
|
SIZE (gonvert-0.2.34.tar.gz) = 124341
|
||||||
|
Loading…
Reference in New Issue
Block a user