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 69CB313835A for ; Fri, 14 Aug 2020 10:09:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 71E4BE081B; Fri, 14 Aug 2020 10:08:59 +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 50326E081B for ; Fri, 14 Aug 2020 10:08:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 3B3B134F32E for ; Fri, 14 Aug 2020 10:08:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9B130313 for ; Fri, 14 Aug 2020 10:08:55 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1597399731.8e1c3c9177201436f99353384bfd73c66d79299e.jer@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-cxx11.patch app-text/sablotron/files/1.0.3-libsablot-expat.patch app-text/sablotron/sablotron-1.0.3-r2.ebuild X-VCS-Directories: app-text/sablotron/files/ app-text/sablotron/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 8e1c3c9177201436f99353384bfd73c66d79299e X-VCS-Branch: master Date: Fri, 14 Aug 2020 10:08:55 +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: de1b714d-ff3a-4779-8882-b3b75ae826d6 X-Archives-Hash: a378978374f9a860adbc0983f5f33a8e commit: 8e1c3c9177201436f99353384bfd73c66d79299e Author: Jeroen Roovers gentoo org> AuthorDate: Fri Aug 14 10:04:28 2020 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Fri Aug 14 10:08:51 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e1c3c91 app-text/sablotron: Format sabcmd.cpp for C++11 compatibility While there: - Add IUSE=static-libs and remove .la files - Clean up patch - EAPI=7 - Replace defunct HOMEPAGE/SRC_URI Package-Manager: Portage-3.0.2, Repoman-2.3.23 Closes: https://bugs.gentoo.org/show_bug.cgi?id=726732 Closes: https://bugs.gentoo.org/show_bug.cgi?id=729590 Signed-off-by: Jeroen Roovers gentoo.org> app-text/sablotron/files/1.0.3-cxx11.patch | 11 +++++ .../sablotron/files/1.0.3-libsablot-expat.patch | 2 - app-text/sablotron/sablotron-1.0.3-r2.ebuild | 55 ++++++++++++++++++++++ 3 files changed, 66 insertions(+), 2 deletions(-) diff --git a/app-text/sablotron/files/1.0.3-cxx11.patch b/app-text/sablotron/files/1.0.3-cxx11.patch new file mode 100644 index 00000000000..edc1e3141d9 --- /dev/null +++ b/app-text/sablotron/files/1.0.3-cxx11.patch @@ -0,0 +1,11 @@ +--- a/src/command/sabcmd.cpp ++++ b/src/command/sabcmd.cpp +@@ -168,7 +168,7 @@ + + char askhelp[] = "Type sabcmd --help to display a help message.\n"; + char msgConflict[] = "conflict with preceding switches: "; +-char version_txt[] = "\nsabcmd "SAB_VERSION" ("SAB_DATE")\n"\ ++char version_txt[] = "\nsabcmd " SAB_VERSION " (" SAB_DATE ")\n"\ + "copyright (C) 2000 - 2005 Ginger Alliance (www.gingerall.com)\n"; + char dbg_usage[] = "\nDebugging options:\n"\ + "\t--debug\t\t\tdisplay results of the command line parse\n"\ diff --git a/app-text/sablotron/files/1.0.3-libsablot-expat.patch b/app-text/sablotron/files/1.0.3-libsablot-expat.patch index 328c9e90685..e4f6c3fdfab 100644 --- a/app-text/sablotron/files/1.0.3-libsablot-expat.patch +++ b/app-text/sablotron/files/1.0.3-libsablot-expat.patch @@ -1,5 +1,3 @@ -diff --git a/src/engine/Makefile.am b/src/engine/Makefile.am -index abd2041..1307b1c 100644 --- a/src/engine/Makefile.am +++ b/src/engine/Makefile.am @@ -76,4 +76,5 @@ include_HEADERS = \ diff --git a/app-text/sablotron/sablotron-1.0.3-r2.ebuild b/app-text/sablotron/sablotron-1.0.3-r2.ebuild new file mode 100644 index 00000000000..3d8288a19d6 --- /dev/null +++ b/app-text/sablotron/sablotron-1.0.3-r2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +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 static-libs" + +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 +) + +src_prepare() { + default + sed -i configure.in -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' || die + eautoreconf + elibtoolize +} + +src_configure() { + econf \ + $(use_enable perl perlconnect) \ + $(use_enable static-libs static) \ + --with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +}