source: trunk/dports/sysutils/yum-utils/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            yum-utils
6version         1.1.17
7revision        1
8platforms       darwin
9categories      sysutils
10maintainers     afb
11description     Utilities based around the yum package manager
12long_description        yum-utils is a collection of utilities and examples for the yum package \
13manager. It includes utilities by different authors that make yum easier and \
14more powerful to use.
15
16homepage        http://yum.baseurl.org/
17master_sites    ${homepage}download/${name}/
18checksums       md5 c9bb92a87a01e39d2d928ac3ae12e10a \
19                sha1 343a8eb894aadf4f91ca833d6672ca028eefe3ba \
20                rmd160 bbf90d0299bc0665ea78bad9ee892bf3cb2791a9
21
22patchfiles      patch-prefix.diff
23
24depends_lib     port:python27 port:yum
25
26patch {
27                foreach patch $patchfiles {
28                        system "cd '${workpath}/${distname}' && \
29                        sed -e 's#@@PREFIX@@#${prefix}#g' -e 's#@@PYTHON@@#${prefix}/bin/python2.7#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
30                }
31}
32
33use_configure   no
34build   {}
35
36platform darwin {
37        # exclude NetworkManager program
38        patchfiles-append patch-Makefile
39}
40
41variant plugins description "include yum plugins" {
42
43post-destroot {
44        set plugins "changelog fastestmirror protectbase versionlock tsflags downloadonly allowdowngrade skip-broken priorities refresh-updatesd merge-conf security protect-packages"
45        xinstall -d ${destroot}${prefix}/etc/yum/pluginconf.d ${destroot}${prefix}/lib/yum-plugins
46
47        foreach plug $plugins {
48                xinstall -m 644 [glob ${worksrcpath}/plugins/$plug/*.conf] ${destroot}${prefix}/etc/yum/pluginconf.d/
49                xinstall -m 644 [glob ${worksrcpath}/plugins/$plug/*.py] ${destroot}${prefix}/lib/yum-plugins/
50        }
51}
52
53}
54
55livecheck.type  regex
56# get the last modified tarball
57livecheck.url   ${master_sites}?C=M\;O=D
58livecheck.regex ${name}-(\[0-9\\.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.