diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-db/sqlitebrowser |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-db/sqlitebrowser')
-rw-r--r-- | dev-db/sqlitebrowser/Manifest | 7 | ||||
-rw-r--r-- | dev-db/sqlitebrowser/files/sqlitebrowser-3.7.0-unbundle.patch | 18 | ||||
-rw-r--r-- | dev-db/sqlitebrowser/files/sqlitebrowser-3.9.1-cmake.patch | 24 | ||||
-rw-r--r-- | dev-db/sqlitebrowser/metadata.xml | 18 | ||||
-rw-r--r-- | dev-db/sqlitebrowser/sqlitebrowser-3.9.1-r1.ebuild | 60 |
5 files changed, 127 insertions, 0 deletions
diff --git a/dev-db/sqlitebrowser/Manifest b/dev-db/sqlitebrowser/Manifest new file mode 100644 index 000000000000..9e536ebeea0c --- /dev/null +++ b/dev-db/sqlitebrowser/Manifest @@ -0,0 +1,7 @@ +AUX sqlitebrowser-3.7.0-unbundle.patch 475 SHA256 3e27a396fc8f4afc34df7fe4c43a51b00c8f4fec8135a91cdb7dd24185ab4bd4 SHA512 4f90c4df8ef49943489b239f675a86259536b988585182c8b804f4ed6d38b5aabd83b32b21952329332d8520945304a4f9fea6287631a9a58ce5f311d9242fdb WHIRLPOOL 4990e0f0fa1f314f7502380f0a0b81c75dfa6d4c8044bb9a7b185f82fb51b6a4dcba8566a3664cde3a707a8e68f85fcd0be737c3c5fa6f41bb3d2d235660b274 +AUX sqlitebrowser-3.9.1-cmake.patch 774 SHA256 65911af9f31bc515458150b92f97aa978b9f36b1b578e76b2c31fadd1ae2d3d0 SHA512 f1a64286036d5c05e279fbf430f55400eb8f840564c0d9460424a42f87c4bd8d4f4e2c52c39e07d0bd3a50fa4a1e59bf591c53b1d28d2ef367af2ba25edae299 WHIRLPOOL e21640b4d5d11955cc07bb422b0cc2954dd58b9f979a50f9e052f18a0dc98be1badea9296cab9e8f75ed7c3ad4147bfa543bbc91cd29abf0af119120aba22438 +DIST sqlitebrowser-3.9.1.tar.gz 1704713 SHA256 d0d2e06a69927ba1d0b955f3261ce70c61befc5bd5ddaa06752dae8bb4219ed8 SHA512 c1e88063fac864f60a9802ae378e13d6f3a09e2f4e71e50c6abca4967a941c444a64617bad2dfc743cf9a6be554af9c73e4c61533300ed9a51652234ffdbd225 WHIRLPOOL 50c27ef3405573806e3c8939b69652f25896b9281b59d609cd3210faeb793d707d11ecdea4dada045eb4aa4da375327669566f71ecdbd151f669be1c2419a197 +EBUILD sqlitebrowser-3.9.1-r1.ebuild 1274 SHA256 3dd63d8492a6d54283267188f99ddaa313877316d484095209216017f9b8d4a5 SHA512 3723d51c9a264e269178ca1a5c255e5284f069bd37391458e200a94160703bc2d7b66b43a2d6da2127e5fbd2d511b2c2124d1a035202ccb33a7ec9146c65024d WHIRLPOOL 7e0edf0f0423e0ba7d6b4371d4b447204eead9b579f6330f8ce9662bd073a1be792926fb0406ddaca7d12aba43d5886c0699b31e1a0551b7157a7840a28029df +MISC ChangeLog 5568 SHA256 eec895f548b4d22d066ab5b7f7d0324ddb69b892cc52ad37fdc0e96f22f5849a SHA512 a1205b1c16e22ea55acc035edd45b524bc7ed77fe8136d290ddc93974cbaa54d53b884c4af8954638e031d37b82585004ed42de90f1495f3ec7c0e0ff0654436 WHIRLPOOL 1f2756c4fbbfe8d407beaaba892f3cb513b2ef0cf4d9c26c05ac95a33e6219a9f1edc9ab5b934124b6d02ff27ae285057f696582cc11c4b3999de82f21ea6880 +MISC ChangeLog-2015 4294 SHA256 f0c59074b445a93909acb0668fe016131bfe0d659ccd37c99eb12be107f066e8 SHA512 8b269f974dec8fa2cdba807a2d5d8383442ec2f6b58245dfdd5a3e2e1274c1dc3a390ce1f35c9745fa17d78585032898f2d24c75fd1bcce107e303480e5bb2ea WHIRLPOOL c1e1c4840f3f53d59b490b121cc3e8558a19ffc22959de40ede33beb3afd045941936e2f1b1707b98f2b41bda088caf000c49e5d20ca428ef0467dcbb91587b8 +MISC metadata.xml 740 SHA256 c205b1f3bb62b5c8049ded74c76395841328c27fce03670b7d9b9561cc00a94d SHA512 697ae7be911f1ce3a8b0c0f9f8509ac5fd338463b7b692ca320ab41ed7676fcc3d7db59e759cfbe82c6d2a1fa9d85a1eeefeda3bca702f56832f336ee7fd0369 WHIRLPOOL bfa9765a16460e67c5e8bb7eb7ee00ca4cc10ce6b42ccceb187a60e7d3c6320bd6864fffcf8997d59148bfb7719c204d54f70a2c3730bd41268ba26245c6e92b diff --git a/dev-db/sqlitebrowser/files/sqlitebrowser-3.7.0-unbundle.patch b/dev-db/sqlitebrowser/files/sqlitebrowser-3.7.0-unbundle.patch new file mode 100644 index 000000000000..8dbe870f2e87 --- /dev/null +++ b/dev-db/sqlitebrowser/files/sqlitebrowser-3.7.0-unbundle.patch @@ -0,0 +1,18 @@ +--- sqlitebrowser-3.7.0/CMakeLists.txt ++++ sqlitebrowser-3.7.0/CMakeLists.txt +@@ -29,15 +29,9 @@ + find_package(Antlr2) + + set(QHEXEDIT_DIR libs/qhexedit) +-set(QCUSTOMPLOT_DIR libs/qcustomplot-source) + set(QSCINTILLA_DIR libs/qscintilla/Qt4Qt5) + +-if(NOT ANTLR2_FOUND) +- set(ANTLR_DIR libs/antlr-2.7.7) +- add_subdirectory(${ANTLR_DIR}) +-endif() + add_subdirectory(${QHEXEDIT_DIR}) +-add_subdirectory(${QCUSTOMPLOT_DIR}) + add_subdirectory(${QSCINTILLA_DIR}) + + if(USE_QT5) diff --git a/dev-db/sqlitebrowser/files/sqlitebrowser-3.9.1-cmake.patch b/dev-db/sqlitebrowser/files/sqlitebrowser-3.9.1-cmake.patch new file mode 100644 index 000000000000..cf1cde6c9197 --- /dev/null +++ b/dev-db/sqlitebrowser/files/sqlitebrowser-3.9.1-cmake.patch @@ -0,0 +1,24 @@ +From 2563d678681fa6972674b47617015cb2515bd414 Mon Sep 17 00:00:00 2001 +From: Martin Kleusberg <mkleusberg@gmail.com> +Date: Wed, 12 Oct 2016 23:26:56 +0200 +Subject: [PATCH] Fix cmake file + +--- + CMakeLists.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 998c2f4..4c5debd 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,8 +3,8 @@ cmake_minimum_required(VERSION 2.8.7) + + set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}") + +-OPTION(USE_QT5 FALSE "Build with qt5") +-OPTION(ENABLE_TESTING FALSE "Enable the unit tests") ++OPTION(USE_QT5 "Build with qt5" OFF) ++OPTION(ENABLE_TESTING "Enable the unit tests" OFF) + + if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Release") diff --git a/dev-db/sqlitebrowser/metadata.xml b/dev-db/sqlitebrowser/metadata.xml new file mode 100644 index 000000000000..778d9bfc7286 --- /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 type="person"> + <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.9.1-r1.ebuild b/dev-db/sqlitebrowser/sqlitebrowser-3.9.1-r1.ebuild new file mode 100644 index 000000000000..48a7c45c0e0b --- /dev/null +++ b/dev-db/sqlitebrowser/sqlitebrowser-3.9.1-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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-2.9.3-r2:=[qt5(+)] +" +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 +} |