/[gentoo-x86]/dev-libs/yajl/yajl-2.0.4-r2.ebuild
Gentoo

Contents of /dev-libs/yajl/yajl-2.0.4-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jun 26 10:28:11 2013 UTC (5 years ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +15 -5 lines
fix USE=-static-libs (patch did not work, just remove .a after build/install, bug 474814 by patrick), fix src_test.

(Portage version: 2.2.0_alpha185/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/yajl/yajl-2.0.4-r2.ebuild,v 1.1 2013/06/23 22:19:25 xmw Exp $
4
5 EAPI=5
6
7 inherit eutils cmake-multilib vcs-snapshot
8
9 DESCRIPTION="Small event-driven (SAX-style) JSON parser"
10 HOMEPAGE="http://lloyd.github.com/yajl/"
11 SRC_URI="http://github.com/lloyd/yajl/tarball/${PV} -> ${P}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~arm ~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"
16 IUSE="static-libs"
17
18 src_prepare() {
19 epatch "${FILESDIR}"/${PN}-fix_static_linking.patch
20
21 multilib_copy_sources
22 }
23
24 src_test() {
25 run_test() {
26 cd "${BUILD_DIR}"/test
27 ./run_tests.sh ./yajl_test || die
28 }
29 multilib_parallel_foreach_abi run_test
30 }
31
32 src_install() {
33 cmake-multilib_src_install
34
35 use static-libs || \
36 find "${D}" -name libyajl_s.a -delete
37 }

  ViewVC Help
Powered by ViewVC 1.1.20