aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2014-06-22 21:59:05 +0800
committerwg <wg@FreeBSD.org>2014-06-22 21:59:05 +0800
commit99c708cf5c2be1bdf9aa9cef34a6ccca63d3769f (patch)
treea1f08c56dc8967947f5d1a74b48567d5241192d7 /devel
parente8bdee0135bf03efc6586d6b54a3e404664169af (diff)
downloadfreebsd-ports-gnome-99c708cf5c2be1bdf9aa9cef34a6ccca63d3769f.tar.gz
freebsd-ports-gnome-99c708cf5c2be1bdf9aa9cef34a6ccca63d3769f.tar.zst
freebsd-ports-gnome-99c708cf5c2be1bdf9aa9cef34a6ccca63d3769f.zip
devel/py-tconfpy: support stage
- Use PYDISTUTILS instead of makefile - Define DOCS option - Use auto plist
Diffstat (limited to 'devel')
-rw-r--r--devel/py-tconfpy/Makefile26
-rw-r--r--devel/py-tconfpy/pkg-plist5
2 files changed, 10 insertions, 21 deletions
diff --git a/devel/py-tconfpy/Makefile b/devel/py-tconfpy/Makefile
index a7d05941c501..49f54dd6e894 100644
--- a/devel/py-tconfpy/Makefile
+++ b/devel/py-tconfpy/Makefile
@@ -12,27 +12,17 @@ MAINTAINER= tconfpy@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>
diff --git a/devel/py-tconfpy/pkg-plist b/devel/py-tconfpy/pkg-plist
index cb8c97f0ed88..efc6d39faccc 100644
--- a/devel/py-tconfpy/pkg-plist
+++ b/devel/py-tconfpy/pkg-plist
@@ -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