From 4f8aecf1cce77a007e6ea4ee2fd4da5be29a57a5 Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Wed, 23 Oct 2013 01:09:40 -0700 Subject: [PATCH] Update jansson to 2.5. --- dev-libs/jansson/jansson-2.4.recipe | 31 -------------- dev-libs/jansson/jansson-2.5.recipe | 65 +++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 31 deletions(-) delete mode 100644 dev-libs/jansson/jansson-2.4.recipe create mode 100644 dev-libs/jansson/jansson-2.5.recipe diff --git a/dev-libs/jansson/jansson-2.4.recipe b/dev-libs/jansson/jansson-2.4.recipe deleted file mode 100644 index c7f74eea7..000000000 --- a/dev-libs/jansson/jansson-2.4.recipe +++ /dev/null @@ -1,31 +0,0 @@ -DESCRIPTION="C library for encoding, decoding and manipulating JSON data" -HOMEPAGE="http://www.digip.org/jansson/" -SRC_URI="http://www.digip.org/jansson/releases/jansson-2.4.tar.gz" -CHECKSUM_MD5="c4629b89bf0432f3158c461e88fe0113" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd jansson-2.4 - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd jansson-2.4 - make install -} - -TEST() -{ - cd jansson-2.4/test - run-suites -} - -LICENSE="MIT" -COPYRIGHT="2009-2012 Petri Lehtinen - 2011-2012 Basile Starynkevitch - 2011-2012 Graeme Smecher" - diff --git a/dev-libs/jansson/jansson-2.5.recipe b/dev-libs/jansson/jansson-2.5.recipe new file mode 100644 index 000000000..9307d6278 --- /dev/null +++ b/dev-libs/jansson/jansson-2.5.recipe @@ -0,0 +1,65 @@ +SUMMARY="Jansson is a C library for encoding, decoding and manipulating JSON data." +DESCRIPTION="Jansson is a C library for encoding, decoding and manipulating JSON data. +It features a simple and intuitive API and data model, comprehensive documentation, no dependencies on other libraries, full unicode support (UTF-8) and an extensive test suite." +HOMEPAGE="http://www.digip.org/jansson/" +SRC_URI="http://www.digip.org/jansson/releases/jansson-2.5.tar.gz" +CHECKSUM_MD5="46ac93bec48aacf207b67b51c8fbf7f1" +LICENSE="MIT" +COPYRIGHT="2009-2012 Petri Lehtinen + 2011-2012 Basile Starynkevitch + 2011-2012 Graeme Smecher" +REVISION="1" + +ARCHITECTURES="x86_gcc2 x86 x86_64" + +PROVIDES=" + lib:libjansson + " + +REQUIRES=" + haiku + " + +BUILD_REQUIRES=" + " + +BUILD_PREREQUIRES=" + haiku_devel + cmd:gcc + cmd:make + " + +BUILD() +{ + sed -i 's/-Wextra/ /g' Makefile.* + sed -i 's/-Wdeclaration-after-statement/ /g' Makefile.* + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + # devel package + prepareInstalledDevelLibs \ + libjansson + + fixPkgconfig + packageEntries devel \ + $developDir +} + +TEST() +{ + cd test + run-suites +} + +PROVIDES_devel=" + devel:libjansson = 0.0.0 compat >= 0 + " + +REQUIRES_devel=" + libjansson == $portVersion base + "