svn commit: r358802 - head/devel/py-tconfpy
William Grzybowski
wg at FreeBSD.org
Sun Jun 22 13:59:06 UTC 2014
Author: wg
Date: Sun Jun 22 13:59:05 2014
New Revision: 358802
URL: http://svnweb.freebsd.org/changeset/ports/358802
QAT: https://qat.redports.org/buildarchive/r358802/
Log:
devel/py-tconfpy: support stage
- Use PYDISTUTILS instead of makefile
- Define DOCS option
- Use auto plist
Modified:
head/devel/py-tconfpy/Makefile
head/devel/py-tconfpy/pkg-plist
Modified: head/devel/py-tconfpy/Makefile
==============================================================================
--- head/devel/py-tconfpy/Makefile Sun Jun 22 13:39:24 2014 (r358801)
+++ head/devel/py-tconfpy/Makefile Sun Jun 22 13:59:05 2014 (r358802)
@@ -12,27 +12,17 @@ MAINTAINER= tconfpy at tundraware.com
COMMENT= Python Configuration File Parser
USE_PYTHON= yes
-INSTALLS_EGGINFO= yes
-PYDISTUTILS_PKGNAME= tconfpy
-PYDISTUTILS_PKGVERSION= 0.0.0
+USE_PYDISTUTILS= yes
+PYDISTUTILS_AUTOPLIST= yes
-MANCOMPRESSED= yes
-MAN1= test-tc.1
-MAN3= tconfpy.3
-PORTDOCS= READ-1ST.txt WHATSNEW.txt tconfpy-license.txt tconfpy.html tconfpy.pdf tconfpy.ps tconfpy.txt test-tc.html test-tc.pdf test-tc.ps test-tc.txt
-
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
-post-patch:
- @${REINPLACE_CMD} -e 's|python setup.py|${PYTHON_CMD} setup.py|' \
- ${WRKSRC}/Makefile
+PORTDOCS= READ-1ST.txt WHATSNEW.txt tconfpy-license.txt tconfpy.html tconfpy.pdf tconfpy.ps tconfpy.txt test-tc.html test-tc.pdf test-tc.ps test-tc.txt
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for f in ${PORTDOCS}
- @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.endfor
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/test-tc.1.gz ${STAGEDIR}${PREFIX}/man/man1/
+ ${INSTALL_MAN} ${WRKSRC}/tconfpy.3.gz ${STAGEDIR}${PREFIX}/man/man3/
.include <bsd.port.mk>
Modified: head/devel/py-tconfpy/pkg-plist
==============================================================================
--- head/devel/py-tconfpy/pkg-plist Sun Jun 22 13:39:24 2014 (r358801)
+++ head/devel/py-tconfpy/pkg-plist Sun Jun 22 13:59:05 2014 (r358802)
@@ -1,3 +1,2 @@
-bin/test-tc.py
-%%PYTHON_SITELIBDIR%%/tconfpy.py
-%%PYTHON_SITELIBDIR%%/tconfpy.pyc
+man/man1/test-tc.1.gz
+man/man3/tconfpy.3.gz
More information about the svn-ports-all
mailing list