source: trunk/dports/sysutils/smart/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem 1.0
4
5name            smart
6version         1.2
7platforms       darwin freebsd
8categories      sysutils archivers
9maintainers     mac.com:n3npq afb
10description     Automatic updater and package installer/remover
11long_description        The Smart Package Manager project has the ambitious \
12                        objective of creating smart and portable algorithms \
13                        for solving adequately the problem of managing software \
14                        upgrading and installation. This tool works in all \
15                        major distributions, and will bring notable advantages \
16                        over native tools currently in use (APT, APT-RPM, YUM, \
17                        URPMI, etc).
18
19homepage        http://smartpm.org
20master_sites    http://labix.org/download/smart/
21checksums       md5 233ccbd1e666a9a7c5e1cc7900075d93 \
22                sha1 311f79ee381e4c099e3218f0735d2802c689f3f0 \
23                rmd160 249b9295a09375ff52395fe783c24709515d08e8
24
25use_bzip2       yes
26patchfiles      patch-prefix.diff patch-Makefile
27
28depends_lib     lib:librpm:rpm  port:python24
29### by default, it will run --shell interface.
30### to run it with --gui, you will need:
31#depends_run    port:py-gtk2
32
33patch {
34                foreach patch $patchfiles {
35                        system "cd '${workpath}/${distname}' && \
36                        sed -e 's#@@PREFIX@@#${prefix}#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
37                }
38}
39
40use_configure   no
41
42build.args-append       PYTHON="${prefix}/bin/python2.4"
43destroot.args-append    PYTHON="${prefix}/bin/python2.4"
44test.args-append        PYTHON="${prefix}/bin/python2.4"
45
46variant rpm5 description "use rpm5, not rpm4" {
47        # uses RPM 5.0.3, instead of the default RPM 4.4.9
48        depends_lib-delete      lib:librpm:rpm port:python24
49        depends_lib-append      lib:librpm-5.0:rpm50 port:python25
50        #depends_run            port:py25-gtk
51        build.args-delete       PYTHON="${prefix}/bin/python2.4"
52        build.args-append       PYTHON="${prefix}/bin/python2.5"
53        destroot.args-delete    PYTHON="${prefix}/bin/python2.4"
54        destroot.args-append    PYTHON="${prefix}/bin/python2.5"
55        test.args-delete        PYTHON="${prefix}/bin/python2.4"
56        test.args-append        PYTHON="${prefix}/bin/python2.5"
57}
58
59post-destroot {
60        destroot.keepdirs ${destroot}${prefix}/etc/smart/channels \
61                          ${destroot}${prefix}/var/lib/smart
62}
63
64test.run        yes
65
66livecheck.name  smartpm
67livecheck.check regex
68livecheck.url   ${homepage}
69livecheck.regex /download/smart/${name}-(\[0-9\\.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.