diff options
Diffstat (limited to 'dev-db/kdb/kdb-3.1.0-r1.ebuild')
-rw-r--r-- | dev-db/kdb/kdb-3.1.0-r1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-db/kdb/kdb-3.1.0-r1.ebuild b/dev-db/kdb/kdb-3.1.0-r1.ebuild new file mode 100644 index 000000000000..b2e6da42d9e6 --- /dev/null +++ b/dev-db/kdb/kdb-3.1.0-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_6 ) + +inherit kde5 python-any-r1 + +DESCRIPTION="Database connectivity and creation framework for various vendors" +[[ ${KDE_BUILD_TYPE} != live ]] && SRC_URI="mirror://kde/stable/${PN}/src/${P}.tar.xz" + +LICENSE="LGPL-2+" +SLOT="5/4" +KEYWORDS="~amd64 ~x86" +IUSE="debug mysql postgres sqlite" + +RDEPEND=" + $(add_frameworks_dep kcoreaddons) + $(add_qt_dep qtgui) + $(add_qt_dep qtwidgets) + $(add_qt_dep qtxml) + dev-libs/icu:= + mysql? ( virtual/mysql ) + postgres? ( + $(add_qt_dep qtnetwork) + dev-db/postgresql:* + ) + sqlite? ( dev-db/sqlite:3 ) +" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + dev-qt/linguist-tools:5 +" + +pkg_setup() { + python-any-r1_pkg_setup + kde5_pkg_setup +} + +src_configure() { + local mycmakeargs=( + -DKDB_DEBUG_GUI=$(usex debug) + $(cmake-utils_use_find_package mysql MySQL) + $(cmake-utils_use_find_package postgres PostgreSQL) + $(cmake-utils_use_find_package sqlite Sqlite) + ) + + kde5_src_configure +} |