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@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2022-02-28 00:03:37 +01:00
parent 1386d21a75
commit cfcfb63e2c
3 changed files with 59 additions and 0 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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
}