Update of /cvsroot/fink/dists/10.3/unstable/main/finkinfo/libs/perlmods
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2424

Modified Files:
        locale-gettext-pm.info 
Added Files:
        locale-gettext-pm.patch 
Log Message:
New version, added 5.8.6, new perlXXX manpage location.


Index: locale-gettext-pm.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.3/unstable/main/finkinfo/libs/perlmods/locale-gettext-pm.info,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- locale-gettext-pm.info      11 Mar 2005 17:54:37 -0000      1.3
+++ locale-gettext-pm.info      6 Apr 2005 18:07:21 -0000       1.4
@@ -1,25 +1,23 @@
 Info2: <<
 Package: locale-gettext-pm%type_pkg[perl]
-Version: 1.01
-Revision: 2
-Depends: perl%type_pkg[perl]-core
-BuildDepends: gettext-dev
-Recommends: gettext-bin, gettext-tools
+Version: 1.04
+Revision: 1
+Depends: perl%type_pkg[perl]-core, libgettext3-shlibs
+BuildDepends: libgettext3-dev
+Conflicts: %N-doc
+Replaces: %N-doc
 Source: mirror:cpan:authors/id/P/PV/PVANDRY/gettext-%v.tar.gz
-Source-MD5: dce77a8733a0e88d8c5fb5bd86ec5f0a
-SourceRename: locale-gettext-pm-%v.tar.gz
+Source-MD5: 578dd0c76f8673943be043435b0fbde4
+SourceRename: %{ni}-%v.tar.gz
 SourceDirectory: gettext-%v
-Type: perl (5.8.1 5.8.4)
-UpdatePOD: true
-PatchScript: <<
-  perl -pi.BAK -e 's,-lintl,-L%p/lib -lintl,' Makefile.PL
-<<
-SplitOff: <<
-  Package: %N-doc
-  Depends: %N (= %v-%r), gettext-bin, gettext-tools
-  Files: share/man
+Type: perl (5.8.1 5.8.4 5.8.6)
+Patch: %{ni}.patch
+InstallScript: <<
+  %{default_script}
+  mv %i/share/man %i/lib/perl5/%type_raw[perl]
 <<
 DocFiles: README
+UpdatePOD: true
 Description: Perl module for string internationalization
 DescDetail: <<
 This is a perl5 module quickly written to gain access to
@@ -34,5 +32,5 @@
 <<
 License: Artistic
 Maintainer: Daniel Macks <[EMAIL PROTECTED]>
-Homepage: http://search.cpan.org/~pvandry/gettext-1.01/
+Homepage: http://search.cpan.org/~pvandry/gettext-1.04/
 <<

--- NEW FILE: locale-gettext-pm.patch ---
diff -Nurd -x'*~' gettext-1.04.orig/Makefile.PL gettext-1.04/Makefile.PL
--- gettext-1.04.orig/Makefile.PL       2005-01-30 18:30:22.000000000 -0500
+++ gettext-1.04/Makefile.PL    2005-04-06 13:53:40.000000000 -0400
@@ -7,11 +7,15 @@
 } else {
        $cc = $Config{'cc'};
 }
-my $libs = '';
+my $inc = $ENV{'CPPFLAGS'};
+my $libs = $ENV{'LDFLAGS'};
+
+open(CONFIG_LOG, ">config.log") or die "could not write to config.log: $!\n";
+close CONFIG_LOG;
 
 unless (conftest("char *x = gettext(\"foo\");", "gettext", 0)) {
        # try with -lintl
-       $libs = "-lintl";
+       $libs .= " -lintl";
        unless (conftest("char *x = gettext(\"foo\");", "gettext", 0)) {
                unlink("conftest.c");
                unlink("conftest");
@@ -33,6 +37,7 @@
 
 WriteMakefile(
     NAME => "Locale::gettext",
+    INC => $inc,
     LIBS => ($libs eq '') ? [] : [$libs],
     VERSION_FROM => 'gettext.pm', 
 );
@@ -41,6 +46,7 @@
        my ($testcode, $func, $record) = @_;
 
        print "checking for ", $func;
+       print(" with ", $inc) if ($inc ne '');
        print(" in ", $libs) if ($libs ne '');
        print "...";
        open(TEST, ">conftest.c");
@@ -49,18 +55,22 @@
        print TEST "return 0;}\n";
        close TEST;
        open(SAVE, ">&STDERR");
-       open(STDERR, ">/dev/null");
-       system($cc . " -o conftest " . $libs . " conftest.c");
+       open(STDERR, ">>config.log");
+       warn "checking for $func\n";
+       my $cmd = "$cc -o conftest $inc $libs conftest.c";
+       warn "$cmd\n";
+       system $cmd;
        my $exitstatus = $?;
-       open(STDERR, ">&SAVE");
+       warn "status = $exitstatus\n\n";
        if ($exitstatus != 0) {
+               warn "program that failed was\n", `cat conftest.c`;
                print " no\n";
-               return 0;
        } else {
                print " yes\n";
                if ($record) {
                        print CONFIG "#define HAVE_", uc($func), "\n";
                }
-               return 1;
        }
+       open(STDERR, ">&SAVE");
+       return ($exitstatus == 0);
 }



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to