Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/, dev-tcltk/tclpython/files/
Date: Mon, 29 Oct 2018 07:58:10
Message-Id: 1540799867.12bb26e7487c4fb04cbfd2fe45a04876a3b1e1b0.tupone@gentoo
1 commit: 12bb26e7487c4fb04cbfd2fe45a04876a3b1e1b0
2 Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 29 07:57:47 2018 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 29 07:57:47 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12bb26e7
7
8 dev-tcltk/tclpython: Version bump to 5.0
9
10 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
11 Package-Manager: Portage-2.3.49, Repoman-2.3.11
12
13 dev-tcltk/tclpython/Manifest | 1 +
14 .../tclpython/files/tclpython-5.0-gentoo.patch | 12 +++++
15 dev-tcltk/tclpython/tclpython-5.0.ebuild | 51 ++++++++++++++++++++++
16 3 files changed, 64 insertions(+)
17
18 diff --git a/dev-tcltk/tclpython/Manifest b/dev-tcltk/tclpython/Manifest
19 index 54cd3528959..9bd7a795d51 100644
20 --- a/dev-tcltk/tclpython/Manifest
21 +++ b/dev-tcltk/tclpython/Manifest
22 @@ -1 +1,2 @@
23 DIST tclpython-4.1.tar.bz2 10580 BLAKE2B 98d4783cc52bc907c21d50ee393e25ee084b449db7c393c16b0b1f0420469bd0904d16dc2a6806b776dad7dabd521e5f2e8cc942c720d9e69750385302355608 SHA512 5f08e7129a7d9afeb1ac6bf1ab1c83ad3bb481593c9516c0653c7b4ba0dfb1b3129a336e64b998cec8ef2d2377a6a366b73c640d25839ab280d5079c0b220d54
24 +DIST tclpython-5.0.tar.gz 19327 BLAKE2B bad25a6eb04dbcd9ca3e9bc81d44f098f31f2acf367ecc32307596d5da3ed95752b3c60d9ee74fc04e21669e0361f0790edad3ad5793c78ece4904beacd92900 SHA512 fe15218fe00e921384dbd9611685b86cb6dfacb515a95545079550aeadaaafc3964e6ef0594a268a3fd900f40d178659e8b7f6f2a6d9aa507b59a8be0bd116af
25
26 diff --git a/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch b/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch
27 new file mode 100644
28 index 00000000000..7f4aa0bf5a2
29 --- /dev/null
30 +++ b/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch
31 @@ -0,0 +1,12 @@
32 +--- a/Makefile 2018-10-28 17:21:20.274137396 +0100
33 ++++ b/Makefile 2018-10-28 17:21:47.696694473 +0100
34 +@@ -62,7 +62,8 @@
35 + $(OUTPUT_DIR)/pkgIndex.tcl:pkg/pkgIndex.tcl
36 + cp -t $(dir $@) $^
37 +
38 +-package: $(OUTPUT_DIR)/$(LIBRARY) $(OUTPUT_DIR)/pkgIndex.tcl
39 ++package: $(OUTPUT_DIR)/$(LIBRARY)
40 ++ ${MAKE} $(OUTPUT_DIR)/pkgIndex.tcl
41 +
42 + ifneq ($(MAKECMDGOALS), clean)
43 + -include $(DEPEND)
44
45 diff --git a/dev-tcltk/tclpython/tclpython-5.0.ebuild b/dev-tcltk/tclpython/tclpython-5.0.ebuild
46 new file mode 100644
47 index 00000000000..e4a170a603e
48 --- /dev/null
49 +++ b/dev-tcltk/tclpython/tclpython-5.0.ebuild
50 @@ -0,0 +1,51 @@
51 +# Copyright 1999-2018 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=6
55 +
56 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
57 +
58 +inherit multilib python-single-r1 toolchain-funcs
59 +
60 +DESCRIPTION="Python package for Tcl"
61 +HOMEPAGE="http://jfontain.free.fr/tclpython.htm"
62 +SRC_URI="https://github.com/amykyta3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
63 +
64 +LICENSE="GPL-2"
65 +SLOT="0"
66 +KEYWORDS="~amd64 ~ppc ~x86"
67 +IUSE=""
68 +
69 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
70 +
71 +DEPEND="${PYTHON_DEPS}
72 + dev-lang/tcl:0="
73 +RDEPEND="${DEPEND}"
74 +
75 +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
76 +
77 +src_compile() {
78 + local PKG_NAME
79 + if python_is_python3; then
80 + PKG_NAME=tclpython3
81 + else
82 + PKG_NAME=tclpython
83 + fi
84 + emake PKG_NAME=${PKG_NAME} CC=$(tc-getCC)
85 +}
86 +
87 +src_install() {
88 + if python_is_python3; then
89 + insinto /usr/$(get_libdir)
90 + doins -r build/tclpython3/tclpython3
91 + fperms 775 /usr/$(get_libdir)/tclpython3/tclpython3.so.${PV}
92 + dosym tclpython3.so.${PV} /usr/$(get_libdir)/tclpython3/tclpython3.so
93 + else
94 + insinto /usr/$(get_libdir)
95 + doins -r build/tclpython/tclpython
96 + fperms 775 /usr/$(get_libdir)/tclpython/tclpython.so.${PV}
97 + dosym tclpython.so.${PV} /usr/$(get_libdir)/tclpython/tclpython3.so
98 + fi
99 +
100 + dodoc README.md VERSION.md
101 +}