diff options
author | Marcus von Appen <mva@FreeBSD.org> | 2013-09-28 11:13:15 +0000 |
---|---|---|
committer | Marcus von Appen <mva@FreeBSD.org> | 2013-09-28 11:13:15 +0000 |
commit | 3ca507ce12f69cc0c60ba897116a2ebfa5a271e5 (patch) | |
tree | 69a496f998353664c19d5adcc39836d8d3443ce5 /databases/py-cdb | |
parent | f6d6280c8f6d16ef78e587d47551ff0d26dd4aa8 (diff) | |
download | ports-3ca507ce12f69cc0c60ba897116a2ebfa5a271e5.tar.gz ports-3ca507ce12f69cc0c60ba897116a2ebfa5a271e5.zip |
Notes
Diffstat (limited to 'databases/py-cdb')
-rw-r--r-- | databases/py-cdb/Makefile | 20 | ||||
-rw-r--r-- | databases/py-cdb/pkg-plist | 5 |
2 files changed, 15 insertions, 10 deletions
diff --git a/databases/py-cdb/Makefile b/databases/py-cdb/Makefile index 6f89958308af..f07f5048f59c 100644 --- a/databases/py-cdb/Makefile +++ b/databases/py-cdb/Makefile @@ -11,8 +11,9 @@ DISTNAME= python-${PORTNAME}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Python interface to DJB's constant database library -USE_PYTHON= yes +USE_PYTHON= -2.7 USE_PYDISTUTILS= yes +PYDISTUTILS_AUTOPLIST= yes PYDISTUTILS_PKGNAME= python-cdb DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} @@ -21,13 +22,18 @@ EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} DOCS= ChangeLog README EXAMPLES= Example -NO_STAGE= yes +OPTIONS_DEFINE= DOCS EXAMPLES + +.include <bsd.port.options.mk> + post-install: - @${MKDIR} ${EXAMPLESDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR} -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} +.if ${PORT_OPTIONS:MEXAMPLES} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${STAGEDIR}${EXAMPLESDIR} +.endif +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR} .endif .include <bsd.port.mk> diff --git a/databases/py-cdb/pkg-plist b/databases/py-cdb/pkg-plist index 50bb9151a341..9bc09bc61ec0 100644 --- a/databases/py-cdb/pkg-plist +++ b/databases/py-cdb/pkg-plist @@ -1,6 +1,5 @@ -%%PYTHON_SITELIBDIR%%/cdbmodule.so -%%EXAMPLESDIR%%/Example -@dirrm %%EXAMPLESDIR%% +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Example +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% %%PORTDOCS%%%%DOCSDIR%%/ChangeLog %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%@dirrm %%DOCSDIR%% |