source: trunk/dports/textproc/man2html/Portfile @ 6587

Last change on this file since 6587 was 3173, checked in by jkh, 17 years ago

Mass-merge of destroot target changes. Before committing this, I also
laid down a PRE_DESTROOT_TARGET so we can easily compare the before and
after photos (or, in extremis, revert this change). I doubt that will be
necessary, however, since things appear to be working quite well with this
change and it's better to do it sooner rather than later since it changes the
rules about what commands/variables to use in new ports.

Approved by: fkr

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1# $Id: Portfile,v 1.5 2003/08/05 09:29:38 jkh Exp $
2
3PortSystem 1.0
4name            man2html
5version         3.0.1
6categories      textproc
7maintainers     mij@opendarwin.org
8description     Convert nroff man pages to HTML
9homepage        http://www.oac.uci.edu/indiv/ehood/man2html.html
10platforms       darwin
11
12long_description man2html is a utility to convert UNIX nroff manual \
13                 pages into HTML format.
14
15master_sites    http://www.oac.uci.edu/indiv/ehood/tar/ \
16                ftp://ftp.gpad.ac.ru/pub/FreeBSD/distfiles/ \
17                http://soupnazi.org/OSX/dports/distfiles/
18
19distname        ${portname}${portversion}
20checksums       md5 1c0d28c83225d0ebc845f2386c8f8384
21
22patchfiles      patch-man.cgi
23
24configure       {}
25
26post-configure  { reinplace "s|/usr/local/bin/perl|/usr/bin/perl|" \
27                    ${worksrcpath}/man2html
28                  reinplace "s|/usr/local/bin/perl|/usr/bin/perl|" \
29                    ${worksrcpath}/man.cgi }
30
31build           {}
32
33destroot        { system "install -o root -m 755 -d ${destroot}${prefix}/bin"
34                  system "install -o root -m 755 ${worksrcpath}/man2html \
35                    ${prefix}/bin"
36                  system "install -o root -m 755 -d \
37                    ${destroot}${prefix}/man/man1"
38                  system "install -o root -m 644 ${worksrcpath}/doc/man2html.1 \
39                    ${destroot}${prefix}/man/man1"
40                  system "install -o root -m 755 -d \
41                    ${destroot}/Library/WebServer/CGI-Executables"
42                  system "install -o root -m 755 ${worksrcpath}/man.cgi \
43                    ${destroot}/Library/WebServer/CGI-Executables" }
Note: See TracBrowser for help on using the repository browser.