aboutsummaryrefslogtreecommitdiff
path: root/devel/py-cmdln
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-09-06 21:14:16 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-09-06 21:14:16 +0000
commitd483c20d5b5384d9191840a70bbf9dbc5505b3a1 (patch)
treecfff16d33feae9b992e1df45e2a2ce5a29d04863 /devel/py-cmdln
parent2a1614318bb6df2833274498cf284af002895efc (diff)
downloadports-d483c20d5b5384d9191840a70bbf9dbc5505b3a1.tar.gz
ports-d483c20d5b5384d9191840a70bbf9dbc5505b3a1.zip
Notes
Diffstat (limited to 'devel/py-cmdln')
-rw-r--r--devel/py-cmdln/Makefile38
-rw-r--r--devel/py-cmdln/distinfo3
-rw-r--r--devel/py-cmdln/pkg-descr5
-rw-r--r--devel/py-cmdln/pkg-plist6
4 files changed, 52 insertions, 0 deletions
diff --git a/devel/py-cmdln/Makefile b/devel/py-cmdln/Makefile
new file mode 100644
index 000000000000..aa778e3b2e22
--- /dev/null
+++ b/devel/py-cmdln/Makefile
@@ -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>
diff --git a/devel/py-cmdln/distinfo b/devel/py-cmdln/distinfo
new file mode 100644
index 000000000000..e562d5b44778
--- /dev/null
+++ b/devel/py-cmdln/distinfo
@@ -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
diff --git a/devel/py-cmdln/pkg-descr b/devel/py-cmdln/pkg-descr
new file mode 100644
index 000000000000..f0df7d55e402
--- /dev/null
+++ b/devel/py-cmdln/pkg-descr
@@ -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/
diff --git a/devel/py-cmdln/pkg-plist b/devel/py-cmdln/pkg-plist
new file mode 100644
index 000000000000..f098ecce7000
--- /dev/null
+++ b/devel/py-cmdln/pkg-plist
@@ -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%%