diff options
author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2018-06-30 11:13:25 +0200 |
---|---|---|
committer | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2018-06-30 11:13:25 +0200 |
commit | b0204149e22a5d3faec75a91d5f77507f7fc67d3 (patch) | |
tree | ee46ed14d10931693139f53765187e7c3935f392 /app-office | |
parent | app-office/libalkimia: Import from Gentoo ebuild repository (diff) | |
download | kde-sunset-b0204149e22a5d3faec75a91d5f77507f7fc67d3.tar.gz kde-sunset-b0204149e22a5d3faec75a91d5f77507f7fc67d3.tar.bz2 kde-sunset-b0204149e22a5d3faec75a91d5f77507f7fc67d3.zip |
app-office/kmymoney: Import from Gentoo ebuild repository
Bug: https://bugs.gentoo.org/657814
Diffstat (limited to 'app-office')
-rw-r--r-- | app-office/kmymoney/Manifest | 1 | ||||
-rw-r--r-- | app-office/kmymoney/kmymoney-4.8.1.1-r1.ebuild | 159 | ||||
-rw-r--r-- | app-office/kmymoney/metadata.xml | 13 |
3 files changed, 173 insertions, 0 deletions
diff --git a/app-office/kmymoney/Manifest b/app-office/kmymoney/Manifest new file mode 100644 index 00000000..88f26a7d --- /dev/null +++ b/app-office/kmymoney/Manifest @@ -0,0 +1 @@ +DIST kmymoney-4.8.1.1.tar.xz 20963444 BLAKE2B d2be72a1c7dc41f48405ee406c419b9eb74cc02a80949965b8241331c00fbec23c32177aea0a401a76ef64a97e25e9e532c28e4f29bf88c9c2fd04f608790df6 SHA512 1f730f7db9117469aebaab33891f6064f648fa0ad25afff9ac1fab8d638c376d8e1f013401512c4be060436d6bbdfdacad6427b1e0911ac6b46288db1e242783 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 00000000..34a42561 --- /dev/null +++ b/app-office/kmymoney/kmymoney-4.8.1.1-r1.ebuild @@ -0,0 +1,159 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils flag-o-matic gnome2-utils virtualx xdg-utils + +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 +} + +pkg_postinst() { + gnome2_icon_cache_update + xdg_desktop_database_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + gnome2_icon_cache_update + xdg_desktop_database_update + xdg_mimeinfo_database_update +} diff --git a/app-office/kmymoney/metadata.xml b/app-office/kmymoney/metadata.xml new file mode 100644 index 00000000..894d062e --- /dev/null +++ b/app-office/kmymoney/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>kde@gentoo.org</email> + <name>Gentoo KDE Project</name> + </maintainer> + <use> + <flag name="hbci">Enable HBCI support using <pkg>net-libs/aqbanking</pkg></flag> + <flag name="quotes">Enable Online Stock Quote retrieval</flag> + <flag name="weboob">Enable import of online banking transactions extracted by <pkg>www-client/weboob</pkg></flag> + </use> +</pkgmetadata> |