description generates common metadata for package repositories
long_description createrepo generates the metadata necessary for an RPM package \
repository. This repository format (repodata) is supported by \
apt, red-carpet(zen), smart, up2date, Yast and yum.
homepage http://createrepo.baseurl.org/
master_sites ${homepage}download/
checksums md5 3e9ccf4abcffe3f49af078c83611eda2 \
sha1 10316e9ee98e92f961c727cf991589611a2de7cb \
rmd160 74b89d3f097914bd5fc67282d083c063ad7fc18e
patchfiles patch-Makefile patch-createrepo patch-modifyrepo \
patch-dumpMetadata.py patch-genpkgmetadata.py \
patch-readMetadata.py patch-modifyrepo.py
depends_run port:python27 port:rpm port:py27-libxml2 port:py27-yum-metadata-parser
depends_test port:py27-checker
reinplace "s|__PREFIX__|${prefix}|g" \
${worksrcpath}/bin/createrepo ${worksrcpath}/bin/modifyrepo
reinplace "s|__PYTHON__|${prefix}/bin/python2.7|g" \
${worksrcpath}/dumpMetadata.py ${worksrcpath}/genpkgmetadata.py \
${worksrcpath}/readMetadata.py ${worksrcpath}/modifyrepo.py
build.args prefix=${prefix} PYTHON="${prefix}/bin/python2.7"
destroot.args prefix=${prefix} INSTALL="/usr/bin/install -p" INSTALL_MODULES="/usr/bin/install -m 755"
# get the last modified tarball
livecheck.url ${master_sites}?C=M\;O=D
livecheck.regex ${name}-(0\.4\.\[0-9.\]+)${extract.suffix}