1 |
commit: ce8230d95586977986f7e83fe2e727e294b0d325 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 21 14:37:08 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 21 16:45:10 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce8230d9 |
7 |
|
8 |
app-office/kexi: EAPI-8 bump, fix PostgreSQL 14 detection |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
.../kexi/files/kexi-3.2.0-postgresql-9.14.patch | 25 ++++++ |
14 |
app-office/kexi/kexi-3.2.0-r3.ebuild | 93 ++++++++++++++++++++++ |
15 |
2 files changed, 118 insertions(+) |
16 |
|
17 |
diff --git a/app-office/kexi/files/kexi-3.2.0-postgresql-9.14.patch b/app-office/kexi/files/kexi-3.2.0-postgresql-9.14.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..faea50c0ac85 |
20 |
--- /dev/null |
21 |
+++ b/app-office/kexi/files/kexi-3.2.0-postgresql-9.14.patch |
22 |
@@ -0,0 +1,25 @@ |
23 |
+From 49c3b55019ebb563852c8ee1172def3288cd0fda Mon Sep 17 00:00:00 2001 |
24 |
+From: Pino Toscano <pino@×××.org> |
25 |
+Date: Fri, 21 May 2021 13:33:49 +0200 |
26 |
+Subject: [PATCH] cmake: find PostgreSQL 14 |
27 |
+ |
28 |
+--- |
29 |
+ cmake/modules/FindPostgreSQL.cmake | 2 +- |
30 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
31 |
+ |
32 |
+diff --git a/cmake/modules/FindPostgreSQL.cmake b/cmake/modules/FindPostgreSQL.cmake |
33 |
+index 16e3cc32a..12b1469b4 100644 |
34 |
+--- a/cmake/modules/FindPostgreSQL.cmake |
35 |
++++ b/cmake/modules/FindPostgreSQL.cmake |
36 |
+@@ -86,7 +86,7 @@ set(PostgreSQL_LIBRARY_DIR_MESSAGE "Set the PostgreSQL_LIBRARY_DIR cmake cache e |
37 |
+ set(PostgreSQL_ROOT_DIR_MESSAGE "Set the PostgreSQL_ROOT system variable to where PostgreSQL is found on the machine E.g C:/Program Files/PostgreSQL/8.4") |
38 |
+ |
39 |
+ set(PostgreSQL_KNOWN_VERSIONS ${PostgreSQL_ADDITIONAL_VERSIONS} |
40 |
+- "11" "10" "9.6" "9.5" "9.4" "9.3" "9.2" "9.1" "9.0" "8.4" "8.3" "8.2" "8.1" "8.0") |
41 |
++ "14" "13" "12" "11" "10" "9.6" "9.5" "9.4" "9.3" "9.2" "9.1" "9.0" "8.4" "8.3" "8.2" "8.1" "8.0") |
42 |
+ |
43 |
+ # Define additional search paths for root directories. |
44 |
+ foreach (suffix ${PostgreSQL_KNOWN_VERSIONS} ) |
45 |
+-- |
46 |
+GitLab |
47 |
+ |
48 |
|
49 |
diff --git a/app-office/kexi/kexi-3.2.0-r3.ebuild b/app-office/kexi/kexi-3.2.0-r3.ebuild |
50 |
new file mode 100644 |
51 |
index 000000000000..dc023a04abd9 |
52 |
--- /dev/null |
53 |
+++ b/app-office/kexi/kexi-3.2.0-r3.ebuild |
54 |
@@ -0,0 +1,93 @@ |
55 |
+# Copyright 1999-2022 Gentoo Authors |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+ |
58 |
+EAPI=8 |
59 |
+ |
60 |
+# ECM_HANDBOOK="true" |
61 |
+ECM_TEST="forceoptional" |
62 |
+KFMIN=5.82.0 |
63 |
+QTMIN=5.15.2 |
64 |
+inherit ecm kde.org |
65 |
+ |
66 |
+DESCRIPTION="Visual database applications creator" |
67 |
+HOMEPAGE="https://apps.kde.org/kexi-3.3/ http://kexi-project.org/ |
68 |
+https://userbase.kde.org/Kexi" |
69 |
+ |
70 |
+if [[ ${KDE_BUILD_TYPE} != live ]]; then |
71 |
+ SRC_URI="mirror://kde/stable/${PN}/src/${P}.tar.xz" |
72 |
+ KEYWORDS="~amd64 ~x86" |
73 |
+fi |
74 |
+ |
75 |
+LICENSE="GPL-2" # TODO: CHECK |
76 |
+SLOT="5" |
77 |
+IUSE="debug experimental marble mdb mysql postgres sqlite" |
78 |
+ |
79 |
+DEPEND=" |
80 |
+ >=dev-db/kdb-3.1.0-r1:5=[debug?,mysql?,postgres?,sqlite?] |
81 |
+ >=dev-libs/kproperty-3.1.0:5= |
82 |
+ >=dev-libs/kreport-3.1.0:5=[scripting] |
83 |
+ >=dev-qt/designer-${QTMIN}:5 |
84 |
+ >=dev-qt/qtgui-${QTMIN}:5 |
85 |
+ >=dev-qt/qtnetwork-${QTMIN}:5 |
86 |
+ >=dev-qt/qtprintsupport-${QTMIN}:5 |
87 |
+ >=dev-qt/qtwidgets-${QTMIN}:5 |
88 |
+ >=dev-qt/qtxml-${QTMIN}:5 |
89 |
+ >=kde-frameworks/breeze-icons-rcc-${KFMIN}:5 |
90 |
+ >=kde-frameworks/karchive-${KFMIN}:5 |
91 |
+ >=kde-frameworks/kcodecs-${KFMIN}:5 |
92 |
+ >=kde-frameworks/kcompletion-${KFMIN}:5 |
93 |
+ >=kde-frameworks/kconfig-${KFMIN}:5 |
94 |
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5 |
95 |
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5 |
96 |
+ >=kde-frameworks/kcrash-${KFMIN}:5 |
97 |
+ >=kde-frameworks/kguiaddons-${KFMIN}:5 |
98 |
+ >=kde-frameworks/ki18n-${KFMIN}:5 |
99 |
+ >=kde-frameworks/kiconthemes-${KFMIN}:5 |
100 |
+ >=kde-frameworks/kio-${KFMIN}:5 |
101 |
+ >=kde-frameworks/kitemviews-${KFMIN}:5 |
102 |
+ >=kde-frameworks/ktexteditor-${KFMIN}:5 |
103 |
+ >=kde-frameworks/ktextwidgets-${KFMIN}:5 |
104 |
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 |
105 |
+ >=kde-frameworks/kxmlgui-${KFMIN}:5 |
106 |
+ marble? ( kde-apps/marble:5= ) |
107 |
+ mdb? ( |
108 |
+ dev-libs/glib:2 |
109 |
+ virtual/libiconv |
110 |
+ ) |
111 |
+ mysql? ( dev-db/mysql-connector-c:= ) |
112 |
+ postgres? ( |
113 |
+ dev-db/postgresql:* |
114 |
+ dev-libs/libpqxx |
115 |
+ ) |
116 |
+" |
117 |
+RDEPEND="${DEPEND}" |
118 |
+BDEPEND="sys-devel/gettext" |
119 |
+ |
120 |
+PATCHES=( |
121 |
+ "${FILESDIR}"/${P}-missing-header.patch |
122 |
+ "${FILESDIR}"/${P}-postgresql-9.14.patch |
123 |
+ "${FILESDIR}"/${P}-glib-2.68.patch # bug 784974 |
124 |
+ "${FILESDIR}"/${P}-fix-find-marble.patch # bug 812392 |
125 |
+) |
126 |
+ |
127 |
+src_prepare() { |
128 |
+ ecm_punt_qt_module WebKit |
129 |
+ ecm_punt_qt_module WebKitWidgets |
130 |
+ |
131 |
+ ecm_src_prepare |
132 |
+} |
133 |
+ |
134 |
+src_configure() { |
135 |
+ local mycmakeargs=( |
136 |
+ -DKEXI_MIGRATEMANAGER_DEBUG=$(usex debug) |
137 |
+ -DKEXI_AUTORISE_TABBED_TOOLBAR=$(usex experimental) |
138 |
+ -DKEXI_SCRIPTS_SUPPORT=$(usex experimental) |
139 |
+ $(cmake_use_find_package marble Marble) |
140 |
+ $(cmake_use_find_package mdb GLIB2) |
141 |
+ $(cmake_use_find_package mysql MySQL) |
142 |
+ $(cmake_use_find_package postgres PostgreSQL) |
143 |
+ ) |
144 |
+ use experimental && mycmakeargs+=( -DKEXI_SCRIPTING_DEBUG=$(usex debug) ) |
145 |
+ |
146 |
+ ecm_src_configure |
147 |
+} |