mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/expat: 2.8.5
Bug: https://bugs.gentoo.org/983113 Signed-off-by: Sebastian Pipping <sping@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST expat-2.8.4.tar.xz 519688 BLAKE2B bec06d3c3179115692edb5e9366412361abae5355b131a005ef91aaa041bf4ebf74a86cc2fac29c44730a07cba6fbda988a6bfdafafc9eeba25a00fb98e43d24 SHA512 00a34340b4fdc3baee6dbd83df3e41710ebffb38dc23664406be187a73f1e948451568fea07b6f33532b6b6244650808ce157255bcf6216d98267535cc97f3cd
|
||||
DIST expat-2.8.5.tar.xz 528380 BLAKE2B 7d10459714722c6e4e858da92d3f7def6950240275ad5054b97f5d7612524f2813b8add75d6693698c8e7cdb4a64f73750346783e438ff6271dbc80643d51ee7 SHA512 ad3d4198a70682c7c8b2149cb7c743585cc9470ea2e4bd81ec7c0aff9545d9010b51df5cfcd0714335c7ef1578537cbd2a5580f649246b4ea78ee5e3466808a3
|
||||
|
||||
101
dev-libs/expat/expat-2.8.5.ebuild
Normal file
101
dev-libs/expat/expat-2.8.5.ebuild
Normal file
@@ -0,0 +1,101 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
AUTOTOOLS_AUTO_DEPEND=no
|
||||
inherit autotools multilib-minimal
|
||||
|
||||
DESCRIPTION="Stream-oriented XML parser library"
|
||||
HOMEPAGE="https://libexpat.github.io/"
|
||||
SRC_URI="https://github.com/libexpat/libexpat/releases/download/R_${PV//\./_}/expat-${PV}.tar.xz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
|
||||
IUSE="examples static-libs test unicode"
|
||||
RESTRICT="!test? ( test )"
|
||||
BDEPEND="unicode? ( ${AUTOTOOLS_DEPEND} )"
|
||||
|
||||
DOCS=( README.md )
|
||||
|
||||
QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
# https://bugs.gentoo.org/906384
|
||||
arc4random
|
||||
arc4random_buf
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# fix interpreter to be a recent/good shell
|
||||
sed -i -e "1s:/bin/sh:${BASH}:" conftools/get-version.sh || die
|
||||
if use unicode; then
|
||||
cp -R "${S}" "${S}"w || die
|
||||
pushd "${S}"w >/dev/null
|
||||
find -name Makefile.am \
|
||||
-exec sed \
|
||||
-e 's,libexpat\.la,libexpatw.la,' \
|
||||
-e 's,libexpat_la,libexpatw_la,' \
|
||||
-i {} + || die
|
||||
eautoreconf
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf="$(use_with test tests) $(use_enable static-libs static) --without-docbook"
|
||||
|
||||
mkdir -p "${BUILD_DIR}"w || die
|
||||
|
||||
if use unicode; then
|
||||
pushd "${BUILD_DIR}"w >/dev/null
|
||||
CPPFLAGS="${CPPFLAGS} -DXML_UNICODE" ECONF_SOURCE="${S}"w econf ${myconf}
|
||||
popd >/dev/null
|
||||
fi
|
||||
|
||||
ECONF_SOURCE="${S}" econf ${myconf}
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake
|
||||
|
||||
if use unicode; then
|
||||
pushd "${BUILD_DIR}"w >/dev/null
|
||||
emake -C lib
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake install DESTDIR="${D}"
|
||||
|
||||
if use unicode; then
|
||||
pushd "${BUILD_DIR}"w >/dev/null
|
||||
emake -C lib install DESTDIR="${D}"
|
||||
popd >/dev/null
|
||||
|
||||
pushd "${ED}"/usr/$(get_libdir)/pkgconfig >/dev/null
|
||||
cp expat.pc expatw.pc
|
||||
sed -i -e '/^Libs/s:-lexpat:&w:' expatw.pc || die
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
|
||||
doman doc/xmlwf.1
|
||||
|
||||
# Note: Use of HTML_DOCS would add unwanted "doc" subfolder
|
||||
docinto html
|
||||
dodoc doc/*.{css,html}
|
||||
|
||||
if use examples; then
|
||||
docinto examples
|
||||
dodoc examples/*.c
|
||||
docompress -x usr/share/doc/${PF}/examples
|
||||
fi
|
||||
|
||||
find "${D}" -name '*.la' -type f -delete || die
|
||||
}
|
||||
Reference in New Issue
Block a user