diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-admin/elektra/elektra-9999.ebuild | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-admin/elektra/elektra-9999.ebuild')
-rw-r--r-- | app-admin/elektra/elektra-9999.ebuild | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/app-admin/elektra/elektra-9999.ebuild b/app-admin/elektra/elektra-9999.ebuild new file mode 100644 index 000000000000..0c88c626bea7 --- /dev/null +++ b/app-admin/elektra/elektra-9999.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-multilib eutils java-pkg-opt-2 git-r3 + +DESCRIPTION="Universal and secure framework to store config parameters in a hierarchical key-value pair mechanism" +HOMEPAGE="http://freedesktop.org/wiki/Software/Elektra" +EGIT_REPO_URI="git://github.com/ElektraInitiative/libelektra.git" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="" +PLUGIN_IUSE="augeas iconv ini java simpleini syslog systemd tcl +uname xml yajl"; +IUSE="dbus doc qt5 static-libs test ${PLUGIN_IUSE}" + +RDEPEND="dev-libs/libltdl:0[${MULTILIB_USEDEP}] + >=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] + augeas? ( app-admin/augeas ) + dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] ) + iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) + java? ( >=virtual/jdk-1.8.0 ) + qt5? ( + >=dev-qt/qtdeclarative-5.3 + >=dev-qt/qtgui-5.3 + >=dev-qt/qttest-5.3 + >=dev-qt/qtwidgets-5.3 + ) + uname? ( sys-apps/coreutils ) + systemd? ( sys-apps/systemd[${MULTILIB_USEDEP}] ) + yajl? ( >=dev-libs/yajl-1.0.11-r1[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + test? ( >=dev-cpp/gtest-1.7.0 )" + +DOCS=( README.md doc/AUTHORS doc/CODING.md doc/NEWS.md doc/todo/TODO ) +# tries to write to user's home directory (and doesn't respect HOME) +RESTRICT="test" + +MULTILIB_WRAPPED_HEADERS=( /usr/include/elektra/kdbconfig.h ) + +PATCHES=( "${FILESDIR}/${PN}"-0.8.11-conditional-glob-tests.patch ) + +src_prepare() { + cmake-utils_src_prepare + + einfo remove bundled libs + # TODO: Remove bundled inih from src/plugins/ini (add to portage): + # https://code.google.com/p/inih/ + rm -rf src/external || die + + # move doc files to correct location + sed -e "s/elektra-api/${PF}/" \ + -i cmake/ElektraCache.cmake || die + + # avoid useless build time, nothing ends up installed + comment_add_subdirectory benchmarks + comment_add_subdirectory examples +} + +multilib_src_configure() { + local my_plugins="ALL" + + if multilib_is_native_abi ; then + use augeas || my_plugins+=";-augeas" + use java || my_plugins+=";-jni" + else + my_plugins+=";-augeas;-jni" + fi + + use dbus || my_plugins+=";-dbus" + use iconv || my_plugins+=";-iconv" + use ini || my_plugins+=";-ini" # bundles inih + use simpleini || my_plugins+=";-simpleini" + use syslog || my_plugins+=";-syslog" + use systemd || my_plugins+=";-journald" + use tcl || my_plugins+=";-tcl" + use uname || my_plugins+=";-uname" + use xml || my_plugins+=";-xmltool" + use yajl || my_plugins+=";-yajl" + + # Disabling for good (?): + # counter - Only useful for debugging the plugin framework + # doc - Explaining basic makeup of a function //bug #514402 + # noresolver - Does not resolve, but can act as one + # template - Template for new plugin written in C + # wresolver - Resolver for non-POSIX, e.g. w32/w64 systems + my_plugins+=";-counter;-doc;-noresolver;-template;-wresolver" + + local my_tools + + if multilib_is_native_abi ; then + my_tools="kdb" + use qt5 && my_tools+=";qt-gui" + fi + + mycmakeargs=( + "-DBUILD_SHARED=ON" + "-DPLUGINS=${my_plugins}" + "-DTOOLS=${my_tools}" + "-DLATEX_COMPILER=OFF" + "-DTARGET_CMAKE_FOLDER=share/cmake/Modules" + $(multilib_is_native_abi && cmake-utils_use doc BUILD_DOCUMENTATION \ + || echo -DBUILD_DOCUMENTATION=OFF) + $(cmake-utils_use static-libs BUILD_STATIC) + $(cmake-utils_use test BUILD_TESTING) + $(cmake-utils_use test ENABLE_TESTING) + ) + + cmake-utils_src_configure +} + +multilib_src_install_all() { + einfo remove test_data + rm -rvf "${D}/usr/share/${PN}" || die "Failed to remove test_data" + einfo remove tool_exec + rm -rvf "${D}/usr/$(get_libdir)/${PN}/tool_exec" || die "Failed to remove tool_exec" +} |