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

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

Eval glob delete the popt files in the destroot, port now installs and activates properly, woot!
Also, while at it, use "macports" as the vendor name.

PS: To destroot this port you need to have eridius' r26397 installed, as otherwise the delete command segfaults.
Said fix will be in MacPorts 1.5, of course.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 26405 2007-06-21 13:44:56Z 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                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
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.