Source
system "${worksrcpath}/rpm --macros=${worksrcpath}/macros/macros --eval='noarch-%{_target_vendor}-%{_target_os}%{?_gnu}' >> ${destroot}${prefix}/etc/rpm/platform"
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup active_variants 1.1
PortGroup perl5 1.0
name rpm54
version 5.4.15
revision 8
set date 20140824
set branch [join [lrange [split ${version} .] 0 1] .]
platforms darwin freebsd linux
license LGPL-2.1
categories sysutils archivers
maintainers nomaintainer
conflicts rpm
description The RPM package management system.
long_description The RPM Package Manager (RPM) is a powerful command line driven \
package management system capable of installing, uninstalling, \
verifying, querying, and updating software packages. Each software \
package consists of an archive of files along with information about \
the package like its version, a description, etc.
# host rpm5.org no longer resolves, further updates unlikely
# use substitute homepage and macports_distfiles for master_sites
homepage https://www.openhub.net/p/rpm5
master_sites macports_distfiles:${name}
distname rpm-${version}-0.${date}
extract.suffix .src.rpm
checksums rmd160 1b4af6831b864e485e6f9d9bee2c99f294e62cd8 \
sha256 d4ae5e9ed5df8ab9931b660f491418d20ab5c4d72eb17ed9055b80b71ef6c4ee \
size 15691310
worksrcdir rpm-${version}
patchfiles patch-rpmuuid.c.diff
depends_build port:gawk \
port:pkgconfig
depends_lib port:beecrypt \
port:db60 \
port:expat \
port:gettext \
port:libiconv \
port:libmagic \
port:neon \
port:ossp-uuid \
port:pcre \
port:popt \
port:python27 \
port:readline \
port:sqlite3 \
port:xar \
port:xz
depends_run bin:bzip2:bzip2 \
bin:gzip:gzip \
bin:unzip:unzip \
path:lib/libssl.dylib:openssl
extract.cmd ${filespath}/rpm2cpio.sh
extract.pre_args ""
extract.post_args "| cpio -dvim"