aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/py-tarfile
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-03-27 23:23:02 +0800
committerijliao <ijliao@FreeBSD.org>2002-03-27 23:23:02 +0800
commit62d4b37d404755803b5fa8cdc0a854fe33a462af (patch)
tree7ac21adcfbaaf53156dd73e2e34e0a3249433902 /archivers/py-tarfile
parent7d4ab319875f23302a4c799a969d14bd3cad6b2f (diff)
downloadfreebsd-ports-graphics-62d4b37d404755803b5fa8cdc0a854fe33a462af.tar.gz
freebsd-ports-graphics-62d4b37d404755803b5fa8cdc0a854fe33a462af.tar.zst
freebsd-ports-graphics-62d4b37d404755803b5fa8cdc0a854fe33a462af.zip
add py-tarfile 0.3
Python library for reading and writing tarballs PR: 36371 Submitted by: Hye-Shik Chang <perky@fallin.lv>
Diffstat (limited to 'archivers/py-tarfile')
-rw-r--r--archivers/py-tarfile/Makefile38
-rw-r--r--archivers/py-tarfile/distinfo1
-rw-r--r--archivers/py-tarfile/pkg-comment1
-rw-r--r--archivers/py-tarfile/pkg-descr5
-rw-r--r--archivers/py-tarfile/pkg-plist6
5 files changed, 51 insertions, 0 deletions
diff --git a/archivers/py-tarfile/Makefile b/archivers/py-tarfile/Makefile
new file mode 100644
index 00000000000..77d2e2e710f
--- /dev/null
+++ b/archivers/py-tarfile/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: py-tarfile
+# Date created: 26 March 2002
+# Whom: Hye-Shik Chang <perky@fallin.lv>
+#
+# $FreeBSD$
+#
+
+PORTNAME= tarfile
+PORTVERSION= 0.3
+CATEGORIES= archivers python
+MASTER_SITES= http://www.gustaebel.de/lars/tarfile/ \
+ http://www3.kr.freebsd.org/~perky/distfiles/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= perky@fallin.lv
+
+USE_PYTHON= yes
+SETUP_CMD= cd ${WRKSRC} && ${PYTHON_CMD} setup.py
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 200
+IGNORE= needs Python 2.0 at least
+.else
+.if ${PYTHON_REL} < 220
+PLIST_SUB+= UNDERPY22=""
+.else
+PLIST_SUB+= UNDERPY22="@comment "
+.endif
+.endif
+
+do-build:
+ ${SETUP_CMD} build
+
+do-install:
+ ${SETUP_CMD} install -c -O1 --prefix=${PREFIX}
+
+.include <bsd.port.post.mk>
diff --git a/archivers/py-tarfile/distinfo b/archivers/py-tarfile/distinfo
new file mode 100644
index 00000000000..0c651a813e8
--- /dev/null
+++ b/archivers/py-tarfile/distinfo
@@ -0,0 +1 @@
+MD5 (tarfile-0.3.tar.gz) = 68a105ddc29c39bdeedf6a4640369d70
diff --git a/archivers/py-tarfile/pkg-comment b/archivers/py-tarfile/pkg-comment
new file mode 100644
index 00000000000..f6ac391f379
--- /dev/null
+++ b/archivers/py-tarfile/pkg-comment
@@ -0,0 +1 @@
+Python library for reading and writing tarballs
diff --git a/archivers/py-tarfile/pkg-descr b/archivers/py-tarfile/pkg-descr
new file mode 100644
index 00000000000..73befa602d2
--- /dev/null
+++ b/archivers/py-tarfile/pkg-descr
@@ -0,0 +1,5 @@
+Tarfile is a comprehensive implementation of the TAR archive
+format for the Python Language as a module. It enables read/write
+access to common TAR archives including all specialities.
+
+WWW: http://www.gustaebel.de/lars/tarfile/
diff --git a/archivers/py-tarfile/pkg-plist b/archivers/py-tarfile/pkg-plist
new file mode 100644
index 00000000000..85a425b2a79
--- /dev/null
+++ b/archivers/py-tarfile/pkg-plist
@@ -0,0 +1,6 @@
+lib/%%PYTHON_VERSION%%/site-packages/tarfile.py
+lib/%%PYTHON_VERSION%%/site-packages/tarfile.pyc
+lib/%%PYTHON_VERSION%%/site-packages/tarfile.pyo
+%%UNDERPY22%%lib/%%PYTHON_VERSION%%/site-packages/gzip22.py
+%%UNDERPY22%%lib/%%PYTHON_VERSION%%/site-packages/gzip22.pyc
+%%UNDERPY22%%lib/%%PYTHON_VERSION%%/site-packages/gzip22.pyo