Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/expat/
Date: Wed, 15 Aug 2018 13:19:41
Message-Id: 1534339108.ed3acaa91f533b6e9f163ed58d31636d24a64abd.sping@gentoo
1 commit: ed3acaa91f533b6e9f163ed58d31636d24a64abd
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 15 13:17:47 2018 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 15 13:18:28 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed3acaa9
7
8 dev-libs/expat: 2.2.6
9
10 Notify https://github.com/libexpat/libexpat/issues/209
11
12 Package-Manager: Portage-2.3.46, Repoman-2.3.10
13
14 dev-libs/expat/Manifest | 1 +
15 dev-libs/expat/expat-2.2.6.ebuild | 96 +++++++++++++++++++++++++++++++++++++++
16 2 files changed, 97 insertions(+)
17
18 diff --git a/dev-libs/expat/Manifest b/dev-libs/expat/Manifest
19 index 544fc48e082..733b50e8365 100644
20 --- a/dev-libs/expat/Manifest
21 +++ b/dev-libs/expat/Manifest
22 @@ -1,3 +1,4 @@
23 DIST expat-2.2.1.tar.bz2 405441 BLAKE2B 273960016692f3b9a1121eb07b67c28e5b3066fa324df0d7249329b2dc346c2601e4548def5e14b7f76d58f89f3cd12edad72fbd32da9f4c04ac61dfce23e15a SHA512 74089b55872df16f214a4baba0143e6353736dfa34063391293bb2760aa3e5118d9ccb3592e07c74c9d52a2a5b91496e15153f28214c4c01242d95b3019b67ea
24 DIST expat-2.2.4.tar.bz2 505038 BLAKE2B 4d40629621bde41b44cdef4fa37937ce064cdbd621cc0d466b50a1a4626aff8bc8c8f6e9fbd94a36b709d449384da76ade683f31cf0aec0470006b750fc0a6ea SHA512 788249e2c6edf8521c4a99830fd5e51a55c062b834516f6775759cd71accf6375f12d3bd38f8b069777d081a4380b9549049921386ca0cb4b9b9daa4861d6592
25 DIST expat-2.2.5.tar.bz2 510868 BLAKE2B 9d4709c2d157a04c08afd80b05f120407dc320023c3dbfe9e6872fadf0de2d6fa497f85ad9a21679fa0689c13cbb25adfd92912ae374d08de791dfeb4eb6918d SHA512 8226970a7e5d2b8d7818081758ca59bb6ce2d655feaa9d3a92481629000b73fde4782f50343d58ec4e1cebe75649e1980f636775a731d8aa4b55ceb843d9f637
26 +DIST expat-2.2.6.tar.bz2 513322 BLAKE2B 386736da1f2204fa8f15ee4d1b3d11f01ed691efe6951b9f24f2bd30ab5494e75da6a97ceb1ffe4a0a8ecdc80f96f51d21c54f35a2cbc352a9fe9425545bf15b SHA512 dbfb635a5fe7b190722664263a0dd437b512fdf519bc53bd4905567f4bfb4b1e89a021562da63df8cacd48b706d1dea60ccde47f279e57400ad3c846b6e9c4e6
27
28 diff --git a/dev-libs/expat/expat-2.2.6.ebuild b/dev-libs/expat/expat-2.2.6.ebuild
29 new file mode 100644
30 index 00000000000..508815f0741
31 --- /dev/null
32 +++ b/dev-libs/expat/expat-2.2.6.ebuild
33 @@ -0,0 +1,96 @@
34 +# Copyright 1999-2018 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +inherit autotools eutils libtool multilib toolchain-funcs 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.bz2"
43 +
44 +LICENSE="MIT"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
47 +IUSE="elibc_FreeBSD examples static-libs unicode"
48 +DEPEND="unicode? ( ${AUTOTOOLS_DEPEND} )"
49 +RDEPEND=""
50 +
51 +DOCS=( README.md )
52 +
53 +src_prepare() {
54 + default
55 +
56 + # fix interpreter to be a recent/good shell
57 + sed -i -e "1s:/bin/sh:${BASH}:" conftools/get-version.sh || die
58 + if use unicode; then
59 + cp -R "${S}" "${S}"w || die
60 + pushd "${S}"w >/dev/null
61 + find -name Makefile.am \
62 + -exec sed \
63 + -e 's,libexpat\.la,libexpatw.la,' \
64 + -e 's,libexpat_la,libexpatw_la,' \
65 + -i {} + || die
66 + eautoreconf
67 + popd >/dev/null
68 + fi
69 +}
70 +
71 +multilib_src_configure() {
72 + local myconf="$(use_enable static-libs static) --without-docbook"
73 +
74 + mkdir -p "${BUILD_DIR}"w || die
75 +
76 + if use unicode; then
77 + pushd "${BUILD_DIR}"w >/dev/null
78 + CPPFLAGS="${CPPFLAGS} -DXML_UNICODE" ECONF_SOURCE="${S}"w econf ${myconf}
79 + popd >/dev/null
80 + fi
81 +
82 + ECONF_SOURCE="${S}" econf ${myconf}
83 +}
84 +
85 +multilib_src_compile() {
86 + emake
87 +
88 + if use unicode; then
89 + pushd "${BUILD_DIR}"w >/dev/null
90 + emake -C lib
91 + popd >/dev/null
92 + fi
93 +}
94 +
95 +multilib_src_install() {
96 + emake install DESTDIR="${D}"
97 +
98 + if use unicode; then
99 + pushd "${BUILD_DIR}"w >/dev/null
100 + emake -C lib install DESTDIR="${D}"
101 + popd >/dev/null
102 +
103 + pushd "${ED}"/usr/$(get_libdir)/pkgconfig >/dev/null
104 + cp expat.pc expatw.pc
105 + sed -i -e '/^Libs/s:-lexpat:&w:' expatw.pc || die
106 + popd >/dev/null
107 + fi
108 +
109 + if multilib_is_native_abi ; then
110 + # libgeom in /lib and ifconfig in /sbin require libexpat on FreeBSD since
111 + # we stripped the libbsdxml copy starting from freebsd-lib-8.2-r1
112 + use elibc_FreeBSD && gen_usr_ldscript -a expat
113 + fi
114 +}
115 +
116 +multilib_src_install_all() {
117 + einstalldocs
118 +
119 + # Note: Use of HTML_DOCS would add unwanted "doc" subfolder
120 + docinto html
121 + dodoc doc/*.{css,html,png}
122 +
123 + if use examples; then
124 + insinto /usr/share/doc/${PF}/examples
125 + doins examples/*.c
126 + fi
127 +
128 + prune_libtool_files
129 +}