devel/py-cmdln: allow staging

- Allow staging
- Restrict to python 2
- Catch up with new upstream url
- Add LICENSE (MIT)
- Remove leading article from COMMENT
This commit is contained in:
William Grzybowski 2013-12-20 18:12:33 +00:00
parent 2c3d3a22e5
commit 20a0ecf054
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337056
2 changed files with 11 additions and 16 deletions

View file

@ -8,29 +8,24 @@ CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= A python module for easily building good multi-command scripts
MAINTAINER= python@FreeBSD.org
COMMENT= Python module for easily building good multi-command scripts
LICENSE= MIT
USE_ZIP= yes
USE_PYTHON= 2.5+
USE_PYTHON= 2
USE_PYDISTUTILS= yes
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
PORTDOCS= LICENSE README
PORTDOCS= README.txt
NO_STAGE= yes
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/$f.txt ${DOCSDIR}/$f
.endfor
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>

View file

@ -2,4 +2,4 @@ cmdln.py fixes some of the design flaws in cmd.py and takes advantage
of new Python stdlib modules (e.g. optparse) so that it is more useful
(and convenient) for implementing command-line scripts/shells.
WWW: http://code.google.com/p/cmdln/
WWW: https://github.com/trentm/cmdln