# $Id: Portfile 28386 2007-08-30 06:26:24Z afb@macports.org $ PortSystem 1.0 name poldek version 0.21-cvs20070703.00 platforms darwin categories sysutils maintainers afb@macports.org description A full-featured frontend to RPM long_description \ poldek is an RPM package management tool which allows you to easily \ perform package verification, installation (including system \ installation from scratch), upgrading, and removal. \ \ Program can be used in batch (like apt-get from Debian's \ APT) or interactive mode. The interactive mode puts you into a \ readline interface with command line autocompletion and history, \ similar to the shell mode of Perl's CPAN. homepage http://poldek.pld-linux.org/ master_sites ${homepage}download/snapshots/ use_bzip2 yes checksums md5 dae23dec560fad954abf157fd250e4c3 depends_lib port:rpm port:argp-standalone port:ncurses \ lib:libpcre:pcre lib:libcheck:check lib:libxml2:libxml2 patchfiles poldek-uri-escape-fix.patch patch-pm.h \ patch-utillibs.diff patch-realpath.diff \ patch-rpmlog.diff patch-libpoldek.sym patch-libpolclidek.sym use_autoconf yes post-patch { system "aclocal -I${prefix}/share/aclocal" } configure.cppflags-append "-I${prefix}/include/rpm" post-configure { reinplace "s;-largp;;" ${worksrcpath}/cli/Makefile } # build system keeps clobbering the changes done to Makefile, due to changed config.status pre-build { system "cd ${worksrcpath}; ${build.cmd} || true" reinplace "s;-largp;;" ${worksrcpath}/cli/Makefile # some other lame thing forgets to replace a var: ln -s mkinstalldirs ${worksrcpath}/@MKINSTALLDIRS@ } post-destroot { xinstall -d ${destroot}${prefix}/etc/poldek copy ${filespath}/macports-source.conf ${destroot}${prefix}/etc/poldek/macports-source.conf reinplace "s|_distro = pld|_distro = macports|" ${destroot}${prefix}/etc/poldek/poldek.conf reinplace "s|@@ARCH@@|${os.arch}|g" ${destroot}${prefix}/etc/poldek/macports-source.conf reinplace "s|@@PLATFORM@@|${os.platform}|g" ${destroot}${prefix}/etc/poldek/macports-source.conf }