dev-libs/jansson: Version bump to 2.12
authorDavid Zero <zero-one@zer0-one.net>
Tue, 1 Jan 2019 10:15:53 +0000 (02:15 -0800)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Mon, 7 Jan 2019 17:29:23 +0000 (09:29 -0800)
This commit changes the EAPI to version 7.

Closes: https://github.com/gentoo/gentoo/pull/10718
Signed-off-by: David Zero <zero-one@zer0-one.net>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
dev-libs/jansson/Manifest
dev-libs/jansson/jansson-2.12.ebuild [new file with mode: 0644]

index 0144e783563d5b448485820e56a8cea4b2fa4df8..cbe7f39fe4088adc6e3778c1f1138eb8906b38f7 100644 (file)
@@ -1,2 +1,3 @@
 DIST jansson-2.10.tar.gz 487855 BLAKE2B b1d83ad1a37e66cb7c497284a7958882d5a7e13cec2260d9cc2b5eaef648feea66b70305dec9193f10cf77f37bdda17605277ea41735708ca6a9898b79fef807 SHA512 e331d5c097b4acb0b1df7d90d1d3453c26bd34bfe2e06af0027665bee9efecc2bc61cc7ab5b70dab1262bf80a3315ffb53b4176874fe07e20eee4b9ea7071d44
 DIST jansson-2.11.tar.gz 483686 BLAKE2B 873283a1b41eef1c57fbcb3d4cdb8c33b850d95ee93c800cbcc009e3e9c9e87278beff11800e63894087e51c767dcbd555fbde48163376d53be2bf72b2eac72d SHA512 0ae77cf7ec264536313639458ba20b66e221078cddd209df3ce45c895b897799954abc1ca4b0d5993b974135652804be6bede2825503469d56303470888382f8
+DIST jansson-2.12.tar.gz 489154 BLAKE2B cf6bc6d03daba921ec5e033bf57ff0055741cc935adb14d5d4a5f04056fa93c292bf88367db071ef7bb32fbc5d2d6f5f2ce658815a17939bd38ed5c0676ad091 SHA512 e40bdafdfa1fa663f71e00c06d7bfc98cff4ed3581a147894e5272e50fa5f9b9a7af6aaca41ff423a2ddd2554a192b36efcc32f6a3c98c727e9f819b955357cb
diff --git a/dev-libs/jansson/jansson-2.12.ebuild b/dev-libs/jansson/jansson-2.12.ebuild
new file mode 100644 (file)
index 0000000..5fee180
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib-minimal
+
+DESCRIPTION="C library for encoding, decoding and manipulating JSON data"
+HOMEPAGE="http://www.digip.org/jansson/"
+SRC_URI="http://www.digip.org/jansson/releases/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd"
+IUSE="doc static-libs"
+
+BDEPEND="doc? ( >=dev-python/sphinx-1.0.4 )"
+RDEPEND=""
+
+multilib_src_configure() {
+       ECONF_SOURCE="${S}" econf $(use_enable static-libs static)
+}
+
+multilib_src_compile() {
+       default
+
+       if multilib_is_native_abi && use doc ; then
+               emake html
+               HTML_DOCS=( "${BUILD_DIR}"/doc/_build/html/. )
+       fi
+}
+
+multilib_src_install() {
+       default
+
+       find "${D}" -name '*.la' -delete || die
+}