pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/p5-Text-BibTeX Updating textproc/p5-Text-BibT...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fecc350c73d6
branches:  trunk
changeset: 572866:fecc350c73d6
user:      sno <sno%pkgsrc.org@localhost>
date:      Tue Mar 09 21:54:01 2010 +0000

description:
Updating textproc/p5-Text-BibTeX from 0.38 to 0.40

pkgsrc changes:
- Add license definition
- Adjust dependencies
- Add module type

Upstream changes:
Release 0.40 - 7 March, 2010
----------------------------
* this release is very similar to 0.40_3, but now indexable by cpan.

Release 0.40_3 - 18 February, 2010
----------------------------------
* fixed Build.PL with correct build_requirements;
* fixed test to use still not installed library;

Release 0.40_2 - 15 February, 2010
----------------------------------
* merged btparse library into Text::BibTeX code. I am sorry for all
  other languages that might be using this library. For them my
  suggestion is that they make Text::BibTeX as a dependency.
* ported compilation and configuration tools from ExtUtils::MakeMaker
  to Module::Build.
* back on track, trying to make Text::BibTeX work and compile easily
  on main platforms (sorry, for main platforms I assume Linux, Mac OS
  X and Windows running Strawberry Perl).
* Thanks to Philip Kime for continuous poke so I work on this!!
  Created a THANKS file for this purpose.

diffstat:

 textproc/p5-Text-BibTeX/Makefile         |  17 ++++++-
 textproc/p5-Text-BibTeX/distinfo         |   9 ++-
 textproc/p5-Text-BibTeX/patches/patch-aa |  69 ++++++++++++++++++++++++++++++++
 3 files changed, 89 insertions(+), 6 deletions(-)

diffs (126 lines):

diff -r 619274ab3f10 -r fecc350c73d6 textproc/p5-Text-BibTeX/Makefile
--- a/textproc/p5-Text-BibTeX/Makefile  Tue Mar 09 21:27:44 2010 +0000
+++ b/textproc/p5-Text-BibTeX/Makefile  Tue Mar 09 21:54:01 2010 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.17 2008/11/22 00:07:12 he Exp $
+# $NetBSD: Makefile,v 1.18 2010/03/09 21:54:01 sno Exp $
 
-DISTNAME=      Text-BibTeX-0.38
+DISTNAME=      Text-BibTeX-0.40
 PKGNAME=       p5-${DISTNAME}
 SVR4_PKGNAME=  p5tbt
 CATEGORIES=    textproc perl5
@@ -12,10 +12,23 @@
 HOMEPAGE=      http://www.gerg.ca/software/btOOL/
 #HOMEPAGE=     http://search.cpan.org/dist/Text-BibTeX/
 COMMENT=       Perl library for reading, parsing, and processing BibTeX files
+LICENSE=       ${PERL5_LICENSE}
 
 PKG_DESTDIR_SUPPORT=   user-destdir
 
+BUILD_DEPENDS+=                p5-Capture-Tiny>=0.06:../../devel/p5-Capture-Tiny
+BUILD_DEPENDS+=                p5-Config-AutoConf>=0.14:../../devel/p5-Config-AutoConf
+BUILD_DEPENDS+=                p5-ExtUtils-CBuilder>=0.27:../../devel/p5-ExtUtils-CBuilder
+BUILD_DEPENDS+=                p5-Module-Build>=0.36030:../../devel/p5-Module-Build
+
+USE_LANGUAGES+=                c
 PERL5_PACKLIST=                auto/Text/BibTeX/.packlist
+PERL5_MODULE_TYPE=     Module::Build
+
+ALL_ENV+=      TMPDIR=${WRKDIR}/tmp
+
+pre-configure:
+       ${MKDIR} ${WRKDIR}/tmp
 
 .include "../../lang/perl5/module.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 619274ab3f10 -r fecc350c73d6 textproc/p5-Text-BibTeX/distinfo
--- a/textproc/p5-Text-BibTeX/distinfo  Tue Mar 09 21:27:44 2010 +0000
+++ b/textproc/p5-Text-BibTeX/distinfo  Tue Mar 09 21:54:01 2010 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.5 2008/11/22 00:06:30 he Exp $
+$NetBSD: distinfo,v 1.6 2010/03/09 21:54:01 sno Exp $
 
-SHA1 (Text-BibTeX-0.38.tar.gz) = b324e6a37c107d31ab8d930f29c95e7470378ca0
-RMD160 (Text-BibTeX-0.38.tar.gz) = 9b6c53840cce22a4fc5ac17c6fffecbfe8509096
-Size (Text-BibTeX-0.38.tar.gz) = 85432 bytes
+SHA1 (Text-BibTeX-0.40.tar.gz) = 4b65b761cd5a7ed404f48aad292f6a6a4da37701
+RMD160 (Text-BibTeX-0.40.tar.gz) = f9a8e7fe676c3fa835308ed269ddb020ae86f85a
+Size (Text-BibTeX-0.40.tar.gz) = 265444 bytes
 SHA1 (btparse-0.35.tar.gz) = bb52c5fc02c1326008bed31a3c8932dd832b8ea8
 RMD160 (btparse-0.35.tar.gz) = afdf8cc2abd0beaa53b142d7277758a32e26d256
 Size (btparse-0.35.tar.gz) = 470546 bytes
+SHA1 (patch-aa) = 33ca774fe490a9c6e809ac17202badf9843e8aaf
diff -r 619274ab3f10 -r fecc350c73d6 textproc/p5-Text-BibTeX/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/p5-Text-BibTeX/patches/patch-aa  Tue Mar 09 21:54:01 2010 +0000
@@ -0,0 +1,69 @@
+$NetBSD: patch-aa,v 1.3 2010/03/09 21:54:01 sno Exp $
+
+--- inc/MyBuilder.pm.orig      2010-03-07 18:53:31.000000000 +0000
++++ inc/MyBuilder.pm
+@@ -75,9 +75,10 @@ sub ACTION_compile_xscode {
+     # .o => .(a|bundle)
+     my $lib_file = catfile( $archdir, "BibTeX.$Config{dlext}" );
+     if ( !$self->up_to_date( [ @$objects ], $lib_file ) ) {
++      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,
+                        );
+@@ -142,24 +143,25 @@ sub ACTION_create_binaries {
+ 
+     print STDERR "\n** Creating binaries (dumpnames$EXEEXT, biblex$EXEEXT, bibparse$EXEEXT)\n";
+ 
++    my $btparselibdir = $self->install_path('usrlib');
+     # NO INST?
+     ## FIXME - uptodate
+     $CCL->($cbuilder,
+            exe_file => "btparse/progs/dumpnames$EXEEXT",
+-           extra_linker_flags => '-Lbtparse/src -lbtparse ',
++         extra_linker_flags => "-Lbtparse/src -Wl,-R${btparselibdir} -lbtparse ",
+            objects => [ "btparse/progs/dumpnames.o" ]);
+ 
+     # NO INST?
+     ## FIXME - uptodate
+     $CCL->($cbuilder,
+            exe_file => "btparse/progs/biblex$EXEEXT",
+-           extra_linker_flags => '-Lbtparse/src -lbtparse ',
++         extra_linker_flags => "-Lbtparse/src -Wl,-R${btparselibdir} -lbtparse ",
+            objects => [ "btparse/progs/biblex.o" ]);
+ 
+     ## FIXME - uptodate
+     $CCL->($cbuilder,
+            exe_file => "btparse/progs/bibparse$EXEEXT",
+-           extra_linker_flags => '-Lbtparse/src -lbtparse ',
++         extra_linker_flags => "-Lbtparse/src -Wl,-R${btparselibdir} -lbtparse ",
+            objects => [ map {"btparse/progs/$_.o"} (qw.bibparse args getopt getopt1.) ]);
+ 
+     $self->copy_if_modified( from    => "btparse/progs/dumpnames$EXEEXT",
+@@ -187,7 +189,7 @@ sub ACTION_create_tests {
+     ## FIXME - uptodate
+     $CCL->($cbuilder,
+            exe_file => "btparse/tests/simple_test$EXEEXT",
+-           extra_linker_flags => '-Lbtparse/src -lbtparse ',
++           extra_linker_flags => "-Lbtparse/src -Wl,-Rbtparse/src -lbtparse ",
+            objects => [ map "btparse/tests/$_.o", (qw.simple_test testlib.) ]);
+ 
+     ## FIXME - uptodate
+@@ -264,9 +266,13 @@ sub ACTION_test {
+     if ($^O =~ /darwin/i) {
+         $ENV{DYLD_LIBRARY_PATH} = catdir($self->blib,"usrlib").":$ENV{DYLD_LIBRARY_PATH}";
+     }
+-    if ($^O =~ /linux/i) {
++    if ($^O =~ /(?:linux|bsd|sun|sol|dragonfly|hpux|irix)/i) {
+         $ENV{LD_LIBRARY_PATH} = catdir($self->blib,"usrlib").":$ENV{LD_LIBRARY_PATH}";
+     }
++    if ($^O =~ /aix/i) {
++      my $oldlibpath = $ENV{LIBPATH} || '/lib:/usr/lib';
++        $ENV{LIBPATH} = catdir($self->blib,"usrlib").":$oldlibpath";
++    }
+ 
+     $self->SUPER::ACTION_test
+ }



Home | Main Index | Thread Index | Old Index