ports/129560: New port: archivers/py-liblzma - Python binding for using LZMA compression

David Naylor naylor.b.david at gmail.com
Wed Dec 10 20:20:04 UTC 2008


>Number:         129560
>Category:       ports
>Synopsis:       New port: archivers/py-liblzma - Python binding for using LZMA compression
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 10 20:20:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     David Naylor
>Release:        FreeBSD-8
>Organization:
Private
>Environment:
FreeBSD dragonmini.dg 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Mon Sep 15 20:51:46 SAST 2008     root at dragonmini.dg:/tmp/usr/src/sys/GENERIC  amd64
>Description:
This is a python binding for liblzma.  This binding implements a more natural and native interface (similar to that of bz2 and gzip).  Most importantly this binding includes a LZMAFile class (very useful).  

NOTE: This is not the latest version of the library since that depends on a version of lzmautils-devel that has not been released.

PENDING on port/129557

Regards
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	py-liblzma
#	py-liblzma/files
#	py-liblzma/files/patch-setup.py
#	py-liblzma/Makefile
#	py-liblzma/distinfo
#	py-liblzma/pkg-descr
#	py-liblzma/pkg-plist
#
echo c - py-liblzma
mkdir -p py-liblzma > /dev/null 2>&1
echo c - py-liblzma/files
mkdir -p py-liblzma/files > /dev/null 2>&1
echo x - py-liblzma/files/patch-setup.py
sed 's/^X//' >py-liblzma/files/patch-setup.py << '7a5c4c865c0874b0f5ecb6edbdab6e4c'
X--- setup.py    2008-09-11 23:08:52.000000000 +0000
X+++ setup.py    2008-10-24 11:40:42.000000000 +0000
X@@ -23,7 +23,7 @@                                               
X #
X import sys, os
X from warnings import warn
X-from setuptools import setup, Extension
X+from distutils.core import setup, Extension
X
X descr = "Python bindings for liblzma"
X long_descr = """PylibLZMA provides a python interface for the liblzma library
X@@ -40,10 +40,17 @@
X
X warnflags = ['-Wall', '-Wextra', '-pedantic']
X compile_args = []
X+link_args = []
X if not os.popen4('touch gnu99-test.c; gcc -std=gnu99 -E gnu99-test.c > /dev/null; rm -f gnu99-test.c')[1].read():
X     compile_args.append('-std=gnu99')
X
X-link_args = ['-llzma']
X+pc_cflags = os.popen("pkg-config --cflags lzma").readline().strip()
X+if(pc_cflags):
X+       compile_args.extend(pc_cflags.split(' '))
X+pc_libs = os.popen("pkg-config --libs lzma").readline().strip()
X+if(pc_libs):
X+       link_args.extend(pc_libs.split(' '))
X+
X extens=[Extension('lzma', c_files, extra_compile_args=compile_args, extra_link_args=link_args, define_macros=version_define)]
X
X setup(
X@@ -67,7 +74,6 @@
X     ],
X     py_modules = modules,
X     ext_modules = extens,
X-    test_suite = 'tests',
X )
X
X sys.exit(0)
7a5c4c865c0874b0f5ecb6edbdab6e4c
echo x - py-liblzma/Makefile
sed 's/^X//' >py-liblzma/Makefile << 'bba7de5d008b27f9ab1fdbe3bbc8b480'
X# New ports collection makefile for:	py-liblzma
X# Date created:		09 Dec 2008
X# Whom:			David Naylor <dragonsa at highveldmail.co.za>
X#
X# $FreeBSD: ports/archivers/py-lzma/Makefile,v 1.5 2007/07/30 09:40:56 alexbl Exp $
X
XPORTNAME=	liblzma
XPORTVERSION=	0.4.0
XCATEGORIES=	archivers python
XMASTER_SITES=	${MASTER_SITE_CHEESESHOP}source/p/pyliblzma/
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
XDISTNAME=	pyliblzma-${PORTVERSION}
X
XMAINTAINER=	dragonsa at highveldmail.co.za
XCOMMENT=	Python binding for the LZMA compression library
X
XLIB_DEPENDS=	lzma.0:${PORTSDIR}/archivers/lzmautils-devel
X
XUSE_BZIP2=	yes
XUSE_PYTHON=	yes
XUSE_PYDISTUTILS=yes
X
X.include <bsd.port.mk>
bba7de5d008b27f9ab1fdbe3bbc8b480
echo x - py-liblzma/distinfo
sed 's/^X//' >py-liblzma/distinfo << 'ee0cd6fb93c5fd2d96b6a4339c6a1bba'
XMD5 (pyliblzma-0.4.0.tar.bz2) = e50d5dffa208225d401b0aee42572960
XSHA256 (pyliblzma-0.4.0.tar.bz2) = 8d36dfba2f7dc96acabc12f5f5824991dde321e4f5c7fd98af1cdf215fc0e25d
XSIZE (pyliblzma-0.4.0.tar.bz2) = 44102
ee0cd6fb93c5fd2d96b6a4339c6a1bba
echo x - py-liblzma/pkg-descr
sed 's/^X//' >py-liblzma/pkg-descr << '64998ea0a0dfb443f9b439a408ad7fbb'
XPython module implementing LZMA Utils' liblzma API
X
XPylibLZMA provides a python interface for the liblzma 
Xlibrary to read and write data that has been compressed 
Xor can be decompressed by Lasse Collin's LZMA Utils.
X
XWWW: https://launchpad.net/pyliblzma
64998ea0a0dfb443f9b439a408ad7fbb
echo x - py-liblzma/pkg-plist
sed 's/^X//' >py-liblzma/pkg-plist << '21ca466b2bcf8b4b426ac7c8869f77ee'
X%%PYTHON_SITELIBDIR%%/lib/python2.5/site-packages/lzma.so
21ca466b2bcf8b4b426ac7c8869f77ee
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list