Ignore:
Timestamp:
Jun 19, 2007, 5:06:22 PM (12 years ago)
Author:
jmpp@…
Message:

Another cleanup of the rpm Portfile:

  • rpm now biulds and destroots on latest tiger, woot!
  • remove not commented out but apparently unnecessary legacy instructions (cf. PYTHON export and others);
  • remove legacy instructions that were already commented out (we can put them back in later on if we figure out we really need them as rpm is used on Mac OS X, but the port destroots without them in any case);
  • temporarily comment out two post-destroot instructions inside the darwin platform that are necessary but are currently failing (Eridius: do we support widlcarding in our built-in `delete' implementation?);
  • other aesthetics changes to the Portfile to make it more human parseable.

Overall, the rpm port now builds and destroots (Latest Tiger, haven't tested other systems), but fails to install without being forced due to overlapping files with the popt port due to commented out instructions in post-destroot stage for the darwin platform, so once those are sorted out the Portfile should be ready to go!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/rpm/Portfile

    r26286 r26315  
    99maintainers             n3npq@mac.com
    1010description             The RPM package management system.
    11 long_description        \
    12         The RPM Package Manager (RPM) is a powerful command line driven \
    13         package management system capable of installing, uninstalling, \
    14         verifying, querying, and updating software packages. Each software \
    15         package consists of an archive of files along with information about \
    16         the package like its version, a description, etc.
     11long_description        The RPM Package Manager (RPM) is a powerful command line driven \
     12                        package management system capable of installing, uninstalling, \
     13                        verifying, querying, and updating software packages. Each software \
     14                        package consists of an archive of files along with information about \
     15                        the package like its version, a description, etc.
    1716
    1817homepage                http://rpm5.org
     
    3332                        port:perl5.8
    3433
    35                         ###zlib should be replaced with the internal rpm version:
    36                         #lib:libz:zlib
    37                         ###"expat" is for libneon, and "readline" is for rpm lua
    38                        
    39 build.type      gnu
     34build.type              gnu
    4035
    4136configure.args          --disable-nls --without-javaglue --without-included-gettext \
     
    4439                        --with-python=2.4
    4540
    46 configure.cflags-append           __PYTHON="${prefix}/bin/python"
    47 
    4841
    4942platform darwin {
    50         patchfiles-append \
    51                 patch-macros.in \
    52                 patch-popt-Makefile.in
    53 
    54         post-patch {
    55                 delete ${worksrcpath}/beecrypt
    56                 delete ${worksrcpath}/elfutils
    57                 delete ${worksrcpath}/neon
    58                 delete ${worksrcpath}/sqlite
    59         }
    60 
    61 #       use_autoconf    yes
    62 #       use_automake    yes
     43        patchfiles-append patch-macros.in \
     44                          patch-popt-Makefile.in
    6345
    6446        pre-configure {
    6547                      xinstall -d -m 755 ${workpath}/librt
    66                       ln -sf /usr/lib/libSystem.B.dylib \
    67                                 ${workpath}/librt/librt.dylib
    68 
    69 #                     system "touch ${worksrcpath}/aclocal.m4"
    70 #                     system "touch ${worksrcpath}/config.h.in"
    71 
     48                      ln -sf /usr/lib/libSystem.B.dylib ${workpath}/librt/librt.dylib
    7249        }
    7350
     
    7956        configure.ldflags-append -L${workpath}/librt
    8057
    81 #       post-configure {
    82 #                      system "find ${worksrcpath} -name Makefile.in | xargs touch"
    83 #                      system "find ${worksrcpath} -name Makefile | xargs touch"
    84 #       }
    85 
    8658        post-destroot {
    8759                # Delete overlapping files.
    8860                delete ${destroot}${prefix}/include/popt.h
    89                 delete ${destroot}${prefix}/share/man/man3/popt.3*
    90                 delete ${destroot}${prefix}/lib/libpopt.*
    91                 delete ${destroot}/System
    92                 delete ${destroot}/Library
    93                 delete ${destroot}/usr/local/man/man3/RPM.3pm
     61#               delete ${destroot}${prefix}/share/man/man3/popt.3*
     62#               delete ${destroot}${prefix}/lib/libpopt.*
    9463
    9564                # MacOSX specific changes
     
    10675}
    10776
     77
    10878variant docs {
    10979        depends_run-append bin:doxygen:doxygen 
Note: See TracChangeset for help on using the changeset viewer.