summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2016-10-22 20:52:26 +0200
committerDavid Seifert <soap@gentoo.org>2016-11-15 23:28:39 +0100
commit58c9ff528235a3b483358f53f31e9cb75df0cf62 (patch)
tree4f9ef47d404c9aeb6979c5e14cb2646ebe524ed2 /dev-db/sqlitebrowser/sqlitebrowser-3.9.1.ebuild
parentdev-vcs/rapidsvn: remove unused patch (diff)
downloadgentoo-58c9ff528235a3b483358f53f31e9cb75df0cf62.tar.gz
gentoo-58c9ff528235a3b483358f53f31e9cb75df0cf62.tar.bz2
gentoo-58c9ff528235a3b483358f53f31e9cb75df0cf62.zip
dev-db/sqlitebrowser: 3.9.1 version bump
Gentoo-bug: 596884 Package-Manager: portage-2.3.0 Closes: https://github.com/gentoo/gentoo/pull/2793 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-db/sqlitebrowser/sqlitebrowser-3.9.1.ebuild')
-rw-r--r--dev-db/sqlitebrowser/sqlitebrowser-3.9.1.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-db/sqlitebrowser/sqlitebrowser-3.9.1.ebuild b/dev-db/sqlitebrowser/sqlitebrowser-3.9.1.ebuild
new file mode 100644
index 000000000000..c8415a6779fe
--- /dev/null
+++ b/dev-db/sqlitebrowser/sqlitebrowser-3.9.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit cmake-utils eutils
+
+DESCRIPTION="SQLite Database Browser"
+HOMEPAGE="http://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"
+
+RDEPEND="
+ dev-cpp/antlr-cpp:2
+ dev-db/sqlite:3
+ dev-libs/qcustomplot[qt5]
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtwidgets:5
+ x11-libs/qscintilla
+"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5
+ test? ( dev-qt/qttest:5 )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.7.0-unbundle.patch
+ "${FILESDIR}"/${PN}-3.9.1-cmake.patch
+)
+
+src_prepare() {
+ cmake-utils_src_prepare
+ # https://github.com/qingfengxia/qhexedit still bundled
+ # x11-libs/qscintilla[qt4?,qt5?] still bundled
+ find libs/{antlr-2.7.7,qcustomplot-source} -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=(
+ -DUSE_QT5=ON
+ -DENABLE_TESTING=$(usex test)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ doicon images/sqlitebrowser.svg
+}