1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/dawn/dawn-3.88a.ebuild,v 1.7 2009/05/05 19:45:23 fauli Exp $
8 pkgdesc="3D geometrical postscript renderer"
9 url="http://geant4.kek.jp/~tanaka/DAWN/About_DAWN.html"
10 license="public-domain"
13 depend=(tk libx11 tcsh texlive-core)
15 source=("http://geant4.kek.jp/~tanaka/src/${pkgname}_$pkgver.taz" dawn-3.88a-no-interactive.patch)
19 cd $srcdir/${pkgname}_${pkgver}
22 patch -Np0 -i ../dawn-3.88a-no-interactive.patch
23 sed -i -e '/strip/d' Makefile*in || die "sed Makefile failed"
26 make clean && make guiclean
34 [ -d $pkgdir$INSTALLDIR ] || mkdir -p $pkgdir$INSTALLDIR
35 make DESTDIR=$pkgdir install || die "make install failed"
37 DOCDIR=/usr/share/doc/dawn
38 [ -d $pkgdir$DOCDIR ] || mkdir -p $pkgdir$DOCDIR
40 pdflatex DOC/G4PRIM_FORMAT_24.tex || die "pdf generation failed"
41 cp DOC/*.pdf $pkgdir$DOCDIR/
42 cp DOC/*.html $pkgdir$DOCDIR/