[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2024-04-20 Thread Alfredo Tupone
commit: 06aea1392aba901291190bcba2c62882383f5c3c
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Sat Apr 20 14:41:33 2024 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Sat Apr 20 14:41:33 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06aea139

dev-tcltk/tclpython: PythonCompatUpdate

Closes: https://bugs.gentoo.org/929525
Signed-off-by: Alfredo Tupone  gentoo.org>

 .../tclpython/{tclpython-5.0-r2.ebuild => tclpython-5.0-r3.ebuild}  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0-r3.ebuild
similarity index 96%
rename from dev-tcltk/tclpython/tclpython-5.0-r2.ebuild
rename to dev-tcltk/tclpython/tclpython-5.0-r3.ebuild
index 26060b8ec2d6..c2d90e8755e1 100644
--- a/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0-r3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..12} )
 
 inherit python-single-r1 toolchain-funcs
 



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2024-02-28 Thread Alfredo Tupone
commit: bc86881d64608b16274b4df3f5cd1de6cee108c8
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Wed Feb 28 20:44:44 2024 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Wed Feb 28 20:46:51 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc86881d

dev-tcltk/tclpython: EmptyGlobalAssignment

Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-tcltk/tclpython/tclpython-5.0-r1.ebuild | 44 -
 dev-tcltk/tclpython/tclpython-5.0-r2.ebuild |  3 +-
 2 files changed, 1 insertion(+), 46 deletions(-)

diff --git a/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
deleted file mode 100644
index 8fb61a8065b1..
--- a/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{9..10} )
-
-inherit python-single-r1 toolchain-funcs
-
-DESCRIPTION="Python package for Tcl"
-HOMEPAGE="http://jfontain.free.fr/tclpython.htm";
-SRC_URI="https://github.com/amykyta3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc x86"
-IUSE=""
-
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-DEPEND="${PYTHON_DEPS}
-   dev-lang/tcl:0="
-RDEPEND="${DEPEND}"
-
-PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
-
-src_compile() {
-   emake PKG_NAME=tclpython3 CC="$(tc-getCC)" \
-   MYCFLAGS="${CFLAGS}" \
-   MYLDFLAGS="${LDFLAGS} $(python_get_library_path)"
-}
-
-src_test() {
-   emake PKG_NAME=tclpython3 CC="$(tc-getCC)" test
-}
-
-src_install() {
-   insinto /usr/$(get_libdir)
-   doins -r build/tclpython3/tclpython3
-   fperms 775 /usr/$(get_libdir)/tclpython3/tclpython3.so.${PV}
-   dosym tclpython3.so.${PV} /usr/$(get_libdir)/tclpython3/tclpython3.so
-
-   dodoc README.md VERSION.md
-}

diff --git a/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild
index 8bdb8a174f15..26060b8ec2d6 100644
--- a/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -14,7 +14,6 @@ 
SRC_URI="https://github.com/amykyta3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ppc x86"
-IUSE=""
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2023-04-19 Thread Sam James
commit: 8962a480c58243396e253c79a60388a25b49d4f9
Author: Sam James  gentoo  org>
AuthorDate: Thu Apr 20 04:02:15 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Apr 20 04:02:27 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8962a480

dev-tcltk/tclpython: Stabilize 5.0-r2 x86, #904635

Signed-off-by: Sam James  gentoo.org>

 dev-tcltk/tclpython/tclpython-5.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild
index b3ea890c0af4..8bdb8a174f15 100644
--- a/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild
@@ -13,7 +13,7 @@ 
SRC_URI="https://github.com/amykyta3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ppc ~x86"
+KEYWORDS="amd64 ppc x86"
 IUSE=""
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2023-04-19 Thread Arthur Zamarin
commit: e442309855be65eeb10ca1ee3575f6429741870f
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Wed Apr 19 18:08:55 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Wed Apr 19 18:08:55 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4423098

dev-tcltk/tclpython: Stabilize 5.0-r2 ppc, #904635

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-tcltk/tclpython/tclpython-5.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild
index 57c3c91237d7..b3ea890c0af4 100644
--- a/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild
@@ -13,7 +13,7 @@ 
SRC_URI="https://github.com/amykyta3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~ppc ~x86"
+KEYWORDS="amd64 ppc ~x86"
 IUSE=""
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2023-04-19 Thread Sam James
commit: 914584f109266f0de80b9f7507df8af4569a5bcf
Author: Sam James  gentoo  org>
AuthorDate: Wed Apr 19 14:06:43 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Apr 19 14:06:43 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=914584f1

dev-tcltk/tclpython: Stabilize 5.0-r2 amd64, #904635

Signed-off-by: Sam James  gentoo.org>

 dev-tcltk/tclpython/tclpython-5.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild
index 0731a9cc5200..57c3c91237d7 100644
--- a/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild
@@ -13,7 +13,7 @@ 
SRC_URI="https://github.com/amykyta3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS="amd64 ~ppc ~x86"
 IUSE=""
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2023-02-26 Thread Alfredo Tupone
commit: 0d86f91154239320e934159ff677c376618a7535
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Sun Feb 26 18:48:59 2023 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Sun Feb 26 18:50:24 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d86f911

dev-tcltk/tclpython: update EAPI 7 -> 8

Closes: https://bugs.gentoo.org/896908
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-tcltk/tclpython/tclpython-5.0-r2.ebuild | 44 +
 1 file changed, 44 insertions(+)

diff --git a/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild
new file mode 100644
index ..0731a9cc5200
--- /dev/null
+++ b/dev-tcltk/tclpython/tclpython-5.0-r2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit python-single-r1 toolchain-funcs
+
+DESCRIPTION="Python package for Tcl"
+HOMEPAGE="http://jfontain.free.fr/tclpython.htm";
+SRC_URI="https://github.com/amykyta3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+   dev-lang/tcl:0="
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_compile() {
+   emake PKG_NAME=tclpython3 CC="$(tc-getCC)" \
+   MYCFLAGS="${CFLAGS}" \
+   MYLDFLAGS="${LDFLAGS} $(python_get_library_path)"
+}
+
+src_test() {
+   emake PKG_NAME=tclpython3 CC="$(tc-getCC)" test
+}
+
+src_install() {
+   insinto /usr/$(get_libdir)
+   doins -r build/tclpython3/tclpython3
+   fperms 775 /usr/$(get_libdir)/tclpython3/tclpython3.so.${PV}
+   dosym tclpython3.so.${PV} /usr/$(get_libdir)/tclpython3/tclpython3.so
+
+   dodoc README.md VERSION.md
+}



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2022-12-04 Thread Alfredo Tupone
commit: dce4e4921f4b15b1e72031dafa587c4361df642d
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Sun Dec  4 21:28:15 2022 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Sun Dec  4 21:28:15 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dce4e492

dev-tcltk/tclpython: add github upstream metadata

Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-tcltk/tclpython/metadata.xml | 11 +++
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/dev-tcltk/tclpython/metadata.xml b/dev-tcltk/tclpython/metadata.xml
index 7c79d6b524d2..f7cd4104c751 100644
--- a/dev-tcltk/tclpython/metadata.xml
+++ b/dev-tcltk/tclpython/metadata.xml
@@ -1,8 +1,11 @@
 
 https://www.gentoo.org/dtd/metadata.dtd";>
 
-  
-tc...@gentoo.org
-Gentoo Tcltk Project
-  
+   
+   tc...@gentoo.org
+   Gentoo Tcltk Project
+   
+   
+   amykyta3/tclpython
+   
 



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2022-03-19 Thread Sam James
commit: 630ad25aa869ba84f007e3a816a13e93621046f1
Author: Sam James  gentoo  org>
AuthorDate: Sun Mar 20 00:45:25 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Mar 20 00:45:25 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=630ad25a

dev-tcltk/tclpython: [QA] fix tc-get* quoting

This can cause build problems for e.g. 32-bit (gcc -m32 ...)

Signed-off-by: Sam James  gentoo.org>

 dev-tcltk/tclpython/tclpython-5.0-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
index 92a9fda120d9..183afd5105c4 100644
--- a/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
@@ -25,13 +25,13 @@ RDEPEND="${DEPEND}"
 PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
 
 src_compile() {
-   emake PKG_NAME=tclpython3 CC=$(tc-getCC) \
+   emake PKG_NAME=tclpython3 CC="$(tc-getCC)" \
MYCFLAGS="${CFLAGS}" \
MYLDFLAGS="${LDFLAGS} $(python_get_library_path)"
 }
 
 src_test() {
-   emake PKG_NAME=tclpython3 CC=$(tc-getCC) test
+   emake PKG_NAME=tclpython3 CC="$(tc-getCC)" test
 }
 
 src_install() {



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/, dev-tcltk/tclpython/files/

2022-02-06 Thread Alfredo Tupone
commit: 68954313c0a0c1715d05989798ee12a2819f8c23
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Sun Feb  6 10:49:20 2022 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Sun Feb  6 10:49:20 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68954313

dev-tcltk/tclpython: PythonCompatUpdate

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch | 20 
 dev-tcltk/tclpython/tclpython-5.0-r1.ebuild  |  4 ++--
 2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch 
b/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch
index c77339982fd6..39bdf20c095c 100644
--- a/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch
+++ b/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch
@@ -24,3 +24,23 @@
  
  ifneq ($(MAKECMDGOALS), clean)
-include $(DEPEND)
+--- a/src/py.c 2022-02-06 10:20:03.352580186 +0100
 b/src/py.c 2022-02-06 11:16:49.504796684 +0100
+@@ -24,7 +24,6 @@
+ // First time initializing Python
+ Py_NoSiteFlag = 1;
+ Py_Initialize();
+-PyEval_InitThreads();
+ GlobalThread = PyEval_SaveThread();
+ }
+ 
+@@ -60,7 +59,8 @@
+ #ifdef WITH_THREAD
+ PyEval_RestoreThread(interp->thread_state);
+ Py_EndInterpreter(interp->thread_state);
+-PyEval_ReleaseLock();
++PyThreadState_Swap(GlobalThread);
++PyEval_SaveThread();
+ #endif
+ 
+ free(interp);

diff --git a/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
index 05156fc6ea87..92a9fda120d9 100644
--- a/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{8,9} )
+PYTHON_COMPAT=( python3_{8..10} )
 
 inherit python-single-r1 toolchain-funcs
 



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2021-09-18 Thread Alfredo Tupone
commit: 15db030cee68179943854eccea6f603ccac89e1c
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Sat Sep 18 16:35:01 2021 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Sat Sep 18 16:50:45 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15db030c

dev-tcltk/tclpython: UnusedInherits

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-tcltk/tclpython/tclpython-5.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
index e3aee334d1f..05156fc6ea8 100644
--- a/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 PYTHON_COMPAT=( python3_{8,9} )
 
-inherit multilib python-single-r1 toolchain-funcs
+inherit python-single-r1 toolchain-funcs
 
 DESCRIPTION="Python package for Tcl"
 HOMEPAGE="http://jfontain.free.fr/tclpython.htm";



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2021-05-31 Thread Michał Górny
commit: 0d14df12e08cebe0ba1b20d3b14d88532916a757
Author: Michał Górny  gentoo  org>
AuthorDate: Mon May 31 20:40:57 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon May 31 20:40:57 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d14df12

dev-tcltk/tclpython: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-tcltk/tclpython/tclpython-5.0.ebuild | 43 
 1 file changed, 43 deletions(-)

diff --git a/dev-tcltk/tclpython/tclpython-5.0.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0.ebuild
deleted file mode 100644
index 52634a962b3..000
--- a/dev-tcltk/tclpython/tclpython-5.0.ebuild
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-PYTHON_COMPAT=( python3_7 )
-
-inherit multilib python-single-r1 toolchain-funcs
-
-DESCRIPTION="Python package for Tcl"
-HOMEPAGE="http://jfontain.free.fr/tclpython.htm";
-SRC_URI="https://github.com/amykyta3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc x86"
-IUSE=""
-
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-DEPEND="${PYTHON_DEPS}
-   dev-lang/tcl:0="
-RDEPEND="${DEPEND}"
-
-PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
-
-src_compile() {
-   emake PKG_NAME=tclpython3 CC=$(tc-getCC) \
-   MYCFLAGS="${CFLAGS}" MYLDFLAGS="${LDFLAGS}"
-}
-
-src_test() {
-   emake PKG_NAME=tclpython3 CC=$(tc-getCC) test
-}
-
-src_install() {
-   insinto /usr/$(get_libdir)
-   doins -r build/tclpython3/tclpython3
-   fperms 775 /usr/$(get_libdir)/tclpython3/tclpython3.so.${PV}
-   dosym tclpython3.so.${PV} /usr/$(get_libdir)/tclpython3/tclpython3.so
-
-   dodoc README.md VERSION.md
-}



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2021-05-23 Thread Alfredo Tupone
commit: 7a102ec16bc1d18d001db2e698d8bc827cef9151
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Sun May 23 10:16:32 2021 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Sun May 23 10:16:32 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a102ec1

dev-tcltk/tclpython: enable python 3.9

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-tcltk/tclpython/tclpython-5.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
index 5ef932e9173..e3aee334d1f 100644
--- a/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_8 )
+PYTHON_COMPAT=( python3_{8,9} )
 
 inherit multilib python-single-r1 toolchain-funcs
 



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2021-04-17 Thread Sam James
commit: c15ac193327ac48e1cb7c1d634a9912d0faf4bf0
Author: Sam James  gentoo  org>
AuthorDate: Sun Apr 18 01:51:23 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Apr 18 01:51:23 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c15ac193

dev-tcltk/tclpython: Stabilize 5.0-r1 ppc, #783246

Signed-off-by: Sam James  gentoo.org>

 dev-tcltk/tclpython/tclpython-5.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
index 3dea5214e82..5ef932e9173 100644
--- a/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
@@ -13,7 +13,7 @@ 
SRC_URI="https://github.com/amykyta3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~ppc x86"
+KEYWORDS="amd64 ppc x86"
 IUSE=""
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2021-04-17 Thread Sam James
commit: 7f2949ac8b6229235b5921cab5ec91aca5900ed0
Author: Sam James  gentoo  org>
AuthorDate: Sun Apr 18 01:42:39 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Apr 18 01:42:39 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f2949ac

dev-tcltk/tclpython: Stabilize 5.0-r1 amd64, #783246

Signed-off-by: Sam James  gentoo.org>

 dev-tcltk/tclpython/tclpython-5.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
index 09b0bf3c8f8..3dea5214e82 100644
--- a/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
@@ -13,7 +13,7 @@ 
SRC_URI="https://github.com/amykyta3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc x86"
+KEYWORDS="amd64 ~ppc x86"
 IUSE=""
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2021-04-12 Thread Alfredo Tupone
commit: c09e69967977655d8bd5664265441ddb81194669
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Mon Apr 12 18:32:31 2021 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Mon Apr 12 18:32:59 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c09e6996

dev-tcltk/tclpython: support python3.8

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-tcltk/tclpython/tclpython-5.0-r1.ebuild | 44 +
 1 file changed, 44 insertions(+)

diff --git a/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
new file mode 100644
index 000..001d6e864a2
--- /dev/null
+++ b/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_8 )
+
+inherit multilib python-single-r1 toolchain-funcs
+
+DESCRIPTION="Python package for Tcl"
+HOMEPAGE="http://jfontain.free.fr/tclpython.htm";
+SRC_URI="https://github.com/amykyta3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+   dev-lang/tcl:0="
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_compile() {
+   emake PKG_NAME=tclpython3 CC=$(tc-getCC) \
+   MYCFLAGS="${CFLAGS}" \
+   MYLDFLAGS="${LDFLAGS} $(python_get_library_path)"
+}
+
+src_test() {
+   emake PKG_NAME=tclpython3 CC=$(tc-getCC) test
+}
+
+src_install() {
+   insinto /usr/$(get_libdir)
+   doins -r build/tclpython3/tclpython3
+   fperms 775 /usr/$(get_libdir)/tclpython3/tclpython3.so.${PV}
+   dosym tclpython3.so.${PV} /usr/$(get_libdir)/tclpython3/tclpython3.so
+
+   dodoc README.md VERSION.md
+}



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/files/, dev-tcltk/tclpython/

2020-09-06 Thread Alfredo Tupone
commit: f9a8111ff4ea565e114080f3db15b582823dd062
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Sun Sep  6 16:39:19 2020 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Sun Sep  6 16:39:19 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9a8111f

dev-tcltk/tclpython: remove old version

Package-Manager: Portage-3.0.4, Repoman-2.3.23
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-tcltk/tclpython/Manifest   |   1 -
 .../tclpython/files/tclpython-4.1-python-3.patch   | 229 -
 dev-tcltk/tclpython/tclpython-4.1-r6.ebuild|  55 -
 3 files changed, 285 deletions(-)

diff --git a/dev-tcltk/tclpython/Manifest b/dev-tcltk/tclpython/Manifest
index 9bd7a795d51..68cb6e9da97 100644
--- a/dev-tcltk/tclpython/Manifest
+++ b/dev-tcltk/tclpython/Manifest
@@ -1,2 +1 @@
-DIST tclpython-4.1.tar.bz2 10580 BLAKE2B 
98d4783cc52bc907c21d50ee393e25ee084b449db7c393c16b0b1f0420469bd0904d16dc2a6806b776dad7dabd521e5f2e8cc942c720d9e69750385302355608
 SHA512 
5f08e7129a7d9afeb1ac6bf1ab1c83ad3bb481593c9516c0653c7b4ba0dfb1b3129a336e64b998cec8ef2d2377a6a366b73c640d25839ab280d5079c0b220d54
 DIST tclpython-5.0.tar.gz 19327 BLAKE2B 
bad25a6eb04dbcd9ca3e9bc81d44f098f31f2acf367ecc32307596d5da3ed95752b3c60d9ee74fc04e21669e0361f0790edad3ad5793c78ece4904beacd92900
 SHA512 
fe15218fe00e921384dbd9611685b86cb6dfacb515a95545079550aeadaaafc3964e6ef0594a268a3fd900f40d178659e8b7f6f2a6d9aa507b59a8be0bd116af

diff --git a/dev-tcltk/tclpython/files/tclpython-4.1-python-3.patch 
b/dev-tcltk/tclpython/files/tclpython-4.1-python-3.patch
deleted file mode 100644
index 2a26f647c10..000
--- a/dev-tcltk/tclpython/files/tclpython-4.1-python-3.patch
+++ /dev/null
@@ -1,229 +0,0 @@
 a/tclpython.c  2006-03-07 16:28:03.0 +0300
-+++ b/tclpython.c  2014-05-06 23:33:41.713623943 +0400
-@@ -19,13 +19,83 @@
- $ cc -fpic -I/usr/local/include/tcltk/tcl8.3 -c tclthread.c
- $ ld -o tclpython.so -Bshareable -L/usr/X11R6/lib -L/usr/local/lib 
-L/usr/local/share/python/config tclpython.o tclthread.o -lpython -lutil 
-lreadline -ltermcap -lcrypt -lgmp -lgdbm -lpq -lz -ltcl83 -ltk83 -lX11
- 
-+Patched for Python 3 with respect to 
https://github.com/facebook/fbthrift/blob/master/thrift/lib/py/protocol/fastbinary.c
-+
- */
- 
- #include 
- #include 
--#include 
-+
-+#if PY_MAJOR_VERSION >= 3
-+#define PyInt_FromLong PyLong_FromLong
-+#define PyInt_AsLong PyLong_AsLong
-+#define PyString_FromStringAndSize PyBytes_FromStringAndSize
-+#else
-+#include 
-+#endif
-+
- #include "tclpython.h"
- 
-+// Mostly copied from cStringIO.c
-+#if PY_MAJOR_VERSION >= 3
-+
-+/** io module in python3. */
-+static PyObject* Python3IO;
-+
-+typedef struct {
-+  PyObject_HEAD
-+  char *buf;
-+  Py_ssize_t pos, string_size;
-+} IOobject;
-+
-+#define IOOOBJECT(O) ((IOobject*)(O))
-+
-+static int
-+IO__opencheck(IOobject *self) {
-+if (!self->buf) {
-+PyErr_SetString(PyExc_ValueError,
-+"I/O operation on closed file");
-+return 0;
-+}
-+return 1;
-+}
-+
-+static PyObject *
-+IO_cgetval(PyObject *self) {
-+if (!IO__opencheck(IOOOBJECT(self))) return NULL;
-+assert(IOOOBJECT(self)->pos >= 0);
-+return PyBytes_FromStringAndSize(((IOobject*)self)->buf,
-+ ((IOobject*)self)->pos);
-+}
-+#endif
-+
-+/* -- PYTHON MODULE SETUP STUFF --- */
-+
-+static PyObject *pythonTclEvaluate(PyObject *self, PyObject *args);
-+
-+static PyMethodDef tclMethods[] = {
-+{"eval", pythonTclEvaluate, METH_VARARGS, "Evaluate a Tcl script."},
-+{0, 0, 0, 0}  
/* sentinel */
-+};
-+
-+#if PY_MAJOR_VERSION >= 3
-+struct module_state {
-+  PyObject *error;
-+};
-+
-+static struct PyModuleDef TclModuleDef = {
-+  PyModuleDef_HEAD_INIT,
-+  "tcl",
-+  NULL,
-+  sizeof(struct module_state),
-+  tclMethods,
-+  NULL,
-+  NULL,
-+  NULL,
-+  NULL
-+};
-+#endif
-+
- #ifndef WIN32
- /* George Petasis, 21 Feb 2006:
-  * The following check cannot be handled correctly
-@@ -66,13 +136,13 @@
- 
- static int pythonInterpreter(ClientData clientData, Tcl_Interp *interpreter, 
int numberOfArguments, Tcl_Obj * CONST arguments[])
- {
--int identifier;
-+intptr_t identifier;
- PyObject *output;
- PyObject *message;
- PyObject *result;
- PyObject *globals;
- char *string = 0;
--int length;
-+Py_ssize_t length;
- Tcl_Obj *object;
- struct Tcl_HashEntry *entry;
- unsigned evaluate;
-@@ -111,12 +181,22 @@
- /* choose start token depending on whether this is an evaluation or an 
execution: */
- result = PyRun_String(Tcl_GetString(arguments[2]), (evaluate? 
Py_eval_input: Py_file_input), globals, globals);
- if (result == 0) {
/* an error occured */
-+#if PY_MAJOR_VERSION 

[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2020-09-04 Thread Sam James
commit: 7c9dc9832dc1c4fedb6cd5ef04423baa5ec29875
Author: Sam James  gentoo  org>
AuthorDate: Fri Sep  4 15:46:58 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Sep  4 15:46:58 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c9dc983

dev-tcltk/tclpython: ppc stable (bug #738732)

Package-Manager: Portage-3.0.4, Repoman-2.3.23
Signed-off-by: Sam James  gentoo.org>

 dev-tcltk/tclpython/tclpython-5.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tcltk/tclpython/tclpython-5.0.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0.ebuild
index fabbc284352..9e90cd3285a 100644
--- a/dev-tcltk/tclpython/tclpython-5.0.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0.ebuild
@@ -13,7 +13,7 @@ 
SRC_URI="https://github.com/amykyta3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~ppc x86"
+KEYWORDS="amd64 ppc x86"
 IUSE=""
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2020-09-01 Thread Sam James
commit: ddb80bb2f66fe93f0783b3c7f1819c8364e2b127
Author: Sam James  gentoo  org>
AuthorDate: Tue Sep  1 20:43:34 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Sep  1 20:43:34 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddb80bb2

dev-tcltk/tclpython: Stabilize 5.0 amd64, #738732

Signed-off-by: Sam James  gentoo.org>

 dev-tcltk/tclpython/tclpython-5.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tcltk/tclpython/tclpython-5.0.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0.ebuild
index d45ca52be14..fabbc284352 100644
--- a/dev-tcltk/tclpython/tclpython-5.0.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0.ebuild
@@ -13,7 +13,7 @@ 
SRC_URI="https://github.com/amykyta3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc x86"
+KEYWORDS="amd64 ~ppc x86"
 IUSE=""
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2020-08-29 Thread Thomas Deutschmann
commit: 4ec31313c574fe0e84022e8ac4308464054e05cf
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Sun Aug 30 01:29:12 2020 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Sun Aug 30 01:32:11 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ec31313

dev-tcltk/tclpython: x86 stable (bug #738732)

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Thomas Deutschmann  gentoo.org>

 dev-tcltk/tclpython/tclpython-5.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tcltk/tclpython/tclpython-5.0.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0.ebuild
index 69a6e60dc5e..d45ca52be14 100644
--- a/dev-tcltk/tclpython/tclpython-5.0.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0.ebuild
@@ -13,7 +13,7 @@ 
SRC_URI="https://github.com/amykyta3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS="~amd64 ~ppc x86"
 IUSE=""
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2020-08-17 Thread Alfredo Tupone
commit: d4e80334f0517f5add33dc6ab9c7b6e2dd8e2d37
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Mon Aug 17 09:12:29 2020 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Mon Aug 17 09:12:29 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4e80334

dev-tcltk/tclpython: add python3.7

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-tcltk/tclpython/tclpython-5.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tcltk/tclpython/tclpython-5.0.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0.ebuild
index 2603ce545fd..69a6e60dc5e 100644
--- a/dev-tcltk/tclpython/tclpython-5.0.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-PYTHON_COMPAT=( python3_6 )
+PYTHON_COMPAT=( python3_{6,7} )
 
 inherit multilib python-single-r1 toolchain-funcs
 



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/, dev-tcltk/tclpython/files/

2020-06-01 Thread Alfredo Tupone
commit: 9dfbf7a90b70366380cc9daf70d0a90a37078d2c
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Mon Jun  1 13:12:39 2020 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Mon Jun  1 13:12:39 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dfbf7a9

dev-tcltk/tclpython: do not use colon in sed

Closes: https://bugs.gentoo.org/726610
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch |  4 ++--
 dev-tcltk/tclpython/tclpython-5.0.ebuild | 11 ++-
 2 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch 
b/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch
index 965fe3d8d72..c77339982fd 100644
--- a/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch
+++ b/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch
@@ -5,12 +5,12 @@
  
  TCL_VERSION=$(shell echo 'puts $\$$tcl_version' | tclsh)
 -CFLAGS:= -O2 -Wall -fPIC -DUSE_TCL_STUBS
-+CFLAGS:= @CFLAGS@ -fPIC -DUSE_TCL_STUBS
++CFLAGS:= $(MYCFLAGS) -fPIC -DUSE_TCL_STUBS
  CFLAGS+= $(shell $(PYTHON_CONFIG) --includes)
  CFLAGS+= -I/usr/include/tcl$(TCL_VERSION)
  CFLAGS+= -DTCLPYTHON_VERSION=$(PKG_VERSION)
 -LDFLAGS:= -shared -s
-+LDFLAGS:= @LDFLAGS@ -shared
++LDFLAGS:= $(MYLDFLAGS) -shared
  LDFLAGS+= $(shell $(PYTHON_CONFIG) --libs)
  LDFLAGS+= -ltclstub$(TCL_VERSION)
  

diff --git a/dev-tcltk/tclpython/tclpython-5.0.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0.ebuild
index 90df040a57a..2603ce545fd 100644
--- a/dev-tcltk/tclpython/tclpython-5.0.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0.ebuild
@@ -24,16 +24,9 @@ RDEPEND="${DEPEND}"
 
 PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
 
-src_prepare() {
-   default
-   sed -i \
-   -e "s:@CFLAGS@:${CFLAGS}:g" \
-   -e "s:@LDFLAGS@:${LDFLAGS}:g" \
-   Makefile || die
-}
-
 src_compile() {
-   emake PKG_NAME=tclpython3 CC=$(tc-getCC)
+   emake PKG_NAME=tclpython3 CC=$(tc-getCC) \
+   MYCFLAGS="${CFLAGS}" MYLDFLAGS="${LDFLAGS}"
 }
 
 src_test() {



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/files/, dev-tcltk/tclpython/

2020-05-31 Thread Alfredo Tupone
commit: 34b6d46037338456d13f1db41549b678fc32f32a
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Sun May 31 18:34:46 2020 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Sun May 31 18:34:46 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34b6d460

dev-tcltk/tclpython: CFLAGS/LDFLAGS/strip

Closes: https://bugs.gentoo.org/724062
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Alfredo Tupone  gentoo.org>

 .../tclpython/files/tclpython-5.0-gentoo.patch | 14 ++
 dev-tcltk/tclpython/tclpython-5.0.ebuild   | 32 ++
 2 files changed, 28 insertions(+), 18 deletions(-)

diff --git a/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch 
b/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch
index 7f4aa0bf5a2..965fe3d8d72 100644
--- a/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch
+++ b/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch
@@ -1,5 +1,19 @@
 --- a/Makefile 2018-10-28 17:21:20.274137396 +0100
 +++ b/Makefile 2018-10-28 17:21:47.696694473 +0100
+@@ -16,11 +16,11 @@
+ LIBRARY:= $(PKG_NAME).so.$(PKG_VERSION)
+ 
+ TCL_VERSION=$(shell echo 'puts $\$$tcl_version' | tclsh)
+-CFLAGS:= -O2 -Wall -fPIC -DUSE_TCL_STUBS
++CFLAGS:= @CFLAGS@ -fPIC -DUSE_TCL_STUBS
+ CFLAGS+= $(shell $(PYTHON_CONFIG) --includes)
+ CFLAGS+= -I/usr/include/tcl$(TCL_VERSION)
+ CFLAGS+= -DTCLPYTHON_VERSION=$(PKG_VERSION)
+-LDFLAGS:= -shared -s
++LDFLAGS:= @LDFLAGS@ -shared
+ LDFLAGS+= $(shell $(PYTHON_CONFIG) --libs)
+ LDFLAGS+= -ltclstub$(TCL_VERSION)
+ 
 @@ -62,7 +62,8 @@
  $(OUTPUT_DIR)/pkgIndex.tcl:pkg/pkgIndex.tcl
cp -t $(dir $@) $^

diff --git a/dev-tcltk/tclpython/tclpython-5.0.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0.ebuild
index 92786421ee1..90df040a57a 100644
--- a/dev-tcltk/tclpython/tclpython-5.0.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0.ebuild
@@ -24,31 +24,27 @@ RDEPEND="${DEPEND}"
 
 PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
 
+src_prepare() {
+   default
+   sed -i \
+   -e "s:@CFLAGS@:${CFLAGS}:g" \
+   -e "s:@LDFLAGS@:${LDFLAGS}:g" \
+   Makefile || die
+}
+
 src_compile() {
-   if python_is_python3; then
-   PKG_NAME=tclpython3
-   else
-   PKG_NAME=tclpython
-   fi
-   emake PKG_NAME=${PKG_NAME} CC=$(tc-getCC)
+   emake PKG_NAME=tclpython3 CC=$(tc-getCC)
 }
 
 src_test() {
-   emake PKG_NAME=${PKG_NAME} CC=$(tc-getCC) test
+   emake PKG_NAME=tclpython3 CC=$(tc-getCC) test
 }
 
 src_install() {
-   if python_is_python3; then
-   insinto /usr/$(get_libdir)
-   doins -r build/tclpython3/tclpython3
-   fperms 775 /usr/$(get_libdir)/tclpython3/tclpython3.so.${PV}
-   dosym tclpython3.so.${PV} 
/usr/$(get_libdir)/tclpython3/tclpython3.so
-   else
-   insinto /usr/$(get_libdir)
-   doins -r build/tclpython/tclpython
-   fperms 775 /usr/$(get_libdir)/tclpython/tclpython.so.${PV}
-   dosym tclpython.so.${PV} 
/usr/$(get_libdir)/tclpython/tclpython3.so
-   fi
+   insinto /usr/$(get_libdir)
+   doins -r build/tclpython3/tclpython3
+   fperms 775 /usr/$(get_libdir)/tclpython3/tclpython3.so.${PV}
+   dosym tclpython3.so.${PV} /usr/$(get_libdir)/tclpython3/tclpython3.so
 
dodoc README.md VERSION.md
 }



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2020-02-10 Thread Michał Górny
commit: 5ad5cd34f875003265337c37866659bf5a1b3bc9
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Feb 10 11:38:35 2020 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Feb 10 11:54:06 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ad5cd34

dev-tcltk/tclpython: Remove old (py2)

Signed-off-by: Michał Górny  gentoo.org>

 dev-tcltk/tclpython/tclpython-4.1-r4.ebuild | 54 -
 1 file changed, 54 deletions(-)

diff --git a/dev-tcltk/tclpython/tclpython-4.1-r4.ebuild 
b/dev-tcltk/tclpython/tclpython-4.1-r4.ebuild
deleted file mode 100644
index 3508b6c02a1..000
--- a/dev-tcltk/tclpython/tclpython-4.1-r4.ebuild
+++ /dev/null
@@ -1,54 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-PYTHON_COMPAT=( python2_7 )
-
-inherit eutils multilib python-single-r1 toolchain-funcs
-
-DESCRIPTION="Python package for Tcl"
-HOMEPAGE="http://jfontain.free.fr/tclpython.htm";
-SRC_URI="http://jfontain.free.fr/${P}.tar.bz2";
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc x86"
-IUSE=""
-
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-DEPEND="${PYTHON_DEPS}
-   dev-lang/tcl:0="
-RDEPEND="${DEPEND}"
-
-PATCHES=(
-   "${FILESDIR}"/${P}-python-3.patch
-)
-
-src_prepare() {
-   epatch "${PATCHES[@]}"
-}
-
-src_compile() {
-   local cfile="tclpython tclthread"
-   for src in ${cfile}; do
-   compile="$(tc-getCC) -shared -fPIC ${CFLAGS} 
-I$(python_get_includedir) -c ${src}.c"
-   einfo "${compile}"
-   eval "${compile}" || die
-   done
-
-   link="$(tc-getCC) -fPIC -shared ${LDFLAGS} -o tclpython.so.${PV} 
tclpython.o tclthread.o -lpthread -lutil $(python_get_LIBS) -ltcl"
-   einfo "${link}"
-   eval "${link}" || die
-}
-
-src_install() {
-   insinto /usr/$(get_libdir)/tclpython
-   doins tclpython.so.${PV} pkgIndex.tcl
-   fperms 775 /usr/$(get_libdir)/tclpython/tclpython.so.${PV}
-   dosym tclpython.so.${PV} /usr/$(get_libdir)/tclpython/tclpython.so
-
-   dodoc CHANGES INSTALL README
-   dohtml tclpython.htm
-}



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2020-02-10 Thread Michał Górny
commit: eb5dfd1f3b4c87354692cb6f8fa6530c0d23b77c
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Feb 10 11:38:45 2020 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Feb 10 11:54:07 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb5dfd1f

dev-tcltk/tclpython: Remove py2

Signed-off-by: Michał Górny  gentoo.org>

 dev-tcltk/tclpython/tclpython-4.1-r6.ebuild | 2 +-
 dev-tcltk/tclpython/tclpython-5.0.ebuild| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild 
b/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild
index 3c865021275..e6896c3a015 100644
--- a/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild
+++ b/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=5
 
-PYTHON_COMPAT=( python{2_7,3_6} )
+PYTHON_COMPAT=( python3_6 )
 
 inherit eutils multilib python-single-r1 toolchain-funcs
 

diff --git a/dev-tcltk/tclpython/tclpython-5.0.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0.ebuild
index 484457e3048..92786421ee1 100644
--- a/dev-tcltk/tclpython/tclpython-5.0.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-PYTHON_COMPAT=( python{2_7,3_6} )
+PYTHON_COMPAT=( python3_6 )
 
 inherit multilib python-single-r1 toolchain-funcs
 



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2018-10-30 Thread Alfredo Tupone
commit: a3d8dbad0c183b282a7184a76320a511afd54120
Author: Tupone Alfredo  gentoo  org>
AuthorDate: Tue Oct 30 19:34:48 2018 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Tue Oct 30 19:34:48 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3d8dbad

dev-tcltk/tclpython: Fix test

Signed-off-by: Alfredo Tupone  gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11

 dev-tcltk/tclpython/tclpython-5.0.ebuild | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dev-tcltk/tclpython/tclpython-5.0.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0.ebuild
index e4a170a603e..f7c6efb3ea7 100644
--- a/dev-tcltk/tclpython/tclpython-5.0.ebuild
+++ b/dev-tcltk/tclpython/tclpython-5.0.ebuild
@@ -25,7 +25,6 @@ RDEPEND="${DEPEND}"
 PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
 
 src_compile() {
-   local PKG_NAME
if python_is_python3; then
PKG_NAME=tclpython3
else
@@ -34,6 +33,10 @@ src_compile() {
emake PKG_NAME=${PKG_NAME} CC=$(tc-getCC)
 }
 
+src_test() {
+   emake PKG_NAME=${PKG_NAME} CC=$(tc-getCC) test
+}
+
 src_install() {
if python_is_python3; then
insinto /usr/$(get_libdir)



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/, dev-tcltk/tclpython/files/

2018-10-29 Thread Alfredo Tupone
commit: 12bb26e7487c4fb04cbfd2fe45a04876a3b1e1b0
Author: Tupone Alfredo  gentoo  org>
AuthorDate: Mon Oct 29 07:57:47 2018 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Mon Oct 29 07:57:47 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12bb26e7

dev-tcltk/tclpython: Version bump to 5.0

Signed-off-by: Alfredo Tupone  gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11

 dev-tcltk/tclpython/Manifest   |  1 +
 .../tclpython/files/tclpython-5.0-gentoo.patch | 12 +
 dev-tcltk/tclpython/tclpython-5.0.ebuild   | 51 ++
 3 files changed, 64 insertions(+)

diff --git a/dev-tcltk/tclpython/Manifest b/dev-tcltk/tclpython/Manifest
index 54cd3528959..9bd7a795d51 100644
--- a/dev-tcltk/tclpython/Manifest
+++ b/dev-tcltk/tclpython/Manifest
@@ -1 +1,2 @@
 DIST tclpython-4.1.tar.bz2 10580 BLAKE2B 
98d4783cc52bc907c21d50ee393e25ee084b449db7c393c16b0b1f0420469bd0904d16dc2a6806b776dad7dabd521e5f2e8cc942c720d9e69750385302355608
 SHA512 
5f08e7129a7d9afeb1ac6bf1ab1c83ad3bb481593c9516c0653c7b4ba0dfb1b3129a336e64b998cec8ef2d2377a6a366b73c640d25839ab280d5079c0b220d54
+DIST tclpython-5.0.tar.gz 19327 BLAKE2B 
bad25a6eb04dbcd9ca3e9bc81d44f098f31f2acf367ecc32307596d5da3ed95752b3c60d9ee74fc04e21669e0361f0790edad3ad5793c78ece4904beacd92900
 SHA512 
fe15218fe00e921384dbd9611685b86cb6dfacb515a95545079550aeadaaafc3964e6ef0594a268a3fd900f40d178659e8b7f6f2a6d9aa507b59a8be0bd116af

diff --git a/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch 
b/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch
new file mode 100644
index 000..7f4aa0bf5a2
--- /dev/null
+++ b/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch
@@ -0,0 +1,12 @@
+--- a/Makefile 2018-10-28 17:21:20.274137396 +0100
 b/Makefile 2018-10-28 17:21:47.696694473 +0100
+@@ -62,7 +62,8 @@
+ $(OUTPUT_DIR)/pkgIndex.tcl:pkg/pkgIndex.tcl
+   cp -t $(dir $@) $^
+   
+-package: $(OUTPUT_DIR)/$(LIBRARY) $(OUTPUT_DIR)/pkgIndex.tcl
++package: $(OUTPUT_DIR)/$(LIBRARY)
++  ${MAKE} $(OUTPUT_DIR)/pkgIndex.tcl
+ 
+ ifneq ($(MAKECMDGOALS), clean)
+   -include $(DEPEND)

diff --git a/dev-tcltk/tclpython/tclpython-5.0.ebuild 
b/dev-tcltk/tclpython/tclpython-5.0.ebuild
new file mode 100644
index 000..e4a170a603e
--- /dev/null
+++ b/dev-tcltk/tclpython/tclpython-5.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit multilib python-single-r1 toolchain-funcs
+
+DESCRIPTION="Python package for Tcl"
+HOMEPAGE="http://jfontain.free.fr/tclpython.htm";
+SRC_URI="https://github.com/amykyta3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+   dev-lang/tcl:0="
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_compile() {
+   local PKG_NAME
+   if python_is_python3; then
+   PKG_NAME=tclpython3
+   else
+   PKG_NAME=tclpython
+   fi
+   emake PKG_NAME=${PKG_NAME} CC=$(tc-getCC)
+}
+
+src_install() {
+   if python_is_python3; then
+   insinto /usr/$(get_libdir)
+   doins -r build/tclpython3/tclpython3
+   fperms 775 /usr/$(get_libdir)/tclpython3/tclpython3.so.${PV}
+   dosym tclpython3.so.${PV} 
/usr/$(get_libdir)/tclpython3/tclpython3.so
+   else
+   insinto /usr/$(get_libdir)
+   doins -r build/tclpython/tclpython
+   fperms 775 /usr/$(get_libdir)/tclpython/tclpython.so.${PV}
+   dosym tclpython.so.${PV} 
/usr/$(get_libdir)/tclpython/tclpython3.so
+   fi
+
+   dodoc README.md VERSION.md
+}



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2017-09-12 Thread Matt Turner
commit: 729ba4c6fe3df75765470945fc85fead4cae7c8f
Author: Matt Turner  gentoo  org>
AuthorDate: Tue Sep 12 23:02:40 2017 +
Commit: Matt Turner  gentoo  org>
CommitDate: Tue Sep 12 23:02:40 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=729ba4c6

dev-tcltk/tclpython-4.1-r6: ppc stable, bug 625076

 dev-tcltk/tclpython/tclpython-4.1-r6.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild 
b/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild
index b966a0f8f44..6359b225c9f 100644
--- a/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild
+++ b/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://jfontain.free.fr/${P}.tar.bz2";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~ppc x86"
+KEYWORDS="amd64 ppc x86"
 IUSE=""
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2017-08-05 Thread Michael Palimaka
commit: 7ab0084a63271ece4b5fefc046180c808037b263
Author: Michael Palimaka  gentoo  org>
AuthorDate: Sat Aug  5 08:22:28 2017 +
Commit: Michael Palimaka  gentoo  org>
CommitDate: Sat Aug  5 08:22:35 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ab0084a

dev-tcltk/tclpython: x86 stable

Gentoo-bug: 625076
Package-Manager: Portage-2.3.6, Repoman-2.3.3

 dev-tcltk/tclpython/tclpython-4.1-r6.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild 
b/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild
index a531445a79e..b966a0f8f44 100644
--- a/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild
+++ b/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://jfontain.free.fr/${P}.tar.bz2";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~ppc ~x86"
+KEYWORDS="amd64 ~ppc x86"
 IUSE=""
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2017-07-31 Thread Tobias Klausmann
commit: 851372339b117b9cd3aa359424656e4b8560d041
Author: Tobias Klausmann  gentoo  org>
AuthorDate: Mon Jul 31 11:02:22 2017 +
Commit: Tobias Klausmann  gentoo  org>
CommitDate: Mon Jul 31 11:02:22 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85137233

dev-tcltk/tclpython-4.1-r6: amd64 stable

Gentoo-Bug: 625076

 dev-tcltk/tclpython/tclpython-4.1-r6.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild 
b/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild
index 9283c7b0546..a531445a79e 100644
--- a/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild
+++ b/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://jfontain.free.fr/${P}.tar.bz2";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS="amd64 ~ppc ~x86"
 IUSE=""
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2017-07-12 Thread Pacho Ramos
commit: 66be263c1288d4756579dee5dabe4fa7c5f19668
Author: Pacho Ramos  gentoo  org>
AuthorDate: Wed Jul 12 14:40:07 2017 +
Commit: Pacho Ramos  gentoo  org>
CommitDate: Wed Jul 12 14:42:50 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66be263c

dev-tcltk/tclpython: Support newer python

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 dev-tcltk/tclpython/tclpython-4.1-r6.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild 
b/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild
index a3384de8615..9283c7b0546 100644
--- a/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild
+++ b/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
 
-PYTHON_COMPAT=( python{2_7,3_4} )
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
 
 inherit eutils multilib python-single-r1 toolchain-funcs
 



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2016-03-12 Thread Patrice Clement
commit: 7d5c5498e365b80dfc38f15c21235596be434ab0
Author: Patrice Clement  gentoo  org>
AuthorDate: Sat Mar 12 20:38:24 2016 +
Commit: Patrice Clement  gentoo  org>
CommitDate: Sat Mar 12 20:40:05 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d5c5498

dev-tcltk/tclpython: Remove offending ebuild to get the tree back to a normal 
state.

See this QA report:
https://qa-reports.gentoo.org/output/gentoo-ci/7e6d83c/output.html#dev-tcltk/tclpython

Package-Manager: portage-2.2.26

 dev-tcltk/tclpython/tclpython-4.1-r5.ebuild | 56 -
 1 file changed, 56 deletions(-)

diff --git a/dev-tcltk/tclpython/tclpython-4.1-r5.ebuild 
b/dev-tcltk/tclpython/tclpython-4.1-r5.ebuild
deleted file mode 100644
index a8787e6..000
--- a/dev-tcltk/tclpython/tclpython-4.1-r5.ebuild
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-PYTHON_COMPAT=( python{2_7,3_3,3_4} )
-
-inherit eutils multilib python-single-r1 toolchain-funcs
-
-DESCRIPTION="Python package for Tcl"
-HOMEPAGE="http://jfontain.free.fr/tclpython.htm";
-SRC_URI="http://jfontain.free.fr/${P}.tar.bz2";
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE=""
-
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-DEPEND="${PYTHON_DEPS}
-   dev-lang/tcl:0=
-   sys-devel/binutils:0="
-RDEPEND="${DEPEND}"
-
-PATCHES=(
-   "${FILESDIR}"/${P}-python-3.patch
-)
-
-src_prepare() {
-   epatch ${PATCHES[@]}
-}
-
-src_compile() {
-   local cfile="tclpython tclthread"
-   for src in ${cfile}; do
-   compile="$(tc-getCC) -shared -fPIC ${CFLAGS} 
-I$(python_get_includedir) -c ${src}.c"
-   einfo "${compile}"
-   eval "${compile}" || die
-   done
-
-   link="$(tc-getCC) -fPIC -shared ${LDFLAGS} -o tclpython.so.${PV} 
tclpython.o tclthread.o -lpthread -lutil $(python_get_LIBS) -ltcl"
-   einfo "${link}"
-   eval "${link}" || die
-}
-
-src_install() {
-   insinto /usr/$(get_libdir)/tclpython
-   doins tclpython.so.${PV} pkgIndex.tcl
-   fperms 775 /usr/$(get_libdir)/tclpython/tclpython.so.${PV}
-   dosym tclpython.so.${PV} /usr/$(get_libdir)/tclpython/tclpython.so
-
-   dodoc CHANGES INSTALL README
-   dohtml tclpython.htm
-}



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2016-03-11 Thread Daniel Campbell
commit: e446f6701481c7635a99876a4f05d2a8a362a8e8
Author: Daniel Campbell  gentoo  org>
AuthorDate: Fri Mar 11 08:42:57 2016 +
Commit: Daniel Campbell  gentoo  org>
CommitDate: Fri Mar 11 08:46:21 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e446f670

dev-tcltk/tclpython: Correct DEPEND to binutils-libs

See comment 6 in the bug.

Gentoo-Bug: 575518
Gentoo-Bug-URL: https://bugs.gentoo.org/575518

Package-Manager: portage-2.2.27

 dev-tcltk/tclpython/tclpython-4.1-r6.ebuild | 56 +
 1 file changed, 56 insertions(+)

diff --git a/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild 
b/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild
new file mode 100644
index 000..cc5c72a
--- /dev/null
+++ b/dev-tcltk/tclpython/tclpython-4.1-r6.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+
+inherit eutils multilib python-single-r1 toolchain-funcs
+
+DESCRIPTION="Python package for Tcl"
+HOMEPAGE="http://jfontain.free.fr/tclpython.htm";
+SRC_URI="http://jfontain.free.fr/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+   dev-lang/tcl:0=
+   sys-libs/binutils-libs"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+   "${FILESDIR}"/${P}-python-3.patch
+)
+
+src_prepare() {
+   epatch ${PATCHES[@]}
+}
+
+src_compile() {
+   local cfile="tclpython tclthread"
+   for src in ${cfile}; do
+   compile="$(tc-getCC) -shared -fPIC ${CFLAGS} 
-I$(python_get_includedir) -c ${src}.c"
+   einfo "${compile}"
+   eval "${compile}" || die
+   done
+
+   link="$(tc-getCC) -fPIC -shared ${LDFLAGS} -o tclpython.so.${PV} 
tclpython.o tclthread.o -lpthread -lutil $(python_get_LIBS) -ltcl"
+   einfo "${link}"
+   eval "${link}" || die
+}
+
+src_install() {
+   insinto /usr/$(get_libdir)/tclpython
+   doins tclpython.so.${PV} pkgIndex.tcl
+   fperms 775 /usr/$(get_libdir)/tclpython/tclpython.so.${PV}
+   dosym tclpython.so.${PV} /usr/$(get_libdir)/tclpython/tclpython.so
+
+   dodoc CHANGES INSTALL README
+   dohtml tclpython.htm
+}



[gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/

2016-03-06 Thread Daniel Campbell
commit: 9dcea2843d9a4a175d3f1f44e8b7a823defa1c2b
Author: Daniel Campbell  gentoo  org>
AuthorDate: Mon Mar  7 03:37:40 2016 +
Commit: Daniel Campbell  gentoo  org>
CommitDate: Mon Mar  7 03:38:13 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dcea284

dev-tcltk/tclpython: Revbump, correcting DEPEND

Gentoo-Bug: 575518
Gentoo-Bug-URL: https://bugs.gentoo.org/575518

Package-Manager: portage-2.2.27

 dev-tcltk/tclpython/tclpython-4.1-r5.ebuild | 56 +
 1 file changed, 56 insertions(+)

diff --git a/dev-tcltk/tclpython/tclpython-4.1-r5.ebuild 
b/dev-tcltk/tclpython/tclpython-4.1-r5.ebuild
new file mode 100644
index 000..a8787e6
--- /dev/null
+++ b/dev-tcltk/tclpython/tclpython-4.1-r5.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+
+inherit eutils multilib python-single-r1 toolchain-funcs
+
+DESCRIPTION="Python package for Tcl"
+HOMEPAGE="http://jfontain.free.fr/tclpython.htm";
+SRC_URI="http://jfontain.free.fr/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+   dev-lang/tcl:0=
+   sys-devel/binutils:0="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+   "${FILESDIR}"/${P}-python-3.patch
+)
+
+src_prepare() {
+   epatch ${PATCHES[@]}
+}
+
+src_compile() {
+   local cfile="tclpython tclthread"
+   for src in ${cfile}; do
+   compile="$(tc-getCC) -shared -fPIC ${CFLAGS} 
-I$(python_get_includedir) -c ${src}.c"
+   einfo "${compile}"
+   eval "${compile}" || die
+   done
+
+   link="$(tc-getCC) -fPIC -shared ${LDFLAGS} -o tclpython.so.${PV} 
tclpython.o tclthread.o -lpthread -lutil $(python_get_LIBS) -ltcl"
+   einfo "${link}"
+   eval "${link}" || die
+}
+
+src_install() {
+   insinto /usr/$(get_libdir)/tclpython
+   doins tclpython.so.${PV} pkgIndex.tcl
+   fperms 775 /usr/$(get_libdir)/tclpython/tclpython.so.${PV}
+   dosym tclpython.so.${PV} /usr/$(get_libdir)/tclpython/tclpython.so
+
+   dodoc CHANGES INSTALL README
+   dohtml tclpython.htm
+}