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

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

mark the rpm 5.0.x and 5.1.x ports as being replaced by rpm 5.2.x,
which is in turn replaced by rpm 5.3.x (no port, use cvs/devtool)

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