Ignore:
Timestamp:
Nov 6, 2008, 11:25:42 AM (11 years ago)
Author:
afb@…
Message:

new port: yum-based createrepo variant

Location:
trunk/dports/sysutils/yum-createrepo
Files:
2 added
7 deleted
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/yum-createrepo/Portfile

    r40866 r41578  
    33PortSystem 1.0
    44
    5 name                    createrepo
    6 version                 0.4.11
     5name                    yum-createrepo
     6version                 0.9.6
    77categories              sysutils
    88platforms               darwin
     
    1414
    1515homepage                http://createrepo.baseurl.org/
     16distname                createrepo-${version}
    1617master_sites            ${homepage}download/
    17 checksums               md5 3e9ccf4abcffe3f49af078c83611eda2 \
    18                                 sha1 10316e9ee98e92f961c727cf991589611a2de7cb \
    19                                 rmd160 74b89d3f097914bd5fc67282d083c063ad7fc18e
    20 patchfiles              patch-Makefile patch-createrepo patch-modifyrepo \
    21                         patch-dumpMetadata.py patch-genpkgmetadata.py \
    22                         patch-readMetadata.py patch-modifyrepo.py
     18checksums               md5 d8b11b3b38205fe351497c7e10ae5500 \
     19                        sha1 8b5642fd4f699b77caf11baebd97e9ac0abf83b3 \
     20                        rmd160 dacd3d124688f2ff29d947f1f28de1d396808a4d
     21patchfiles              patch-prefix.diff patch-sqlite.diff
    2322
    24 depends_run             port:python24 port:rpm port:py-yum-metadata-parser
     23depends_run             port:python24 port:yum
    2524# this should be depends_test:
    2625depends_build   port:py-checker
    2726
    28 post-patch {
    29         reinplace "s|__PREFIX__|${prefix}|g" \
    30                 ${worksrcpath}/bin/createrepo ${worksrcpath}/bin/modifyrepo
    31         reinplace "s|__PYTHON__|${prefix}/bin/python2.4|g" \
    32                 ${worksrcpath}/dumpMetadata.py ${worksrcpath}/genpkgmetadata.py \
    33                 ${worksrcpath}/readMetadata.py ${worksrcpath}/modifyrepo.py
     27patch {
     28                foreach patch $patchfiles {
     29                        system "cd '${workpath}/${distname}' && \
     30                        sed -e 's#@@PREFIX@@#${prefix}#g' -e 's#@@PYTHON@@#${prefix}/bin/python2.4#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
     31                }
    3432}
    3533
     
    4644# get the last modified tarball
    4745livecheck.url   ${master_sites}?C=M\;O=D
    48 livecheck.regex ${name}-(0\.4\.\[0-9.\]+)${extract.suffix}
     46livecheck.regex createrepo-(\[0-9.\]+)${extract.suffix}
Note: See TracChangeset for help on using the changeset viewer.