# $Id: Portfile 26873 2007-07-10 08:54:32Z afb@macports.org $ PortSystem 1.0 name apt-rpm version 0.5.15lorg3.91 platforms darwin freebsd categories sysutils maintainers afb@macports.org description Automatic updater and package installer/remover for RPM long_description APT-RPM is a port of Debian's apt tools for RPM based distributions. \ It provides the apt-get utility that provides a simple, safe way to \ install and upgrade packages. APT features complete installation \ ordering, multiple source capability and several other useful \ features. homepage http://apt-rpm.org/ master_sites ${homepage}testing/ distname apt-${version} use_bzip2 yes checksums md5 9af3e42693f494fb619a60542dfa30ca depends_lib lib:librpm:rpm lib:libxml2:libxml2 lib:libsqlite3:sqlite3 patchfiles patch-ostable.diff patch-genbasedir.diff patch-langinfo.diff patch-scandir.diff \ patch-rpminclude.diff patch-rpmsense.diff patch-rpmfdigests.diff patch-rpmpsnum.diff post-patch { reinplace "s;\"/\";\"${prefix}\";" apt-pkg/init.cc reinplace "s;/bin/rpm;${prefix}/bin/rpm;" apt-pkg/rpm/rpmsystem.cc reinplace "s;/var/cache/apt;${prefix}/var/cache/apt;" tools/cached_md5.cc } post-destroot { copy -force ${filespath}/apt.conf ${destroot}${prefix}/etc/apt/apt.conf reinplace "s|@@ARCH@@|${os.arch}|g" ${destroot}${prefix}/etc/apt/apt.conf copy ${filespath}/sources.list ${destroot}${prefix}/etc/apt/sources.list reinplace "s|@@PLATFORM@@|${os.platform}|g" ${destroot}${prefix}/etc/apt/sources.list copy ${filespath}/rpmpriorities ${destroot}${prefix}/etc/apt/rpmpriorities xinstall -d -m 755 ${destroot}${prefix}/etc/apt/apt.conf.d xinstall -d -m 755 ${destroot}${prefix}/etc/apt/sources.list.d xinstall -d -m 755 ${destroot}${prefix}/etc/apt/vendors.list.d xinstall -d -m 755 ${destroot}${prefix}/var/cache/apt/archives/partial xinstall -d -m 755 ${destroot}${prefix}/var/lib/apt/lists/partial destroot.keepdirs ${destroot}${prefix}/etc/apt/apt.conf.d \ ${destroot}${prefix}/etc/apt/sources.list.d \ ${destroot}${prefix}/etc/apt/vendors.list.d \ ${destroot}${prefix}/var/cache/apt/archives/partial \ ${destroot}${prefix}/var/lib/apt/lists/partial }