source: trunk/dports/sysutils/createrepo/Portfile @ 28856

Last change on this file since 28856 was 28856, checked in by afb@…, 12 years ago

add test/livecheck actions

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 28856 2007-09-10 09:13:07Z afb@macports.org $
2
3PortSystem 1.0
4
5name                    createrepo
6version                 0.4.10
7categories              sysutils
8platforms               darwin
9maintainers             afb@macports.org
10description             generates common metadata for package repositories
11long_description        createrepo generates the metadata necessary for an RPM package \
12                        repository. This repository format (repodata) is supported by \
13                        apt, red-carpet(zen), smart, up2date, Yast and yum.
14
15homepage                http://linux.duke.edu/projects/metadata/
16master_sites            ${homepage}generate/
17checksums               md5 733971b7aefd2597ad391feae01a6d15 \
18                                sha1 a09aade9703eead010ea8e633b9af8cc46710796 \
19                                rmd160 e6afab6df0afa5abba2fd20b517862e1153053bc
20patchfiles              patch-createrepo patch-modifyrepo \
21                        patch-dumpMetadata.py patch-genpkgmetadata.py patch-readMetadata.py
22
23depends_run             port:python24 port:rpm port:py-yum-metadata-parser
24# this should be depends_test:
25depends_build   port:py-checker
26
27post-patch {
28        reinplace "s|__PREFIX__|${prefix}|g" \
29                ${worksrcpath}/bin/createrepo ${worksrcpath}/bin/modifyrepo
30        reinplace "s|__PYTHON__|${prefix}/bin/python2.4|g" \
31                ${worksrcpath}/dumpMetadata.py ${worksrcpath}/genpkgmetadata.py ${worksrcpath}/readMetadata.py
32}
33
34use_configure   no
35
36build.args      prefix=${prefix}
37
38destroot.args   prefix=${prefix} INSTALL="/usr/bin/install -p" INSTALL_MODULES="/usr/bin/install -m 755"
39
40test.run                yes
41test.target             check
42
43livecheck.check regex
44# get the last modified tarball
45livecheck.url   ${master_sites}?C=M\;O=D
46livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.