source: trunk/dports/sysutils/rpm50/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.1 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem 1.0
4
5name                    rpm50
6version                 5.0.3
7platforms               darwin freebsd linux
8categories              sysutils archivers
9maintainers             mac.com:n3npq afb
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/rpm/rpm-5.0
19distname                rpm-${version}
20checksums               md5 b3df4e54e84cf3344ce6b76fa2a8d5bf
21worksrcdir              rpm-${version}
22
23depends_build           port:expat port:neon \
24                        port:python25 port:perl5.8 \
25                        port:readline port:beecrypt \
26                        port:libiconv port:gettext
27
28depends_lib             lib:libhistory.5:readline port:gettext \
29                        port:popt port:sqlite3 port:xar
30
31depends_run             port:openssl \
32                        bin:gzip:gzip \
33                        bin:bzip2:bzip2 \
34                        bin:unzip:unzip
35
36patchfiles              patch-macros.in
37
38build.type              gnu
39
40configure.args          --disable-nls --without-javaglue --without-included-gettext \
41                        --with-libintl-prefix=${prefix} --with-libiconv-prefix=${prefix} \
42                        --mandir=${prefix}/share/man --infodir=${prefix}/share/info \
43                        --with-python=2.5 --with-perl --with-sqlite --with-dbapi=sqlite --with-xar=external \
44                        --without-apidocs --sysconfdir=${prefix}/etc --with-path-cfg=${prefix}/etc/rpm
45configure.env           __PYTHON=${prefix}/bin/python2.5 __PERL=${prefix}/bin/perl5.8
46
47
48configure.args-append   --with-lua=internal --with-db=internal
49configure.cppflags-append       -I${prefix}/include/xar
50
51post-destroot {
52        xinstall -d -m 755 ${destroot}${prefix}/etc/rpm
53        system "${worksrcpath}/rpm --macros=${worksrcpath}/macros --eval='%{_target_platform}' > ${destroot}${prefix}/etc/rpm/platform"
54        system "${worksrcpath}/rpm --macros=${worksrcpath}/macros --eval='noarch-%{_target_vendor}-%{_target_os}%{?_gnu}' >> ${destroot}${prefix}/etc/rpm/platform"
55
56        delete [glob ${destroot}${prefix}/lib/perl5/*/*/*/auto/RPM/.packlist]
57        delete [glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod]
58
59        # where the RPM database lives
60        destroot.keepdirs ${destroot}${prefix}/etc/rpm\
61                          ${destroot}${prefix}/var/lib/rpm\
62                          ${destroot}${prefix}/var/spool/repackage\
63                          ${destroot}${prefix}/src/rpm/BUILD\
64                          ${destroot}${prefix}/src/rpm/RPMS\
65                          ${destroot}${prefix}/src/rpm/SOURCES\
66                          ${destroot}${prefix}/src/rpm/SPECS\
67                          ${destroot}${prefix}/src/rpm/SRPMS
68}
69
70platform darwin {
71        configure.args-append --disable-optimized --disable-aio \
72                              --with-glob --enable-broken-chown \
73                              --disable-rpath
74
75        post-destroot {
76                # Mac OS X specific changes
77        }
78}
79
80platform freebsd {
81
82        post-destroot {
83                # FreeBSD specific changes
84                reinplace "s;/usr/bin/tar;/usr/local/bin/gtar;" ${destroot}${prefix}/lib/rpm/macros
85                reinplace "s;/usr/bin/make;/usr/local/bin/gmake;" ${destroot}${prefix}/lib/rpm/macros
86        }
87}
88
89platform linux {
90
91        post-destroot {
92                # Linux specific changes
93        }
94}
95
96variant docs {
97        depends_run-append bin:doxygen:doxygen
98        configure.args-delete --without-apidocs
99        configure.args-append --with-apidocs
100}
Note: See TracBrowser for help on using the repository browser.