source: trunk/dports/sysutils/smart/Portfile

Last change on this file was 124022, checked in by afb@…, 3 years ago

upgrade to python27 and perl5.16

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 124022 2014-08-17 13:40:09Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            smart
6version         1.4.1
7revision        1
8platforms       darwin freebsd
9license         GPL-2+
10categories      sysutils archivers
11maintainers     mac.com:n3npq afb
12description     Automatic updater and package installer/remover
13long_description        The Smart Package Manager project has the ambitious \
14                        objective of creating smart and portable algorithms \
15                        for solving adequately the problem of managing software \
16                        upgrading and installation. This tool works in all \
17                        major distributions, and will bring notable advantages \
18                        over native tools currently in use (APT, APT-RPM, YUM, \
19                        URPMI, etc).
20
21homepage        http://labix.org/smart
22master_sites    http://launchpad.net/${name}/trunk/${version}/+download/
23checksums       md5 573ef32ba177a6b3c4bf7ef04873fcb6 \
24                sha1 51fae89900c386f7848cf5575f5729042c33e171 \
25                rmd160 d570cdda7a5c69cc0a3a3ea37711388944d88ce2
26
27use_bzip2       yes
28patchfiles      patch-prefix.diff
29
30depends_lib     path:lib/python2.7/site-packages/rpm/__init__.py:rpm port:python27
31### by default, it will run --shell interface.
32### to run it with --gui, you will need:
33#depends_run    port:py27-pygtk
34
35patch {
36                foreach patch $patchfiles {
37                        system "cd '${workpath}/${distname}' && \
38                        sed -e 's#@@PREFIX@@#${prefix}#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
39                }
40}
41
42use_configure   no
43
44build.args-append       PYTHON="${prefix}/bin/python2.7"
45destroot.args-append    PYTHON="${prefix}/bin/python2.7"
46test.args-append        PYTHON="${prefix}/bin/python2.7"
47
48post-destroot {
49        destroot.keepdirs ${destroot}${prefix}/etc/smart/channels \
50                          ${destroot}${prefix}/var/lib/smart
51}
52
53test.run        yes
54
55livecheck.name  smartpm
56livecheck.type  regex
57livecheck.url   ${homepage}
58livecheck.regex ${name}-(\[0-9\\.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.