]> Pileus Git - ~andy/sunrise/commitdiff
dev-libs/jansson: New ebuild for bug 358237. Thanks to Tommy[D] and floppym for reviewing
authorJohan Bergström (jbergstroem) <bugs@bergstroem.nu>
Thu, 10 Mar 2011 19:21:36 +0000 (19:21 +0000)
committerJohan Bergström (jbergstroem) <bugs@bergstroem.nu>
Thu, 10 Mar 2011 19:21:36 +0000 (19:21 +0000)
svn path=/sunrise/; revision=11806

dev-libs/jansson/ChangeLog [new file with mode: 0644]
dev-libs/jansson/Manifest [new file with mode: 0644]
dev-libs/jansson/jansson-2.0.ebuild [new file with mode: 0644]
dev-libs/jansson/metadata.xml [new file with mode: 0644]

diff --git a/dev-libs/jansson/ChangeLog b/dev-libs/jansson/ChangeLog
new file mode 100644 (file)
index 0000000..b18158a
--- /dev/null
@@ -0,0 +1,8 @@
+# ChangeLog for dev-libs/jansson
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  10 Mar 2011; Johan Bergström (jbergstroem) <bugs@bergstroem.nu>
+  +jansson-2.0.ebuild, +metadata.xml:
+  New ebuild for bug 358237. Thanks to Tommy[D] and floppym for reviewing
+
diff --git a/dev-libs/jansson/Manifest b/dev-libs/jansson/Manifest
new file mode 100644 (file)
index 0000000..c67399e
--- /dev/null
@@ -0,0 +1,4 @@
+DIST jansson-2.0.tar.gz 357209 RMD160 f79520e4af9f8a47f774f9ff7ad42b1c319e186e SHA1 1368c621f453d7a44c57075bb6dcc0c484d39fcb SHA256 d8b1e764507029de0d740f177d0ce112a948491b4943a36a873d8a19be22f2e8
+EBUILD jansson-2.0.ebuild 898 RMD160 f416623d86a1ef631fa1ef17a9a51526b43b6646 SHA1 5e50a50e2b51efbbc9b5cd4668641af7e55edd0e SHA256 34473376527ea7c34b283d44029a53cba64c2f4e369c52065c78b83dfa1ee2d5
+MISC ChangeLog 297 RMD160 172bd7b541b1048e31d9a28108d2039da392488b SHA1 68cd1114f9eba0abadd292184732e95ae231753b SHA256 9c51f5cc27e6b4dc3f55c13c35f8f1d3565feee1d8d44fa1fa4a99b1c04c4e67
+MISC metadata.xml 229 RMD160 f0f6417bec31ce8baba6d476664f7210c8c84c98 SHA1 e5f94f5caadc6f843fc90bb7959570cd503676fd SHA256 3b08fca3c878bdfc4e7639f477dd542d55a4ab5dce39a475e82633071d13eb3f
diff --git a/dev-libs/jansson/jansson-2.0.ebuild b/dev-libs/jansson/jansson-2.0.ebuild
new file mode 100644 (file)
index 0000000..e6faa3d
--- /dev/null
@@ -0,0 +1,45 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="3"
+
+inherit eutils
+
+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="~amd64 ~x86"
+IUSE="doc static-libs"
+
+DEPEND="doc? ( >dev-python/sphinx-1.0 )"
+RDEPEND=""
+
+src_configure() {
+       econf \
+               $(use_enable static-libs static)
+}
+
+src_compile() {
+       emake || die
+
+       if use doc; then
+               emake html || die
+       fi
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die
+
+       # remove useless .a and .la files (only for non static compilation)
+       use static-libs || find "${D}" -name '*.la' -delete
+
+       dodoc CHANGES README.rst || die
+
+       if use doc; then
+               dohtml -r doc/_build/html/* || die "Installation of documentation failed"
+       fi
+}
diff --git a/dev-libs/jansson/metadata.xml b/dev-libs/jansson/metadata.xml
new file mode 100644 (file)
index 0000000..e6233b5
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+</pkgmetadata>