- Use PORTDOCS and PORTEXAMPLES

- Simplify Makefile
- Remove Author line
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2015-01-15 16:38:33 +00:00
parent ddb364d851
commit eaf200a111
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=377106
3 changed files with 5 additions and 15 deletions

View file

@ -17,21 +17,15 @@ USE_PYTHON= distutils autoplist
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
DOCS= ChangeLog README
EXAMPLES= Example
PORTDOCS= ChangeLog README
PORTEXAMPLES= Example
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
post-install:
.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
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>

View file

@ -6,5 +6,4 @@ lookups and atomic updates. This module mimics the normal cdb
utilities (cdb(get|dump|make)) via convenient high-level Python
objects.
Author: MJ Pomraning <mjp@pilcrow.madison.wi.us>
WWW: http://pilcrow.madison.wi.us/#pycdb

View file

@ -1,3 +0,0 @@
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Example
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/README