aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Shelton <stuart@shelton.me>2017-10-21 10:24:55 +0100
committerStuart Shelton <stuart@shelton.me>2017-10-22 12:53:38 +0100
commit8c85b1d707461ebe91dbc43b5e2a1ee79c52b7d8 (patch)
treeea8f43b7d29ef6df301a8af0debf1a68502633af /dev-libs
parentUpdate sys-apps/help2man-1.47.4 (diff)
downloadsrcshelton-8c85b1d707461ebe91dbc43b5e2a1ee79c52b7d8.tar.gz
srcshelton-8c85b1d707461ebe91dbc43b5e2a1ee79c52b7d8.tar.bz2
srcshelton-8c85b1d707461ebe91dbc43b5e2a1ee79c52b7d8.zip
Add dev-libs/jansson-2.10
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/jansson/Manifest2
-rw-r--r--dev-libs/jansson/jansson-2.10.ebuild48
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-libs/jansson/Manifest b/dev-libs/jansson/Manifest
index b1968cf6..d0e5631d 100644
--- a/dev-libs/jansson/Manifest
+++ b/dev-libs/jansson/Manifest
@@ -1,2 +1,4 @@
+DIST jansson-2.10.tar.gz 487855 SHA256 78215ad1e277b42681404c1d66870097a50eb084be9d771b1d15576575cf6447 SHA512 e331d5c097b4acb0b1df7d90d1d3453c26bd34bfe2e06af0027665bee9efecc2bc61cc7ab5b70dab1262bf80a3315ffb53b4176874fe07e20eee4b9ea7071d44 WHIRLPOOL 07ccf532f0ff27ac5063fafe0f2a33f4117909365c2dc7dfea6331457712efc5b8b93d519ebfae56fc46fb98b2fc95d858e2efa407bd4dd61935b9cf4cbc00bc
DIST jansson-2.9.tar.gz 485095 SHA256 0ad0d074ca049a36637e7abef755d40849ad73e926b93914ce294927b97bd2a5 SHA512 ae239e1a825c252d7a3b0ee97004c129a0968f7e9da8679dc665a8e54a34c073b0c274bd5af004700b442f7b703bcc76f5e3360ab82172da7203b3458a5e9cb9 WHIRLPOOL 2b9103702680f0e03f5220530938dfcd8fb1b793383bf459200e0e05fffcfd5ec7cecd904ba7fc3c55f237d98f94b6a97c26c3f89b5b26ebcaa830e2eecd4b1f
+EBUILD jansson-2.10.ebuild 1003 SHA256 636dedc60575495b6b4ca23283ed70b3dbec3f58e74779a28ff0f99a8fab9bdf SHA512 9081c239164dbc6180226d7fb82fb6be49f8be8652e491b0d11a5a2d8975d05478a3d66e4d2fa23cc2a6f62e5795a300f28aadffdfdb7aaa744845d8dc3029e6 WHIRLPOOL f95ca0075c64de3e7689da54bd1cc003fd53d0e47457795026fcd7721b2c6769cd2fc7f86866c2a810e174df9f1e3768c3e03179f88474cc40a14f032b6dc709
EBUILD jansson-2.9.ebuild 1000 SHA256 2d4fd951b386508df6921b626aa917d75fcb5e8c8318978313d74136215e8f68 SHA512 8b0ae706e077fdc4179620652bb46ffd3f39d3873a77919f93e415b1e43205e9fcd767a06db0ce392e2942d559091994070b52816f206c6a7480cdfd40c65961 WHIRLPOOL 489bd7b16c9a98e27c443805ec0e40f91f74e3592f17c6e795f7b37e34ffb96ccf27269196ab8dfe8612cfeecb914d370f597bd22da3ba260548cc2ba83b9ff2
diff --git a/dev-libs/jansson/jansson-2.10.ebuild b/dev-libs/jansson/jansson-2.10.ebuild
new file mode 100644
index 00000000..30fa6a35
--- /dev/null
+++ b/dev-libs/jansson/jansson-2.10.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools 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"
+IUSE="doc sep-usr static-libs"
+
+DEPEND="doc? ( >=dev-python/sphinx-1.0.4 )"
+RDEPEND=""
+
+src_prepare() {
+ default
+ sed -ie 's/-Werror//' src/Makefile.am || die
+ eautoreconf
+}
+
+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
+
+ if use sep-usr && multilib_is_native_abi; then
+ # need the libs in /
+ gen_usr_ldscript -a jansson
+ fi
+}