Files
Ryan Schmidt c946275ae7 Use filespath
rather than constructing it manually.
2018-05-17 10:52:03 -04:00

57 lines
1.7 KiB
Plaintext

PortSystem 1.0
name smart
version 1.4.1
revision 1
platforms darwin freebsd
license GPL-2+
categories sysutils archivers
maintainers nomaintainer
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' '${filespath}/${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}