source: trunk/dports/sysutils/rpm53/Portfile @ 139229

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

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