import py-lzo

py-LZO is a Python module that interface with the LZO library.

LZO is a data compression library which is suitable for data
de-/compression in real-time. This means it favours speed over
compression ratio.

ok ajacoutot@
This commit is contained in:
benoit 2009-05-31 21:03:10 +00:00
parent 5085cdbc09
commit 74d25eb325
6 changed files with 99 additions and 0 deletions

41
archivers/py-lzo/Makefile Normal file
View File

@ -0,0 +1,41 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/05/31 21:03:10 benoit Exp $
COMMENT = Python implementation of the LZO library
MODPY_EGG_VERSION = 1.08
DISTNAME = python-lzo-${MODPY_EGG_VERSION}
PKGNAME = py-lzo-${MODPY_EGG_VERSION}
CATEGORIES = archivers
HOMEPAGE = http://www.oberhumer.com/opensource/lzo/
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = http://www.oberhumer.com/opensource/lzo/download/LZO-v1/
MODULES = lang/python
LIB_DEPENDS = lzo::archivers/lzo
MAKE_ENV += CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
EXAMPLEDIR = ${PREFIX}/share/examples/py-lzo
pre-configure:
${SUBST_CMD} ${WRKSRC}/Makefile ${WRKSRC}/setup.py
pre-install:
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/tests/*.py ${EXAMPLEDIR}
do-regress:
@cd ${WRKSRC} && ${MAKE_PROGRAM} test
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (python-lzo-1.08.tar.gz) = KSo7bNrKYGuRfn9r8Cb9rQ==
RMD160 (python-lzo-1.08.tar.gz) = Yeu3ZBSci0vPz/zEBHlEdVaPqlE=
SHA1 (python-lzo-1.08.tar.gz) = 5R9qbuFKepxKaHTfYLfCrZrwOWE=
SHA256 (python-lzo-1.08.tar.gz) = KGWv57mVhEv4CvlEQdHM+Qiw46uj6s9bpgLyPnSEdsQ=
SIZE (python-lzo-1.08.tar.gz) = 13046

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2009/05/31 21:03:10 benoit Exp $
--- Makefile.orig Wed Jul 17 19:23:47 2002
+++ Makefile Sun May 31 02:28:11 2009
@@ -8,7 +8,7 @@
SHELL = /bin/sh
PYTHON = python2.2
-PYTHON = python
+PYTHON = ${MODPY_BIN}
all build:
$(PYTHON) setup.py build

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-setup_py,v 1.1.1.1 2009/05/31 21:03:10 benoit Exp $
--- setup.py.orig Wed Jul 17 19:18:50 2002
+++ setup.py Sun May 31 02:28:11 2009
@@ -25,9 +25,9 @@ if sys.platform == "win32":
extra_objects.append(os.path.join(CURL_DIR, "lzo.lib"))
else:
libraries = ["lzo"]
- ##include_dirs.append("/usr/local/include")
- ##library_dirs.append("/usr/local/lib")
- ##runtime_library_dirs.append("/usr/local/lib")
+ include_dirs.append("${PREFIX}/include")
+ library_dirs.append("${PREFIX}/lib")
+ runtime_library_dirs.append("${PREFIX}/lib")
# Add extra compile flag for MacOS X
if sys.platform[:-1] == "darwin":

View File

@ -0,0 +1,19 @@
py-LZO is a Python module that interface with the LZO library.
LZO is a data compression library which is suitable for data
de-/compression in real-time. This means it favours speed over
compression ratio.
LZO implements a number of algorithms with the following features:
+ Decompression is simple and *very* fast.
+ Requires no memory for decompression.
+ Compression is pretty fast.
+ Requires 64 kB of memory for compression.
+ Allows you to dial up extra compression at a speed cost in the
compressor. The speed of the decompressor is not reduced.
+ Includes compression levels for generating pre-compressed data
which achieve a quite competitive compression ratio.
+ There is also a compression level which needs only 8 kB for
compression.
+ Algorithm is thread safe.
+ Algorithm is lossless.

View File

@ -0,0 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/05/31 21:03:10 benoit Exp $
lib/python${MODPY_VERSION}/site-packages/lzo.so
lib/python${MODPY_VERSION}/site-packages/python_lzo-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
share/examples/py-lzo/
share/examples/py-lzo/test.py
share/examples/py-lzo/util.py