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 927A3138331 for ; Wed, 24 Jan 2018 16:24:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A262FE0893; Wed, 24 Jan 2018 16:24:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 76200E0891 for ; Wed, 24 Jan 2018 16:24:47 +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 7DE1F335C30 for ; Wed, 24 Jan 2018 16:24:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3E5F91C8 for ; Wed, 24 Jan 2018 16:24:45 +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: <1516811073.f692e2eedc10cdc0b6dae14ccfe0e1b10ba704af.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/kmymoney/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-office/kmymoney/kmymoney-4.8.1.1-r1.ebuild X-VCS-Directories: app-office/kmymoney/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: f692e2eedc10cdc0b6dae14ccfe0e1b10ba704af X-VCS-Branch: master Date: Wed, 24 Jan 2018 16:24:45 +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: 18fad2b8-8f0a-491d-9754-ff3cc846ef1d X-Archives-Hash: 77008173de64a4df87c920463c994838 commit: f692e2eedc10cdc0b6dae14ccfe0e1b10ba704af Author: Andreas Sturmlechner gentoo org> AuthorDate: Wed Jan 24 16:19:45 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Wed Jan 24 16:24:33 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f692e2ee app-office/kmymoney: Switch from kde4-base to cmake-utils Package-Manager: Portage-2.3.20, Repoman-2.3.6 app-office/kmymoney/kmymoney-4.8.1.1-r1.ebuild | 147 +++++++++++++++++++++++++ 1 file changed, 147 insertions(+) diff --git a/app-office/kmymoney/kmymoney-4.8.1.1-r1.ebuild b/app-office/kmymoney/kmymoney-4.8.1.1-r1.ebuild new file mode 100644 index 00000000000..612279679a1 --- /dev/null +++ b/app-office/kmymoney/kmymoney-4.8.1.1-r1.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils flag-o-matic virtualx + +DESCRIPTION="Personal finance manager by KDE" +HOMEPAGE="https://kmymoney.org/" +SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="4" +KEYWORDS="~amd64 ~x86" +IUSE="calendar debug doc +handbook hbci ofx quotes test weboob" + +COMMON_DEPEND=" + >=app-crypt/gpgme-1.7.0[cxx] + =net-libs/aqbanking-5.5.1 + >=sys-libs/gwenhywfar-4.15.3[qt4] + ) + ofx? ( >=dev-libs/libofx-0.9.4 ) + weboob? ( www-client/weboob ) +" +RDEPEND="${COMMON_DEPEND} + kde-frameworks/oxygen-icons:* + handbook? ( kde-frameworks/kdelibs:4[handbook] ) + quotes? ( dev-perl/Finance-Quote ) +" +DEPEND="${COMMON_DEPEND} + dev-libs/boost + virtual/pkgconfig + doc? ( app-doc/doxygen ) + handbook? ( + app-text/docbook-xml-dtd:4.2 + app-text/docbook-xsl-stylesheets + ) + test? ( dev-qt/qttest:4 ) +" + +src_prepare() { + cmake-utils_src_prepare + + if [[ -v LINGUAS ]] ; then + pushd po > /dev/null || die + local lang + for lang in *; do + if [[ -e ${lang} ]] && ! has ${lang/.po/} ${LINGUAS} ; then + case ${lang} in + CMakeLists.txt) ;; + *) rm -r ${lang} || die ;; + esac + cmake_comment_add_subdirectory ${lang} + sed -e "/add_subdirectory([[:space:]]*${lang}\/.*[[:space:]]*)/d" \ + -i CMakeLists.txt || die + fi + done + popd > /dev/null || die + fi + + if ! use handbook; then + cmake_comment_add_subdirectory doc + else + if [[ -d doc && -v LINGUAS ]] ; then + pushd doc > /dev/null || die + local lang + for lang in *; do + if ! has ${lang} ${LINGUAS} && [[ ${lang} != "en_US" ]]; then + cmake_comment_add_subdirectory ${lang} + fi + done + popd > /dev/null || die + fi + fi + + # don't install as executable + sed -i kmymoney/CMakeLists.txt \ + -e "/install.*kmymoney.appdata/ s/PROGRAMS/FILES/" || die +} + +src_configure() { + use debug || append-cppflags -DQT_NO_DEBUG + + local mycmakeargs=( + -DUSE_QT_DESIGNER=OFF + -DENABLE_LIBICAL=$(usex calendar) + -DUSE_DEVELOPER_DOC=$(usex doc) + -DENABLE_KBANKING=$(usex hbci) + -DENABLE_LIBOFX=$(usex ofx) + -DCMAKE_DISABLE_FIND_PACKAGE_KdepimLibs=ON + -DKDE4_BUILD_TESTS=$(usex test) + -DENABLE_WEBOOB=$(usex weboob) + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + use doc && cmake-utils_src_compile apidoc +} + +src_test() { + local kded4_pid + + _test_runner() { + export $(dbus-launch) + kded4 2>&1 > /dev/null & + kded4_pid=$! + + cmake-utils_src_test + } + + unset DBUS_SESSION_BUS_ADDRESS DBUS_SESSION_BUS_PID + + local myctestargs=( -E "(kmymoney-querytabletest)" ) # requires ktimezoned + virtx _test_runner + + if [[ -n "${kded4_pid}" ]] ; then + kill ${kded4_pid} + fi + + if [[ -n "${DBUS_SESSION_BUS_PID}" ]] ; then + kill ${DBUS_SESSION_BUS_PID} + fi +} + +src_install() { + use doc && HTML_DOCS=( "${BUILD_DIR}/apidocs/html/." ) + cmake-utils_src_install + + # We don't want /usr/share/doc/HTML to be compressed, + # because then khelpcenter can't find the docs + [[ -d ${ED%/}/usr/share/doc/HTML ]] && + docompress -x /usr/share/doc/HTML +}