source: trunk/dports/sysutils/yum/Portfile @ 73822

Last change on this file since 73822 was 73822, checked in by afb@…, 9 years ago

port upgrade: yum 3.2.28

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 73822 2010-11-26 11:05:54Z afb@macports.org $
2
3PortSystem 1.0
4
5name            yum
6version         3.2.28
7platforms       darwin
8categories      sysutils archivers
9maintainers     mac.com:n3npq afb
10description     Automatic updater and package installer/remover for RPM
11long_description        Yum is an automatic updater and package installer/remover for \
12                        rpm systems. It automatically computes dependencies and figures \
13                        out what things should occur to install packages. It makes it \
14                        easier to maintain groups of machines without having to manually \
15                        update each one using rpm.
16
17homepage        http://yum.baseurl.org/
18master_sites    ${homepage}download/3.2/
19checksums       md5 91eff58aa4c25cd4f46b21201bbf9bea \
20                sha1 2f13dbb8a78a510f9f5a5e9657592f74bafb789a \
21                rmd160 954ce320cf0168f361bd5c163154a2a6281c3572
22
23patchfiles      patch-prefix.diff patch-sqlutils.py patch-packages.py
24
25depends_lib     lib:librpm:rpm port:python24 port:py-celementtree port:py-urlgrabber port:py-libxml2 port:py-yum-metadata-parser port:py-iniparse port:py-pygpgme
26depends_build   port:intltool port:py-nose
27
28patch {
29                foreach patch $patchfiles {
30                        system "cd '${workpath}/${distname}' && \
31                        sed -e 's#@@PREFIX@@#${prefix}#g' -e 's#@@PYTHON@@#${prefix}/bin/python2.4#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
32                }
33}
34
35post-patch {
36                # problem with case-insensitive filesystem:
37                file delete ${workpath}/${distname}/INSTALL
38}
39
40use_configure   no
41
42build.args      PYTHON="${prefix}/bin/python2.4"
43destroot.args   PYTHON="${prefix}/bin/python2.4" PYSYSDIR="${prefix}"
44
45post-destroot   {
46                xinstall -d -m 755 ${destroot}${prefix}/etc/yum/repos.d
47                xinstall -d -m 755 ${destroot}${prefix}/var/cache/yum/release/headers
48                xinstall -d -m 755 ${destroot}${prefix}/var/cache/yum/release/packages
49                copy -force ${filespath}/yum.conf ${destroot}${prefix}/etc/yum/yum.conf
50                reinplace "s|@@PREFIX@@|$prefix|g" ${destroot}${prefix}/etc/yum/yum.conf
51                reinplace "s|@@PLATFORM@@|${os.platform}|g" ${destroot}${prefix}/etc/yum/yum.conf
52                destroot.keepdirs ${destroot}${prefix}/etc/yum/repos.d \
53                ${destroot}${prefix}/var/cache/yum/release/headers \
54                ${destroot}${prefix}/var/cache/yum/release/packages \
55                ${destroot}${prefix}/var/log \
56                ${destroot}${prefix}/var/run
57}
58
59test.run        yes
60
61livecheck.type  regex
62# get the last modified tarball
63livecheck.url   ${master_sites}?C=M\;O=D
64livecheck.regex ${name}-(\[0-9\\.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.