Files
haikuports/dev-libs/jsoncpp/jsoncpp-1.8.3.recipe
alaviss a0fdf8cf1f Add TEST() to various ports (#1832)
* app-crypt/rhash: disable on x86_gcc2, also fixed secondary arch

* dev-lang/tcc: make tcc actually works

  - update patches: define custom haiku definitions, use haiku
    start/end objects

  - make tcc uses haiku custom paths

  - add secondary arch support
  - add x86_64

* dev-lang/tcc: disable on all architectures

  - Haiku's BeBuild.h depends on __GNUC__ macro to select ABI, which
    unfortunately we can't risk to define, so disabling for now

* dev-python/pyqt: use correct name for sip

* dev-lang/spidermonkey: fix build

  - add x86 to snd arch

  - update config.sub and config.guess

  - add missing cmd:js_config
  - add missing cmd:zip

* dev-python/pyqt: clean up the spaces left by previous contributor

* add TEST() for the following ports:
  - sys-devel/flex
  - app-crypt/rhash
  - app-text/podofo
  - app-crypt/qca
  - app-editors/retext
  - app-i18n/mozc
  - dev-lang/tcc
  - dev-lang/yasm
  - dev-lang/spidermonkey
  - dev-libs/glib
  - dev-libs/jsoncpp
  - dev-libs/libtommath
  - dev-libs/libxslt
  - dev-libs/libyajl
  - dev-libs/zziplib
2017-12-10 13:49:50 +01:00

75 lines
1.6 KiB
Bash

SUMMARY="A C++ library for interacting with JSON"
DESCRIPTION="JsonCpp is a C++ library that allows manipulating JSON values, \
including serialization and deserialization to and from strings. It can also \
preserve existing comment in unserialization/serialization steps, making it a \
convenient format to store user input files."
HOMEPAGE="https://github.com/open-source-parsers/jsoncpp/"
COPYRIGHT="2007-2010 Baptiste Lepilleur"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/open-source-parsers/jsoncpp/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="3671ba6051e0f30849942cc66d1798fdf0362d089343a83f704c09ee7156604f"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
jsoncpp$secondaryArchSuffix = $portVersion
lib:libjsoncpp$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
jsoncpp${secondaryArchSuffix}_devel = $portVersion
devel:libjsoncpp$secondaryArchSuffix = $portVersion
devel:libjsoncpp_static$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
jsoncpp$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:python2
"
BUILD()
{
mkdir -p build && cd build
cmake $cmakeDirArgs \
-DCMAKE_BUILD_TYPE='Release' \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DJSONCPP_WITH_TESTS=ON \
..
make $jobArgs
}
INSTALL()
{
cd build
make install
prepareInstalledDevelLib libjsoncpp*
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}
TEST()
{
cd build
make jsoncpp_check
}