From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 59201138334 for ; Sun, 25 Nov 2018 23:42:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 24D71E09D9; Sun, 25 Nov 2018 23:41:58 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D8E27E09D6 for ; Sun, 25 Nov 2018 23:41:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5D8C3335D9B for ; Sun, 25 Nov 2018 23:41:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 350804BB for ; Sun, 25 Nov 2018 23:41:53 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1543189233.85708e66952492af605ecf516d877025ada33dfe.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/elektra/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/elektra/elektra-0.8.20-r1.ebuild X-VCS-Directories: app-admin/elektra/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 85708e66952492af605ecf516d877025ada33dfe X-VCS-Branch: master Date: Sun, 25 Nov 2018 23:41:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 83946e72-28ec-4457-8f2d-43cff10eb396 X-Archives-Hash: 0301ec1a436e66dd0baeebd947b48e30 commit: 85708e66952492af605ecf516d877025ada33dfe Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Nov 25 20:50:56 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Nov 25 23:40:33 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85708e66 app-admin/elektra: Drop cmake-multilib Nothing ever asked for that. Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner gentoo.org> app-admin/elektra/elektra-0.8.20-r1.ebuild | 108 +++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/app-admin/elektra/elektra-0.8.20-r1.ebuild b/app-admin/elektra/elektra-0.8.20-r1.ebuild new file mode 100644 index 00000000000..fbe49fa0866 --- /dev/null +++ b/app-admin/elektra/elektra-0.8.20-r1.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils eutils java-pkg-opt-2 + +DESCRIPTION="Framework to store config parameters in hierarchical key-value pairs" +HOMEPAGE="https://www.libelektra.org" +SRC_URI="https://www.libelektra.org/ftp/elektra/releases/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +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 + >=dev-libs/libxml2-2.9.1-r4 + augeas? ( app-admin/augeas ) + dbus? ( >=sys-apps/dbus-1.6.18-r1 ) + iconv? ( >=virtual/libiconv-0-r1 ) + java? ( >=virtual/jdk-1.8.0 ) + qt5? ( + dev-qt/qtdeclarative:5 + dev-qt/qtgui:5 + dev-qt/qttest:5 + dev-qt/qtwidgets:5 + ) + systemd? ( sys-apps/systemd ) + uname? ( sys-apps/coreutils ) + yajl? ( >=dev-libs/yajl-1.0.11-r1 ) +" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + test? ( >=dev-cpp/gtest-1.7.0 ) +" + +DOCS=( README.md doc/AUTHORS doc/CODING.md doc/todo/TODO ) +# tries to write to user's home directory (and doesn't respect HOME) +RESTRICT="test" + +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 + cmake_comment_add_subdirectory benchmarks + cmake_comment_add_subdirectory examples +} + +src_configure() { + local my_plugins="ALL" + + use augeas || my_plugins+=";-augeas" + use dbus || my_plugins+=";-dbus" + use iconv || my_plugins+=";-iconv" + use ini || my_plugins+=";-ini" # bundles inih + use java || my_plugins+=";-jni" + 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="kdb" + use qt5 && my_tools+=";qt-gui" + + local mycmakeargs=( + -DBUILD_PDF=OFF + -DBUILD_SHARED=ON + -DBUILD_STATIC=$(usex static-libs) + -DBUILD_TESTING=$(usex test) + -DENABLE_TESTING=$(usex test) + -DPLUGINS=${my_plugins} + -DTOOLS=${my_tools} + -DBUILD_DOCUMENTATION=$(usex doc) + -DTARGET_CMAKE_FOLDER=share/cmake/Modules + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + einfo remove test_data + rm -rvf "${ED%/}/usr/share/${PN}" || die "Failed to remove test_data" + einfo remove tool_exec + rm -rvf "${ED%/}/usr/$(get_libdir)/${PN}/tool_exec" || die "Failed to remove tool_exec" +}