# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit cmake-utils eutils DESCRIPTION="universal and secure framework to store config parameters in a hierarchical key-value pair mechanism" HOMEPAGE="http://sourceforge.net/projects/elektra/" SRC_URI="ftp://ftp.markus-raab.org/${PN}/releases/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc examples iconv static-libs test xml yajl" PLUGINS="ccode;dbus;dump;error;fstab;glob;hexcode;hidden;hosts;network;ni;null;path;resolver;\ simpleini;struct;success;syslog;tcl;template;timeofday;tracer;type;validation" RDEPEND="dev-libs/libxml2" DEPEND="${RDEPEND} sys-devel/libtool doc? ( app-doc/doxygen ) iconv? ( virtual/libiconv ) test? ( dev-libs/libxml2[static-libs] ) yajl? ( dev-libs/yajl )" src_configure() { #move doc files to correct location sed -i "s/elektra-api/elektra-${PV}/" ${S}/cmake/ElektraCache.cmake if use doc; then PLUGINS="${PLUGINS};doc" fi if use iconv; then PLUGINS="${PLUGINS};iconv" fi if use xml; then PLUGINS="${PLUGINS};xmltool" fi if use yajl; then PLUGINS="${PLUGINS};yajl" fi local mycmakeargs=( -DPLUGINS=${PLUGINS} -DLATEX_COMPILER=OFF $(cmake-utils_use doc BUILD_DOCUMENTATION) $(cmake-utils_use examples BUILD_EXAMPLES) $(cmake-utils_use static-libs BUILD_STATIC) $(cmake-utils_use test BUILD_TESTING) ) cmake-utils_src_configure } src_install() { dodoc doc/AUTHORS doc/CHANGES doc/NEWS doc/README doc/todo/TODO # if use doc; then # mv ${CMAKE_BUILD_DIR}/doc/man/man3/err.3 ${CMAKE_BUILD_DIR}/doc/man/man3/elektra_err.3 # doman ${CMAKE_BUILD_DIR}/doc/man/man3/*.3 # fi cmake-utils_src_install }