From 76f1c2fbb841cd3a8776744337488745e14e44cc Mon Sep 17 00:00:00 2001
From: markd <markd>
Date: Wed, 23 May 2012 20:57:29 +0000
Subject: Fix linking of btparse library into xscode object Bump PKGREVISION

---
 textproc/p5-Text-BibTeX/Makefile                       |  3 ++-
 textproc/p5-Text-BibTeX/distinfo                       |  3 ++-
 textproc/p5-Text-BibTeX/patches/patch-inc_MyBuilder.pm | 15 +++++++++++++++
 3 files changed, 19 insertions(+), 2 deletions(-)
 create mode 100644 textproc/p5-Text-BibTeX/patches/patch-inc_MyBuilder.pm

(limited to 'textproc')

diff --git a/textproc/p5-Text-BibTeX/Makefile b/textproc/p5-Text-BibTeX/Makefile
index bd253ac551f..978b510e59b 100644
--- a/textproc/p5-Text-BibTeX/Makefile
+++ b/textproc/p5-Text-BibTeX/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.26 2012/04/05 22:43:47 markd Exp $
+# $NetBSD: Makefile,v 1.27 2012/05/23 20:57:29 markd Exp $
 
 DISTNAME=	Text-BibTeX-0.62
 PKGNAME=	p5-${DISTNAME}
+PKGREVISION=	1
 SVR4_PKGNAME=	p5tbt
 CATEGORIES=	textproc perl5
 MASTER_SITES=	${MASTER_SITE_PERL_CPAN:=Text/}
diff --git a/textproc/p5-Text-BibTeX/distinfo b/textproc/p5-Text-BibTeX/distinfo
index b44a1023e90..a7f8b70a58d 100644
--- a/textproc/p5-Text-BibTeX/distinfo
+++ b/textproc/p5-Text-BibTeX/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.10 2012/04/05 22:43:47 markd Exp $
+$NetBSD: distinfo,v 1.11 2012/05/23 20:57:29 markd Exp $
 
 SHA1 (Text-BibTeX-0.62.tar.gz) = f26a0b68197e4767b554a3d10bf70598f55b031f
 RMD160 (Text-BibTeX-0.62.tar.gz) = 931a126ad8caf584d1ba47f7a8ade5e5ae6df7eb
 Size (Text-BibTeX-0.62.tar.gz) = 272092 bytes
+SHA1 (patch-inc_MyBuilder.pm) = c584445f48a0e390925cefe8e7b1222aa129b1d6
diff --git a/textproc/p5-Text-BibTeX/patches/patch-inc_MyBuilder.pm b/textproc/p5-Text-BibTeX/patches/patch-inc_MyBuilder.pm
new file mode 100644
index 00000000000..5c3befecce6
--- /dev/null
+++ b/textproc/p5-Text-BibTeX/patches/patch-inc_MyBuilder.pm
@@ -0,0 +1,15 @@
+$NetBSD: patch-inc_MyBuilder.pm,v 1.1 2012/05/23 20:57:29 markd Exp $
+
+Fix linking of btparse library into xscode object
+
+--- inc/MyBuilder.pm.orig	2012-01-11 15:01:26.000000000 +0000
++++ inc/MyBuilder.pm
+@@ -120,7 +120,7 @@ sub ACTION_compile_xscode {
+         my $btparselibdir = $self->install_path('usrlib');
+         $cbuilder->link(
+                         module_name => 'Text::BibTeX',
+-                        extra_linker_flags => "-Lbtparse/src -lbtparse ",
++                        extra_linker_flags => "-Lbtparse/src -Wl,-R${btparselibdir} -lbtparse ",
+                         objects     => $objects,
+                         lib_file    => $lib_file,
+                        );
-- 
cgit v1.2.3