Ticket #5042: Portfile

File Portfile, 1.1 KB (added by n3npq@…, 19 years ago)

Portfile

Line 
1# $Id$
2
3PortSystem 1.0
4name            smart
5version         0.38
6revision        0
7platforms       darwin
8categories      sysutils archivers
9maintainers     n3npq@mac.com
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).
18homepage        http://smartpm.org
19master_sites    http://linux-br.conectiva.com.br/~niemeyer/smart/files/smart-0.38.tar.bz2
20checksums       md5 ee300e078d0fe15336569d03f95a1b76
21
22use_bzip2       yes
23patchfiles      patch-prefix.diff
24
25depends_lib     lib:librpm:rpm  port:python24
26
27patch {
28                foreach patch $patchfiles {
29                        system "cd '${workpath}/${distname}' && \
30                        sed -e 's#@@PREFIX@@#${prefix}#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
31                }
32                system "echo 'exit 0' > '${workpath}/${distname}/configure' && chmod +x '${workpath}/${distname}/configure'"
33}
34
35build.env       PYTHON="${prefix}/bin/python2.4"