freebsd-ports/misc/gonvert/Makefile
Alexey Dokuchaev 8c04196def - Utilize option helper targets and drop unneeded newline and include of
<bsd.port.options.mk>
- Do not attempt to create ${STAGEDIR}${DESKTOPDIR}: `share/applications'
  was added to mtree (Templates/BSD.local.dist) in r331266 2.5 years ago
2016-04-14 17:41:13 +00:00

49 lines
1.4 KiB
Makefile

# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$
PORTNAME= gonvert
PORTVERSION= 0.2.38
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
USES= python
NO_BUILD= yes
PORTDOCS= CHANGELOG FAQ README THANKS
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
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/
${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/
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
do-install-NLS-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/pl/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/i18n/pl_messages.gmo \
${STAGEDIR}${PREFIX}/share/locale/pl/LC_MESSAGES/gonvert.mo
.include <bsd.port.mk>