From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D51711382C5 for ; Sun, 31 May 2020 18:35:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DF118E0958; Sun, 31 May 2020 18:35:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B014CE0958 for ; Sun, 31 May 2020 18:35:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5FFAE34EF28 for ; Sun, 31 May 2020 18:35:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D060A31 for ; Sun, 31 May 2020 18:35:06 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1590950086.34b6d46037338456d13f1db41549b678fc32f32a.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tclpython/files/, dev-tcltk/tclpython/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch dev-tcltk/tclpython/tclpython-5.0.ebuild X-VCS-Directories: dev-tcltk/tclpython/ dev-tcltk/tclpython/files/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: 34b6d46037338456d13f1db41549b678fc32f32a X-VCS-Branch: master Date: Sun, 31 May 2020 18:35:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 29655416-11b9-4de7-9368-5418821de729 X-Archives-Hash: c35b46a69cf0dc5bdd31c9d18d73832b commit: 34b6d46037338456d13f1db41549b678fc32f32a Author: Alfredo Tupone gentoo org> AuthorDate: Sun May 31 18:34:46 2020 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Sun May 31 18:34:46 2020 +0000 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 }