source: trunk/dports/sysutils/rpm53/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: 4.3 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                    rpm53
10version                 5.3.11
11revision                3
12set date                20110602
13set branch              [join [lrange [split ${version} .] 0 1] .]
14platforms               darwin freebsd linux
15license                 LGPL-2.1
16categories              sysutils archivers
17maintainers             nomaintainer
18description             The RPM package management system.
19long_description        The RPM Package Manager (RPM) is a powerful command line driven \
20                        package management system capable of installing, uninstalling, \
21                        verifying, querying, and updating software packages. Each software \
22                        package consists of an archive of files along with information about \
23                        the package like its version, a description, etc.
24
25homepage                http://rpm5.org
26master_sites            ${homepage}/files/rpm/rpm-${branch}/
27distname                rpm-${version}-0.${date}
28extract.suffix          .src.rpm
29checksums               md5 5187a796c2fed092544c3c6c0f3db55a \
30                        sha1 7ead6e27a6df3741312e217e96b78b26e19845cc \
31                        rmd160 fa9b6d83376cb3e20d0969e0394d1516ee89cc52
32worksrcdir              rpm-${version}
33
34depends_build           port:expat port:neon \
35                        port:python27 port:perl5.22 \
36                        port:readline port:beecrypt \
37                        port:libiconv port:gettext
38
39depends_lib             lib:libhistory.5:readline port:gettext \
40                        port:popt port:sqlite3 port:xar-devel \
41                        port:xz port:pcre port:ossp-uuid \
42                        port:db51
43
44depends_run             path:lib/libssl.dylib:openssl \
45                        bin:gzip:gzip \
46                        bin:bzip2:bzip2 \
47                        bin:unzip:unzip
48
49patchfiles              rpm_patchset_16081.diff
50
51extract.cmd             ${filespath}/rpm2cpio.sh
52extract.pre_args        ""
53extract.post_args       "| cpio -dvim"
54
55build.type              gnu
56
57configure.args          --disable-nls --without-javaglue --without-included-gettext \
58                        --with-libintl-prefix=${prefix} --with-libiconv-prefix=${prefix} \
59                        --mandir=${prefix}/share/man --infodir=${prefix}/share/info \
60                        --with-python=2.7 --with-perl --with-sqlite --with-db=external \
61                        --with-neon=external --with-beecrypt=external --with-popt=external \
62                        --with-xar=external --with-xz=external --with-pcre=external --with-uuid=external \
63                        --without-apidocs --sysconfdir=${prefix}/etc --with-path-cfg=${prefix}/etc/rpm
64configure.env           __PYTHON=${prefix}/bin/python2.7 __PERL=${prefix}/bin/perl5.22 \
65                        PERL=${prefix}/bin/perl5.22
66
67
68configure.args-append   --disable-openmp --with-lua=internal --with-syck=internal
69configure.cppflags-append       -I${prefix}/include/xar -I${prefix}/include/ossp
70
71configure.cppflags-append       -I${prefix}/include/db51
72configure.ldflags-append        -L${prefix}/lib/db51
73
74post-extract {
75        system -W ${workpath} "${portutil::autoconf::tar_command} -xzf rpm-${version}.tar.gz"
76}
77
78post-patch {
79        reinplace "s,sys/ipc.h,sys/endian.h sys/ipc.h," ${worksrcpath}/configure
80}
81
82post-destroot {
83        xinstall -d -m 755 ${destroot}${prefix}/etc/rpm
84        system "${worksrcpath}/rpm --macros=${worksrcpath}/macros --eval='%{_target_platform}' > ${destroot}${prefix}/etc/rpm/platform"
85        system "${worksrcpath}/rpm --macros=${worksrcpath}/macros --eval='noarch-%{_target_vendor}-%{_target_os}%{?_gnu}' >> ${destroot}${prefix}/etc/rpm/platform"
86
87        delete [glob ${destroot}${prefix}/lib/perl5/*/*/*/auto/RPM/.packlist]
88        delete [glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod]
89
90        # where the RPM database lives
91        destroot.keepdirs ${destroot}${prefix}/etc/rpm\
92                          ${destroot}${prefix}/var/lib/rpm\
93                          ${destroot}${prefix}/var/spool/repackage\
94                          ${destroot}${prefix}/src/rpm/BUILD\
95                          ${destroot}${prefix}/src/rpm/RPMS\
96                          ${destroot}${prefix}/src/rpm/SOURCES\
97                          ${destroot}${prefix}/src/rpm/SPECS\
98                          ${destroot}${prefix}/src/rpm/SRPMS
99}
100
101platform darwin {
102        configure.args-append --disable-optimized --disable-aio \
103                              --with-glob --enable-broken-chown \
104                              --disable-rpath
105
106        post-destroot {
107                # Mac OS X specific changes
108        }
109}
110
111platform freebsd {
112
113        post-destroot {
114                # FreeBSD specific changes
115                reinplace "s;/usr/bin/tar;/usr/local/bin/gtar;" ${destroot}${prefix}/lib/rpm/macros
116                reinplace "s;/usr/bin/make;/usr/local/bin/gmake;" ${destroot}${prefix}/lib/rpm/macros
117        }
118}
119
120platform linux {
121
122        post-destroot {
123                # Linux specific changes
124        }
125}
126
127variant docs description "API documentation" {
128        depends_build-append port:doxygen path:bin/dot:graphviz
129        configure.args-delete --without-apidocs
130        configure.args-append --with-apidocs
131}
132
133livecheck.type  regex
134# get the last modified tarball
135livecheck.url   ${master_sites}
136livecheck.regex rpm-(\[0-9\\.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.