source: trunk/dports/sysutils/rpm52/Portfile @ 144334

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

rpm versions older than 5.4 are obsolete

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
1# $Id: Portfile 144334 2016-01-06 19:07:54Z afb@macports.org $
2
3PortSystem 1.0
4
5# This port can be removed on Jan 6, 2017.
6replaced_by             rpm54
7PortGroup               obsolete 1.0
8
9name                    rpm52
10version                 5.2.1
11revision                8
12platforms               darwin freebsd linux
13license                 LGPL-2.1
14categories              sysutils archivers
15maintainers             nomaintainer
16description             The RPM package management system.
17long_description        The RPM Package Manager (RPM) is a powerful command line driven \
18                        package management system capable of installing, uninstalling, \
19                        verifying, querying, and updating software packages. Each software \
20                        package consists of an archive of files along with information about \
21                        the package like its version, a description, etc.
22
23homepage                http://rpm5.org
24master_sites            ${homepage}/files/rpm/rpm-5.2/
25distname                rpm-${version}
26checksums               md5 71f825ede4a2ddc191132ae017c9a6e4 \
27                        sha1 77f2d1b24301ed3743d8bbc57e57710c0eff7bc8 \
28                        rmd160 a66017c6b8a7e0a1de6be945e3823a7ab2051c75
29worksrcdir              rpm-${version}
30
31depends_build           port:expat port:neon \
32                        port:python27 port:perl5.22 \
33                        port:readline port:beecrypt \
34                        port:libiconv port:gettext
35
36depends_lib             lib:libhistory.5:readline port:gettext \
37                        port:popt port:sqlite3 port:xar-devel \
38                        port:xz port:pcre port:ossp-uuid
39
40depends_run             path:lib/libssl.dylib:openssl \
41                        bin:gzip:gzip \
42                        bin:bzip2:bzip2 \
43                        bin:unzip:unzip
44
45patchfiles              patch-macros.in patch-configure.ac patch-configure
46
47build.type              gnu
48
49configure.args          --disable-nls --without-javaglue --without-included-gettext \
50                        --with-libintl-prefix=${prefix} --with-libiconv-prefix=${prefix} \
51                        --mandir=${prefix}/share/man --infodir=${prefix}/share/info \
52                        --with-python=2.7 --with-perl --with-sqlite --with-dbapi=sqlite \
53                        --with-xar=external --with-xz=external --with-pcre=external --with-uuid=external \
54                        --without-apidocs --sysconfdir=${prefix}/etc --with-path-cfg=${prefix}/etc/rpm
55configure.env           __PYTHON=${prefix}/bin/python2.7 __PERL=${prefix}/bin/perl5.22 \
56                        PERL=${prefix}/bin/perl5.22
57
58
59configure.args-append   --with-js=internal --with-lua=internal --with-db=internal
60configure.cppflags-append       -I${prefix}/include/xar -I${prefix}/include/ossp
61
62post-destroot {
63        xinstall -d -m 755 ${destroot}${prefix}/etc/rpm
64        system "${worksrcpath}/rpm --macros=${worksrcpath}/macros --eval='%{_target_platform}' > ${destroot}${prefix}/etc/rpm/platform"
65        system "${worksrcpath}/rpm --macros=${worksrcpath}/macros --eval='noarch-%{_target_vendor}-%{_target_os}%{?_gnu}' >> ${destroot}${prefix}/etc/rpm/platform"
66
67        delete [glob ${destroot}${prefix}/lib/perl5/*/*/*/auto/RPM/.packlist]
68        delete [glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod]
69
70        # where the RPM database lives
71        destroot.keepdirs ${destroot}${prefix}/etc/rpm\
72                          ${destroot}${prefix}/var/lib/rpm\
73                          ${destroot}${prefix}/var/spool/repackage\
74                          ${destroot}${prefix}/src/rpm/BUILD\
75                          ${destroot}${prefix}/src/rpm/RPMS\
76                          ${destroot}${prefix}/src/rpm/SOURCES\
77                          ${destroot}${prefix}/src/rpm/SPECS\
78                          ${destroot}${prefix}/src/rpm/SRPMS
79}
80
81platform darwin {
82        configure.args-append --disable-optimized --disable-aio \
83                              --with-glob --enable-broken-chown \
84                              --disable-rpath
85
86        post-destroot {
87                # Mac OS X specific changes
88        }
89}
90
91platform freebsd {
92
93        post-destroot {
94                # FreeBSD specific changes
95                reinplace "s;/usr/bin/tar;/usr/local/bin/gtar;" ${destroot}${prefix}/lib/rpm/macros
96                reinplace "s;/usr/bin/make;/usr/local/bin/gmake;" ${destroot}${prefix}/lib/rpm/macros
97        }
98}
99
100platform linux {
101
102        post-destroot {
103                # Linux specific changes
104        }
105}
106
107variant docs description "API documentation" {
108        depends_build-append port:doxygen path:bin/dot:graphviz
109        configure.args-delete --without-apidocs
110        configure.args-append --with-apidocs
111}
112
113livecheck.type  regex
114# get the last modified tarball
115livecheck.url   ${master_sites}
116livecheck.regex rpm-(\[0-9\\.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.