Ticket #7203: Portfile

File Portfile, 1.1 KB (added by decibel (Jim Nasby), 18 years ago)

Portfile

Line 
1# $Id: Portfile,v 1.15 2005/09/25 09:21:59 cjr Exp $
2
3PortSystem 1.0
4
5name            docbook-dsssl
6version         1.79
7categories      textproc
8description     the docbook dsssl stylesheets
9platforms       darwin
10maintainers     michaelm@opendarwin.org
11master_sites    sourceforge:docbook
12homepage        http://docbook.sf.net/
13checksums       md5 6f2478faea86bd55abb36ddb57291347
14use_configure   no
15build           {}
16
17set dirs_to_install     "common contrib dtds frames html images lib olink print"
18set instdir                     "share/dsssl/${name}"
19
20destroot        {
21    # Docs
22        xinstall -m 755 -d ${destroot}/${prefix}/${instdir} \
23                ${destroot}/${prefix}/share/doc/${name} \
24                ${destroot}/${prefix}/share/${name}
25   
26    # bin
27        xinstall -m 644 -W ${worksrcpath} bin/collateindex.pl \
28                ${destroot}/${prefix}/bin
29    # man
30        xinstall -m 644 -W ${worksrcpath} bin/collateindex.pl.1 \
31                ${destroot}/${prefix}/man/man1
32
33    # everything else
34        xinstall -m 644 -W ${worksrcpath} BUGS ChangeLog README \
35                RELEASE-NOTES.html RELEASE-NOTES.xml RELEASE-NOTES.txt VERSION WhatsNew \
36                ${destroot}/${prefix}/share/doc/${name}
37        foreach dirname $dirs_to_install {
38                file copy ${worksrcpath}/${dirname} ${destroot}/${prefix}/${instdir}
39        }
40}
41