commit:     cfcfb63e2cd63157934eda5575d559ebd547aa36
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 27 23:03:37 2022 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Feb 28 07:13:33 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfcfb63e

dev-db/sqliteman: EAPI-8 bump, switch to cmake.eclass, xdg.eclass

Cleanup obsolete minimum version deps
Fix pixmap icon installation path for use with desktop file
Improve desktop file (patch thx to Fedora)

Bug: https://bugs.gentoo.org/834312
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 dev-db/sqliteman/files/sqliteman-1.2.2-cmake.patch | 10 ++++++
 .../sqliteman/files/sqliteman-1.2.2-desktop.patch  | 11 +++++++
 dev-db/sqliteman/sqliteman-1.2.2-r5.ebuild         | 38 ++++++++++++++++++++++
 3 files changed, 59 insertions(+)

diff --git a/dev-db/sqliteman/files/sqliteman-1.2.2-cmake.patch 
b/dev-db/sqliteman/files/sqliteman-1.2.2-cmake.patch
new file mode 100644
index 000000000000..99c3b080ea0d
--- /dev/null
+++ b/dev-db/sqliteman/files/sqliteman-1.2.2-cmake.patch
@@ -0,0 +1,10 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -154,6 +154,6 @@
+     )
+     INSTALL(FILES
+         sqliteman/icons/sqliteman.png
+-        DESTINATION "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor"
++        DESTINATION "${CMAKE_INSTALL_PREFIX}/share/pixmaps"
+     )
+ ENDIF (WIN32)

diff --git a/dev-db/sqliteman/files/sqliteman-1.2.2-desktop.patch 
b/dev-db/sqliteman/files/sqliteman-1.2.2-desktop.patch
new file mode 100644
index 000000000000..f6d765e40a45
--- /dev/null
+++ b/dev-db/sqliteman/files/sqliteman-1.2.2-desktop.patch
@@ -0,0 +1,11 @@
+--- a/sqliteman.desktop
++++ b/sqliteman.desktop
+@@ -8,7 +8,7 @@
+ Terminal=false
+ StartupNotify=true
+ MimeType=application/x-sqlite3;
+-
++Categories=Development;Database;
+ # Translations
+ GenericName[cs]=Sqlite administrace
+ 

diff --git a/dev-db/sqliteman/sqliteman-1.2.2-r5.ebuild 
b/dev-db/sqliteman/sqliteman-1.2.2-r5.ebuild
new file mode 100644
index 000000000000..65f52a34916f
--- /dev/null
+++ b/dev-db/sqliteman/sqliteman-1.2.2-r5.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic xdg
+
+DESCRIPTION="Powerful GUI manager for the Sqlite3 database"
+HOMEPAGE="https://sourceforge.net/projects/sqliteman/";
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+RDEPEND="
+       dev-qt/qtcore:5
+       dev-qt/qtgui:5
+       dev-qt/qtsql:5[sqlite]
+       dev-qt/qtwidgets:5
+       >=x11-libs/qscintilla-2.10.3:="
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+       "${FILESDIR}/${P}-lpthread.patch"
+       "${FILESDIR}/${P}-qt5.patch"
+       "${FILESDIR}/${P}-cmake.patch"
+       "${FILESDIR}/${P}-desktop.patch"
+)
+
+src_prepare() {
+       # remove bundled lib
+       rm -rf ${PN}/qscintilla2 || die
+
+       append-flags -fPIC
+       cmake_src_prepare
+}

Reply via email to