aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-06-29 23:58:14 +0800
committervanilla <vanilla@FreeBSD.org>2014-06-29 23:58:14 +0800
commit5094e3de2613f3bbde00ac19ed8403f0b07074fd (patch)
treebda191cee31b90114c3027fedbaa095a2c7ba2f1 /sysutils
parent0d28c5f5e26c83204dfa490e3208220a2e650e8f (diff)
downloadfreebsd-ports-gnome-5094e3de2613f3bbde00ac19ed8403f0b07074fd.tar.gz
freebsd-ports-gnome-5094e3de2613f3bbde00ac19ed8403f0b07074fd.tar.zst
freebsd-ports-gnome-5094e3de2613f3bbde00ac19ed8403f0b07074fd.zip
1: Stagify.
2: use options helper. Approved by: portmgr@ (blanket approval)
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/tren/Makefile16
-rw-r--r--sysutils/tren/files/patch-Makefile10
2 files changed, 17 insertions, 9 deletions
diff --git a/sysutils/tren/Makefile b/sysutils/tren/Makefile
index 25a2c6066d7b..2166679abe58 100644
--- a/sysutils/tren/Makefile
+++ b/sysutils/tren/Makefile
@@ -10,18 +10,16 @@ MAINTAINER= tren@tundraware.com
COMMENT= A Powerful File And Directory Batch Renaming Tool
USE_PYTHON= yes
-
-MAN1= tren.1
-MANCOMPRESSED= yes
-
-PLIST_FILES= bin/tren.py
+PLIST_FILES= bin/tren.py man/man1/tren.1.gz
PORTDOCS= WHATSNEW.txt tren-license.txt tren.html tren.pdf tren.ps tren.rst
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
-NO_STAGE= yes
post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}/
- cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}/
+ cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
.endif
.include <bsd.port.mk>
diff --git a/sysutils/tren/files/patch-Makefile b/sysutils/tren/files/patch-Makefile
new file mode 100644
index 000000000000..aa50de01ffd8
--- /dev/null
+++ b/sysutils/tren/files/patch-Makefile
@@ -0,0 +1,10 @@
+--- Makefile.orig 2014-06-29 23:52:49.319326073 +0800
++++ Makefile 2014-06-29 23:53:01.269334923 +0800
+@@ -4,5 +4,5 @@
+ all: # Do nothing. This is a free-standing Python program.
+
+ install:
+- ${BSD_INSTALL_SCRIPT} tren.py ${PREFIX}/bin
+- ${BSD_INSTALL_MAN} tren.1.gz ${PREFIX}/man/man1
++ ${BSD_INSTALL_SCRIPT} tren.py $(DESTDIR)${PREFIX}/bin
++ ${BSD_INSTALL_MAN} tren.1.gz $(DESTDIR)${PREFIX}/man/man1