1: Stagify.
2: use options helper. Approved by: portmgr@ (blanket approval)
This commit is contained in:
parent
8004db30c9
commit
048e5c6402
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359779
2 changed files with 17 additions and 9 deletions
|
@ -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>
|
||||
|
|
10
sysutils/tren/files/patch-Makefile
Normal file
10
sysutils/tren/files/patch-Makefile
Normal file
|
@ -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
|
Loading…
Reference in a new issue