1 |
commit: 3216e358c8ca6205505e4f3ecba4b4f148a6d52d |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 28 22:59:17 2022 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 28 23:01:38 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3216e358 |
7 |
|
8 |
dev-libs/expat: 2.4.8 |
9 |
|
10 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
11 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
12 |
|
13 |
dev-libs/expat/Manifest | 1 + |
14 |
dev-libs/expat/expat-2.4.8.ebuild | 94 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 95 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/expat/Manifest b/dev-libs/expat/Manifest |
18 |
index 2d9481a42a46..9ec4a515ad6a 100644 |
19 |
--- a/dev-libs/expat/Manifest |
20 |
+++ b/dev-libs/expat/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST expat-2.4.6.tar.xz 452468 BLAKE2B 8b30acc2628e3ce67ee57a4c9bee232f89f49ee70901588f7f5a34844e459cbc447fd225a734078100e52c96a73aa1f016e4f2d51d9a079128d661d97b2213c0 SHA512 830b00dbdfb92ef5cab69d783762a78443cd7d834bccda072d103c6178327cf480bde579089b1c3be884e67ddb862178fa734bd7e1f992f6f0ca29d83e21d737 |
23 |
DIST expat-2.4.7.tar.xz 454136 BLAKE2B 441616f44ce585f75a67a3ebc2264e5723df55975dbfa9a9279039d3773d9e5a4b37c70a8e26787bbc8742fbc66a077e6845b540df6fede936d98065587fe3ac SHA512 e1a16cd48fcd6c4974dc7058d2e0284e0f91565835ec93f16d3f2c79647124470e5edb9f88f1ab9df5f403883a527750a4d63b941bd26fd43c05cd6f42bdcc48 |
24 |
+DIST expat-2.4.8.tar.xz 454428 BLAKE2B 25da91fdcdefe81740cc8129fa52bf4ceb0bbbee11f0d750485424dbc638f5fba8c30007d0f0b0e3ff5c84fe197b9b220852976272dfe5d6cc451d114297c2d7 SHA512 d19b0d6469537aed20c54bd9cfa4089d39e4acaaddde57809de7c6aec55dc870677c02480e7f65dac5620bd5454b889370453613518f9da647c74a831a2a1b7b |
25 |
|
26 |
diff --git a/dev-libs/expat/expat-2.4.8.ebuild b/dev-libs/expat/expat-2.4.8.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..f397e99485c2 |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/expat/expat-2.4.8.ebuild |
31 |
@@ -0,0 +1,94 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+AUTOTOOLS_AUTO_DEPEND=no |
37 |
+AT_NOEAUTOHEADER=yes # because expat_config.h.in would need post-processing |
38 |
+inherit autotools multilib-minimal |
39 |
+ |
40 |
+DESCRIPTION="Stream-oriented XML parser library" |
41 |
+HOMEPAGE="https://libexpat.github.io/" |
42 |
+SRC_URI="https://github.com/libexpat/libexpat/releases/download/R_${PV//\./_}/expat-${PV}.tar.xz" |
43 |
+ |
44 |
+LICENSE="MIT" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
47 |
+IUSE="examples static-libs unicode" |
48 |
+BDEPEND="unicode? ( ${AUTOTOOLS_DEPEND} )" |
49 |
+ |
50 |
+DOCS=( README.md ) |
51 |
+ |
52 |
+src_prepare() { |
53 |
+ default |
54 |
+ |
55 |
+ # fix interpreter to be a recent/good shell |
56 |
+ sed -i -e "1s:/bin/sh:${BASH}:" conftools/get-version.sh || die |
57 |
+ if use unicode; then |
58 |
+ cp -R "${S}" "${S}"w || die |
59 |
+ pushd "${S}"w >/dev/null |
60 |
+ find -name Makefile.am \ |
61 |
+ -exec sed \ |
62 |
+ -e 's,libexpat\.la,libexpatw.la,' \ |
63 |
+ -e 's,libexpat_la,libexpatw_la,' \ |
64 |
+ -i {} + || die |
65 |
+ eautoreconf |
66 |
+ popd >/dev/null |
67 |
+ fi |
68 |
+} |
69 |
+ |
70 |
+multilib_src_configure() { |
71 |
+ local myconf="$(use_enable static-libs static) --without-docbook" |
72 |
+ |
73 |
+ mkdir -p "${BUILD_DIR}"w || die |
74 |
+ |
75 |
+ if use unicode; then |
76 |
+ pushd "${BUILD_DIR}"w >/dev/null |
77 |
+ CPPFLAGS="${CPPFLAGS} -DXML_UNICODE" ECONF_SOURCE="${S}"w econf ${myconf} |
78 |
+ popd >/dev/null |
79 |
+ fi |
80 |
+ |
81 |
+ ECONF_SOURCE="${S}" econf ${myconf} |
82 |
+} |
83 |
+ |
84 |
+multilib_src_compile() { |
85 |
+ emake |
86 |
+ |
87 |
+ if use unicode; then |
88 |
+ pushd "${BUILD_DIR}"w >/dev/null |
89 |
+ emake -C lib |
90 |
+ popd >/dev/null |
91 |
+ fi |
92 |
+} |
93 |
+ |
94 |
+multilib_src_install() { |
95 |
+ emake install DESTDIR="${D}" |
96 |
+ |
97 |
+ if use unicode; then |
98 |
+ pushd "${BUILD_DIR}"w >/dev/null |
99 |
+ emake -C lib install DESTDIR="${D}" |
100 |
+ popd >/dev/null |
101 |
+ |
102 |
+ pushd "${ED}"/usr/$(get_libdir)/pkgconfig >/dev/null |
103 |
+ cp expat.pc expatw.pc |
104 |
+ sed -i -e '/^Libs/s:-lexpat:&w:' expatw.pc || die |
105 |
+ popd >/dev/null |
106 |
+ fi |
107 |
+} |
108 |
+ |
109 |
+multilib_src_install_all() { |
110 |
+ einstalldocs |
111 |
+ |
112 |
+ doman doc/xmlwf.1 |
113 |
+ |
114 |
+ # Note: Use of HTML_DOCS would add unwanted "doc" subfolder |
115 |
+ docinto html |
116 |
+ dodoc doc/*.{css,html} |
117 |
+ |
118 |
+ if use examples; then |
119 |
+ docinto examples |
120 |
+ dodoc examples/*.c |
121 |
+ docompress -x usr/share/doc/${PF}/examples |
122 |
+ fi |
123 |
+ |
124 |
+ find "${D}" -name '*.la' -type f -delete || die |
125 |
+} |