Ignore:
Timestamp:
Jun 17, 2005, 2:01:59 AM (14 years ago)
Author:
jkh
Message:

Update to rpm version 4.4.2. At the request of jbj, we're going to consolidate
the rpm ports and try and clean up this mess.
Reviewed by: jbj

Location:
trunk/dports/sysutils/rpm
Files:
4 added
21 deleted
1 edited

Legend:

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

    r10608 r12697  
    1 # $Id: Portfile,v 1.14 2005/01/25 04:19:32 landonf Exp $
     1# $Id: Portfile,v 1.15 2005/06/17 02:01:58 jkh Exp $
    22
    33PortSystem 1.0
    4 name                    rpm
    5 version                 4.0.4
     4name                    rpm44
     5version                 4.4.2
    66platforms               darwin
    7 revision                8
    87categories              sysutils archivers
    9 maintainers             ssen@opendarwin.org
    10 description             RedHat Package Manager
     8maintainers             n3npq@mac.com
     9description             The RPM package management system.
     10long_description        \
     11        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.
    1116
    12 master_sites            ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/
    13 checksums               md5 b0c3093d2f0d850760e59ac1db9bf152
     17master_sites            ftp://jbj.org/pub/rpm-macosx/
     18distfiles               rpm-${version}.tar.gz
     19checksums               md5 a2b35ac4ad5595400720d2608734f1a3
    1420
    15 depends_lib             lib:libbz2.1.0:bzip2 lib:libiconv.2:libiconv \
    16                         path:${prefix}/bin/python2.3:python23
     21depends_lib             lib:libiconv.2:libiconv lib:libintl.3:gettext \
     22                        lib:libexpat:expat lib:libreadline:readline \
     23                        lib:libbeecrypt.6:beecrypt lib:libneon.24:neon \
     24                        lib:libsqlite3.0:sqlite3 \
     25                        port:python24
     26                       
     27                        ###you do *not* want these installed, instead use "/usr":
     28                        #lib:libssl:openssl lib:libbz2:bzip2 path:perl:perl5.8
     29                        ###zlib should be replaced with the internal rpm version:
     30                        #lib:libz:zlib
     31                        ###"expat" is for libneon, and "readline" is for rpm lua
     32                       
     33depends_build           port:libiconv port:gettext
     34                        #path:${prefix}/bin/autoconf:autoconf path:${prefix}/bin/automake:automake
    1735
    18 configure.args          --disable-nls --with-included-gettext \
    19                         --with-glob --with-libiconv-prefix=${prefix} \
    20                         --mandir=${prefix}/share/man
     36                        #"doxygen" is required for building the rpm API docs, default is --without
     37                        #bin:doxygen:doxygen
    2138
    22 configure.env           __PYTHON="${prefix}/bin/python" LIBS="-lpython2.3"
     39worksrcdir      rpm-${version}
     40
     41configure.args          --disable-nls --without-javaglue --without-included-gettext \
     42                        --with-libintl-prefix=${prefix} --with-libiconv-prefix=${prefix} \
     43                        --mandir=${prefix}/share/man --infodir=${prefix}/share/info
     44
     45configure.env           __PYTHON="${prefix}/bin/python"
     46
     47build.type      gnu
    2348
    2449
    2550variant darwin {
    2651        patchfiles-append \
    27                 patch-db3-configure.diff        patch-rpmheader.diff \
    28                 patch-dump.diff                 patch-rpmioc.diff \
    29                 patch-dumpdb.diff               patch-rpmioh.diff \
    30                 patch-lib-signature.diff        patch-rpmlead.diff \
    31                 patch-macros-in.diff            patch-rpmqv.diff \
    32                 patch-rpm2cpio.diff             patch-rpmsignature.diff \
    33                 patch-rpmarchive.diff           patch-systemh.diff \
    34                 patch-rpmrc.diff                patch-rpmrc-in.diff \
    35                 patch-autodeps-darwin-prov.diff patch-autodeps-darwin-req.diff \
    36                 patch-python-rpmmodule.diff     patch-python-makefile-in.diff \
    37                 patch-configure.diff
     52                rpm-4.4.1-glob.patch patch-zlib-Makefile.in \
     53                patch-file-src-Makefile.in patch-python-Makefile
     54
     55        post-patch {
     56                system "rm -rf \"${worksrcpath}/beecrypt\""
     57                system "rm -rf \"${worksrcpath}/neon\""
     58                system "rm -rf \"${worksrcpath}/sqlite\""
     59                system "rm -rf \"${worksrcpath}/elfutils\""
     60#               # we want to use the internal zlib later, when it works...
     61#               system "rm -rf \"${worksrcpath}/zlib\""
     62        }
     63
     64#       use_autoconf    yes
     65#       use_automake    yes
    3866
    3967        pre-configure {
     
    4169                system "ln -sf /usr/lib/libSystem.B.dylib \
    4270                                ${workpath}/librt/librt.dylib"
     71
     72        #       system "touch ${worksrcpath}/aclocal.m4"
     73        #       system "touch ${worksrcpath}/config.h.in"
     74        }
     75
     76        post-configure {
     77        #       system "find ${worksrcpath} -name Makefile.in | xargs touch"
     78        #       system "find ${worksrcpath} -name Makefile | xargs touch"
    4379        }
    4480
    4581        configure.args-append --disable-optimized --disable-aio \
    46                               --with-python=auto --without-javaglue \
    47                               --enable-broken-chown
     82                              --with-python=auto --with-lua --with-glob \
     83                              --enable-broken-chown --disable-rpath
    4884
    49         configure.env-append   LDFLAGS="-L${prefix}/lib -L${workpath}/librt" \
    50                         CFLAGS="-I${prefix}/include -no-cpp-precomp" \
    51                         CC="gcc -flat_namespace" CPPFLAGS=""
     85        # requires doxygen:
     86        #configure.args-append --with-apidocs
     87
     88        configure.args-append   \
     89                LDFLAGS="-L${prefix}/lib -L${workpath}/librt" \
     90                CFLAGS="-I${prefix}/include" CPPFLAGS="-I${prefix}/include"
    5291
    5392        post-destroot {
    54                 # where the RPM database to lives
     93                # Delete overlapping files.
     94                file delete ${destroot}${prefix}/include/popt.h
     95                system "rm -f ${destroot}${prefix}/share/man/man3/popt.3*"
     96                system "rm -rf ${destroot}${prefix}/lib/libpopt.*"
     97
     98                # where the RPM database lives
    5599                destroot.keepdirs "${destroot}${prefix}/var/lib/rpm"
    56100                destroot.keepdirs-append "${destroot}${prefix}/src/apple/BUILD"
Note: See TracChangeset for help on using the changeset viewer.