# $Id: Portfile,v 1.1 2006/02/15 19:16:48 olegb Exp $
PortSystem 1.0

name 		docbook-dsssl
version		1.79
categories	textproc
description	the docbook dsssl stylesheets
platforms	darwin
maintainers     decibel@decibel.org
master_sites	sourceforge:docbook
homepage	http://docbook.sf.net/
checksums	md5 8459913bbd8a5724a6fe4b9ed5bab5af
use_configure 	no
build		{}

set dirs_to_install	"common contrib dtds frames html images lib olink print"
set instdir			"share/dsssl/${name}"

destroot	{
    # Docs
	xinstall -m 755 -d ${destroot}/${prefix}/${instdir} \
		${destroot}/${prefix}/share/doc/${name} \
		${destroot}/${prefix}/share/${name}
    
    # bin
	xinstall -m 644 -W ${worksrcpath} bin/collateindex.pl \
		${destroot}/${prefix}/bin
    # man
	xinstall -m 644 -W ${worksrcpath} bin/collateindex.pl.1 \
		${destroot}/${prefix}/share/man/man1

    # everything else
	xinstall -m 644 -W ${worksrcpath} BUGS ChangeLog README \
		RELEASE-NOTES.html RELEASE-NOTES.xml RELEASE-NOTES.txt VERSION WhatsNew \
		${destroot}/${prefix}/share/doc/${name}
	foreach dirname $dirs_to_install {
		file copy ${worksrcpath}/${dirname} ${destroot}/${prefix}/${instdir}
	}
}

