Gentoo Archives: gentoo-commits

From: Daniel Campbell <zlg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tcl3d/
Date: Wed, 24 Aug 2016 07:44:14
Message-Id: 1472024637.62c242b56d5a4024e52982cb289a35b29195ce25.zlg@gentoo
1 commit: 62c242b56d5a4024e52982cb289a35b29195ce25
2 Author: Daniel Campbell <zlg <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 24 07:42:56 2016 +0000
4 Commit: Daniel Campbell <zlg <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 24 07:43:57 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62c242b5
7
8 dev-tcltk/tcl3d: Correct path typo, fixes #563400
9
10 Gentoo-Bug: 563400
11 Gentoo-Bug-URL: https://bugs.gentoo.org/563400
12
13 Package-Manager: portage-2.3.0
14
15 dev-tcltk/tcl3d/tcl3d-0.4.0-r1.ebuild | 57 +++++++++++++++++++++++++++++++++++
16 1 file changed, 57 insertions(+)
17
18 diff --git a/dev-tcltk/tcl3d/tcl3d-0.4.0-r1.ebuild b/dev-tcltk/tcl3d/tcl3d-0.4.0-r1.ebuild
19 new file mode 100644
20 index 00000000..a5ccdf3
21 --- /dev/null
22 +++ b/dev-tcltk/tcl3d/tcl3d-0.4.0-r1.ebuild
23 @@ -0,0 +1,57 @@
24 +# Copyright 1999-2016 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +# $Id$
27 +
28 +EAPI=5
29 +
30 +inherit flag-o-matic multilib toolchain-funcs
31 +
32 +DESCRIPTION="Tcl bindings to OpenGL and other 3D libraries"
33 +HOMEPAGE="http://www.tcl3d.org"
34 +SRC_URI="http://www.tcl3d.org/download/${P}.distrib/${PN}-src-${PV}.zip"
35 +
36 +LICENSE="BSD"
37 +SLOT="0"
38 +KEYWORDS="~amd64"
39 +IUSE="debug"
40 +
41 +RDEPEND="
42 + dev-games/ode
43 + dev-lang/tk:0=
44 + dev-lang/tcl:0=
45 + media-libs/libsdl
46 + media-libs/ftgl
47 + virtual/opengl
48 +"
49 +DEPEND="${RDEPEND}
50 + >=dev-lang/swig-1.3.19"
51 +
52 +S="${WORKDIR}/${PN}"
53 +
54 +src_prepare() {
55 + TCL_VERSION=( $(echo 'puts [info tclversion]' | tclsh | tr '.' ' ') )
56 + einfo "Configuring for Tcl ${TCL_VERSION[0]}.${TCL_VERSION[1]}"
57 + sed -i \
58 + -e 's:^\(TCLMAJOR\) *=\(.*\)$:\1 = '${TCL_VERSION[0]}':' \
59 + -e 's:^\(TCLMINOR\) *=\(.*\)$:\1 = '${TCL_VERSION[1]}':' \
60 + config_Linux* || die
61 +
62 + # fix libSDL link
63 + sed -i \
64 + -e 's:-lSDL-1\.2:-lSDL:g' \
65 + tcl3dSDL/Makefile || die
66 +}
67 +
68 +src_compile() {
69 + append-flags -mieee-fp -ffloat-store -fPIC
70 + use debug || append-flags -DNDEBUG
71 +
72 + emake \
73 + INSTDIR="/usr" OPT="${CFLAGS}" CC="$(tc-getCC) -c" \
74 + CXX="$(tc-getCXX) -c" LD="$(tc-getLD)" \
75 + WRAP_FTGL=1 WRAP_SDL=1 WRAP_GL2PS=0 WRAP_ODE=1
76 +}
77 +
78 +src_install() {
79 + emake INSTDIR="${D}/usr" DESTDIR="${D}" INSTLIB="${D}/usr/$(get_libdir)" install
80 +}