# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 inherit git-r3 cmake-utils DESCRIPTION="A general purpose library for the OpenWRT project." HOMEPAGE="http://wiki.openwrt.org/" EGIT_REPO_URI="git://nbd.name/luci2/${PN}.git" LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="lua" COMMON_DEPEND=" lua? ( dev-lang/lua ) " DEPEND=" $COMMON_DEPEND " RDEPEND=" $COMMON_DEPEND " src_prepare() { sed -i 's/-Werror //' CMakeLists.txt sed -i 's|\|json-c/json.h|' jshn.c blobmsg_json.h echo 'INCLUDE_DIRECTORIES(/usr/include/libnl3)' >> CMakeLists.txt } src_configure() { local mycmakeargs=( -DBUILD_LUA=$(usex lua ON OFF) ) cmake-utils_src_configure }