1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/misc/gonvert/Makefile
Rusmir Dusko 1c8c69c5e7 - 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)
2013-11-07 18:39:28 +00:00

54 lines
1.5 KiB
Makefile

# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$
PORTNAME= gonvert
PORTVERSION= 0.2.34
CATEGORIES= misc python gnome
MASTER_SITES= http://www.unihedron.com/projects/gonvert/downloads/
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Conversion utility that allows conversion between many units
LICENSE= GPLv2
USE_GNOME= pygtk2
USE_PYTHON= yes
NO_BUILD= yes
PORTDOCS= CHANGELOG FAQ README THANKS TODO
OPTIONS_DEFINE= DOCS NLS
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 ; \
s|/usr/share|${PREFIX}/share|g ; \
s|/\.\./pixmaps/|/pixmaps/|g' ${WRKSRC}/gonvert
do-install:
${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} ${STAGEDIR}${PREFIX}/share/locale/pl/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/i18n/pl_messages.gmo \
${STAGEDIR}${PREFIX}/share/locale/pl/LC_MESSAGES/gonvert.mo
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>