2016-03-22 09:03:03 +03:00
|
|
|
# Copyright 1999-2016 Gentoo Foundation
|
2012-05-07 00:14:41 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-10 23:59:40 +03:00
|
|
|
# $Id$
|
2012-05-07 00:14:41 +04:00
|
|
|
|
2013-06-24 12:48:08 +04:00
|
|
|
EAPI=5
|
2012-05-07 00:14:41 +04:00
|
|
|
|
2013-06-24 12:48:08 +04:00
|
|
|
inherit eutils cmake-multilib vcs-snapshot
|
2012-05-07 00:14:41 +04:00
|
|
|
|
|
|
|
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"
|
2012-05-07 00:14:41 +04:00
|
|
|
|
2016-03-22 09:03:03 +03:00
|
|
|
LICENSE="ISC"
|
|
|
|
SLOT="0/2"
|
|
|
|
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"
|
2013-06-24 12:48:08 +04:00
|
|
|
IUSE="static-libs"
|
2012-05-07 00:14:41 +04:00
|
|
|
|
2013-06-24 12:48:08 +04:00
|
|
|
src_prepare() {
|
2016-03-22 09:03:03 +03:00
|
|
|
epatch_user
|
2013-06-27 00:47:59 +04:00
|
|
|
|
|
|
|
multilib_copy_sources
|
2012-05-07 00:14:41 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_test() {
|
2013-06-27 00:47:59 +04:00
|
|
|
run_test() {
|
2016-03-27 21:00:04 +03:00
|
|
|
cd "${BUILD_DIR}"/test/parsing
|
2013-06-27 00:47:59 +04:00
|
|
|
./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
|
2012-05-07 00:14:41 +04:00
|
|
|
}
|