Update jansson to 2.5.

This commit is contained in:
Scott McCreary
2013-10-23 01:09:40 -07:00
parent 8919f3f3a0
commit 4f8aecf1cc
2 changed files with 65 additions and 31 deletions

View File

@@ -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"

View File

@@ -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
"