summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2011-04-16 04:27:37 +0000
committerobache <obache@pkgsrc.org>2011-04-16 04:27:37 +0000
commit763092746aed576eded17759c999796efc123dd8 (patch)
treedfbce8240f5508e096fe4dc93f1c0a7d6613c2c5 /devel
parentc74c6b8c0674a554045156055052664344bb69f6 (diff)
downloadpkgsrc-763092746aed576eded17759c999796efc123dd8.tar.gz
Update p5-Compress-Raw-Bzip2 to 2.033.
pkgsrc fixes * Let to use system bzip2 library instead of included one, same as p5-Compress-Raw-Zlib. CHANGES ------- 2.033 11 Jan 2011 * Fixed typos & spelling errors. [perl# 81782] 2.032 4 Jan 2011 * No Changes 2.031 21 September 2010 * Updated to use bzip2 1.0.6 Version 1.0.6 removes a potential security vulnerability, CVE-2010-0405, so all users are recommended to upgrade immediately.
Diffstat (limited to 'devel')
-rw-r--r--devel/p5-Compress-Raw-Bzip2/Makefile8
-rw-r--r--devel/p5-Compress-Raw-Bzip2/distinfo9
-rw-r--r--devel/p5-Compress-Raw-Bzip2/patches/patch-Makefile.PL16
3 files changed, 26 insertions, 7 deletions
diff --git a/devel/p5-Compress-Raw-Bzip2/Makefile b/devel/p5-Compress-Raw-Bzip2/Makefile
index a9bad4de36b..f6678a967fd 100644
--- a/devel/p5-Compress-Raw-Bzip2/Makefile
+++ b/devel/p5-Compress-Raw-Bzip2/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2010/08/21 16:33:26 seb Exp $
+# $NetBSD: Makefile,v 1.12 2011/04/16 04:27:37 obache Exp $
-DISTNAME= Compress-Raw-Bzip2-2.030
+DISTNAME= Compress-Raw-Bzip2-2.033
PKGNAME= p5-${DISTNAME}
-PKGREVISION= 1
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Compress/}
@@ -17,6 +16,9 @@ PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= c
PERL5_PACKLIST= auto/Compress/Raw/Bzip2/.packlist
+MAKE_ENV+= BUILD_BZIP2=0
+MAKE_ENV+= BZIP2_LIB=${BUILDLINK_PREFIX.bzip2}/lib
+MAKE_ENV+= BZIP2_INCLUDE=${BUILDLINK_PREFIX.bzip2}/include
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../lang/perl5/module.mk"
diff --git a/devel/p5-Compress-Raw-Bzip2/distinfo b/devel/p5-Compress-Raw-Bzip2/distinfo
index 4a0453804a6..0f3eb1959db 100644
--- a/devel/p5-Compress-Raw-Bzip2/distinfo
+++ b/devel/p5-Compress-Raw-Bzip2/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.10 2010/07/31 09:47:28 sno Exp $
+$NetBSD: distinfo,v 1.11 2011/04/16 04:27:37 obache Exp $
-SHA1 (Compress-Raw-Bzip2-2.030.tar.gz) = ef4c58864550da2bfea98751853e18a7b17ac1df
-RMD160 (Compress-Raw-Bzip2-2.030.tar.gz) = 77e687394cea69d744ba71ae13b1049197d5ab87
-Size (Compress-Raw-Bzip2-2.030.tar.gz) = 124417 bytes
+SHA1 (Compress-Raw-Bzip2-2.033.tar.gz) = 72218c81736b15874248e85cbca1f4ff3aec59fd
+RMD160 (Compress-Raw-Bzip2-2.033.tar.gz) = 6e3331619e319029ce091b4c22832d14544d9309
+Size (Compress-Raw-Bzip2-2.033.tar.gz) = 124811 bytes
+SHA1 (patch-Makefile.PL) = cf740129a00cb58f3bae93d96ddac67434a52f55
diff --git a/devel/p5-Compress-Raw-Bzip2/patches/patch-Makefile.PL b/devel/p5-Compress-Raw-Bzip2/patches/patch-Makefile.PL
new file mode 100644
index 00000000000..13a072a0537
--- /dev/null
+++ b/devel/p5-Compress-Raw-Bzip2/patches/patch-Makefile.PL
@@ -0,0 +1,16 @@
+$NetBSD: patch-Makefile.PL,v 1.1 2011/04/16 04:27:37 obache Exp $
+
+ Record the path to the bzip2 library in the executable/library.
+ COMPILER_RPATH_FLAG is specific to pkgsrc.
+
+--- Makefile.PL.orig 2009-03-28 23:08:45.000000000 +0000
++++ Makefile.PL
+@@ -37,7 +37,7 @@ WriteMakefile(
+ (
+ $BUILD_BZIP2
+ ? bzip2_files($BZIP2_LIB)
+- : (LIBS => [ "-L$BZIP2_LIB -lbz2 " ])
++ : (LIBS => [ "-L$BZIP2_LIB $ENV{'COMPILER_RPATH_FLAG'}$BZIP2_LIB -lbz2 " ])
+ ),
+
+ (