source: trunk/dports/sysutils/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.6 KB
Line 
1# $Id: Portfile 124022 2014-08-17 13:40:09Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    createrepo
6conflicts               yum-createrepo
7version                 0.4.11
8revision                3
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/
18master_sites            ${homepage}download/
19checksums               md5 3e9ccf4abcffe3f49af078c83611eda2 \
20                                sha1 10316e9ee98e92f961c727cf991589611a2de7cb \
21                                rmd160 74b89d3f097914bd5fc67282d083c063ad7fc18e
22patchfiles              patch-Makefile patch-createrepo patch-modifyrepo \
23                        patch-dumpMetadata.py patch-genpkgmetadata.py \
24                        patch-readMetadata.py patch-modifyrepo.py
25
26depends_run             port:python27 port:rpm port:py27-libxml2 port:py27-yum-metadata-parser
27# this should be depends_test:
28depends_build   port:py27-checker
29
30post-patch {
31        reinplace "s|__PREFIX__|${prefix}|g" \
32                ${worksrcpath}/bin/createrepo ${worksrcpath}/bin/modifyrepo
33        reinplace "s|__PYTHON__|${prefix}/bin/python2.7|g" \
34                ${worksrcpath}/dumpMetadata.py ${worksrcpath}/genpkgmetadata.py \
35                ${worksrcpath}/readMetadata.py ${worksrcpath}/modifyrepo.py
36}
37
38use_configure   no
39
40build.args      prefix=${prefix} PYTHON="${prefix}/bin/python2.7"
41
42destroot.args   prefix=${prefix} INSTALL="/usr/bin/install -p" INSTALL_MODULES="/usr/bin/install -m 755"
43
44test.run                yes
45test.target             check
46
47livecheck.type  regex
48# get the last modified tarball
49livecheck.url   ${master_sites}?C=M\;O=D
50livecheck.regex ${name}-(0\.4\.\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.