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/ PR: ports/127116 Submitted by: Yi-Jheng Lin <yzlin at cs.nctu.edu.tw>
This commit is contained in:
parent
2a1614318b
commit
d483c20d5b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=220021
@ -2086,6 +2086,7 @@
|
||||
SUBDIR += py-cheetah
|
||||
SUBDIR += py-ciphon
|
||||
SUBDIR += py-cjson
|
||||
SUBDIR += py-cmdln
|
||||
SUBDIR += py-cog
|
||||
SUBDIR += py-configobj
|
||||
SUBDIR += py-coro
|
||||
|
38
devel/py-cmdln/Makefile
Normal file
38
devel/py-cmdln/Makefile
Normal file
@ -0,0 +1,38 @@
|
||||
# New ports collection makefile for: py-cmdln
|
||||
# Date created: 2008-09-05
|
||||
# Whom: Yi-Jheng Lin <yzlin@cs.nctu.edu.tw>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= cmdln
|
||||
PORTVERSION= 1.1.1
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= yzlin@cs.nctu.edu.tw
|
||||
COMMENT= A python module for easily building good multi-command scripts
|
||||
|
||||
USE_ZIP= yes
|
||||
USE_PYTHON= 2.4+
|
||||
USE_PYDISTUTILS= yes
|
||||
|
||||
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
||||
|
||||
PORTDOCS= README
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for f in ${PORTDOCS}
|
||||
${INSTALL_MAN} ${WRKSRC}/$f.txt ${DOCSDIR}/$f
|
||||
.endfor
|
||||
.endif
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/py-cmdln/distinfo
Normal file
3
devel/py-cmdln/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (cmdln-1.1.1.zip) = f8c6dc1402da35091bbca70ce23712c0
|
||||
SHA256 (cmdln-1.1.1.zip) = 72379540172fc3aeba39fc7afd6615dcda68b345c153598c4e7efda895ed14d8
|
||||
SIZE (cmdln-1.1.1.zip) = 89022
|
5
devel/py-cmdln/pkg-descr
Normal file
5
devel/py-cmdln/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
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/
|
6
devel/py-cmdln/pkg-plist
Normal file
6
devel/py-cmdln/pkg-plist
Normal file
@ -0,0 +1,6 @@
|
||||
%%PYTHON_SITELIBDIR%%/cmdln.py
|
||||
%%PYTHON_SITELIBDIR%%/cmdln.pyc
|
||||
%%PYTHON_SITELIBDIR%%/cmdln.pyo
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/p4.py
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/svn.py
|
||||
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
|
Loading…
Reference in New Issue
Block a user