mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Use PORTDOCS and PORTEXAMPLES
- Simplify Makefile - Remove Author line
This commit is contained in:
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
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Example
|
||||
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
Loading…
Add table
Reference in a new issue