source: trunk/dports/sysutils/yum-createrepo/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.4 KB
Line 
1# $Id: Portfile 124022 2014-08-17 13:40:09Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    yum-createrepo
6conflicts               createrepo
7version                 0.9.8
8revision                2
9categories              sysutils
10platforms               darwin
11maintainers             afb
12description             generates common metadata for package repositories
13long_description        createrepo generates the metadata necessary for an RPM package \
14                        repository. This repository format (repodata) is supported by \
15                        apt, red-carpet(zen), smart, up2date, Yast and yum.
16
17homepage                http://createrepo.baseurl.org/
18distname                createrepo-${version}
19master_sites            ${homepage}download/
20checksums               md5 e37418bebb559e7420532574c1bdb18c \
21                        sha1 b4964ea3caf039954467374ffd7769cc6875c70a \
22                        rmd160 aa6021d6cc3e01f8b7dde108a966210dd7480509
23patchfiles              patch-prefix.diff patch-sqlite.diff
24
25depends_run             port:python27 port:yum
26# this should be depends_test:
27depends_build   port:py27-checker
28
29set python.bin  ${prefix}/bin/python2.7
30
31patch {
32                foreach patch $patchfiles {
33                        system "cd '${workpath}/${distname}' && \
34                        sed -e 's#@@PREFIX@@#${prefix}#g' -e 's#@@PYTHON@@#${python.bin}#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
35                }
36}
37
38use_configure   no
39
40build.args      prefix=${prefix} PYTHON="${python.bin}"
41destroot.args   prefix=${prefix} PYTHON="${python.bin}" INSTALL="/usr/bin/install -p" INSTALL_MODULES="/usr/bin/install -m 755"
42
43test.run                yes
44test.target             check
45
46livecheck.type  regex
47# get the last modified tarball
48livecheck.url   ${master_sites}?C=M\;O=D
49livecheck.regex createrepo-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.