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

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

check for rpm.RPMSENSE_PREREQ existance before using

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 41577 2008-11-06 11:21:00Z afb@macports.org $
2
3PortSystem 1.0
4
5name            yum
6version         3.2.20
7revision        1
8platforms       darwin
9categories      sysutils archivers
10maintainers     n3npq@mac.com afb@macports.org
11description     Automatic updater and package installer/remover for RPM
12long_description        Yum is an automatic updater and package installer/remover for \
13                        rpm systems. It automatically computes dependencies and figures \
14                        out what things should occur to install packages. It makes it \
15                        easier to maintain groups of machines without having to manually \
16                        update each one using rpm.
17
18homepage        http://yum.baseurl.org/
19master_sites    ${homepage}download/3.2/
20checksums       md5 1e38412df913b67c306bc4dc2e7c20dd \
21                sha1 65fde6524d086df63c4ec87cd63c9461b9c0a17f \
22                rmd160 95932ba98be4998724f45528e3d02a4fa566726c
23
24patchfiles      patch-prefix.diff patch-sqlutils.py patch-packages.py
25
26depends_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
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
60test.cmd        ${prefix}/bin/python2.4
61test.target     test/alltests.py
62
63livecheck.check regex
64# get the last modified tarball
65livecheck.url   ${master_sites}?C=M\;O=D
66livecheck.regex ${name}-(\[0-9\\.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.