diff options
author | nivit <nivit@FreeBSD.org> | 2014-04-14 12:49:58 +0800 |
---|---|---|
committer | nivit <nivit@FreeBSD.org> | 2014-04-14 12:49:58 +0800 |
commit | a7b1cbe41323fcf96fb97219d22c35dc7881639b (patch) | |
tree | 95298c0bc7fa0d6663147c263034384ac7fb07ee /devel | |
parent | 94ed0db66d297075b6b0e93cf6aab76e06a6e922 (diff) | |
download | freebsd-ports-gnome-a7b1cbe41323fcf96fb97219d22c35dc7881639b.tar.gz freebsd-ports-gnome-a7b1cbe41323fcf96fb97219d22c35dc7881639b.tar.zst freebsd-ports-gnome-a7b1cbe41323fcf96fb97219d22c35dc7881639b.zip |
- Remove deprecated OPTIONSFILE
- Use auto-generated plist
- Don't build/install Python egg anymore
- Bump PORTREVISION (changed pkg-plist)
- Add support for stage-dir [1]
- Don't install unnecessary files of DOCS
PR: ports/188528 [1]
Submitted by: Bartek Rutkowski <ports@robakdesign.com>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-pathtools/Makefile | 14 | ||||
-rw-r--r-- | devel/py-pathtools/pkg-plist | 3 |
2 files changed, 7 insertions, 10 deletions
diff --git a/devel/py-pathtools/Makefile b/devel/py-pathtools/Makefile index 0edcc2ca0808..cde8ff69d77d 100644 --- a/devel/py-pathtools/Makefile +++ b/devel/py-pathtools/Makefile @@ -2,7 +2,7 @@ PORTNAME= pathtools PORTVERSION= 0.1.2 -#PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -13,13 +13,12 @@ COMMENT= File system general utilities for Python LICENSE= MIT OPTIONS_DEFINE= DOCS -OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options -# Python3 ready (installation tested) +PYDISTUTILS_AUTOPLIST= yes + USE_PYTHON= yes -USE_PYDISTUTILS= easy_install +USE_PYDISTUTILS= yes -NO_STAGE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MDOCS} @@ -27,10 +26,11 @@ BUILD_DEPENDS+= ${PKGNAMEPREFIX}sphinx>=1.1.3:${PORTSDIR}/textproc/py-sphinx DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} post-build: - (cd ${WRKSRC}/docs ; ${MAKE} html) + @(cd ${WRKSRC}/docs ; ${MAKE} html) post-install: - (cd ${WRKSRC}/docs/build/html ; ${COPYTREE_SHARE} . ${DOCSDIR}) + @(cd ${WRKSRC}/docs/build/html ; ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \ + "! -name .buildinfo -and ! -name objects.inv") .endif .include <bsd.port.mk> diff --git a/devel/py-pathtools/pkg-plist b/devel/py-pathtools/pkg-plist index cde66939a84a..4a6f2e7ec799 100644 --- a/devel/py-pathtools/pkg-plist +++ b/devel/py-pathtools/pkg-plist @@ -1,5 +1,3 @@ -%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% -%%PORTDOCS%%%%DOCSDIR%%/.buildinfo %%PORTDOCS%%%%DOCSDIR%%/_modules/index.html %%PORTDOCS%%%%DOCSDIR%%/_modules/pathtools/path.html %%PORTDOCS%%%%DOCSDIR%%/_modules/pathtools/patterns.html @@ -28,7 +26,6 @@ %%PORTDOCS%%%%DOCSDIR%%/api.html %%PORTDOCS%%%%DOCSDIR%%/genindex.html %%PORTDOCS%%%%DOCSDIR%%/index.html -%%PORTDOCS%%%%DOCSDIR%%/objects.inv %%PORTDOCS%%%%DOCSDIR%%/py-modindex.html %%PORTDOCS%%%%DOCSDIR%%/search.html %%PORTDOCS%%%%DOCSDIR%%/searchindex.js |