diff options
author | lwhsu <lwhsu@FreeBSD.org> | 2009-05-12 21:57:51 +0800 |
---|---|---|
committer | lwhsu <lwhsu@FreeBSD.org> | 2009-05-12 21:57:51 +0800 |
commit | d61273288a078539b713aa8b98218a80ddfabaf7 (patch) | |
tree | 618cd039c9f5aa69f237990c9726790bd4d3fad6 /devel | |
parent | be8d19b1fdf63e0422b324654b88a2bdaf8f4fe1 (diff) | |
download | freebsd-ports-gnome-d61273288a078539b713aa8b98218a80ddfabaf7.tar.gz freebsd-ports-gnome-d61273288a078539b713aa8b98218a80ddfabaf7.tar.zst freebsd-ports-gnome-d61273288a078539b713aa8b98218a80ddfabaf7.zip |
- Grab maintainership for python
- Adjust DOC and EXAMPLE directories
- Respect NOPORTEXAMPLES knob
- Mark IGNORE for Python 2.5 and later
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-elementtree/Makefile | 19 | ||||
-rw-r--r-- | devel/py-elementtree/pkg-plist | 6 |
2 files changed, 17 insertions, 8 deletions
diff --git a/devel/py-elementtree/Makefile b/devel/py-elementtree/Makefile index 64c53de15844..0281795a664d 100644 --- a/devel/py-elementtree/Makefile +++ b/devel/py-elementtree/Makefile @@ -7,27 +7,36 @@ PORTNAME= elementtree PORTVERSION= 1.2.6 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= http://effbot.org/media/downloads/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= ${PORTNAME}-${PORTVERSION}-20050316 -MAINTAINER= ports@FreeBSD.org +MAINTAINER= python@FreeBSD.org COMMENT= Container for hierarchical data structures written in Python USE_PYTHON= yes USE_PYDISTUTILS= yes PYDISTUTILS_PKGVERSION= 1.2.6-20050316 -DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} -EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} +DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} +EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} -.if !defined(NOPORTDOCS) post-install: +.if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${CP} -R ${WRKSRC}/docs/ ${DOCSDIR} +.endif +.if !defined(NOPORTEXAMPLES) @${MKDIR} ${EXAMPLESDIR} ${CP} -R ${WRKSRC}/samples/ ${EXAMPLESDIR} .endif -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${PYTHON_REL} >= 250 +IGNORE= this comes with the Python package +.endif + +.include <bsd.port.post.mk> diff --git a/devel/py-elementtree/pkg-plist b/devel/py-elementtree/pkg-plist index d7e50971ecec..65daaabc29db 100644 --- a/devel/py-elementtree/pkg-plist +++ b/devel/py-elementtree/pkg-plist @@ -42,8 +42,8 @@ %%PORTDOCS%%%%DOCSDIR%%/pythondoc-elementtree.SimpleXMLWriter.html %%PORTDOCS%%%%DOCSDIR%%/pythondoc-elementtree.TidyTools.html %%PORTDOCS%%%%DOCSDIR%%/pythondoc-elementtree.XMLTreeBuilder.html -%%PORTDOCS%%%%EXAMPLESDIR%%/simple-ns.xml -%%PORTDOCS%%%%EXAMPLESDIR%%/simple.xml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/simple-ns.xml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/simple.xml @dirrm %%PYTHON_SITELIBDIR%%/elementtree -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%% |