summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-02-15 20:09:41 +0000
committermiwi <miwi@FreeBSD.org>2009-02-15 20:09:41 +0000
commit05830b46f7505b115a3c21371630a0f0a2f2f1a1 (patch)
treeeecf3f33ac347b12ddc36772cdbb4a9feb433845
parent0d912f41b1824635e7ddd6da6270c1b54bdf887b (diff)
downloadFreeBSD-ports-05830b46f7505b115a3c21371630a0f0a2f2f1a1.zip
FreeBSD-ports-05830b46f7505b115a3c21371630a0f0a2f2f1a1.tar.gz
Python module implementing LZMA Utils' liblzma API
PylibLZMA provides a python interface for the liblzma library to read and write data that has been compressed or can be decompressed by Lasse Collin's LZMA Utils. WWW: http://launchpad.net/pyliblzma PR: ports/129560 Submitted by: David Naylor <dragonsa at highveldmail.co.za>
-rw-r--r--archivers/Makefile1
-rw-r--r--archivers/py-liblzma/Makefile25
-rw-r--r--archivers/py-liblzma/distinfo3
-rw-r--r--archivers/py-liblzma/files/patch-setup.py19
-rw-r--r--archivers/py-liblzma/pkg-descr7
-rw-r--r--archivers/py-liblzma/pkg-plist4
6 files changed, 59 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile
index b9094ae..fb75b00 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -125,6 +125,7 @@
SUBDIR += ppmd
SUBDIR += ppmd-7z
SUBDIR += ppunpack
+ SUBDIR += py-liblzma
SUBDIR += py-librtfcomp
SUBDIR += py-lzma
SUBDIR += py-tarfile
diff --git a/archivers/py-liblzma/Makefile b/archivers/py-liblzma/Makefile
new file mode 100644
index 0000000..5b87531
--- /dev/null
+++ b/archivers/py-liblzma/Makefile
@@ -0,0 +1,25 @@
+# New ports collection makefile for: py-liblzma
+# Date created: 09 Dec 2008
+# Whom: David Naylor <dragonsa@highveldmail.co.za>
+#
+# $FreeBSD$
+
+PORTNAME= liblzma
+PORTVERSION= 0.5.1
+CATEGORIES= archivers python
+MASTER_SITES= ${MASTER_SITE_CHEESESHOP}source/p/pyliblzma/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PYDISTUTILS_PKGNAME}-${PORTVERSION}
+
+MAINTAINER= dragonsa@highveldmail.co.za
+COMMENT= Python binding for the LZMA compression library
+
+BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config
+LIB_DEPENDS= lzma.0:${PORTSDIR}/archivers/lzmautils-devel
+
+USE_BZIP2= yes
+USE_PYTHON= yes
+USE_PYDISTUTILS=yes
+PYDISTUTILS_PKGNAME= py${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/archivers/py-liblzma/distinfo b/archivers/py-liblzma/distinfo
new file mode 100644
index 0000000..aabc385
--- /dev/null
+++ b/archivers/py-liblzma/distinfo
@@ -0,0 +1,3 @@
+MD5 (pyliblzma-0.5.1.tar.bz2) = e3e3f1d5e29f9cf47c37efa6489d5273
+SHA256 (pyliblzma-0.5.1.tar.bz2) = 341e44901fc307f36b77e42684b769420c613155400b877101b5a8d25c5296df
+SIZE (pyliblzma-0.5.1.tar.bz2) = 48521
diff --git a/archivers/py-liblzma/files/patch-setup.py b/archivers/py-liblzma/files/patch-setup.py
new file mode 100644
index 0000000..c1aaeaa
--- /dev/null
+++ b/archivers/py-liblzma/files/patch-setup.py
@@ -0,0 +1,19 @@
+--- setup.py~ 2009-01-12 14:38:38.000000000 +0200
++++ setup.py 2009-01-12 15:03:21.000000000 +0200
+@@ -23,7 +23,7 @@
+ #
+ import sys, os
+ from warnings import warn
+-from setuptools import setup, Extension
++from distutils.core import setup, Extension
+
+ descr = "Python bindings for liblzma"
+ long_descr = """PylibLZMA provides a python interface for the liblzma library
+@@ -74,7 +74,6 @@
+ ],
+ py_modules = modules,
+ ext_modules = extens,
+- test_suite = 'tests',
+ )
+
+ sys.exit(0)
diff --git a/archivers/py-liblzma/pkg-descr b/archivers/py-liblzma/pkg-descr
new file mode 100644
index 0000000..212ac2f
--- /dev/null
+++ b/archivers/py-liblzma/pkg-descr
@@ -0,0 +1,7 @@
+Python module implementing LZMA Utils' liblzma API
+
+PylibLZMA provides a python interface for the liblzma
+library to read and write data that has been compressed
+or can be decompressed by Lasse Collin's LZMA Utils.
+
+WWW: http://launchpad.net/pyliblzma
diff --git a/archivers/py-liblzma/pkg-plist b/archivers/py-liblzma/pkg-plist
new file mode 100644
index 0000000..c6e95ef
--- /dev/null
+++ b/archivers/py-liblzma/pkg-plist
@@ -0,0 +1,4 @@
+%%PYTHON_SITELIBDIR%%/liblzma.py
+%%PYTHON_SITELIBDIR%%/lzma.so
+%%PYTHON_SITELIBDIR%%/liblzma.pyc
+%%PYTHON_SITELIBDIR%%/liblzma.pyo
OpenPOWER on IntegriCloud