# $Id: Portfile 124022 2014-08-17 13:40:09Z afb@macports.org $ PortSystem 1.0 name smart version 1.4.1 revision 1 platforms darwin freebsd license GPL-2+ categories sysutils archivers maintainers mac.com:n3npq afb description Automatic updater and package installer/remover long_description The Smart Package Manager project has the ambitious \ objective of creating smart and portable algorithms \ for solving adequately the problem of managing software \ upgrading and installation. This tool works in all \ major distributions, and will bring notable advantages \ over native tools currently in use (APT, APT-RPM, YUM, \ URPMI, etc). homepage http://labix.org/smart master_sites http://launchpad.net/${name}/trunk/${version}/+download/ checksums md5 573ef32ba177a6b3c4bf7ef04873fcb6 \ sha1 51fae89900c386f7848cf5575f5729042c33e171 \ rmd160 d570cdda7a5c69cc0a3a3ea37711388944d88ce2 use_bzip2 yes patchfiles patch-prefix.diff depends_lib path:lib/python2.7/site-packages/rpm/__init__.py:rpm port:python27 ### by default, it will run --shell interface. ### to run it with --gui, you will need: #depends_run port:py27-pygtk patch { foreach patch $patchfiles { system "cd '${workpath}/${distname}' && \ sed -e 's#@@PREFIX@@#${prefix}#g' '${portpath}/${filesdir}/${patch}' | patch -p0" } } use_configure no build.args-append PYTHON="${prefix}/bin/python2.7" destroot.args-append PYTHON="${prefix}/bin/python2.7" test.args-append PYTHON="${prefix}/bin/python2.7" post-destroot { destroot.keepdirs ${destroot}${prefix}/etc/smart/channels \ ${destroot}${prefix}/var/lib/smart } test.run yes livecheck.name smartpm livecheck.type regex livecheck.url ${homepage} livecheck.regex ${name}-(\[0-9\\.\]+)${extract.suffix}