blob: 34b6cdf6dd6dd1fe1d92b93b6936d4e70c54a8b7 [file] [log] [blame]
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
GNOME2_LA_PUNT="yes"
inherit gnome2 multilib-minimal
DESCRIPTION="Generic Cascading Style Sheet (CSS) parsing and manipulation toolkit"
HOMEPAGE="https://git.gnome.org/browse/libcroco/"
LICENSE="LGPL-2"
SLOT="0.6"
KEYWORDS="*"
IUSE="test"
RDEPEND="
>=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}]
>=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}]
"
DEPEND="${RDEPEND}
dev-util/gtk-doc-am
>=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
"
PATCHES=(
"${FILESDIR}"/${PV}-CVE-2017-7960.patch
"${FILESDIR}"/${PV}-CVE-2017-7961.patch
)
src_prepare() {
if ! use test; then
# don't waste time building tests
sed 's/^\(SUBDIRS .*\=.*\)tests\(.*\)$/\1\2/' -i Makefile.am Makefile.in \
|| die "sed failed"
fi
gnome2_src_prepare
}
multilib_src_configure() {
ECONF_SOURCE=${S} \
gnome2_src_configure \
--disable-static \
$([[ ${CHOST} == *-darwin* ]] && echo --disable-Bsymbolic)
if multilib_is_native_abi; then
ln -s "${S}"/docs/reference/html docs/reference/html || die
fi
}
multilib_src_install() {
gnome2_src_install
}
multilib_src_install_all() {
DOCS="AUTHORS ChangeLog HACKING NEWS README TODO"
einstalldocs
}