diff options
Diffstat (limited to 'dev-db/sqlitebrowser')
-rw-r--r-- | dev-db/sqlitebrowser/Manifest | 5 | ||||
-rw-r--r-- | dev-db/sqlitebrowser/files/sqlitebrowser-3.10.1-unbundle.patch | 59 | ||||
-rw-r--r-- | dev-db/sqlitebrowser/sqlitebrowser-3.10.1.ebuild | 69 | ||||
-rw-r--r-- | dev-db/sqlitebrowser/sqlitebrowser-3.9.1-r1.ebuild | 11 |
4 files changed, 143 insertions, 1 deletions
diff --git a/dev-db/sqlitebrowser/Manifest b/dev-db/sqlitebrowser/Manifest index 98513e1d88e4..919782ed3663 100644 --- a/dev-db/sqlitebrowser/Manifest +++ b/dev-db/sqlitebrowser/Manifest @@ -1,5 +1,8 @@ +AUX sqlitebrowser-3.10.1-unbundle.patch 1578 BLAKE2B 7c07caa81086a4a9a30660df837fbc34cb140ab531c1760a72739f868f0277b58c7e76f83d2c59a8b8b4ae843828551ca8beaa93c6d23ca5cf5df55a8ad4623b SHA512 26a58ef43da1b1cc295bc3c2cc6cc173f9dd4f9523732a03f31069bb9b10f810c9f0d0c40a7d31d37d2c520a4d4a8a4b2b2ff6795a4f780fee8e2b6da0edce5f AUX sqlitebrowser-3.7.0-unbundle.patch 475 BLAKE2B 1e2783eec7d7c054d18920fc88617f143220669a5c69c62b024fa33922eff9d13e3c4ba5e453d6b1767defdd8a918156094c1234ed3d6ad632ee4b3d919f6540 SHA512 4f90c4df8ef49943489b239f675a86259536b988585182c8b804f4ed6d38b5aabd83b32b21952329332d8520945304a4f9fea6287631a9a58ce5f311d9242fdb AUX sqlitebrowser-3.9.1-cmake.patch 774 BLAKE2B 5773d3f70bc45348a4e3fc35fce57ad7eac416e7cc4d94eceb31ecc5e0ca2ed9dce837c299083e800b1ec7d80bd67d10ee60cf44c5a6915f39c619ef07f048f4 SHA512 f1a64286036d5c05e279fbf430f55400eb8f840564c0d9460424a42f87c4bd8d4f4e2c52c39e07d0bd3a50fa4a1e59bf591c53b1d28d2ef367af2ba25edae299 +DIST sqlitebrowser-3.10.1.tar.gz 1992186 BLAKE2B 105333118a404aab48abe5ecbe83b425109b60adf40d3a3b7766c7036954996539bd133da4b3e3b1e2d819223842d107710b6b24aada6bb298462e062296dabf SHA512 da9650fff6cd7984e8f438b254318b5da46209eb21a375569ec1b4dd898a41d99d61d6682f2979a56d5c39d552ed42f443215900c1cebe95350e4624415f69c4 DIST sqlitebrowser-3.9.1.tar.gz 1704713 BLAKE2B 447a9e20fe4236feea2684703ac7f38b1c03f0ded352653b41bbec7d6380691776177fee1428fd67ac96190ed6752cedd76a9883cfa12584fec464cbf98707d3 SHA512 c1e88063fac864f60a9802ae378e13d6f3a09e2f4e71e50c6abca4967a941c444a64617bad2dfc743cf9a6be554af9c73e4c61533300ed9a51652234ffdbd225 -EBUILD sqlitebrowser-3.9.1-r1.ebuild 1274 BLAKE2B b8af7b8a2ff8bdbfdbf1ec7e4718a6bd9ffb468fbc8b8e44b05baf98e76b0bb4a882cf1f2cf8a0474787ef36d59707834cd4244ae4536436ebb414b842a4a534 SHA512 3723d51c9a264e269178ca1a5c255e5284f069bd37391458e200a94160703bc2d7b66b43a2d6da2127e5fbd2d511b2c2124d1a035202ccb33a7ec9146c65024d +EBUILD sqlitebrowser-3.10.1.ebuild 1417 BLAKE2B 0e5c0be58c5354d623c652e948e1128d53cf63f31ec6ee1693257b14186b79eb49be65817fa4c81fd100e03fa180f7d602e5873ec4c460f96258c608faf595f0 SHA512 7f7b0eaab46c4e01d9746ebe190e1fa3ad084a3ffa3e4ffe729c01df5411aa7463e3c47b6357341d4ff9b1bf3a45aad4cb6d08999565044733ced5100e2d21da +EBUILD sqlitebrowser-3.9.1-r1.ebuild 1439 BLAKE2B 355dc9a6af52f1879559b7774d93f226e46a9998de3557c0f52d2b8ecde160e9c777bcc7ac4c8d33d74337972d6def9ada5d404b36d456133df000ca552623da SHA512 ad218ab7dc42f42487868aeba8fef1f282369bfc2508e6cbd20f0da1c6101f93ff3b157970e34046be20dfd98a2418763941c679d31dde82940cfc2a480b0cee MISC metadata.xml 740 BLAKE2B 43e5727769b3fa3fee9fe4514993988877b08a3a21816031cd21ae497a66801d6ba4993236e656b7de4161d22837975bb6d8e9cf93ebfd416235dd622a0b8758 SHA512 697ae7be911f1ce3a8b0c0f9f8509ac5fd338463b7b692ca320ab41ed7676fcc3d7db59e759cfbe82c6d2a1fa9d85a1eeefeda3bca702f56832f336ee7fd0369 diff --git a/dev-db/sqlitebrowser/files/sqlitebrowser-3.10.1-unbundle.patch b/dev-db/sqlitebrowser/files/sqlitebrowser-3.10.1-unbundle.patch new file mode 100644 index 000000000000..9e2ad3e910b7 --- /dev/null +++ b/dev-db/sqlitebrowser/files/sqlitebrowser-3.10.1-unbundle.patch @@ -0,0 +1,59 @@ +diff --git a/cmake/FindQScintilla.cmake b/cmake/FindQScintilla.cmake +index f469637..92c2d37 100644 +--- a/cmake/FindQScintilla.cmake ++++ b/cmake/FindQScintilla.cmake +@@ -43,9 +43,12 @@ + #============================================================================= + + ++SET (QT_MIN_VERSION "5.6.2") ++FIND_PACKAGE( Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Network Widgets ) ++ + find_path ( QSCINTILLA_INCLUDE_DIR + NAMES qsciscintilla.h +- HINTS ${QT_INCLUDE_DIR} ++ HINTS ${Qt5Core_INCLUDE_DIRS} + PATH_SUFFIXES Qsci + ) + +@@ -81,6 +84,6 @@ endif () + + find_library ( QSCINTILLA_LIBRARY +- NAMES qscintilla qscintilla2 libqscintilla2 +- HINTS ${QT_LIBRARY_DIR} ++ NAMES qscintilla2 libqscintilla2 qscintilla2_qt5 libqscintilla2_qt5 ++ HINTS ${Qt5Core_LIBRARIES} + ) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index fdf5b4c..ffba6d7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -47,26 +47,20 @@ if(WIN32 AND MSVC) + endif() + + if(NOT FORCE_INTERNAL_ANTLR) +- find_package(Antlr2) ++ find_package(Antlr2 REQUIRED) + endif() + if(NOT FORCE_INTERNAL_QSCINTILLA) + find_package(QScintilla) + endif() + + set(QHEXEDIT_DIR libs/qhexedit) +-set(QCUSTOMPLOT_DIR libs/qcustomplot-source) + +-if(NOT ANTLR2_FOUND) +- set(ANTLR_DIR libs/antlr-2.7.7) +- add_subdirectory(${ANTLR_DIR}) +-endif() + if(NOT QSCINTILLA_FOUND) + set(QSCINTILLA_DIR libs/qscintilla/Qt4Qt5) + add_subdirectory(${QSCINTILLA_DIR}) + endif() + add_subdirectory(${QHEXEDIT_DIR}) +-add_subdirectory(${QCUSTOMPLOT_DIR}) + + find_package(Qt5Widgets REQUIRED) + find_package(Qt5LinguistTools REQUIRED) + diff --git a/dev-db/sqlitebrowser/sqlitebrowser-3.10.1.ebuild b/dev-db/sqlitebrowser/sqlitebrowser-3.10.1.ebuild new file mode 100644 index 000000000000..c661e29a9f2c --- /dev/null +++ b/dev-db/sqlitebrowser/sqlitebrowser-3.10.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils eutils gnome2-utils xdg-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="test" + +RDEPEND=" + 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 + dev-qt/qtwidgets:5 + >=x11-libs/qscintilla-2.10.1:=[qt5(+)] +" +DEPEND="${RDEPEND} + dev-qt/linguist-tools:5 + test? ( dev-qt/qttest:5 ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.10.1-unbundle.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=( + -DENABLE_TESTING=$(usex test) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + doicon images/sqlitebrowser.svg +} + +pkg_postinst() { + gnome2_icon_cache_update + xdg_desktop_database_update +} + +pkg_postrm() { + gnome2_icon_cache_update + xdg_desktop_database_update +} diff --git a/dev-db/sqlitebrowser/sqlitebrowser-3.9.1-r1.ebuild b/dev-db/sqlitebrowser/sqlitebrowser-3.9.1-r1.ebuild index 48a7c45c0e0b..9e91c60df05b 100644 --- a/dev-db/sqlitebrowser/sqlitebrowser-3.9.1-r1.ebuild +++ b/dev-db/sqlitebrowser/sqlitebrowser-3.9.1-r1.ebuild @@ -18,6 +18,7 @@ RDEPEND=" dev-cpp/antlr-cpp:2 dev-db/sqlite:3 dev-libs/qcustomplot[qt5(+)] + dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtnetwork:5 dev-qt/qtwidgets:5 @@ -58,3 +59,13 @@ src_install() { cmake-utils_src_install doicon images/sqlitebrowser.svg } + +pkg_postinst() { + gnome2_icon_cache_update + xdg_desktop_database_update +} + +pkg_postrm() { + gnome2_icon_cache_update + xdg_desktop_database_update +} |