summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-02-14 22:45:55 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2019-02-15 00:06:32 +0100
commita8edb29d6d2db42e46a490989b39bda11511b5e8 (patch)
tree62b63ffce978bef9e0022c3249f70bbb9c347a79 /dev-db/sqlitebrowser
parentapp-emulation/q4wine: 1.3.11 version bump (diff)
downloadgentoo-a8edb29d6d2db42e46a490989b39bda11511b5e8.tar.gz
gentoo-a8edb29d6d2db42e46a490989b39bda11511b5e8.tar.bz2
gentoo-a8edb29d6d2db42e46a490989b39bda11511b5e8.zip
dev-db/sqlitebrowser: Fix RDEPENDs, gnome2-utils -> xdg, EAPI-7 bump
Closes: https://bugs.gentoo.org/664496 Package-Manager: Portage-2.3.60, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-db/sqlitebrowser')
-rw-r--r--dev-db/sqlitebrowser/sqlitebrowser-3.10.1-r1.ebuild59
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-db/sqlitebrowser/sqlitebrowser-3.10.1-r1.ebuild b/dev-db/sqlitebrowser/sqlitebrowser-3.10.1-r1.ebuild
new file mode 100644
index 000000000000..009bf7b5d948
--- /dev/null
+++ b/dev-db/sqlitebrowser/sqlitebrowser-3.10.1-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils desktop xdg
+
+DESCRIPTION="SQLite Database Browser"
+HOMEPAGE="https://sqlitebrowser.org"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3 MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+BDEPEND="
+ dev-qt/linguist-tools:5
+ test? ( dev-qt/qttest:5 )
+"
+DEPEND="
+ dev-cpp/antlr-cpp:2
+ dev-db/sqlite:3
+ >=dev-libs/qcustomplot-2.0.0[qt5(+)]
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5[ssl]
+ dev-qt/qtwidgets:5
+ >=x11-libs/qscintilla-2.10.1:=[qt5(+)]
+"
+RDEPEND="${DEPEND}
+ app-editors/qhexedit2
+ dev-qt/qtsvg:5
+"
+
+PATCHES=( "${FILESDIR}"/${PN}-3.10.1-unbundle.patch )
+
+src_prepare() {
+ cmake-utils_src_prepare
+ find libs/{antlr-2.7.7,qcustomplot-source,qscintilla} -delete || die
+
+ sed -e "/^project/ s/\".*\"/sqlitebrowser/" -i CMakeLists.txt || die
+
+ if ! use test; then
+ sed -e "/qt5_use_modules/ s/ Test//" -i CMakeLists.txt || die
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_TESTING=$(usex test)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ doicon images/sqlitebrowser.svg
+}