diff options
author | Jaco Kroon <jaco@uls.co.za> | 2020-06-17 11:35:42 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-06-17 14:41:56 +0200 |
commit | fe41d6d200cc9417521688151c03501c6fddeced (patch) | |
tree | e3ad8f3c9b826d574ea510002ada3b3dc386802c /net-libs/libhubbub | |
parent | x11-terms/terminology: update to reflect efl[gles2-only] (diff) | |
download | gentoo-fe41d6d200cc9417521688151c03501c6fddeced.tar.gz gentoo-fe41d6d200cc9417521688151c03501c6fddeced.tar.bz2 gentoo-fe41d6d200cc9417521688151c03501c6fddeced.zip |
net-libs/libhubbub: fix docs and update ED to D
The change for ED to D was requested by mjo (maintainer of
netsurf-buildsystem) on #gentoo-proxy-maint.
Doc fix from referenced bug report.
Closes: https://bugs.gentoo.org/728136
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Jaco Kroon <jaco@uls.co.za>
tbs
Closes: https://github.com/gentoo/gentoo/pull/16287
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'net-libs/libhubbub')
-rw-r--r-- | net-libs/libhubbub/libhubbub-0.3.6-r1.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/net-libs/libhubbub/libhubbub-0.3.6-r1.ebuild b/net-libs/libhubbub/libhubbub-0.3.6-r1.ebuild new file mode 100644 index 000000000000..758a9a08d909 --- /dev/null +++ b/net-libs/libhubbub/libhubbub-0.3.6-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="HTML5 compliant parsing library, written in C" +HOMEPAGE="https://www.netsurf-browser.org/projects/hubbub/" +SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~m68k-mint" +IUSE="doc test" + +BDEPEND=" + dev-util/netsurf-buildsystem + virtual/pkgconfig + test? ( dev-lang/perl ) +" +RDEPEND="dev-libs/libparserutils:=" +DEPEND="${RDEPEND} + test? ( dev-libs/json-c )" +RESTRICT="!test? ( test )" + +DOCS=( README docs/{Architecture,Macros,Todo,Treebuilder,Updated} ) +PATCHES=( "${FILESDIR}/libhubbub-0.3.6-json-c.patch" ) + +src_prepare() { + default + sed -e '1i#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"' \ + -i test/tree2.c || die +} + +_emake() { + source /usr/share/netsurf-buildsystem/gentoo-helpers.sh + netsurf_define_makeconf + append-cflags -Wno-error + emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@ +} + +src_compile() { + _emake + use doc && _emake docs +} + +src_test() { + _emake test +} + +src_install() { + _emake DESTDIR="${D}" install + use doc && HTML_DOCS=( docs/html/. ) + einstalldocs +} |