1 |
commit: 9dcea2843d9a4a175d3f1f44e8b7a823defa1c2b |
2 |
Author: Daniel Campbell <zlg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 7 03:37:40 2016 +0000 |
4 |
Commit: Daniel Campbell <zlg <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 7 03:38:13 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dcea284 |
7 |
|
8 |
dev-tcltk/tclpython: Revbump, correcting DEPEND |
9 |
|
10 |
Gentoo-Bug: 575518 |
11 |
Gentoo-Bug-URL: https://bugs.gentoo.org/575518 |
12 |
|
13 |
Package-Manager: portage-2.2.27 |
14 |
|
15 |
dev-tcltk/tclpython/tclpython-4.1-r5.ebuild | 56 +++++++++++++++++++++++++++++ |
16 |
1 file changed, 56 insertions(+) |
17 |
|
18 |
diff --git a/dev-tcltk/tclpython/tclpython-4.1-r5.ebuild b/dev-tcltk/tclpython/tclpython-4.1-r5.ebuild |
19 |
new file mode 100644 |
20 |
index 0000000..a8787e6 |
21 |
--- /dev/null |
22 |
+++ b/dev-tcltk/tclpython/tclpython-4.1-r5.ebuild |
23 |
@@ -0,0 +1,56 @@ |
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 |
+PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
31 |
+ |
32 |
+inherit eutils multilib python-single-r1 toolchain-funcs |
33 |
+ |
34 |
+DESCRIPTION="Python package for Tcl" |
35 |
+HOMEPAGE="http://jfontain.free.fr/tclpython.htm" |
36 |
+SRC_URI="http://jfontain.free.fr/${P}.tar.bz2" |
37 |
+ |
38 |
+LICENSE="GPL-2" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~ppc ~x86" |
41 |
+IUSE="" |
42 |
+ |
43 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
44 |
+ |
45 |
+DEPEND="${PYTHON_DEPS} |
46 |
+ dev-lang/tcl:0= |
47 |
+ sys-devel/binutils:0=" |
48 |
+RDEPEND="${DEPEND}" |
49 |
+ |
50 |
+PATCHES=( |
51 |
+ "${FILESDIR}"/${P}-python-3.patch |
52 |
+) |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ epatch ${PATCHES[@]} |
56 |
+} |
57 |
+ |
58 |
+src_compile() { |
59 |
+ local cfile="tclpython tclthread" |
60 |
+ for src in ${cfile}; do |
61 |
+ compile="$(tc-getCC) -shared -fPIC ${CFLAGS} -I$(python_get_includedir) -c ${src}.c" |
62 |
+ einfo "${compile}" |
63 |
+ eval "${compile}" || die |
64 |
+ done |
65 |
+ |
66 |
+ link="$(tc-getCC) -fPIC -shared ${LDFLAGS} -o tclpython.so.${PV} tclpython.o tclthread.o -lpthread -lutil $(python_get_LIBS) -ltcl" |
67 |
+ einfo "${link}" |
68 |
+ eval "${link}" || die |
69 |
+} |
70 |
+ |
71 |
+src_install() { |
72 |
+ insinto /usr/$(get_libdir)/tclpython |
73 |
+ doins tclpython.so.${PV} pkgIndex.tcl |
74 |
+ fperms 775 /usr/$(get_libdir)/tclpython/tclpython.so.${PV} |
75 |
+ dosym tclpython.so.${PV} /usr/$(get_libdir)/tclpython/tclpython.so |
76 |
+ |
77 |
+ dodoc CHANGES INSTALL README |
78 |
+ dohtml tclpython.htm |
79 |
+} |