summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2018-06-30 11:05:42 +0200
committerAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2018-06-30 11:06:59 +0200
commit200649777eda1040f12c4a894b6d733098ce3715 (patch)
tree8b2c1ced89591b5c00a5ae50d5902d4280d17729 /sys-libs
parentx11-libs/qwt: Import from Gentoo ebuild repository (diff)
downloadkde-sunset-200649777eda1040f12c4a894b6d733098ce3715.tar.gz
kde-sunset-200649777eda1040f12c4a894b6d733098ce3715.tar.bz2
kde-sunset-200649777eda1040f12c4a894b6d733098ce3715.zip
sys-libs/gwenhywfar: Import 4.20.0 with USE=qt4
Not tested.
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/gwenhywfar/Manifest1
-rw-r--r--sys-libs/gwenhywfar/gwenhywfar-4.20.0.ebuild121
-rw-r--r--sys-libs/gwenhywfar/metadata.xml13
3 files changed, 135 insertions, 0 deletions
diff --git a/sys-libs/gwenhywfar/Manifest b/sys-libs/gwenhywfar/Manifest
new file mode 100644
index 00000000..3a6504b4
--- /dev/null
+++ b/sys-libs/gwenhywfar/Manifest
@@ -0,0 +1 @@
+DIST gwenhywfar-4.20.0.tar.gz 2379537 BLAKE2B 7e3439959f61c28d8845ee8355b21b71446f3108f5e344ee600eda58cdccb31cfe93a45cdc9ef8b682fbb3171d20658766918924b48150fea5f2abc1eaa76af1 SHA512 bc1d47c39654940198396f1bdb9f4a87ff4e0e6b07cb4525c10f7f8e6ce93445d5b9d85586a47c93c558e86eb826f7006eca29b93fad6371dfe72830bf9b88e1
diff --git a/sys-libs/gwenhywfar/gwenhywfar-4.20.0.ebuild b/sys-libs/gwenhywfar/gwenhywfar-4.20.0.ebuild
new file mode 100644
index 00000000..486bc654
--- /dev/null
+++ b/sys-libs/gwenhywfar/gwenhywfar-4.20.0.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils
+
+DESCRIPTION="A multi-platform helper library for other libraries"
+HOMEPAGE="https://www.aquamaniac.de/aqbanking/"
+SRC_URI="https://www.aquamaniac.de/sites/download/download.php?package=01&release=208&file=02&dummy=${P}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/60" # correspond with libgwenhywfar.so version
+KEYWORDS="amd64 ~hppa ~ppc ~ppc64 ~sparc x86"
+IUSE="debug designer doc fox gtk libressl qml qt4 qt5 sensors serialport test webkit"
+
+REQUIRED_USE="designer? ( qt5 ) qml? ( qt5 ) sensors? ( qt5 ) serialport? ( qt5 ) webkit? ( qt5 )"
+
+# TODO: not yet required by any revdep. Switch gtk when gnucash is ported.
+# gtk3? ( x11-libs/gtk+:3 )
+RDEPEND="
+ dev-libs/libgcrypt:0=
+ dev-libs/libgpg-error
+ libressl? ( dev-libs/libressl:0= )
+ !libressl? ( dev-libs/openssl:0= )
+ net-libs/gnutls:=
+ virtual/libiconv
+ virtual/libintl
+ virtual/opengl
+ designer? ( dev-qt/designer:5 )
+ fox? ( x11-libs/fox:1.6 )
+ gtk? ( x11-libs/gtk+:2 )
+ qml? ( dev-qt/qtdeclarative:5 )
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ )
+ qt5? (
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qthelp:5
+ dev-qt/qtmultimedia:5[widgets]
+ dev-qt/qtnetwork:5
+ dev-qt/qtopengl:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtscript:5
+ dev-qt/qtsql:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtx11extras:5
+ dev-qt/qtxml:5
+ dev-qt/qtxmlpatterns:5
+ )
+ sensors? ( dev-qt/qtsensors:5 )
+ serialport? ( dev-qt/qtserialport:5 )
+ test? ( dev-qt/qttest:5 )
+ webkit? ( dev-qt/qtwebkit:5 )
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )
+"
+
+# broken upstream, reported but got no reply
+RESTRICT="test"
+
+src_configure() {
+ disableQtModule() {
+ local module
+ for module in ${@}; do
+ sed -e "/qtHaveModule(${module})/s|^|#DONT|" -i configure || die
+ done
+ }
+
+ use designer || disableQtModule designer uitools
+ use qml || disableQtModule qml qmltest
+ use sensors || disableQtModule sensors
+ use serialport || disableQtModule serialport
+ use test || disableQtModule testlib
+ use webkit || disableQtModule webkit webkitwidgets
+
+ local guis=()
+ use fox && guis+=( fox16 )
+ use gtk && guis+=( gtk2 )
+ use qt4 && guis+=( qt4 )
+ use qt5 && guis+=( qt5 )
+ # use gtk3 && guis+=( gtk3 )
+
+ local myeconfargs=(
+ --enable-ssl
+ $(use_enable debug)
+ $(use_enable doc full-doc)
+ --with-docpath="${EPREFIX}/usr/share/doc/${PF}/apidoc"
+ )
+
+ use qt4 && myeconfargs+=(
+ --with-qt4-moc="$(qt4_get_bindir)/moc"
+ --with-qt5-qmake="$(qt4_get_bindir)/qmake"
+ )
+ use qt5 && myeconfargs+=(
+ --with-qt5-moc="$(qt5_get_bindir)/moc"
+ --with-qt5-qmake="$(qt5_get_bindir)/qmake"
+ )
+
+ guis_config="--with-guis=${guis[@]}"
+ econf ${myeconfargs[@]} "${guis_config}"
+}
+
+src_compile() {
+ emake
+ use doc && emake srcdoc
+}
+
+src_install() {
+ default
+ use doc && emake DESTDIR="${D}" install-srcdoc
+ find "${ED}" -name '*.la' -delete || die
+}
diff --git a/sys-libs/gwenhywfar/metadata.xml b/sys-libs/gwenhywfar/metadata.xml
new file mode 100644
index 00000000..be278d36
--- /dev/null
+++ b/sys-libs/gwenhywfar/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-needed -->
+ <use>
+ <flag name="designer">Build plugins for <pkg>dev-qt/designer</pkg></flag>
+ <flag name="fox">Use <pkg>x11-libs/fox</pkg> graphical toolkit</flag>
+ <flag name="qml">Enable support for plugins using QML</flag>
+ <flag name="sensors">Enable support for <pkg>dev-qt/qtsensors</pkg> module</flag>
+ <flag name="serialport">Enable support for <pkg>dev-qt/qtserialport</pkg> module</flag>
+ <flag name="webkit">Enable support for <pkg>dev-qt/qtwebkit</pkg></flag>
+ </use>
+</pkgmetadata>