OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   08-Nov-2004 21:59:18
  Branch: HEAD                             Handle: 2004110820591700

  Modified files:
    openpkg-src/perl        perl.patch perl.spec

  Log:
    port to Darwin 7.6.0 (aka MacOS X 10.3.6)

  Summary:
    Revision    Changes     Path
    1.13        +13 -3      openpkg-src/perl/perl.patch
    1.93        +16 -9      openpkg-src/perl/perl.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/perl/perl.patch
  ============================================================================
  $ cvs diff -u -r1.12 -r1.13 perl.patch
  --- openpkg-src/perl/perl.patch       22 Apr 2004 08:08:33 -0000      1.12
  +++ openpkg-src/perl/perl.patch       8 Nov 2004 20:59:17 -0000       1.13
  @@ -135,9 +135,9 @@
      related to the non-standard "__private_extern__" attribute.
   
   Index: hints/darwin.sh
  ---- hints/darwin.sh.orig     2003-09-02 15:40:19.000000000 +0200
  -+++ hints/darwin.sh  2003-10-28 16:40:57.000000000 +0100
  -@@ -121,9 +121,6 @@
  +--- hints/darwin.sh.orig     2004-05-25 22:52:21 +0200
  ++++ hints/darwin.sh  2004-11-08 20:52:45 +0100
  +@@ -120,9 +120,6 @@
      *-2147483648) ccflags="${ccflags} -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN" 
;;
    esac
    
  @@ -147,6 +147,16 @@
    # This is necessary because perl's build system doesn't
    # apply cppflags to cc compile lines as it should.
    ccflags="${ccflags} ${cppflags}"
  +@@ -162,8 +159,7 @@
  + esac
  + ldlibpthname='DYLD_LIBRARY_PATH';
  + 
  +-# useshrplib=true results in much slower startup times.
  +-# 'false' is the default value.  Use Configure -Duseshrplib to override.
  ++useshrplib='true'
  + 
  + cat > UU/archname.cbu <<'EOCBU'
  + # This script UU/archname.cbu will get 'called-back' by Configure 
   Index: perlio.c
   --- perlio.c.orig    2003-09-24 22:50:22.000000000 +0200
   +++ perlio.c 2003-10-28 17:03:59.000000000 +0100
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/perl/perl.spec
  ============================================================================
  $ cvs diff -u -r1.92 -r1.93 perl.spec
  --- openpkg-src/perl/perl.spec        20 Jul 2004 18:07:49 -0000      1.92
  +++ openpkg-src/perl/perl.spec        8 Nov 2004 20:59:17 -0000       1.93
  @@ -34,7 +34,7 @@
   Group:        Language
   License:      GPL/Artistic
   Version:      5.8.5
  -Release:      20040720
  +Release:      20041108
   
   #   list of sources
   Source0:      ftp://ftp.cpan.org/pub/CPAN/src/perl-%{version}.tar.gz
  @@ -103,7 +103,10 @@
       %{l_make} %{l_mflags} -f Makefile install
   
       #   install Perl versions of system header files
  -    ( cd /usr/include
  +    ( case "%{l_platform -t}" in
  +          *-darwin* ) export DYLD_LIBRARY_PATH="`pwd`" ;;
  +      esac
  +      cd /usr/include
         PERL5LIB=$RPM_BUILD_ROOT%{l_prefix}/lib/perl
         export PERL5LIB
         eval `$RPM_BUILD_ROOT%{l_prefix}/bin/perl -V:installarchlib`
  @@ -125,13 +128,17 @@
       done
   
       #   re-adjust configuration as mentioned in Perl's INSTALL document
  -    $RPM_BUILD_ROOT%{l_prefix}/bin/perl -pi.orig \
  -        -e "s:$RPM_BUILD_ROOT%{l_prefix}:%{l_prefix}:g" \
  -        $RPM_BUILD_ROOT%{l_prefix}/lib/perl/%{version}/*/Config.pm \
  -        `find $RPM_BUILD_ROOT%{l_prefix}/lib/perl/%{version}/ \
  -              -type f -name ".packlist" -print`
  -    find $RPM_BUILD_ROOT%{l_prefix}/lib/perl/ \
  -         -name "*.orig" -print | xargs rm -f
  +    ( case "%{l_platform -t}" in
  +          *-darwin* ) export DYLD_LIBRARY_PATH="`pwd`" ;;
  +      esac
  +      $RPM_BUILD_ROOT%{l_prefix}/bin/perl -pi.orig \
  +          -e "s:$RPM_BUILD_ROOT%{l_prefix}:%{l_prefix}:g" \
  +          $RPM_BUILD_ROOT%{l_prefix}/lib/perl/%{version}/*/Config.pm \
  +          `find $RPM_BUILD_ROOT%{l_prefix}/lib/perl/%{version}/ \
  +                -type f -name ".packlist" -print`
  +      find $RPM_BUILD_ROOT%{l_prefix}/lib/perl/ \
  +           -name "*.orig" -print | xargs rm -f
  +    ) || exit $?
   
       #   strip binary files
       strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to