source: trunk/dports/sysutils/rpm51/Portfile @ 73339

Last change on this file since 73339 was 73339, checked in by afb@…, 7 years ago

bump revision for rebuild (liblzma depends)

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