2001-04-09 05:44:57 +02:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: gonvert
|
|
|
|
# Date created: Apr 9, 2001
|
|
|
|
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gonvert
|
2006-10-09 02:39:54 +02:00
|
|
|
PORTVERSION= 0.2.17
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION= 1
|
2001-04-09 05:44:57 +02:00
|
|
|
CATEGORIES= misc python gnome
|
2003-02-26 17:36:41 +01:00
|
|
|
MASTER_SITES= http://www.unihedron.com/projects/gonvert/downloads/
|
2001-04-09 05:44:57 +02:00
|
|
|
|
2001-05-28 03:35:19 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= A conversion utility that allows conversion between many units
|
2001-04-09 05:44:57 +02:00
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
2006-10-09 02:39:54 +02:00
|
|
|
USE_GETTEXT= yes
|
2006-06-18 12:53:08 +02:00
|
|
|
USE_GNOME= pygtk2
|
2004-01-26 21:19:57 +01:00
|
|
|
USE_PYTHON= yes
|
2001-04-09 05:44:57 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
2004-07-14 14:22:17 +02:00
|
|
|
post-patch:
|
2005-12-26 20:53:35 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!/usr/bin/env python|g ; \
|
2006-06-18 12:53:08 +02:00
|
|
|
s|/usr/share|${PREFIX}/share|g ; \
|
|
|
|
s|/\.\./pixmaps/|/pixmaps/|g' ${WRKSRC}/gonvert
|
2004-07-14 14:22:17 +02:00
|
|
|
|
2004-01-26 21:19:57 +01:00
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/gonvert ${PREFIX}/bin
|
2006-06-18 12:53:08 +02:00
|
|
|
@${MKDIR} ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gonvert.desktop ${PREFIX}/share/applications
|
2004-01-26 21:19:57 +01:00
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gonvert.glade ${DATADIR}
|
|
|
|
@${MKDIR} ${DATADIR}/pixmaps
|
2006-06-18 12:53:08 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${DATADIR}/pixmaps
|
|
|
|
@${MKDIR} ${PREFIX}/share/pixmaps
|
|
|
|
${LN} -sf ${WRKSRC}/pixmaps/gonvert.png ${PREFIX}/share/pixmaps
|
2005-12-26 20:53:35 +01:00
|
|
|
@${MKDIR} ${PREFIX}/share/locale/pl/LC_MESSAGES
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/i18n/pl_messages.gmo \
|
|
|
|
${PREFIX}/share/locale/pl/LC_MESSAGES/gonvert.mo
|
2004-01-26 21:19:57 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-12-26 20:53:35 +01:00
|
|
|
.for file in CHANGELOG FAQ README THANKS TODO
|
2004-01-26 21:19:57 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
2001-04-09 05:44:57 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|