Skip to content
/ gentoo Public
forked from gentoo/gentoo

Commit

Permalink
dev-libs/libcss: new version 0.9.1.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
orlitzky committed Jun 17, 2020
1 parent 7ed0ae4 commit 115f608
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-libs/libcss/Manifest
Original file line number Diff line number Diff line change
@@ -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
52 changes: 52 additions & 0 deletions dev-libs/libcss/libcss-0.9.1.ebuild
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 115f608

Please sign in to comment.