* [gentoo-commits] repo/gentoo:master commit in: app-text/sablotron/files/, app-text/sablotron/
@ 2023-09-25 7:02 Arthur Zamarin
0 siblings, 0 replies; only message in thread
From: Arthur Zamarin @ 2023-09-25 7:02 UTC (permalink / raw
To: gentoo-commits
commit: 2dc1d5534a2c067fc129497905211bc0d0cf89db
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 25 06:55:24 2023 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Mon Sep 25 07:02:11 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2dc1d553
app-text/sablotron: cleanup, rename patches
- use array for econf args
- add ${PN} prefix to FILESDIR patches
- organize global scope assignments
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
...0.3-cxx11.patch => sablotron-1.0.3-cxx11.patch} | 0
...=> sablotron-1.0.3-drop-register-keyword.patch} | 0
...patch => sablotron-1.0.3-libsablot-expat.patch} | 4 +--
app-text/sablotron/sablotron-1.0.3-r2.ebuild | 6 ++--
app-text/sablotron/sablotron-1.0.3-r3.ebuild | 36 +++++++++-------------
5 files changed, 20 insertions(+), 26 deletions(-)
diff --git a/app-text/sablotron/files/1.0.3-cxx11.patch b/app-text/sablotron/files/sablotron-1.0.3-cxx11.patch
similarity index 100%
rename from app-text/sablotron/files/1.0.3-cxx11.patch
rename to app-text/sablotron/files/sablotron-1.0.3-cxx11.patch
diff --git a/app-text/sablotron/files/1.0.3-drop-register-keyword.patch b/app-text/sablotron/files/sablotron-1.0.3-drop-register-keyword.patch
similarity index 100%
rename from app-text/sablotron/files/1.0.3-drop-register-keyword.patch
rename to app-text/sablotron/files/sablotron-1.0.3-drop-register-keyword.patch
diff --git a/app-text/sablotron/files/1.0.3-libsablot-expat.patch b/app-text/sablotron/files/sablotron-1.0.3-libsablot-expat.patch
similarity index 97%
rename from app-text/sablotron/files/1.0.3-libsablot-expat.patch
rename to app-text/sablotron/files/sablotron-1.0.3-libsablot-expat.patch
index e4f6c3fdfab3..614a6d7ffe24 100644
--- a/app-text/sablotron/files/1.0.3-libsablot-expat.patch
+++ b/app-text/sablotron/files/sablotron-1.0.3-libsablot-expat.patch
@@ -2,7 +2,7 @@
+++ b/src/engine/Makefile.am
@@ -76,4 +76,5 @@ include_HEADERS = \
sabcfg.h
-
+
libsablot_la_LDFLAGS = -version-info 100:3:100
+libsablot_la_LIBADD = @EXPAT_LIBS@
-
+
diff --git a/app-text/sablotron/sablotron-1.0.3-r2.ebuild b/app-text/sablotron/sablotron-1.0.3-r2.ebuild
index 1b8ec6960d0a..0dcfdf96034b 100644
--- a/app-text/sablotron/sablotron-1.0.3-r2.ebuild
+++ b/app-text/sablotron/sablotron-1.0.3-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -32,8 +32,8 @@ DOCS=(
README README_JS RELEASE src/TODO
)
PATCHES=(
- "${FILESDIR}"/1.0.3-libsablot-expat.patch
- "${FILESDIR}"/1.0.3-cxx11.patch
+ "${FILESDIR}"/${PN}-1.0.3-libsablot-expat.patch
+ "${FILESDIR}"/${PN}-1.0.3-cxx11.patch
)
src_prepare() {
diff --git a/app-text/sablotron/sablotron-1.0.3-r3.ebuild b/app-text/sablotron/sablotron-1.0.3-r3.ebuild
index 75dc3320a516..d702dafc4941 100644
--- a/app-text/sablotron/sablotron-1.0.3-r3.ebuild
+++ b/app-text/sablotron/sablotron-1.0.3-r3.ebuild
@@ -5,13 +5,12 @@ EAPI=8
inherit autotools
-MY_PN="Sablot"
-MY_P="${MY_PN}-${PV}"
-S=${WORKDIR}/${MY_P}
+MY_P="Sablot-${PV}"
DESCRIPTION="An XSLT Parser in C++"
HOMEPAGE="https://sourceforge.net/projects/sablotron/"
SRC_URI="mirror://sourceforge/sablotron/${MY_P}.tar.gz"
+S=${WORKDIR}/${MY_P}
# Sablotron can optionally be built under GPL, using MPL for now
LICENSE="MPL-1.1"
@@ -19,22 +18,16 @@ 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
-)
+DEPEND=">=dev-libs/expat-1.95.6-r1"
+RDEPEND="${DEPEND}"
+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
+ "${FILESDIR}"/${PN}-1.0.3-libsablot-expat.patch
+ "${FILESDIR}"/${PN}-1.0.3-cxx11.patch
+ "${FILESDIR}"/${PN}-1.0.3-drop-register-keyword.patch
)
src_prepare() {
@@ -45,10 +38,11 @@ src_prepare() {
}
src_configure() {
- econf \
- --disable-static \
- $(use_enable perl perlconnect) \
+ local myeconfargs=(
+ $(use_enable perl perlconnect)
--with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html
+ )
+ econf "${myeconfargs[@]}"
}
src_install() {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-25 7:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-25 7:02 [gentoo-commits] repo/gentoo:master commit in: app-text/sablotron/files/, app-text/sablotron/ Arthur Zamarin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox