source: trunk/dports/sysutils/rpm2html/Portfile

Last change on this file was 104209, checked in by afb@…, 5 years ago

rpm2html: fix automake-1.13 breakage (#38443)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 104209 2013-03-20 18:30:32Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            rpm2html
6version         1.9.6
7revision        1
8platforms       darwin freebsd
9license         mit
10categories      sysutils
11maintainers     afb
12description     Translates an RPM database and dependency information into HTML
13long_description \
14The rpm2html utility automatically generates web pages that describe a \
15set of RPM packages.  The goals of rpm2html are to identify the \
16dependencies between various packages, and to find the package(s) that \
17will provide the resources needed to install a given package. \
18Rpm2html analyzes the provides and requires of the given set of RPMs, \
19and then shows the dependency cross-references using hypertext links.
20
21homepage        http://www.nongnu.org/rpm2html/
22master_sites    http://savannah.nongnu.org/download/rpm2html/
23checksums       md5 15ffa538f6fe3d6080bfd4e68b3e67e2
24
25depends_lib     lib:librpm:rpm lib:libxml2:libxml2 port:zlib port:bzip2
26depends_build   port:autoconf port:automake
27
28patchfiles      patch-rpmopen.c patch-memory.c patch-rpmdata.c patch-rpm2html.config
29post-patch      { reinplace "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|" ${worksrcpath}/configure.in }
30
31pre-configure   { system "cd ${worksrcpath} && ./autogen.sh --version" }
32configure.args  --with-rpm-prefix=${prefix}
33
34post-destroot {
35        set config ${destroot}${prefix}/etc/rpm2html.config
36        reinplace "s|/usr/src/redhat|${prefix}/src/macports|" ${config}
37        reinplace "s|ftp://ftp.redhat.com/pub/redhat/linux/7.1/en/os/i386/RedHat/RPMS/|ftp=http://macports.org/packages/${os.platform}/${os.arch}/RPMS/|" ${config}
38        reinplace "s|ftpsrc=ftp://ftp.redhat.com/pub/redhat/linux/7.1/en/os/i386/SRPMS/|ftpsrc=http://macports.org/packages/SRPMS/|" ${config}
39        reinplace "s|/var/www/html|${prefix}/www|" ${destroot}${prefix}/etc/rpm2html.config
40}
41
42variant template description "Use separate template file instead of hard-coded markup" {
43depends_build-append    lib:template:libtemplate
44configure.args-append   --with-template
45post-configure { reinplace "s|^;html_template=rpm2html.tpl|html_template=${prefix}/etc/rpm2html.tpl|g" rpm2html.config }
46post-destroot { xinstall -m 644 ${worksrcpath}/rpm2html.tpl ${destroot}${prefix}/etc/rpm2html.tpl }
47}
Note: See TracBrowser for help on using the repository browser.