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 98F54158089 for ; Mon, 25 Sep 2023 07:02:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6C1F2BC029; Mon, 25 Sep 2023 07:02:27 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9ECAB2BC029 for ; Mon, 25 Sep 2023 07:02:27 +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 B9815335C7E for ; Mon, 25 Sep 2023 07:02:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4FE561222 for ; Mon, 25 Sep 2023 07:02:25 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1695625331.26f1197752cd095e4a8d2edc4facbae32b9a192d.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/sablotron/, app-text/sablotron/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/sablotron/files/1.0.3-drop-register-keyword.patch app-text/sablotron/sablotron-1.0.3-r3.ebuild X-VCS-Directories: app-text/sablotron/ app-text/sablotron/files/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 26f1197752cd095e4a8d2edc4facbae32b9a192d X-VCS-Branch: master Date: Mon, 25 Sep 2023 07:02:25 +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: 0eee447d-e461-49eb-8b13-6ac53981d3dd X-Archives-Hash: 8e9b3c4234780d486ff8a4d6fa854e07 commit: 26f1197752cd095e4a8d2edc4facbae32b9a192d Author: Brahmajit Das gmail com> AuthorDate: Mon Sep 11 17:41:16 2023 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Mon Sep 25 07:02:11 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26f11977 app-text/sablotron: Fix C++17 does not allow register storage class And update EAPI 7 -> 8 Closes: https://bugs.gentoo.org/894710 Signed-off-by: Brahmajit Das gmail.com> Closes: https://github.com/gentoo/gentoo/pull/32726 Signed-off-by: Arthur Zamarin gentoo.org> .../files/1.0.3-drop-register-keyword.patch | 14 ++++++ app-text/sablotron/sablotron-1.0.3-r3.ebuild | 57 ++++++++++++++++++++++ 2 files changed, 71 insertions(+) diff --git a/app-text/sablotron/files/1.0.3-drop-register-keyword.patch b/app-text/sablotron/files/1.0.3-drop-register-keyword.patch new file mode 100644 index 000000000000..3dcf8c881efa --- /dev/null +++ b/app-text/sablotron/files/1.0.3-drop-register-keyword.patch @@ -0,0 +1,14 @@ +Bug: https://bugs.gentoo.org/894710 +--- a/src/engine/hash.cpp ++++ b/src/engine/hash.cpp +@@ -305,8 +305,8 @@ void HashTable::report(Sit S, MsgType type, MsgCode code, const Str& arg1, const + + oolong hash(const Str& key) + { +- register oolong a, b, c, len; +- register const char *k = (const char*) key; ++ oolong a, b, c, len; ++ const char *k = (const char*) key; + + /* Set up the internal state */ + len = key.length(); diff --git a/app-text/sablotron/sablotron-1.0.3-r3.ebuild b/app-text/sablotron/sablotron-1.0.3-r3.ebuild new file mode 100644 index 000000000000..75dc3320a516 --- /dev/null +++ b/app-text/sablotron/sablotron-1.0.3-r3.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +MY_PN="Sablot" +MY_P="${MY_PN}-${PV}" +S=${WORKDIR}/${MY_P} + +DESCRIPTION="An XSLT Parser in C++" +HOMEPAGE="https://sourceforge.net/projects/sablotron/" +SRC_URI="mirror://sourceforge/sablotron/${MY_P}.tar.gz" + +# Sablotron can optionally be built under GPL, using MPL for now +LICENSE="MPL-1.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="perl" + +RDEPEND=" + >=dev-libs/expat-1.95.6-r1 +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + >=dev-perl/XML-Parser-2.3 +" +DOCS=( + README README_JS RELEASE src/TODO +) +PATCHES=( + "${FILESDIR}"/1.0.3-libsablot-expat.patch + "${FILESDIR}"/1.0.3-cxx11.patch + "${FILESDIR}"/1.0.3-drop-register-keyword.patch +) + +src_prepare() { + default + sed -i configure.in -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' || die + mv configure.{in,ac} || die + eautoreconf +} + +src_configure() { + econf \ + --disable-static \ + $(use_enable perl perlconnect) \ + --with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +}