Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/xalan-c/files/, dev-libs/xalan-c/
Date: Tue, 18 Feb 2020 19:11:54
Message-Id: 1582053070.315334b53166562660a4cce84d8e001ca018824b.soap@gentoo
1 commit: 315334b53166562660a4cce84d8e001ca018824b
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 18 19:11:10 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 18 19:11:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=315334b5
7
8 dev-libs/xalan-c: Port to EAPI 7
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 .../xalan-c/files/1.11.0_pre797991-as-needed.patch | 15 +++---
14 .../xalan-c/files/1.11.0_pre797991-bugfixes.patch | 5 +-
15 .../files/1.11.0_pre797991-parallel-build.patch | 5 +-
16 dev-libs/xalan-c/xalan-c-1.11.0_pre1153059.ebuild | 63 +++++++++-------------
17 4 files changed, 36 insertions(+), 52 deletions(-)
18
19 diff --git a/dev-libs/xalan-c/files/1.11.0_pre797991-as-needed.patch b/dev-libs/xalan-c/files/1.11.0_pre797991-as-needed.patch
20 index e8a9cc9d03b..791da1cd7e7 100644
21 --- a/dev-libs/xalan-c/files/1.11.0_pre797991-as-needed.patch
22 +++ b/dev-libs/xalan-c/files/1.11.0_pre797991-as-needed.patch
23 @@ -1,6 +1,5 @@
24 -diff -Naur xml-xalan.orig/c/src/xalanc/Makefile.in xml-xalan/c/src/xalanc/Makefile.in
25 ---- xml-xalan.orig/c/src/xalanc/Makefile.in 2009-07-27 00:23:08.411122528 +0200
26 -+++ xml-xalan/c/src/xalanc/Makefile.in 2009-07-27 00:45:09.514777553 +0200
27 +--- a/src/xalanc/Makefile.in
28 ++++ b/src/xalanc/Makefile.in
29 @@ -174,7 +174,7 @@
30
31 "//'$(LOADSAMP)(${BATCH_XALAN_UTIL_NAME})'": ${XSL_OBJ_DIR}/XalanExe.o
32 @@ -64,9 +63,8 @@ diff -Naur xml-xalan.orig/c/src/xalanc/Makefile.in xml-xalan/c/src/xalanc/Makefi
33 ifeq ($(PLATFORM), OS390)
34 mv *.x ${XSL_LIB_DIR}
35 else
36 -diff -Naur xml-xalan.orig/c/src/xalanc/Utils/MsgCreator/Makefile.in xml-xalan/c/src/xalanc/Utils/MsgCreator/Makefile.in
37 ---- xml-xalan.orig/c/src/xalanc/Utils/MsgCreator/Makefile.in 2009-07-27 00:23:08.431122558 +0200
38 -+++ xml-xalan/c/src/xalanc/Utils/MsgCreator/Makefile.in 2009-07-27 00:43:47.674693543 +0200
39 +--- a/src/xalanc/Utils/MsgCreator/Makefile.in
40 ++++ b/src/xalanc/Utils/MsgCreator/Makefile.in
41 @@ -29,7 +29,7 @@
42
43 $(XSL_BIN_DIR)/MsgCreator : $(MSG_CREATOR_OBJECTS)
44 @@ -76,9 +74,8 @@ diff -Naur xml-xalan.orig/c/src/xalanc/Utils/MsgCreator/Makefile.in xml-xalan/c/
45
46 $(XSL_OBJ_DIR)/%.o : $(MSG_CREATOR_SRC)/%.cpp
47 $(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
48 -diff -Naur xml-xalan.orig/c/Tests/Makefile.in xml-xalan/c/Tests/Makefile.in
49 ---- xml-xalan.orig/c/Tests/Makefile.in 2009-07-27 00:23:08.514445103 +0200
50 -+++ xml-xalan/c/Tests/Makefile.in 2009-07-27 00:45:50.541094978 +0200
51 +--- a/Tests/Makefile.in
52 ++++ b/Tests/Makefile.in
53 @@ -62,7 +62,7 @@
54
55 $(XSL_BIN_DIR)/ThreadTest: ${XSL_OBJ_DIR}/ThreadTest.o
56
57 diff --git a/dev-libs/xalan-c/files/1.11.0_pre797991-bugfixes.patch b/dev-libs/xalan-c/files/1.11.0_pre797991-bugfixes.patch
58 index d86f1bd45f4..8b7f618bb8b 100644
59 --- a/dev-libs/xalan-c/files/1.11.0_pre797991-bugfixes.patch
60 +++ b/dev-libs/xalan-c/files/1.11.0_pre797991-bugfixes.patch
61 @@ -1,6 +1,5 @@
62 -diff -Naur xml-xalan.orig/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp xml-xalan/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp
63 ---- xml-xalan.orig/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp 2009-07-27 00:23:08.507787691 +0200
64 -+++ xml-xalan/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp 2009-07-27 00:53:50.781756249 +0200
65 +--- a/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp
66 ++++ b/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp
67 @@ -28,7 +28,7 @@
68 #include <xalanc/PlatformSupport/DOMStringHelper.hpp>
69
70
71 diff --git a/dev-libs/xalan-c/files/1.11.0_pre797991-parallel-build.patch b/dev-libs/xalan-c/files/1.11.0_pre797991-parallel-build.patch
72 index 46d9659b0f0..da2c7957298 100644
73 --- a/dev-libs/xalan-c/files/1.11.0_pre797991-parallel-build.patch
74 +++ b/dev-libs/xalan-c/files/1.11.0_pre797991-parallel-build.patch
75 @@ -1,6 +1,5 @@
76 -diff -urN xml-xalan.orig//c/src/xalanc/Makefile.in xml-xalan/c/src/xalanc/Makefile.in
77 ---- xml-xalan.orig//c/src/xalanc/Makefile.in 2010-02-23 10:51:30.058353490 +0100
78 -+++ xml-xalan/c/src/xalanc/Makefile.in 2010-02-23 10:52:53.251679288 +0100
79 +--- a/src/xalanc/Makefile.in
80 ++++ b/src/xalanc/Makefile.in
81 @@ -84,6 +84,10 @@
82 SAMPLES_DIR = ${XALANCROOT}/samples
83 TESTS_DIR = ${XALANCROOT}/Tests
84
85 diff --git a/dev-libs/xalan-c/xalan-c-1.11.0_pre1153059.ebuild b/dev-libs/xalan-c/xalan-c-1.11.0_pre1153059.ebuild
86 index 894d99b5b6b..8d8eda0a222 100644
87 --- a/dev-libs/xalan-c/xalan-c-1.11.0_pre1153059.ebuild
88 +++ b/dev-libs/xalan-c/xalan-c-1.11.0_pre1153059.ebuild
89 @@ -1,12 +1,12 @@
90 -# Copyright 1999-2017 Gentoo Foundation
91 +# Copyright 1999-2020 Gentoo Authors
92 # Distributed under the terms of the GNU General Public License v2
93
94 -EAPI="4"
95 +EAPI=7
96
97 -inherit toolchain-funcs eutils multilib
98 +inherit toolchain-funcs
99
100 DESCRIPTION="XSLT processor for transforming XML into HTML, text, or other XML types"
101 -HOMEPAGE="http://xml.apache.org/xalan-c/"
102 +HOMEPAGE="https://xml.apache.org/xalan-c/"
103 SRC_URI="mirror://gentoo/Xalan-C_r${PV#*_pre}-src.tar.gz"
104
105 LICENSE="Apache-2.0"
106 @@ -15,22 +15,19 @@ KEYWORDS="amd64 ~ppc x86"
107 IUSE="doc examples nls threads"
108
109 RDEPEND=">=dev-libs/xerces-c-2.8.0"
110 -# icu? ( dev-libs/icu )"
111 -DEPEND="${RDEPEND}
112 - doc? ( app-doc/doxygen )"
113 +DEPEND="${RDEPEND}"
114 +BDEPEND="doc? ( app-doc/doxygen )"
115
116 S="${WORKDIR}/xml-xalan/c"
117
118 -pkg_setup() {
119 -# export ICUROOT="/usr"
120 - export XALANCROOT="${S}"
121 -}
122 +PATCHES=(
123 + "${FILESDIR}"/1.11.0_pre797991-as-needed.patch
124 + "${FILESDIR}"/1.11.0_pre797991-bugfixes.patch
125 + "${FILESDIR}"/1.11.0_pre797991-parallel-build.patch
126 +)
127
128 src_prepare() {
129 - epatch \
130 - "${FILESDIR}/1.11.0_pre797991-as-needed.patch" \
131 - "${FILESDIR}/1.11.0_pre797991-bugfixes.patch" \
132 - "${FILESDIR}/1.11.0_pre797991-parallel-build.patch"
133 + default
134
135 # - do not run configure in runConfigure
136 # - echo the export commands instead exporting the vars
137 @@ -47,19 +44,12 @@ src_prepare() {
138
139 src_configure() {
140 export XERCESCROOT="/usr"
141 + export XALANCROOT="${S}"
142
143 local target="linux"
144 - # add more if needed, see xerces-c-2.8.0-r1 ebuild
145 -
146 - local mloader="inmem"
147 - use nls && mloader="nls"
148 -# use icu && mloader="icu"
149 -
150 local transcoder="default"
151 -# use icu && transcoder="icu"
152 -
153 - local thread="none"
154 - use threads && thread="pthread"
155 + local mloader=$(usex nls nls inmem)
156 + local thread=$(usex threads pthread none)
157
158 ./runConfigure -p ${target} -c "$(tc-getCC)" -x "$(tc-getCXX)" \
159 -m ${mloader} -t ${transcoder} \
160 @@ -73,24 +63,23 @@ src_configure() {
161 src_compile() {
162 default
163
164 - if use doc ; then
165 - mkdir build
166 - cd "${S}/xdocs"
167 - doxygen DoxyfileXalan
168 + if use doc; then
169 + mkdir build || die
170 + cd xdocs || die
171 + doxygen DoxyfileXalan || die
172 + HTML_DOCS=( build/docs/apiDocs/. )
173 +
174 + # clean doxygen cruft
175 + find "${S}"/build \( -iname '*.map' -o -iname '*.md5' \) -delete || die
176 fi
177 }
178
179 src_install() {
180 default
181
182 - if use doc ; then
183 - dodir /usr/share/doc/${PF}
184 - dohtml -r build/docs/apiDocs/*
185 - fi
186 -
187 - if use examples ; then
188 - insinto /usr/share/doc/${PF}/examples
189 - doins -r samples/*
190 + if use examples; then
191 + docinto examples
192 + dodoc -r samples/.
193 fi
194 }