/[gentoo-x86]/media-gfx/dawn/dawn-3.90b.ebuild
Gentoo

Contents of /media-gfx/dawn/dawn-3.90b.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Feb 13 12:41:37 2011 UTC (9 years, 5 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
Drop sparc keywords

(Portage version: 2.1.9.25/cvs/Linux ia64)

1 # Copyright 1999-2011 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.90b.ebuild,v 1.5 2011/01/31 19:42:04 fauli Exp $
4
5 EAPI=2
6 inherit eutils toolchain-funcs versionator
7
8 MYP=${PN}_$(replace_version_separator 1 _)
9
10 DESCRIPTION="3D geometrical postscript renderer"
11 HOMEPAGE="http://geant4.kek.jp/~tanaka/DAWN/About_DAWN.html"
12 SRC_URI="http://geant4.kek.jp/~tanaka/src/${MYP}.tgz"
13
14 LICENSE="public-domain"
15 SLOT="0"
16
17 KEYWORDS="amd64 hppa ppc x86"
18 IUSE="doc opengl X"
19
20 RDEPEND="dev-lang/tk
21 X? ( x11-libs/libX11 )
22 opengl? ( virtual/opengl )"
23 DEPEND="${RDEPEND}
24 app-shells/tcsh
25 doc? ( virtual/latex-base )"
26
27 S="${WORKDIR}/${MYP}"
28
29 src_prepare() {
30 epatch "${FILESDIR}"/${P}-no-interactive.patch
31 sed -i -e "s/\$(LIB_DIR)/\$(LDFLAGS) &/" \
32 -e '/strip/d' Makefile*in || die
33 }
34
35 src_compile() {
36 tc-export CXX
37 emake clean
38 emake guiclean
39 if use X; then
40 ./configure_xwin || die
41 else
42 ./configure || die
43 fi
44 einfo "Compiling"
45 emake || die
46 }
47
48 src_install() {
49 dodir /usr/bin
50 emake DESTDIR="${D}" install || die
51 dodoc README.txt
52 if use doc; then
53 pdflatex DOC/G4PRIM_FORMAT_24.tex || die "pdf generation failed"
54 insinto /usr/share/doc/${PF}
55 doins DOC/G4PRIM_FORMAT_24.pdf
56 dohtml DOC/*.html
57 fi
58 }

  ViewVC Help
Powered by ViewVC 1.1.20