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 ACDB2138330 for ; Mon, 12 Sep 2016 08:14:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F360FE0B85; Mon, 12 Sep 2016 08:14:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C1850E0B85 for ; Mon, 12 Sep 2016 08:14:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 185B933FD3F for ; Mon, 12 Sep 2016 08:14:39 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E6191245E for ; Mon, 12 Sep 2016 08:14:36 +0000 (UTC) From: "Daniel Campbell" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Daniel Campbell" Message-ID: <1473668052.7a54e049805e2a29c5b132f1d703e436970d8cd7.zlg@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/gnu-smalltalk/, dev-lang/gnu-smalltalk/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/gnu-smalltalk/files/gnu-smalltalk-3.2_use-result.patch dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.4-r1.ebuild X-VCS-Directories: dev-lang/gnu-smalltalk/files/ dev-lang/gnu-smalltalk/ X-VCS-Committer: zlg X-VCS-Committer-Name: Daniel Campbell X-VCS-Revision: 7a54e049805e2a29c5b132f1d703e436970d8cd7 X-VCS-Branch: master Date: Mon, 12 Sep 2016 08:14:36 +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-Archives-Salt: 410bc6f8-9dc9-45ce-910c-e751c9023a43 X-Archives-Hash: a886789a53b744af375e6c14c600e919 commit: 7a54e049805e2a29c5b132f1d703e436970d8cd7 Author: Daniel Campbell gentoo org> AuthorDate: Mon Sep 12 08:14:12 2016 +0000 Commit: Daniel Campbell gentoo org> CommitDate: Mon Sep 12 08:14:12 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a54e049 dev-lang/gnu-smalltalk: Fix Tcl_Interp, #492710 * Update EAPI to 6 * Correct hanging symlink QA issue Gentoo-Bug: 492710 Gentoo-Bug-URL: https://bugs.gentoo.org/492710 Package-Manager: portage-2.3.0 .../files/gnu-smalltalk-3.2_use-result.patch | 16 +++++ .../gnu-smalltalk/gnu-smalltalk-3.2.4-r1.ebuild | 75 ++++++++++++++++++++++ 2 files changed, 91 insertions(+) diff --git a/dev-lang/gnu-smalltalk/files/gnu-smalltalk-3.2_use-result.patch b/dev-lang/gnu-smalltalk/files/gnu-smalltalk-3.2_use-result.patch new file mode 100644 index 00000000..b9f9eb6 --- /dev/null +++ b/dev-lang/gnu-smalltalk/files/gnu-smalltalk-3.2_use-result.patch @@ -0,0 +1,16 @@ +--- config.h.in 2013-04-07 22:52:21.000000000 -0700 ++++ config.h.in 2016-06-20 16:46:46.560891256 -0700 +@@ -879,6 +879,13 @@ + #define below would cause a syntax error. */ + #undef _UINT64_T + ++/* Kludgey fix for Gentoo bug #492710, caused by improper use of the Tcl API. ++ * Upstream should be using Tcl_SetObjResult, Tcl_GetObjResult, and/or ++ * Tcl_GetStringResult. This is the simplest way for us to fix it, and should ++ * be removed as soon as GST uses the Tcl interface correctly. ++ */ ++#define USE_INTERP_RESULT 1 ++ + /* Define for Solaris 2.5.1 so the uint8_t typedef from , + , or is not used. If the typedef were allowed, the + #define below would cause a syntax error. */ diff --git a/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.4-r1.ebuild b/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.4-r1.ebuild new file mode 100644 index 00000000..4f6e1c6 --- /dev/null +++ b/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.4-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="6" + +inherit elisp-common flag-o-matic eutils multilib + +DESCRIPTION="GNU Smalltalk" +HOMEPAGE="http://smalltalk.gnu.org" +SRC_URI="mirror://gnu/smalltalk/smalltalk-${PV}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="tk readline emacs gtk gmp" + +DEPEND="app-arch/zip + sys-libs/gdbm + sys-apps/debianutils + dev-libs/libsigsegv + virtual/libffi + emacs? ( virtual/emacs ) + readline? ( sys-libs/readline ) + tk? ( dev-lang/tk ) + gtk? ( =x11-libs/gtk+-2* ) + gmp? ( dev-libs/gmp )" +RDEPEND="" + +S="${WORKDIR}/smalltalk-${PV}" + +SITEFILE=50gnu-smalltalk-gentoo.el + +src_prepare() { + epatch "${FILESDIR}"/SequenceableCollection-size-3.2.4.patch + # fix misuse of the Tcl API, bug 492710 + epatch "${FILESDIR}"/gnu-smalltalk-3.2_use-result.patch +} + +src_configure() { + replace-flags '-O3' '-O2' + econf \ + --libdir=/usr/$(get_libdir) \ + --with-system-libsigsegv \ + --with-system-libffi \ + --with-system-libltdl \ + $(use_with emacs emacs) \ + $(use_with readline readline) \ + $(use_with gmp gmp) \ + $(use_with tk tcl /usr/$(get_libdir)) \ + $(use_with tk tk /usr/$(get_libdir)) \ + $(use_enable gtk gtk) +} + +src_compile() { + emake || die "emake failed" + use emacs && elisp-compile *.el +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc AUTHORS COPYING* ChangeLog NEWS README THANKS TODO + if use emacs; then + elisp-install "${PN}" *.el *.elc + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + fperms 0444 /usr/share/smalltalk/packages.xml +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +}