import of p5-Compress-Bzip2-2.09

p5-Compress-Bzip2 a Perl interface to the bzip2 compression
algorithms. It uses the low level interface to the algorithm,
and reimplements all high level routines.

ok jasper@
This commit is contained in:
kevlo 2008-11-11 13:55:21 +00:00
parent 4f553e2d48
commit cb369e4eeb
6 changed files with 87 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/11/11 13:55:21 kevlo Exp $
SHARED_ONLY= Yes
COMMENT= interface to bzip2 compression library
DISTNAME= Compress-Bzip2-2.09
CATEGORIES= archivers
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= cpan
LIB_DEPENDS= bz2.>=10::archivers/bzip2
pre-configure:
${SUBST_CMD} ${WRKSRC}/config.in
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (Compress-Bzip2-2.09.tar.gz) = Fpn94+hvKgNvE1rmBtRWvw==
RMD160 (Compress-Bzip2-2.09.tar.gz) = lKc5hYyax64y1ClNqbVKjPNVRas=
SHA1 (Compress-Bzip2-2.09.tar.gz) = vBPLD/nVs5t3D+iVgHdaIZnei+8=
SHA256 (Compress-Bzip2-2.09.tar.gz) = tDt/vZCkBkVLS5s3ZbFAaZpyZT3Wu6KY8pdMoanVxPg=
SIZE (Compress-Bzip2-2.09.tar.gz) = 429584

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-config_in,v 1.1.1.1 2008/11/11 13:55:21 kevlo Exp $
--- config.in.orig Tue Apr 26 20:05:20 2005
+++ config.in Tue Nov 4 15:57:03 2008
@@ -8,10 +8,10 @@
# This file is used to control which bzip2 library will be used by
# Compress::Bzip2
-BUILD_BZLIB = Test
+BUILD_BZLIB = 0
-BZLIB_INCLUDE = #./bzlib-src
-BZLIB_LIB = #./bzlib-src
-BZLIB_BIN = #./bzlib-src
+BZLIB_INCLUDE = ${LOCALBASE}/include
+BZLIB_LIB = ${LOCALBASE}/lib
+BZLIB_BIN = ${LOCALBASE}/bin
# end of file config.in

View File

@ -0,0 +1,26 @@
$OpenBSD: patch-ppport_h,v 1.1.1.1 2008/11/11 13:55:21 kevlo Exp $
--- ppport.h.orig Thu Apr 14 04:33:35 2005
+++ ppport.h Tue Nov 4 15:48:27 2008
@@ -221,14 +221,16 @@ __DATA__
/* Replace: 0 */
#endif
-#ifdef HASATTRIBUTE
-# if (defined(__GNUC__) && defined(__cplusplus)) || defined(__INTEL_COMPILER)
-# define PERL_UNUSED_DECL
+#ifndef PERL_UNUSED_DECL
+# ifdef HASATTRIBUTE
+# if (defined(__GNUC__) && defined(__cplusplus)) || defined(__INTEL_COMPILER)
+# define PERL_UNUSED_DECL
+# else
+# define PERL_UNUSED_DECL __attribute__((unused))
+# endif
# else
-# define PERL_UNUSED_DECL __attribute__((unused))
+# define PERL_UNUSED_DECL
# endif
-#else
-# define PERL_UNUSED_DECL
#endif
#ifndef dNOOP

View File

@ -0,0 +1,3 @@
This module provides a Perl interface to the bzip2 compression
algorithms. It uses the low level interface to the algorithm,
and reimplements all high level routines.

View File

@ -0,0 +1,11 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/11/11 13:55:21 kevlo Exp $
${P5ARCH}/
${P5ARCH}/Compress/
${P5ARCH}/Compress/Bzip2.pm
${P5ARCH}/auto/
${P5ARCH}/auto/Compress/
${P5ARCH}/auto/Compress/Bzip2/
${P5ARCH}/auto/Compress/Bzip2/Bzip2.bs
${P5ARCH}/auto/Compress/Bzip2/Bzip2.so
${P5ARCH}/auto/Compress/Bzip2/autosplit.ix
@man man/man3p/Compress::Bzip2.3p