tdev-db/sqlitebrowser: Add 9999 with sqlcipher support. - parlay - yet another gentoo overlay HTML git clone https://git.parazyd.org/parlay DIR Log DIR Files DIR Refs DIR README --- DIR commit bcc559497fd62115af7b3075c5ef9415a5773cea DIR parent edd14ed8fe53d03bd2dc9592410c0ba802c68f6b HTML Author: parazyd <parazyd@dyne.org> Date: Thu, 28 Oct 2021 13:47:48 +0200 dev-db/sqlitebrowser: Add 9999 with sqlcipher support. Diffstat: A dev-db/sqlitebrowser/metadata.xml | 33 +++++++++++++++++++++++++++++++ A dev-db/sqlitebrowser/sqlitebrowser… | 69 ++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+), 0 deletions(-) --- DIR diff --git a/dev-db/sqlitebrowser/metadata.xml b/dev-db/sqlitebrowser/metadata.xml t@@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>beatussum@protonmail.com</email> + <name>Mattéo Rossillol‑‑Laruelle</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> + DB Browser for SQLite (DB4S) 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> + <longdescription lang="fr"> + DB Browser for SQLite (DB4S) est un outil graphique, gratuit et open + source permettant de créer, concevoir et éditer toute base de données + compatible avec SQLite. Celui-ci est à déstination des utilisateurs et + des développeurs qui veulent créer des base de données et interragir + avec ces dernières, tout en utilisant une interface semblable à celle + d'un tableur, et, de ce fait, ne pas être contraint à apprendre des + commandes SQL complexes. + </longdescription> + <upstream> + <bugs-to>https://github.com/sqlitebrowser/sqlitebrowser/issues/</bugs-to> + <remote-id type="github">sqlitebrowser/sqlitebrowser</remote-id> + </upstream> +</pkgmetadata> DIR diff --git a/dev-db/sqlitebrowser/sqlitebrowser-9999.ebuild b/dev-db/sqlitebrowser/sqlitebrowser-9999.ebuild t@@ -0,0 +1,69 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake xdg + +DESCRIPTION="A light GUI editor for SQLite databases" +HOMEPAGE="https://sqlitebrowser.org/" + +if [[ "${PV}" = *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3+ MPL-2.0" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + app-editors/qhexedit2 + dev-db/sqlite:3 + >=dev-db/sqlcipher-4.0.1 + dev-libs/qcustomplot + >=dev-qt/qtconcurrent-5.5:5 + >=dev-qt/qtcore-5.5:5 + >=dev-qt/qtgui-5.5:5 + >=dev-qt/qtnetwork-5.5:5[ssl] + >=dev-qt/qtprintsupport-5.5:5 + >=dev-qt/qtwidgets-5.5:5 + >=dev-qt/qtxml-5.5:5 + >=x11-libs/qscintilla-2.8.10:= +" + +BDEPEND=" + >=dev-qt/linguist-tools-5.5:5 + test? ( >=dev-qt/qttest-5.5:5 ) +" + +RDEPEND=" + ${DEPEND} + >=dev-qt/qtsvg-5.5:5 +" + +src_prepare() { + cmake_src_prepare + + if ! use test; then + sed -i CMakeLists.txt \ + -e "/find_package/ s/ Test//" \ + -e "/set/ s/ Qt5::Test//" \ + || die "Cannot remove Qt Test from CMake dependencies" + fi +} + +src_configure() { + local mycmakeargs=( + -DENABLE_TESTING=$(usex test) + -DFORCE_INTERNAL_QCUSTOMPLOT=OFF + -DFORCE_INTERNAL_QHEXEDIT=OFF + -Dsqlcipher=1 + ) + + cmake_src_configure +}