You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/json-c/json-c-0.11.ebuild

46 lines
1.1 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/json-c/json-c-0.11.ebuild,v 1.1 2013/04/25 19:21:56 hwoarang Exp $
EAPI=5
AUTOTOOLS_AUTORECONF=true
inherit autotools-utils
DESCRIPTION="A JSON implementation in C"
HOMEPAGE="https://github.com/json-c/json-c/wiki"
SRC_URI="https://s3.amazonaws.com/json-c_releases/releases/${P}.tar.gz"
LICENSE="MIT"
SLOT="0/0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="doc static-libs"
# tests break otherwise
AUTOTOOLS_IN_SOURCE_BUILD=1
src_prepare() {
sed -i -e "s:-Werror::" Makefile.am.inc || die
autotools-utils_src_prepare
}
src_configure() {
# Disable old lib compatibility
myeconfargs=(--disable-oldname-compat)
autotools-utils_src_configure
}
src_test() {
export USE_VALGRIND=0 VERBOSE=1
autotools-utils_src_test
}
src_install() {
use doc && HTML_DOCS=( "${S}"/doc/html )
autotools-utils_src_install
# add symlink for projects not using pkgconfig
dosym ../json-c /usr/include/json-c/json
}