# $Id: Portfile 26728 2007-07-05 13:11:57Z afb@macports.org $ PortSystem 1.0 name repoview version 0.5.2 categories sysutils platforms darwin maintainers afb@macports.org description make Yum repositories browseable long_description RepoView allows one to easily create a set of static HTML pages \ in a YUM repository, allowing simple browsing of available packages. \ It uses kid templating engine to create the pages and is therefore \ easily customizeable. homepage http://linux.duke.edu/projects/mini/repoview/ master_sites ${homepage}download/ checksums md5 cc15d6ab4df4217db0ef8f0608343521 \ sha1 92d4e421775f0616ea90b7307776b50c222e479f \ rmd160 4b68b84095104a8e5ff6657c76e9ff8d63fc5b9a patchfiles patch-repoview.py depends_run port:python24 port:yum port:py-kid post-patch { reinplace "s|/usr/bin/python|${prefix}/bin/python2.4|g" ${worksrcpath}/repoview.py reinplace "s|'./templates'|'${prefix}/share/repoview/templates'|g" ${worksrcpath}/repoview.py } use_configure no build {} destroot { xinstall -m 755 ${worksrcpath}/repoview.py ${destroot}${prefix}/bin/repoview xinstall -m 644 ${worksrcpath}/repoview.8 ${destroot}${prefix}/share/man/man8 xinstall -d -m 755 ${destroot}${prefix}/share/repoview copy ${worksrcpath}/templates ${destroot}${prefix}/share/repoview/templates }