# $Id: Portfile 73822 2010-11-26 11:05:54Z afb@macports.org $ PortSystem 1.0 name yum version 3.2.28 platforms darwin categories sysutils archivers maintainers mac.com:n3npq afb description Automatic updater and package installer/remover for RPM long_description Yum is an automatic updater and package installer/remover for \ rpm systems. It automatically computes dependencies and figures \ out what things should occur to install packages. It makes it \ easier to maintain groups of machines without having to manually \ update each one using rpm. homepage http://yum.baseurl.org/ master_sites ${homepage}download/3.2/ checksums md5 91eff58aa4c25cd4f46b21201bbf9bea \ sha1 2f13dbb8a78a510f9f5a5e9657592f74bafb789a \ rmd160 954ce320cf0168f361bd5c163154a2a6281c3572 patchfiles patch-prefix.diff patch-sqlutils.py patch-packages.py depends_lib lib:librpm:rpm port:python24 port:py-celementtree port:py-urlgrabber port:py-libxml2 port:py-yum-metadata-parser port:py-iniparse port:py-pygpgme depends_build port:intltool port:py-nose patch { foreach patch $patchfiles { system "cd '${workpath}/${distname}' && \ sed -e 's#@@PREFIX@@#${prefix}#g' -e 's#@@PYTHON@@#${prefix}/bin/python2.4#g' '${portpath}/${filesdir}/${patch}' | patch -p0" } } post-patch { # problem with case-insensitive filesystem: file delete ${workpath}/${distname}/INSTALL } use_configure no build.args PYTHON="${prefix}/bin/python2.4" destroot.args PYTHON="${prefix}/bin/python2.4" PYSYSDIR="${prefix}" post-destroot { xinstall -d -m 755 ${destroot}${prefix}/etc/yum/repos.d xinstall -d -m 755 ${destroot}${prefix}/var/cache/yum/release/headers xinstall -d -m 755 ${destroot}${prefix}/var/cache/yum/release/packages copy -force ${filespath}/yum.conf ${destroot}${prefix}/etc/yum/yum.conf reinplace "s|@@PREFIX@@|$prefix|g" ${destroot}${prefix}/etc/yum/yum.conf reinplace "s|@@PLATFORM@@|${os.platform}|g" ${destroot}${prefix}/etc/yum/yum.conf destroot.keepdirs ${destroot}${prefix}/etc/yum/repos.d \ ${destroot}${prefix}/var/cache/yum/release/headers \ ${destroot}${prefix}/var/cache/yum/release/packages \ ${destroot}${prefix}/var/log \ ${destroot}${prefix}/var/run } test.run yes livecheck.type regex # get the last modified tarball livecheck.url ${master_sites}?C=M\;O=D livecheck.regex ${name}-(\[0-9\\.\]+)${extract.suffix}