diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-05-25 23:42:08 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-05-25 23:42:19 +0200 |
commit | 2c5ef4bf3c0497dd26da1f97b48e3a4b2e11241e (patch) | |
tree | 9f43ea2e75c1990ef4d98c3d59213945a42c58e0 /dev-libs/libcroco/libcroco-0.6.13-r1.ebuild | |
parent | app-admin/sysstat: drop 12.2.1 (diff) | |
download | gentoo-2c5ef4bf3c0497dd26da1f97b48e3a4b2e11241e.tar.gz gentoo-2c5ef4bf3c0497dd26da1f97b48e3a4b2e11241e.tar.bz2 gentoo-2c5ef4bf3c0497dd26da1f97b48e3a4b2e11241e.zip |
dev-libs/libcroco: fix CVE-2020-12825
Bug: https://bugs.gentoo.org/722752
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-libs/libcroco/libcroco-0.6.13-r1.ebuild')
-rw-r--r-- | dev-libs/libcroco/libcroco-0.6.13-r1.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/dev-libs/libcroco/libcroco-0.6.13-r1.ebuild b/dev-libs/libcroco/libcroco-0.6.13-r1.ebuild new file mode 100644 index 000000000000..8e6f4779040e --- /dev/null +++ b/dev-libs/libcroco/libcroco-0.6.13-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit gnome2 multilib-minimal + +DESCRIPTION="Generic Cascading Style Sheet (CSS) parsing and manipulation toolkit" +HOMEPAGE="https://gitlab.gnome.org/Archive/libcroco" + +LICENSE="LGPL-2" +SLOT="0.6" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] + >=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-util/gtk-doc-am + virtual/pkgconfig +" + +PATCHES=( "${FILESDIR}"/${PN}-0.6.13-CVE-2020-12825.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 +} |