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

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem 1.0
4
5name                    rpm
6version                 4.4.9
7revision                8
8platforms               darwin freebsd linux
9categories              sysutils archivers
10maintainers             mac.com:n3npq
11description             The RPM package management system.
12long_description        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.
17
18homepage                http://rpm5.org
19master_sites            ${homepage}/files/${name}/${name}-4.4
20checksums               md5 210b768006e7d88dd8a3bcd498ea27f6
21
22depends_build           port:expat port:neon \
23                        port:python24 port:perl5.8 \
24                        port:readline port:beecrypt \
25                        port:libiconv port:gettext
26
27depends_lib             lib:libhistory.5:readline port:gettext \
28                        port:popt port:sqlite3
29
30depends_run             port:openssl \
31                        bin:gzip:gzip \
32                        bin:bzip2:bzip2 \
33                        bin:unzip:unzip
34
35build.type              gnu
36
37configure.args          --disable-nls --without-javaglue --without-included-gettext \
38                        --with-libintl-prefix=${prefix} --with-libiconv-prefix=${prefix} \
39                        --mandir=${prefix}/share/man --infodir=${prefix}/share/info \
40                        --with-python=2.4 --with-perl --without-apidocs \
41                        --sysconfdir=${prefix}/etc
42
43configure.env           __PYTHON=${prefix}/bin/python2.4 __PERL=${prefix}/bin/perl5.8
44
45                        # needed because it checks for sqlite3_open in sqlite lib...
46configure.env-append    ac_cv_lib_sqlite_sqlite3_open=yes
47
48                        # needed because db3 configure breaks with a two-word CXX...
49configure.ccache        no
50
51patchfiles              patch-neon.diff \
52                        patch-macros.in \
53                        patch-configure \
54                        patch-Makefile.PL \
55                        patch-darwin.prov \
56                        patch-fts.c \
57                        patch-rpmdav.c \
58                        patch-rpmsq.c \
59                        patch-rpmevr.h \
60                        patch-parseBuildInstallClean.c \
61                        patch-scripts-brp-nobuildrootpath
62
63post-patch {
64        # use external popt library
65        delete ${worksrcpath}/popt
66}
67
68post-destroot {
69        # MacPorts specific changes
70        reinplace "s;%{_usrsrc}/rpm;%{_usrsrc}/macports;" ${destroot}${prefix}/lib/rpm/macros
71
72        xinstall -d -m 755 ${prefix}/etc/rpm
73
74        delete [glob ${destroot}${prefix}/lib/perl5/*/*/*/auto/RPM/.packlist]
75        delete [glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod]
76
77        # where the RPM database lives
78        destroot.keepdirs ${destroot}${prefix}/etc/rpm\
79                          ${destroot}${prefix}/var/lib/rpm\
80                          ${destroot}${prefix}/var/spool/repackage\
81                          ${destroot}${prefix}/src/macports/BUILD\
82                          ${destroot}${prefix}/src/macports/RPMS\
83                          ${destroot}${prefix}/src/macports/SOURCES\
84                          ${destroot}${prefix}/src/macports/SPECS\
85                          ${destroot}${prefix}/src/macports/SRPMS
86}
87
88platform darwin {
89        configure.args-append --disable-optimized --disable-aio \
90                              --with-glob --enable-broken-chown \
91                              --disable-rpath
92
93        configure.cppflags-append -I${prefix}/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4
94
95        post-destroot {
96                # Mac OS X specific changes
97                reinplace "s;\blibtoolize\b;glibtoolize;" ${destroot}${prefix}/lib/rpm/macros
98        }
99}
100
101platform freebsd {
102        post-configure {
103                reinplace "s;-lrt;;" ${worksrcpath}/lua/Makefile
104        }
105
106        post-destroot {
107                # FreeBSD specific changes
108                reinplace "s;/usr/bin/tar;/usr/local/bin/gtar;" ${destroot}${prefix}/lib/rpm/macros
109                reinplace "s;/usr/bin/make;/usr/local/bin/gmake;" ${destroot}${prefix}/lib/rpm/macros
110        }
111}
112
113platform linux {
114        patchfiles-append      patch-rpmdb-Makefile.am
115
116        post-destroot {
117                # Linux specific changes
118        }
119}
120
121variant docs {
122        depends_run-append bin:doxygen:doxygen
123        configure.args-delete --without-apidocs
124        configure.args-append --with-apidocs
125}
Note: See TracBrowser for help on using the repository browser.