aboutsummaryrefslogtreecommitdiff
path: root/x11-fm/gprename/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11-fm/gprename/Makefile')
-rw-r--r--x11-fm/gprename/Makefile60
1 files changed, 17 insertions, 43 deletions
diff --git a/x11-fm/gprename/Makefile b/x11-fm/gprename/Makefile
index 1c520f244867..dcf2ae0108c4 100644
--- a/x11-fm/gprename/Makefile
+++ b/x11-fm/gprename/Makefile
@@ -2,13 +2,12 @@
# Date created: 2004-03-15
# Whom: trevor
#
-# $Carpetsmoker: ports/gprename/Makefile,v 1.3 2007/04/23 18:35:06 carpetsmoker Exp $
+# $Carpetsmoker: ports/x11-fm/gprename/Makefile,v 1.5 2007/07/12 02:30:53 carpetsmoker Exp $
# $FreeBSD$
#
PORTNAME= gprename
-PORTVERSION= 2.2
-PORTREVISION= 1
+PORTVERSION= 2.3
PORTEPOCH= 1
CATEGORIES= x11-fm
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
@@ -22,47 +21,22 @@ RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Gtk2.pm:${PORTSDIR}/x11-toolkits/p5-Gtk2
USE_BZIP2= yes
USE_PERL5_RUN= yes
NO_BUILD= yes
-
-SUB_FILES= gprename
-
-PORTDOCS= README
-PLIST_FILES= bin/gprename \
- %%DATADIR%%/COPYING \
- %%DATADIR%%/bin/gprename.pl \
- %%DATADIR%%/languages/lang.dt \
- %%DATADIR%%/languages/lang.en \
- %%DATADIR%%/languages/lang.es.ISO-8859-1 \
- %%DATADIR%%/languages/lang.es.UTF-8 \
- %%DATADIR%%/languages/lang.fr.ISO-8859-1 \
- %%DATADIR%%/languages/lang.fr.UTF-8 \
- %%DATADIR%%/languages/lang.pl.ISO-8859-2 \
- %%DATADIR%%/languages/lang.pl.UTF-8 \
- %%DATADIR%%/languages/lang.pt-br.ISO-8859-1 \
- %%DATADIR%%/languages/lang.pt-br.UTF-8 \
- %%DATADIR%%/languages/langs.pl \
- %%DATADIR%%/icon/gprename_icon.png \
- %%DATADIR%%/icon/gprename_nautilus-action.png
-PLIST_DIRS= %%DATADIR%%/icon \
- %%DATADIR%%/languages \
- %%DATADIR%%/bin \
- %%DATADIR%%
-
-.include <bsd.port.pre.mk>
-
-do-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/gprename ${PREFIX}/bin
- @${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/COPYING ${DATADIR}
- @${MKDIR} ${DATADIR}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/gprename.pl ${DATADIR}/bin
- @${MKDIR} ${DATADIR}/languages
- ${INSTALL_DATA} ${WRKSRC}/languages/lang.* ${DATADIR}/languages
- ${INSTALL_DATA} ${WRKSRC}/languages/langs.pl ${DATADIR}/languages
- @${MKDIR} ${DATADIR}/icon
- ${INSTALL_DATA} ${WRKSRC}/icon/* ${DATADIR}/icon/
+PORTDOCS= README COPYING
+MAN1= gprename.1
+MANCOMPRESSED= no
+
+post-patch:
+ @${REINPLACE_CMD} 's|/usr/|${PREFIX}/|' \
+ ${WRKSRC}/bin/gprename
+ @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|; \
+ s|$$(CURDIR)|$$(.CURDIR)|; \
+ s|share/man|man|;' \
+ ${WRKSRC}/Makefile
+
+post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/COPYING ${DOCSDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>