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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E964215800A for ; Tue, 8 Aug 2023 05:29:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3CF322BC013; Tue, 8 Aug 2023 05:29:43 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 25A5D2BC013 for ; Tue, 8 Aug 2023 05:29:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6C3CC34069F for ; Tue, 8 Aug 2023 05:29:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 06AD6F1F for ; Tue, 8 Aug 2023 05:29:41 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1691472521.9fd7199162f63e68bf6a946b8b83c14090767d46.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/squirrelsh/files/, app-shells/squirrelsh/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-shells/squirrelsh/files/squirrelsh-drop-register.patch app-shells/squirrelsh/squirrelsh-1.2.7-r1.ebuild X-VCS-Directories: app-shells/squirrelsh/files/ app-shells/squirrelsh/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 9fd7199162f63e68bf6a946b8b83c14090767d46 X-VCS-Branch: master Date: Tue, 8 Aug 2023 05:29:41 +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: ad766ad5-368e-4245-911a-3aeacb2d139e X-Archives-Hash: 8d022a859b6bcd873379345dc0227544 commit: 9fd7199162f63e68bf6a946b8b83c14090767d46 Author: Brahmajit Das gmail com> AuthorDate: Tue Aug 8 05:25:47 2023 +0000 Commit: Sam James gentoo org> CommitDate: Tue Aug 8 05:28:41 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fd71991 app-shells/squirrelsh: Fix C++17 does not allow register storage class Closes: https://bugs.gentoo.org/894640 Signed-off-by: Brahmajit Das gmail.com> Closes: https://github.com/gentoo/gentoo/pull/32217 Signed-off-by: Sam James gentoo.org> .../files/squirrelsh-drop-register.patch | 12 ++++++ app-shells/squirrelsh/squirrelsh-1.2.7-r1.ebuild | 48 ++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/app-shells/squirrelsh/files/squirrelsh-drop-register.patch b/app-shells/squirrelsh/files/squirrelsh-drop-register.patch new file mode 100644 index 000000000000..77670ffe12d2 --- /dev/null +++ b/app-shells/squirrelsh/files/squirrelsh-drop-register.patch @@ -0,0 +1,12 @@ +Bug: https://bugs.gentoo.org/894640 +--- a/shell/hash_md5.cpp ++++ b/shell/hash_md5.cpp +@@ -52,7 +52,7 @@ void MD5Init (MD5Context *ctx) + // The core of the MD5 algorithm + void MD5Transform (unsigned buf[4], const unsigned in[16]) + { +- register unsigned a, b, c, d; ++ unsigned a, b, c, d; + + a = buf[0]; + b = buf[1]; diff --git a/app-shells/squirrelsh/squirrelsh-1.2.7-r1.ebuild b/app-shells/squirrelsh/squirrelsh-1.2.7-r1.ebuild new file mode 100644 index 000000000000..1cde35292f6d --- /dev/null +++ b/app-shells/squirrelsh/squirrelsh-1.2.7-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Cross-platform object-oriented scripting shell using the squirrel language" +HOMEPAGE="http://squirrelsh.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="doc" + +RDEPEND="dev-libs/libpcre" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-rename-LDFLAGS.patch + "${FILESDIR}"/${PN}-no-strip.patch + "${FILESDIR}"/${PN}-fix-in_LDFLAGS.patch + "${FILESDIR}"/${PN}-remove-forced-abi.patch + "${FILESDIR}"/${PN}-no-docs.patch + "${FILESDIR}"/${P}-gcc6.patch + "${FILESDIR}"/${PN}-drop-register.patch +) + +src_configure() { + #This package uses a custom written configure script + ./configure --prefix="${D}"/usr \ + --with-cc="$(tc-getCC)" \ + --with-cpp="$(tc-getCXX)" \ + --with-linker="$(tc-getCXX)" \ + --libdir=/usr/"$(get_libdir)" \ + --with-pcre="system" \ + --with-squirrel="local" \ + --with-mime=no || die "configure failed" +} + +src_install() { + emake DESTDIR="${D}" install + doman doc/${PN}.1 + dodoc HISTORY INSTALL README + use doc && dodoc doc/*.pdf +}