1 |
commit: 7fd316fb024f9d26a1931314740c3ac4ca29f806 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 30 00:38:23 2022 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 30 00:39:23 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fd316fb |
7 |
|
8 |
dev-libs/expat: 2.4.4 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/831918 |
11 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
12 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
13 |
|
14 |
dev-libs/expat/Manifest | 1 + |
15 |
dev-libs/expat/expat-2.4.4.ebuild | 94 +++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 95 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/expat/Manifest b/dev-libs/expat/Manifest |
19 |
index 6c2601c3fde7..da07d5e74745 100644 |
20 |
--- a/dev-libs/expat/Manifest |
21 |
+++ b/dev-libs/expat/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST expat-2.4.3.tar.xz 451012 BLAKE2B 4c0200837ea0054a88d2a2606486482f234e4b4f6b5f16134bf2a4b7b61457b12d534c6be3f16d28f6926f896d00177ef53a947a0a6c3ad11ff024a8e76edf84 SHA512 62a7fe751f6846deec4b04fd2c2ca8ed9e139fa27cda0e3fe7f8f05107caaed70597aed17b45c49d30a60c8a0c6beae1317dd5f24240640310951aabb16dbcb7 |
24 |
+DIST expat-2.4.4.tar.xz 449448 BLAKE2B 20b2cfb27746c24e56580478c933b3ca9e9ff19aed13561bc07e8ad879daff575882b8940fdca00f8c99b146067438a4a680238728098b10e4d08303ffa00119 SHA512 c88a82f4732e27340eb9480c082bcc909b0284e16b368ee9feeb4e2dd058e8f7c42fd48feacd5272cc76cb78bd183df33eb5d0b135fdd1d3c493cb156572ab76 |
25 |
|
26 |
diff --git a/dev-libs/expat/expat-2.4.4.ebuild b/dev-libs/expat/expat-2.4.4.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..f397e99485c2 |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/expat/expat-2.4.4.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 |
+} |