/[gentoo-x86]/media-gfx/dawn/dawn-3.88a.ebuild
Gentoo

Contents of /media-gfx/dawn/dawn-3.88a.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sat May 23 01:14:11 2015 UTC (5 years, 1 month ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key )

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.88a.ebuild,v 1.10 2011/02/13 12:41:37 armin76 Exp $
4
5 #EAPI=0
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}.taz"
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_unpack() {
30 # unpack does not recognize taz suffix
31 tar xfz "${DISTDIR}"/${MYP}.taz
32 cd "${S}"
33 epatch "${FILESDIR}"/${P}-no-interactive.patch
34 sed -i -e "s/\$(LIB_DIR)/\$(LDFLAGS) &/" \
35 -e '/strip/d' Makefile*in || die
36 }
37
38 src_compile() {
39 tc-export CXX
40 emake clean
41 emake guiclean
42 if ! use X && ! use opengl; then
43 ./configure_min || die
44 elif ! use opengl; then
45 ./configure_xwin || die
46 else
47 ./configure || die
48 fi
49 einfo "Compiling"
50 emake || die
51 }
52
53 src_install() {
54 dodir /usr/bin
55 emake DESTDIR="${D}" install || die
56 dodoc README.txt
57 if use doc; then
58 pdflatex DOC/G4PRIM_FORMAT_24.tex || die "pdf generation failed"
59 insinto /usr/share/doc/${PF}
60 doins DOC/G4PRIM_FORMAT_24.pdf
61 dohtml DOC/*.html
62 fi
63 }

  ViewVC Help
Powered by ViewVC 1.1.20