source: trunk/dports/sysutils/repoview/Portfile

Last change on this file was 125080, checked in by afb@…, 3 years ago

repoview: upgrade to python2.7 for yum (#44866)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 125080 2014-09-04 18:47:46Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    repoview
6version                 0.5.2
7revision                2
8categories              sysutils
9platforms               darwin
10maintainers             afb
11description             make common metadata package repositories browseable
12long_description        RepoView allows one to easily create a set of static HTML pages \
13                        in a repodata repository, allowing simple browsing of available packages. \
14                        It uses kid templating engine to create the pages and is therefore \
15                        easily customizeable.
16
17homepage                https://fedorahosted.org/repoview/
18master_sites            http://icon.fedorapeople.org/repoview/old/
19checksums               md5 cc15d6ab4df4217db0ef8f0608343521 \
20                                sha1 92d4e421775f0616ea90b7307776b50c222e479f \
21                                rmd160 4b68b84095104a8e5ff6657c76e9ff8d63fc5b9a
22patchfiles              patch-repoview.py
23
24depends_run             port:python27 port:yum port:py27-kid
25
26post-patch {
27        reinplace "s|/usr/bin/python|${prefix}/bin/python2.7|g" ${worksrcpath}/repoview.py
28        reinplace "s|/usr/share/repoview|${prefix}/share/repoview|g" ${worksrcpath}/repoview.py
29        reinplace "s|'./templates'|'${prefix}/share/repoview/templates'|g" ${worksrcpath}/repoview.py
30}
31
32use_configure   no
33build {}
34
35destroot {
36        xinstall -m 755 ${worksrcpath}/repoview.py ${destroot}${prefix}/bin/repoview
37        xinstall -m 644 ${worksrcpath}/repoview.8 ${destroot}${prefix}/share/man/man8
38        xinstall -d -m 755 ${destroot}${prefix}/share/repoview
39        copy ${worksrcpath}/templates ${destroot}${prefix}/share/repoview/templates
40}
41
42livecheck.type  regex
43livecheck.url   ${homepage}
44livecheck.regex Latest version is \[a-zA-Z\]*-(\[0-9.\]*)
Note: See TracBrowser for help on using the repository browser.