summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2020-06-17 07:57:34 -0400
committerMichael Orlitzky <mjo@gentoo.org>2020-06-17 09:38:19 -0400
commit115f608f7355185803e7678282d3de81dc3e7b3e (patch)
tree9844027968763f02a341055afa430ca711ee1ece /dev-libs/libcss
parentdev-libs/libparserutils: new revision to fix D/ED confusion. (diff)
downloadgentoo-115f608f7355185803e7678282d3de81dc3e7b3e.tar.gz
gentoo-115f608f7355185803e7678282d3de81dc3e7b3e.tar.bz2
gentoo-115f608f7355185803e7678282d3de81dc3e7b3e.zip
dev-libs/libcss: new version 0.9.1.
This new version fixes the mixup between $D and $ED at install-time that was causing failures with nonstandard ROOT. For best results, combine with the latest netsurf-buildsystem. Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'dev-libs/libcss')
-rw-r--r--dev-libs/libcss/Manifest1
-rw-r--r--dev-libs/libcss/libcss-0.9.1.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-libs/libcss/Manifest b/dev-libs/libcss/Manifest
index 95a7a69c44d1..7ea21401fad1 100644
--- a/dev-libs/libcss/Manifest
+++ b/dev-libs/libcss/Manifest
@@ -1,2 +1,3 @@
DIST libcss-0.8.0-src.tar.gz 516474 BLAKE2B 937adc65f68fecece189e0f06cfd601ae2d76f0b4dcdbcb8a67f3f058c4355c19c12c088fb50ecf1e6bcd8436c867b1845b3da27bb44b5d1a009bd946bf5e53e SHA512 fb52920ce462f442dfafa7b0061fa465e6c04827d26186e8468855c2a40e8f34e6f0689d5eb58cb0b2ee0759d083fcff5c8c583e1d98693755003c352a22a4be
DIST libcss-0.9.0-src.tar.gz 522267 BLAKE2B c104dd2cf859b908d68ac318d1da0430733b8813fbfbcb1f8f6a3d373e3a2ba1db6685542823fe0bef838619ec358f336f8eb07dc073a55a2f8c1907727295b9 SHA512 435dbca91aa2b91398dddbc1d9d035d104be193bb593907e3fff9320cc4f668f8aae54e0d5d0b7cd2ed9cb36fc02255fbe97bc9038b79fe505b581d6af1ded0d
+DIST libcss-0.9.1-src.tar.gz 522715 BLAKE2B 32206403f77997e6692eed00c9233e6f49f08efc2515901a8bef7590883e44ef320511368fe5a67968102911d849696a4419735c7f6691f0f272fcc3b9a000d8 SHA512 069b30e74ff03fc91666dd16f22a38effbb3e29f066fd0fbc09efdc26dd8678e3f31adeaf918c5596fb962c56335fb2ecdbde1aa6704fcbdec3c2f97d03e5bbe
diff --git a/dev-libs/libcss/libcss-0.9.1.ebuild b/dev-libs/libcss/libcss-0.9.1.ebuild
new file mode 100644
index 000000000000..decab3cc274c
--- /dev/null
+++ b/dev-libs/libcss/libcss-0.9.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="CSS parser and selection engine, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/libcss/"
+SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~m68k-mint"
+IUSE="test"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-libs/libparserutils
+ dev-libs/libwapcaplet"
+DEPEND="${RDEPEND}
+ test? ( dev-lang/perl )"
+BDEPEND="
+ >=dev-util/netsurf-buildsystem-1.7-r1
+ virtual/pkgconfig"
+
+src_prepare() {
+ default
+ sed -e '1i#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"' \
+ -i src/parse/parse.c src/select/arena_hash.h || die
+ sed -e '1i#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"' \
+ -i src/parse/parse.c src/select/computed.c || die
+}
+
+_emake() {
+ source /usr/share/netsurf-buildsystem/gentoo-helpers.sh
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake test
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}