2015-01-01 23:25:26 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2014-06-17 00:12:24 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-10 23:59:40 +03:00
|
|
|
# $Id$
|
2014-06-17 00:12:24 +04:00
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
|
|
|
|
inherit eutils cmake-multilib vcs-snapshot
|
|
|
|
|
|
|
|
DESCRIPTION="Small event-driven (SAX-style) JSON parser"
|
2015-08-25 09:01:42 +03:00
|
|
|
HOMEPAGE="https://lloyd.github.com/yajl/"
|
2015-08-24 15:02:01 +03:00
|
|
|
SRC_URI="https://github.com/lloyd/yajl/tarball/${PV} -> ${P}.tar.gz"
|
2014-06-17 00:12:24 +04:00
|
|
|
|
2016-03-22 09:03:03 +03:00
|
|
|
LICENSE="ISC"
|
2014-06-17 00:12:24 +04:00
|
|
|
SLOT="0"
|
2015-03-03 15:02:00 +03:00
|
|
|
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
2014-06-17 00:12:24 +04:00
|
|
|
IUSE="static-libs"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
epatch "${FILESDIR}"/${PN}-fix_static_linking.patch \
|
|
|
|
"${FILESDIR}"/${P}-pkgconfig_multilib.patch
|
|
|
|
|
|
|
|
multilib_copy_sources
|
|
|
|
}
|
|
|
|
|
|
|
|
src_test() {
|
|
|
|
run_test() {
|
|
|
|
cd "${BUILD_DIR}"/test
|
|
|
|
./run_tests.sh ./yajl_test || die
|
|
|
|
}
|
|
|
|
multilib_parallel_foreach_abi run_test
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
cmake-multilib_src_install
|
|
|
|
|
|
|
|
use static-libs || \
|
|
|
|
find "${D}" -name libyajl_s.a -delete
|
|
|
|
}
|