source: trunk/dports/sysutils/rpm/Portfile @ 26315

Last change on this file since 26315 was 26315, checked in by jmpp@…, 12 years ago

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!

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 26315 2007-06-19 17:06:22Z jmpp@macports.org $
2
3PortSystem 1.0
4
5name                    rpm
6version                 4.4.9
7platforms               darwin
8categories              sysutils archivers
9maintainers             n3npq@mac.com
10description             The RPM package management system.
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.
16
17homepage                http://rpm5.org
18master_sites            ${homepage}/files/${name}/${name}-4.4
19checksums               md5 210b768006e7d88dd8a3bcd498ea27f6
20
21depends_build           port:expat port:neon \
22                        port:python24 port:popt \
23                        port:readline port:beecrypt \
24                        port:libiconv port:gettext
25
26depends_lib             lib:libhistory.5:readline port:gettext \
27                        lib:libsqlite3.0:sqlite3
28
29depends_run             port:gzip \
30                        port:openssl \
31                        port:bzip2 \
32                        port:perl5.8
33
34build.type              gnu
35
36configure.args          --disable-nls --without-javaglue --without-included-gettext \
37                        --with-libintl-prefix=${prefix} --with-libiconv-prefix=${prefix} \
38                        --mandir=${prefix}/share/man --infodir=${prefix}/share/info \
39                        --with-python=2.4
40
41
42platform darwin {
43        patchfiles-append patch-macros.in \
44                          patch-popt-Makefile.in
45
46        pre-configure {
47                      xinstall -d -m 755 ${workpath}/librt
48                      ln -sf /usr/lib/libSystem.B.dylib ${workpath}/librt/librt.dylib
49        }
50
51        configure.args-append --disable-optimized --disable-aio \
52                              --with-lua --with-glob --enable-broken-chown \
53                              --disable-rpath
54
55        configure.cppflags-append -I${prefix}/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4
56        configure.ldflags-append -L${workpath}/librt
57
58        post-destroot {
59                # Delete overlapping files.
60                delete ${destroot}${prefix}/include/popt.h
61#               delete ${destroot}${prefix}/share/man/man3/popt.3*
62#               delete ${destroot}${prefix}/lib/libpopt.*
63
64                # MacOSX specific changes
65                reinplace "s;%{_usrsrc}/redhat;%{_usrsrc}/apple;" ${destroot}${prefix}/lib/rpm/macros
66
67                # where the RPM database lives
68                destroot.keepdirs ${destroot}${prefix}/var/lib/rpm\
69                                  ${destroot}${prefix}/src/apple/BUILD\
70                                  ${destroot}${prefix}/src/apple/RPMS\
71                                  ${destroot}${prefix}/src/apple/SOURCES\
72                                  ${destroot}${prefix}/src/apple/SPECS\
73                                  ${destroot}${prefix}/src/apple/SRPMS
74        }
75}
76
77
78variant docs {
79        depends_run-append bin:doxygen:doxygen 
80        configure.args-append --with-apidocs
81}
Note: See TracBrowser for help on using the repository browser.