public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/kmymoney/
Date: Wed, 24 Jan 2018 16:24:45 +0000 (UTC)	[thread overview]
Message-ID: <1516811073.f692e2eedc10cdc0b6dae14ccfe0e1b10ba704af.asturm@gentoo> (raw)

commit:     f692e2eedc10cdc0b6dae14ccfe0e1b10ba704af
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 24 16:19:45 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> 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]
+	<app-office/libalkimia-6.0.0
+	dev-libs/gmp:0=
+	dev-libs/libgpg-error
+	dev-qt/qtcore:4[ssl]
+	dev-qt/qtdbus:4
+	dev-qt/qtgui:4
+	dev-qt/qtsql:4
+	dev-qt/qtsvg:4
+	kde-frameworks/kdelibs:4
+	x11-misc/shared-mime-info
+	calendar? ( dev-libs/libical:= )
+	hbci? (
+		>=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
+}


             reply	other threads:[~2018-01-24 16:24 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-24 16:24 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-03  3:35 [gentoo-commits] repo/gentoo:master commit in: app-office/kmymoney/ Sam James
2022-09-16  6:52 Agostino Sarubbo
2022-09-06  2:19 Sam James
2022-02-17 18:43 Sam James
2021-08-03 14:06 Andreas Sturmlechner
2021-08-03 12:04 Agostino Sarubbo
2021-08-02 12:17 Sam James
2021-06-28 12:32 Andreas Sturmlechner
2021-06-18 13:15 David Seifert
2021-02-03  0:25 Andreas Sturmlechner
2021-02-02 23:46 Sam James
2021-01-27 19:55 Sam James
2020-12-22 11:18 Andreas Sturmlechner
2020-10-26 16:09 Andreas Sturmlechner
2020-08-16 22:25 Andreas Sturmlechner
2020-08-12  6:01 Agostino Sarubbo
2020-08-11 11:00 Agostino Sarubbo
2020-06-28 16:46 Andreas Sturmlechner
2020-05-27 21:33 Andreas Sturmlechner
2020-02-15 10:33 Andreas Sturmlechner
2020-02-13 12:46 Agostino Sarubbo
2020-02-09 16:11 Michał Górny
2020-02-08 13:54 Mikle Kolyada
2020-01-19 22:08 Andreas Sturmlechner
2019-12-02 16:33 Mikle Kolyada
2019-12-02 16:12 Mikle Kolyada
2019-11-13 21:25 Andreas Sturmlechner
2019-11-13 21:25 Andreas Sturmlechner
2019-10-13 13:41 Andreas Sturmlechner
2019-10-13 11:19 Andreas Sturmlechner
2019-09-18 18:13 Andreas Sturmlechner
2019-08-27 19:59 Andreas Sturmlechner
2019-08-24  9:07 Andreas Sturmlechner
2019-08-22 16:51 Andreas Sturmlechner
2019-08-14 13:00 Andreas Sturmlechner
2019-08-14 13:00 Andreas Sturmlechner
2019-07-10 10:36 Andreas Sturmlechner
2019-06-05 16:54 Andreas Sturmlechner
2019-06-04 22:00 Andreas Sturmlechner
2019-06-04 20:58 Thomas Deutschmann
2019-05-25  8:36 Mikle Kolyada
2019-04-22 10:41 Andreas Sturmlechner
2019-03-02 20:57 Andreas Sturmlechner
2019-03-02 20:49 Thomas Deutschmann
2019-02-25 15:14 Mikle Kolyada
2019-02-07 15:15 Andreas Sturmlechner
2019-01-28 16:48 Andreas Sturmlechner
2018-12-13 15:35 Mikle Kolyada
2018-12-13 12:48 Thomas Deutschmann
2018-11-04 20:33 Andreas Sturmlechner
2018-04-29 18:47 Andreas Sturmlechner
2018-04-29 15:34 Andreas Sturmlechner
2018-04-06  0:42 Andreas Sturmlechner
2018-04-06  0:33 Thomas Deutschmann
2018-04-05 23:38 Andreas Sturmlechner
2018-04-05 21:16 Aaron Bauman
2018-03-22 17:02 Andreas Sturmlechner
2018-03-22 12:22 Andreas Sturmlechner
2018-03-19 17:16 Andreas Sturmlechner
2018-03-19 15:07 Andreas Sturmlechner
2018-03-12  3:03 Michael Palimaka
2018-02-07 14:41 Andreas Sturmlechner
2018-02-07 14:14 Andreas Sturmlechner
2018-01-27  1:02 Michael Palimaka
2018-01-27  1:02 Michael Palimaka
2018-01-26 19:54 Thomas Deutschmann
2018-01-24 16:24 Andreas Sturmlechner
2017-12-28 22:07 Andreas Sturmlechner
2017-12-03 17:20 Andreas Sturmlechner
2017-12-03 17:20 Andreas Sturmlechner
2017-08-27  9:35 Andreas Sturmlechner
2017-08-19  8:42 Andreas Sturmlechner
2017-08-18 15:18 Michael Palimaka
2017-05-27 16:10 Andreas Sturmlechner
2017-05-02 11:08 Andreas Sturmlechner
2017-05-01  8:03 Andreas Sturmlechner
2017-05-01  8:03 Andreas Sturmlechner
2015-09-20 13:07 Manuel Rüger
2015-09-19 13:30 Agostino Sarubbo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1516811073.f692e2eedc10cdc0b6dae14ccfe0e1b10ba704af.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox