You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.1 KiB
50 lines
1.1 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Authors
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=7
|
||
7 years ago
|
|
||
6 years ago
|
inherit toolchain-funcs
|
||
7 years ago
|
|
||
|
DESCRIPTION="CSS parser and selection engine, written in C"
|
||
|
HOMEPAGE="http://www.netsurf-browser.org/projects/libcss/"
|
||
6 years ago
|
SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
|
||
7 years ago
|
|
||
|
LICENSE="MIT"
|
||
|
SLOT="0/${PV}"
|
||
|
KEYWORDS="~amd64 ~arm ~ppc ~m68k-mint"
|
||
|
IUSE="test"
|
||
|
|
||
6 years ago
|
RDEPEND="
|
||
|
>=dev-libs/libparserutils-0.2.1-r1
|
||
|
>=dev-libs/libwapcaplet-0.4.0"
|
||
7 years ago
|
DEPEND="${RDEPEND}
|
||
6 years ago
|
dev-util/netsurf-buildsystem
|
||
7 years ago
|
virtual/pkgconfig
|
||
|
test? ( dev-lang/perl )"
|
||
|
|
||
|
src_prepare() {
|
||
6 years ago
|
default
|
||
7 years ago
|
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
|
||
6 years ago
|
}
|
||
|
|
||
|
_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
|
||
|
}
|
||
7 years ago
|
|
||
6 years ago
|
src_install() {
|
||
|
_emake DESTDIR="${ED}" install
|
||
7 years ago
|
}
|