1 |
commit: cfcfb63e2cd63157934eda5575d559ebd547aa36 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 27 23:03:37 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 28 07:13:33 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfcfb63e |
7 |
|
8 |
dev-db/sqliteman: EAPI-8 bump, switch to cmake.eclass, xdg.eclass |
9 |
|
10 |
Cleanup obsolete minimum version deps |
11 |
Fix pixmap icon installation path for use with desktop file |
12 |
Improve desktop file (patch thx to Fedora) |
13 |
|
14 |
Bug: https://bugs.gentoo.org/834312 |
15 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
16 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
17 |
|
18 |
dev-db/sqliteman/files/sqliteman-1.2.2-cmake.patch | 10 ++++++ |
19 |
.../sqliteman/files/sqliteman-1.2.2-desktop.patch | 11 +++++++ |
20 |
dev-db/sqliteman/sqliteman-1.2.2-r5.ebuild | 38 ++++++++++++++++++++++ |
21 |
3 files changed, 59 insertions(+) |
22 |
|
23 |
diff --git a/dev-db/sqliteman/files/sqliteman-1.2.2-cmake.patch b/dev-db/sqliteman/files/sqliteman-1.2.2-cmake.patch |
24 |
new file mode 100644 |
25 |
index 000000000000..99c3b080ea0d |
26 |
--- /dev/null |
27 |
+++ b/dev-db/sqliteman/files/sqliteman-1.2.2-cmake.patch |
28 |
@@ -0,0 +1,10 @@ |
29 |
+--- a/CMakeLists.txt |
30 |
++++ b/CMakeLists.txt |
31 |
+@@ -154,6 +154,6 @@ |
32 |
+ ) |
33 |
+ INSTALL(FILES |
34 |
+ sqliteman/icons/sqliteman.png |
35 |
+- DESTINATION "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor" |
36 |
++ DESTINATION "${CMAKE_INSTALL_PREFIX}/share/pixmaps" |
37 |
+ ) |
38 |
+ ENDIF (WIN32) |
39 |
|
40 |
diff --git a/dev-db/sqliteman/files/sqliteman-1.2.2-desktop.patch b/dev-db/sqliteman/files/sqliteman-1.2.2-desktop.patch |
41 |
new file mode 100644 |
42 |
index 000000000000..f6d765e40a45 |
43 |
--- /dev/null |
44 |
+++ b/dev-db/sqliteman/files/sqliteman-1.2.2-desktop.patch |
45 |
@@ -0,0 +1,11 @@ |
46 |
+--- a/sqliteman.desktop |
47 |
++++ b/sqliteman.desktop |
48 |
+@@ -8,7 +8,7 @@ |
49 |
+ Terminal=false |
50 |
+ StartupNotify=true |
51 |
+ MimeType=application/x-sqlite3; |
52 |
+- |
53 |
++Categories=Development;Database; |
54 |
+ # Translations |
55 |
+ GenericName[cs]=Sqlite administrace |
56 |
+ |
57 |
|
58 |
diff --git a/dev-db/sqliteman/sqliteman-1.2.2-r5.ebuild b/dev-db/sqliteman/sqliteman-1.2.2-r5.ebuild |
59 |
new file mode 100644 |
60 |
index 000000000000..65f52a34916f |
61 |
--- /dev/null |
62 |
+++ b/dev-db/sqliteman/sqliteman-1.2.2-r5.ebuild |
63 |
@@ -0,0 +1,38 @@ |
64 |
+# Copyright 1999-2022 Gentoo Authors |
65 |
+# Distributed under the terms of the GNU General Public License v2 |
66 |
+ |
67 |
+EAPI=8 |
68 |
+ |
69 |
+inherit cmake flag-o-matic xdg |
70 |
+ |
71 |
+DESCRIPTION="Powerful GUI manager for the Sqlite3 database" |
72 |
+HOMEPAGE="https://sourceforge.net/projects/sqliteman/" |
73 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
74 |
+ |
75 |
+LICENSE="GPL-2" |
76 |
+SLOT="0" |
77 |
+KEYWORDS="~amd64 ~arm ~x86" |
78 |
+IUSE="" |
79 |
+ |
80 |
+RDEPEND=" |
81 |
+ dev-qt/qtcore:5 |
82 |
+ dev-qt/qtgui:5 |
83 |
+ dev-qt/qtsql:5[sqlite] |
84 |
+ dev-qt/qtwidgets:5 |
85 |
+ >=x11-libs/qscintilla-2.10.3:=" |
86 |
+DEPEND="${RDEPEND}" |
87 |
+ |
88 |
+PATCHES=( |
89 |
+ "${FILESDIR}/${P}-lpthread.patch" |
90 |
+ "${FILESDIR}/${P}-qt5.patch" |
91 |
+ "${FILESDIR}/${P}-cmake.patch" |
92 |
+ "${FILESDIR}/${P}-desktop.patch" |
93 |
+) |
94 |
+ |
95 |
+src_prepare() { |
96 |
+ # remove bundled lib |
97 |
+ rm -rf ${PN}/qscintilla2 || die |
98 |
+ |
99 |
+ append-flags -fPIC |
100 |
+ cmake_src_prepare |
101 |
+} |