Ignore:
Timestamp:
Jun 22, 2007, 12:09:50 AM (13 years ago)
Author:
afb@…
Message:

Update the RPM port so that it actually works

  • fix the linking issues with popt/sqlite3
  • remove all fixed locations of binaries
  • patch minor header issue for C++/APT-RPM
  • make removing the %{buildroot} optional!
  • move configuration back from /etc/rpm
  • move temporaries back from /var/tmp
File:
1 edited

Legend:

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

    r26405 r26411  
    3737                        --with-libintl-prefix=${prefix} --with-libiconv-prefix=${prefix} \
    3838                        --mandir=${prefix}/share/man --infodir=${prefix}/share/info \
    39                         --with-python=2.4
     39                        --with-python=2.4 --sysconfdir=${prefix}/etc/rpm
     40                        # needed because it checks for sqlite3_open in sqlite lib...
     41configure.env           ac_cv_lib_sqlite_sqlite3_open=yes
    4042
     43patchfiles              patch-macros.in \
     44                        patch-configure \
     45                        patch-rpmevr.h \
     46                        patch-parseBuildInstallClean.c
     47
     48post-patch {
     49        # use external popt library
     50        delete ${worksrcpath}/popt
     51}
     52
     53post-destroot {
     54        # MacPorts specific changes
     55        reinplace "s;%{_usrsrc}/rpm;%{_usrsrc}/macports;" ${destroot}${prefix}/lib/rpm/macros
     56
     57        xinstall -d -m 755 ${prefix}/etc/rpm
     58                     
     59        delete [glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod]
     60
     61        # where the RPM database lives
     62        destroot.keepdirs ${destroot}${prefix}/etc/rpm\
     63                          ${destroot}${prefix}/var/lib/rpm\
     64                          ${destroot}${prefix}/src/macports/BUILD\
     65                          ${destroot}${prefix}/src/macports/RPMS\
     66                          ${destroot}${prefix}/src/macports/SOURCES\
     67                          ${destroot}${prefix}/src/macports/SPECS\
     68                          ${destroot}${prefix}/src/macports/SRPMS
     69}
    4170
    4271platform darwin {
    43         patchfiles-append patch-macros.in \
    44                           patch-popt-Makefile.in
    45 
    4672        pre-configure {
    4773                      xinstall -d -m 755 ${workpath}/librt
     
    5783
    5884        post-destroot {
    59                 # Delete overlapping files.
    60                 delete ${destroot}${prefix}/include/popt.h
    61                 eval delete [glob ${destroot}${prefix}/share/man/man3/popt.3*]
    62                 eval delete [glob ${destroot}${prefix}/lib/libpopt.*]
    63 
    64                 # MacPorts specific changes
    65                 reinplace "s;%{_usrsrc}/redhat;%{_usrsrc}/macports;" ${destroot}${prefix}/lib/rpm/macros
    66 
    67                 # where the RPM database lives
    68                 destroot.keepdirs ${destroot}${prefix}/var/lib/rpm\
    69                                   ${destroot}${prefix}/src/macports/BUILD\
    70                                   ${destroot}${prefix}/src/macports/RPMS\
    71                                   ${destroot}${prefix}/src/macports/SOURCES\
    72                                   ${destroot}${prefix}/src/macports/SPECS\
    73                                   ${destroot}${prefix}/src/macports/SRPMS
     85                # MacOSX specific changes
     86                reinplace "s;\blibtoolize\b;glibtoolize;" ${destroot}${prefix}/lib/rpm/macros
    7487        }
    7588}
Note: See TracChangeset for help on using the changeset viewer.