summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-db/sqlitebrowser
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-db/sqlitebrowser')
-rw-r--r--dev-db/sqlitebrowser/Manifest3
-rw-r--r--dev-db/sqlitebrowser/files/sqlitebrowser-3.3.1-unbundle.patch46
-rw-r--r--dev-db/sqlitebrowser/files/sqlitebrowser-3.5.1-unbundle.patch70
-rw-r--r--dev-db/sqlitebrowser/files/sqlitebrowser-3.6.0-unbundle-keep-qscintilla.patch62
-rw-r--r--dev-db/sqlitebrowser/files/sqlitebrowser-3.6.0-unbundle.patch75
-rw-r--r--dev-db/sqlitebrowser/metadata.xml18
-rw-r--r--dev-db/sqlitebrowser/sqlitebrowser-3.3.1.ebuild45
-rw-r--r--dev-db/sqlitebrowser/sqlitebrowser-3.5.1.ebuild72
-rw-r--r--dev-db/sqlitebrowser/sqlitebrowser-3.6.0.ebuild74
9 files changed, 465 insertions, 0 deletions
diff --git a/dev-db/sqlitebrowser/Manifest b/dev-db/sqlitebrowser/Manifest
new file mode 100644
index 000000000000..7c2b4ba5b84c
--- /dev/null
+++ b/dev-db/sqlitebrowser/Manifest
@@ -0,0 +1,3 @@
+DIST sqlitebrowser-3.3.1.tar.gz 818842 SHA256 5113d3b4c219585fe017047556363d4934b2b3e3f7c3f0968b87e9eac0156d22 SHA512 3cb44631f39b1c1a90b86502761826830054f440509faaece36052958af361185d41335f763499cec5fc005cc90eb7be403c4ac2a5cec655fe63d989434880bc WHIRLPOOL c4ab107ac97800c14ce788e4742beb528f40c74dc787217fdc9fe5dc1f0d8a67b97cd3fc9e6842b54e321d287fff925f050a20d22fbfe5e7491d4c2140c1f6de
+DIST sqlitebrowser-3.5.1.tar.gz 874540 SHA256 d7f3d1e54882ebabab3b2f7764a6bb921d4fe319db84a092147c941ce19feb8d SHA512 815665002932a606c7e1da8738be0d94a0b2bf330042af30d5b4033ce27c548fec1a05b51f2a11a7620d4e123961ba63595b60aec7eac716e5d3747bb90886e2 WHIRLPOOL 1b8984eefe730ef468fc64bff1465de3a5b273e3e1594916f05cbe07bec315126001b42cc05d6a3c153aaaccab39bdafa29d31f83fceba6aa7697df7ff870462
+DIST sqlitebrowser-3.6.0.tar.gz 1453029 SHA256 221a410a3ec8512a766ed8bc4cade1f3b1cde94e41e52743d5a6d2a33acb3a56 SHA512 ae4a0bb9ac8ff01ec965ae264a41fe7749672cd6562f0ce5e5b69007ea403fff5dcc4f90be3ffa4d9b7d1dc293767f2ca7757de55895f56efbe6b7be0e6721df WHIRLPOOL 93e053d8b6cf9e67f0294117995443865e29923c899a0263ce117979f982155e4020a88ba865a4b92d162fc8842f5b95c4b512575d153cb7f9fa9445880e1b5c
diff --git a/dev-db/sqlitebrowser/files/sqlitebrowser-3.3.1-unbundle.patch b/dev-db/sqlitebrowser/files/sqlitebrowser-3.3.1-unbundle.patch
new file mode 100644
index 000000000000..263afaf2dea9
--- /dev/null
+++ b/dev-db/sqlitebrowser/files/sqlitebrowser-3.3.1-unbundle.patch
@@ -0,0 +1,46 @@
+ CMakeLists.txt | 12 ++----------
+ 1 file changed, 2 insertions(+), 10 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 68f049e..474e613 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -7,13 +7,9 @@ if(NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE "Release")
+ endif()
+
+-set(ANTLR_DIR libs/antlr-2.7.7)
+ set(QHEXEDIT_DIR libs/qhexedit)
+-set(QCUSTOMPLOT_DIR libs/qcustomplot-source)
+
+-add_subdirectory(${ANTLR_DIR})
+ add_subdirectory(${QHEXEDIT_DIR})
+-add_subdirectory(${QCUSTOMPLOT_DIR})
+
+ if(USE_QT5)
+ find_package(Qt5Widgets REQUIRED)
+@@ -165,9 +161,7 @@ endif(APPLE)
+
+ include_directories(
+ "${CMAKE_CURRENT_BINARY_DIR}"
+- ${ANTLR_DIR}
+ ${QHEXEDIT_DIR}
+- ${QCUSTOMPLOT_DIR}
+ ${ADDITIONAL_INCLUDE_PATHS}
+ src)
+
+@@ -183,12 +177,10 @@ if(USE_QT5)
+ qt5_use_modules(${PROJECT_NAME} Gui Widgets Network Test PrintSupport)
+ set(QT_LIBRARIES "")
+ endif()
+-add_dependencies(${PROJECT_NAME} antlr qhexedit qcustomplot)
++add_dependencies(${PROJECT_NAME} qhexedit)
+
+ link_directories(
+- "${CMAKE_CURRENT_BINARY_DIR}/${ANTLR_DIR}"
+- "${CMAKE_CURRENT_BINARY_DIR}/${QHEXEDIT_DIR}"
+- "${CMAKE_CURRENT_BINARY_DIR}/${QCUSTOMPLOT_DIR}")
++ "${CMAKE_CURRENT_BINARY_DIR}/${QHEXEDIT_DIR}")
+
+ target_link_libraries(${PROJECT_NAME}
+ antlr
diff --git a/dev-db/sqlitebrowser/files/sqlitebrowser-3.5.1-unbundle.patch b/dev-db/sqlitebrowser/files/sqlitebrowser-3.5.1-unbundle.patch
new file mode 100644
index 000000000000..203ddfbeaa68
--- /dev/null
+++ b/dev-db/sqlitebrowser/files/sqlitebrowser-3.5.1-unbundle.patch
@@ -0,0 +1,70 @@
+ CMakeLists.txt | 12 ++----------
+ tests/CMakeLists.txt | 5 +----
+ 2 files changed, 3 insertions(+), 14 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4a76947..a58510b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -7,13 +7,9 @@ if(NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE "Release")
+ endif()
+
+-set(ANTLR_DIR libs/antlr-2.7.7)
+ set(QHEXEDIT_DIR libs/qhexedit)
+-set(QCUSTOMPLOT_DIR libs/qcustomplot-source)
+
+-add_subdirectory(${ANTLR_DIR})
+ add_subdirectory(${QHEXEDIT_DIR})
+-add_subdirectory(${QCUSTOMPLOT_DIR})
+
+ if(USE_QT5)
+ find_package(Qt5Widgets REQUIRED)
+@@ -191,9 +187,7 @@ endif(EXTRAPATH)
+
+ include_directories(
+ "${CMAKE_CURRENT_BINARY_DIR}"
+- ${ANTLR_DIR}
+ ${QHEXEDIT_DIR}
+- ${QCUSTOMPLOT_DIR}
+ ${ADDITIONAL_INCLUDE_PATHS}
+ src)
+
+@@ -210,12 +204,10 @@ if(USE_QT5)
+ qt5_use_modules(${PROJECT_NAME} Gui Widgets Network Test PrintSupport)
+ set(QT_LIBRARIES "")
+ endif()
+-add_dependencies(${PROJECT_NAME} antlr qhexedit qcustomplot)
++add_dependencies(${PROJECT_NAME} qhexedit)
+
+ link_directories(
+- "${CMAKE_CURRENT_BINARY_DIR}/${ANTLR_DIR}"
+- "${CMAKE_CURRENT_BINARY_DIR}/${QHEXEDIT_DIR}"
+- "${CMAKE_CURRENT_BINARY_DIR}/${QCUSTOMPLOT_DIR}")
++ "${CMAKE_CURRENT_BINARY_DIR}/${QHEXEDIT_DIR}")
+
+ target_link_libraries(${PROJECT_NAME}
+ antlr
+diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
+index 75009dc..6fd7f48 100644
+--- a/tests/CMakeLists.txt
++++ b/tests/CMakeLists.txt
+@@ -7,9 +7,6 @@ if(NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE "Release")
+ endif()
+
+-set(ANTLR_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../libs/antlr-2.7.7")
+-add_subdirectory("${ANTLR_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/antlr")
+-
+ if(USE_QT5)
+ find_package(Qt5Widgets REQUIRED)
+ set(CMAKE_AUTOMOC ON)
+@@ -56,7 +53,7 @@ if(NOT USE_QT5)
+ QT4_WRAP_CPP(SQLB_MOC ${SQLB_MOC_HDR})
+ endif()
+
+-include_directories("${ANTLR_DIR}" ../src)
++include_directories(../src)
+
+ add_executable(${PROJECT_NAME} ${SQLB_MOC} ${SQLB_HDR} ${SQLB_SRC})
+
diff --git a/dev-db/sqlitebrowser/files/sqlitebrowser-3.6.0-unbundle-keep-qscintilla.patch b/dev-db/sqlitebrowser/files/sqlitebrowser-3.6.0-unbundle-keep-qscintilla.patch
new file mode 100644
index 000000000000..6d47c2586942
--- /dev/null
+++ b/dev-db/sqlitebrowser/files/sqlitebrowser-3.6.0-unbundle-keep-qscintilla.patch
@@ -0,0 +1,62 @@
+--- sqlitebrowser-3.6.0/CMakeLists.txt
++++ sqlitebrowser-3.6.0/CMakeLists.txt
+@@ -21,14 +21,10 @@
+ set(CMAKE_PREFIX_PATH "${QT5_PATH};${SQLITE3_PATH}")
+ endif()
+
+-set(ANTLR_DIR libs/antlr-2.7.7)
+ set(QHEXEDIT_DIR libs/qhexedit)
+-set(QCUSTOMPLOT_DIR libs/qcustomplot-source)
+ set(QSCINTILLA_DIR libs/qscintilla/Qt4Qt5)
+
+-add_subdirectory(${ANTLR_DIR})
+ add_subdirectory(${QHEXEDIT_DIR})
+-add_subdirectory(${QCUSTOMPLOT_DIR})
+ add_subdirectory(${QSCINTILLA_DIR})
+
+ if(USE_QT5)
+@@ -207,9 +201,7 @@
+
+ include_directories(
+ "${CMAKE_CURRENT_BINARY_DIR}"
+- ${ANTLR_DIR}
+ ${QHEXEDIT_DIR}
+- ${QCUSTOMPLOT_DIR}
+ ${QSCINTILLA_DIR}
+ ${ADDITIONAL_INCLUDE_PATHS}
+ src)
+@@ -227,12 +218,9 @@
+ qt5_use_modules(${PROJECT_NAME} Gui Widgets Network Test PrintSupport)
+ set(QT_LIBRARIES "")
+ endif()
+-add_dependencies(${PROJECT_NAME} antlr qhexedit qcustomplot qscintilla2)
++add_dependencies(${PROJECT_NAME} qhexedit qscintilla2)
+
+ link_directories(
+- "${CMAKE_CURRENT_BINARY_DIR}/${ANTLR_DIR}"
+- "${CMAKE_CURRENT_BINARY_DIR}/${QHEXEDIT_DIR}"
+- "${CMAKE_CURRENT_BINARY_DIR}/${QCUSTOMPLOT_DIR}"
+ "${CMAKE_CURRENT_BINARY_DIR}/${QSCINTILLA_DIR}")
+
+ target_link_libraries(${PROJECT_NAME}
+--- sqlitebrowser-3.6.0/tests/CMakeLists.txt
++++ sqlitebrowser-3.6.0/tests/CMakeLists.txt
+@@ -7,9 +7,6 @@
+ set(CMAKE_BUILD_TYPE "Release")
+ endif()
+
+-set(ANTLR_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../libs/antlr-2.7.7")
+-add_subdirectory("${ANTLR_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/antlr")
+-
+ if(USE_QT5)
+ find_package(Qt5Widgets REQUIRED)
+ set(CMAKE_AUTOMOC ON)
+@@ -65,7 +62,7 @@
+ QT4_WRAP_UI(SQLB_FORM_HDR ${SQLB_FORMS})
+ endif()
+
+-include_directories("${CMAKE_CURRENT_BINARY_DIR}" "${ANTLR_DIR}" ../src)
++include_directories("${CMAKE_CURRENT_BINARY_DIR}" ../src)
+
+ add_executable(${PROJECT_NAME} ${SQLB_MOC} ${SQLB_HDR} ${SQLB_SRC} ${SQLB_FORM_HDR})
+
diff --git a/dev-db/sqlitebrowser/files/sqlitebrowser-3.6.0-unbundle.patch b/dev-db/sqlitebrowser/files/sqlitebrowser-3.6.0-unbundle.patch
new file mode 100644
index 000000000000..d3b31bcbcbe4
--- /dev/null
+++ b/dev-db/sqlitebrowser/files/sqlitebrowser-3.6.0-unbundle.patch
@@ -0,0 +1,75 @@
+--- sqlitebrowser-3.6.0/CMakeLists.txt
++++ sqlitebrowser-3.6.0/CMakeLists.txt
+@@ -21,15 +21,9 @@
+ set(CMAKE_PREFIX_PATH "${QT5_PATH};${SQLITE3_PATH}")
+ endif()
+
+-set(ANTLR_DIR libs/antlr-2.7.7)
+ set(QHEXEDIT_DIR libs/qhexedit)
+-set(QCUSTOMPLOT_DIR libs/qcustomplot-source)
+-set(QSCINTILLA_DIR libs/qscintilla/Qt4Qt5)
+
+-add_subdirectory(${ANTLR_DIR})
+ add_subdirectory(${QHEXEDIT_DIR})
+-add_subdirectory(${QCUSTOMPLOT_DIR})
+-add_subdirectory(${QSCINTILLA_DIR})
+
+ if(USE_QT5)
+ find_package(Qt5Widgets REQUIRED)
+@@ -31,7 +31,7 @@
+ set(CMAKE_AUTOMOC ON)
+ set(CMAKE_INCLUDE_CURRENT_DIR ON)
+ else()
+- find_package(Qt4 COMPONENTS QtCore QtGui QtNetwork REQUIRED)
++ find_package(Qt4 COMPONENTS QtCore QtGui QtNetwork qscintilla2 REQUIRED)
+ include("${QT_USE_FILE}")
+ add_definitions(${QT_DEFINITIONS})
+ endif()
+@@ -207,10 +201,7 @@
+
+ include_directories(
+ "${CMAKE_CURRENT_BINARY_DIR}"
+- ${ANTLR_DIR}
+ ${QHEXEDIT_DIR}
+- ${QCUSTOMPLOT_DIR}
+- ${QSCINTILLA_DIR}
+ ${ADDITIONAL_INCLUDE_PATHS}
+ src)
+
+@@ -227,13 +218,10 @@
+ qt5_use_modules(${PROJECT_NAME} Gui Widgets Network Test PrintSupport)
+ set(QT_LIBRARIES "")
+ endif()
+-add_dependencies(${PROJECT_NAME} antlr qhexedit qcustomplot qscintilla2)
++add_dependencies(${PROJECT_NAME} qhexedit)
+
+ link_directories(
+- "${CMAKE_CURRENT_BINARY_DIR}/${ANTLR_DIR}"
+- "${CMAKE_CURRENT_BINARY_DIR}/${QHEXEDIT_DIR}"
+- "${CMAKE_CURRENT_BINARY_DIR}/${QCUSTOMPLOT_DIR}"
+- "${CMAKE_CURRENT_BINARY_DIR}/${QSCINTILLA_DIR}")
++ "${CMAKE_CURRENT_BINARY_DIR}/${QHEXEDIT_DIR}")
+
+ target_link_libraries(${PROJECT_NAME}
+ antlr
+--- sqlitebrowser-3.6.0/tests/CMakeLists.txt
++++ sqlitebrowser-3.6.0/tests/CMakeLists.txt
+@@ -7,9 +7,6 @@
+ set(CMAKE_BUILD_TYPE "Release")
+ endif()
+
+-set(ANTLR_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../libs/antlr-2.7.7")
+-add_subdirectory("${ANTLR_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/antlr")
+-
+ if(USE_QT5)
+ find_package(Qt5Widgets REQUIRED)
+ set(CMAKE_AUTOMOC ON)
+@@ -65,7 +62,7 @@
+ QT4_WRAP_UI(SQLB_FORM_HDR ${SQLB_FORMS})
+ endif()
+
+-include_directories("${CMAKE_CURRENT_BINARY_DIR}" "${ANTLR_DIR}" ../src)
++include_directories("${CMAKE_CURRENT_BINARY_DIR}" ../src)
+
+ add_executable(${PROJECT_NAME} ${SQLB_MOC} ${SQLB_HDR} ${SQLB_SRC} ${SQLB_FORM_HDR})
+
diff --git a/dev-db/sqlitebrowser/metadata.xml b/dev-db/sqlitebrowser/metadata.xml
new file mode 100644
index 000000000000..d97b43034360
--- /dev/null
+++ b/dev-db/sqlitebrowser/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <longdescription lang="en">
+SQLite Database Browser is a freeware, public domain, open source visual tool
+used to create, design and edit database files compatible with SQLite. It is
+meant to be used for users and developers that want to create databases, edit
+and search data using a familiar spreadsheet-like interface, without the need to
+learn complicated SQL commands.
+</longdescription>
+ <upstream>
+ <remote-id type="github">sqlitebrowser/sqlitebrowser</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-db/sqlitebrowser/sqlitebrowser-3.3.1.ebuild b/dev-db/sqlitebrowser/sqlitebrowser-3.3.1.ebuild
new file mode 100644
index 000000000000..bf0890e7c3b5
--- /dev/null
+++ b/dev-db/sqlitebrowser/sqlitebrowser-3.3.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils cmake-utils
+
+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=""
+
+DEPEND="
+ dev-java/antlr:0[cxx]
+ dev-libs/qcustomplot[-qt5(-)]
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-unbundle.patch )
+
+src_prepare() {
+ # https://github.com/qingfengxia/qhexedit still bundled
+ find libs/{antlr-2.7.7,qcustomplot-source} -delete || die
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ # Wait for unmask
+ local mycmakeargs=(
+ -DUSE_QT5=OFF
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ doicon images/sqlitebrowser.svg
+ domenu distri/sqlitebrowser.desktop
+}
diff --git a/dev-db/sqlitebrowser/sqlitebrowser-3.5.1.ebuild b/dev-db/sqlitebrowser/sqlitebrowser-3.5.1.ebuild
new file mode 100644
index 000000000000..e7513c74ffcc
--- /dev/null
+++ b/dev-db/sqlitebrowser/sqlitebrowser-3.5.1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+CMAKE_MAKEFILE_GENERATOR=ninja
+
+inherit eutils cmake-utils
+
+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="qt4 qt5 test"
+
+REQUIRED_USE="^^ ( qt4 qt5 )"
+
+DEPEND="
+ dev-db/sqlite:3
+ dev-java/antlr:0[cxx]
+ dev-libs/qcustomplot[qt5=]
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ )
+ qt5? (
+ dev-qt/linguist:5
+ dev-qt/linguist-tools:5
+ dev-qt/qtnetwork:5
+ dev-qt/qttest:5
+ dev-qt/qtwidgets:5
+ )"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-unbundle.patch )
+
+src_prepare() {
+ # https://github.com/qingfengxia/qhexedit still bundled
+ find libs/{antlr-2.7.7,qcustomplot-source} -delete || die
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_use qt5)
+ )
+ cmake-utils_src_configure
+ if use test; then
+ BUILD_DIR="${S}"/tests CMAKE_USE_DIR="${S}"/tests cmake-utils_src_configure
+ fi
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ if use test; then
+ BUILD_DIR="${S}"/tests CMAKE_USE_DIR="${S}"/tests cmake-utils_src_compile
+ fi
+}
+
+src_test() {
+ tests/sqlb-unittests || die
+}
+
+src_install() {
+ cmake-utils_src_install
+ doicon images/sqlitebrowser.svg
+ domenu distri/sqlitebrowser.desktop
+}
diff --git a/dev-db/sqlitebrowser/sqlitebrowser-3.6.0.ebuild b/dev-db/sqlitebrowser/sqlitebrowser-3.6.0.ebuild
new file mode 100644
index 000000000000..a1c6a96f456f
--- /dev/null
+++ b/dev-db/sqlitebrowser/sqlitebrowser-3.6.0.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+CMAKE_MAKEFILE_GENERATOR=ninja
+
+inherit eutils cmake-utils
+
+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="qt4 qt5 test"
+
+REQUIRED_USE="^^ ( qt4 qt5 )"
+
+DEPEND="
+ dev-db/sqlite:3
+ dev-java/antlr:0[cxx]
+ dev-libs/qcustomplot[qt5=]
+ x11-libs/qscintilla
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ )
+ qt5? (
+ dev-qt/linguist:5
+ dev-qt/linguist-tools:5
+ dev-qt/qtnetwork:5
+ dev-qt/qttest:5
+ dev-qt/qtwidgets:5
+ )"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-unbundle-keep-qscintilla.patch )
+
+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
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_use qt5)
+ )
+ cmake-utils_src_configure
+ if use test; then
+ BUILD_DIR="${S}"/tests CMAKE_USE_DIR="${S}"/tests cmake-utils_src_configure
+ fi
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ if use test; then
+ BUILD_DIR="${S}"/tests CMAKE_USE_DIR="${S}"/tests cmake-utils_src_compile
+ fi
+}
+
+src_test() {
+ tests/sqlb-unittests || die
+}
+
+src_install() {
+ cmake-utils_src_install
+ doicon images/sqlitebrowser.svg
+ domenu distri/sqlitebrowser.desktop
+}