Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jun 2014 15:58:14 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r359779 - in head/sysutils/tren: . files
Message-ID:  <201406291558.s5TFwEAE094812@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Sun Jun 29 15:58:14 2014
New Revision: 359779
URL: http://svnweb.freebsd.org/changeset/ports/359779
QAT: https://qat.redports.org/buildarchive/r359779/

Log:
  1: Stagify.
  2: use options helper.
  
  Approved by:	portmgr@ (blanket approval)

Added:
  head/sysutils/tren/files/
  head/sysutils/tren/files/patch-Makefile   (contents, props changed)
Modified:
  head/sysutils/tren/Makefile

Modified: head/sysutils/tren/Makefile
==============================================================================
--- head/sysutils/tren/Makefile	Sun Jun 29 15:57:17 2014	(r359778)
+++ head/sysutils/tren/Makefile	Sun Jun 29 15:58:14 2014	(r359779)
@@ -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>

Added: head/sysutils/tren/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/tren/files/patch-Makefile	Sun Jun 29 15:58:14 2014	(r359779)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406291558.s5TFwEAE094812>