commit:     3bb4cc79e7b6e5decc47527160eff32d731386fe
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Sat Mar 29 04:09:04 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu May  1 22:36:22 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bb4cc79

dev-db/pgmodeler: add 1.1.6, qt6

* qt6 (opengl and X11 required)
* update POSTGRES_COMPAT to {13..17}
* deps: rm dev-libs/icu, not required
* set DOCDIR to have expected behavior
* NO_UPDATE_CHECK needs value "true" (isequal)
* add tests execution (multiple skips)

Closes: https://bugs.gentoo.org/735690
Closes: https://bugs.gentoo.org/923739
Closes: https://bugs.gentoo.org/944962
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/41377
Closes: https://github.com/gentoo/gentoo/pull/41377
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 dev-db/pgmodeler/Manifest               |  1 +
 dev-db/pgmodeler/pgmodeler-1.1.6.ebuild | 82 +++++++++++++++++++++++++++++++++
 2 files changed, 83 insertions(+)

diff --git a/dev-db/pgmodeler/Manifest b/dev-db/pgmodeler/Manifest
index b19ce763d963..87e6cc7e0862 100644
--- a/dev-db/pgmodeler/Manifest
+++ b/dev-db/pgmodeler/Manifest
@@ -1 +1,2 @@
 DIST pgmodeler-0.9.4.tar.gz 4016619 BLAKE2B 
27a621a9b810d4f90214fc4b0f39ba1673170bd3341af3f8298c9ecd1ad45f021c225864c9b2cf47d5775e3c1630d8f44273621bda2bb891ddefbab2eb0c525f
 SHA512 
5162f4f23ec1c202309fe0837687e8d7c2a836ed36d52a3c5ee55b649067070ae878642493257c6466b9c18c422c9fe97f433b02826e8183ea286d400769bea2
+DIST pgmodeler-1.1.6.tar.gz 4203816 BLAKE2B 
2939fcea5356094bbd83201794dccfc1073938d0686a00ef607ac8560534a117c5b4b1e78f2017c776d4a8f9d3858e9a991b77ed34d2827f61c6cf6d96fa09f3
 SHA512 
14133e42fb035a10edd98606bf86097b7f16ded51a44a2cea2321549c12a9713cf6ecfe0a54c584ed18c57e1a287e4c18d97ffd4f285d22ab145f2d42bbaf09c

diff --git a/dev-db/pgmodeler/pgmodeler-1.1.6.ebuild 
b/dev-db/pgmodeler/pgmodeler-1.1.6.ebuild
new file mode 100644
index 000000000000..b34e95ae8974
--- /dev/null
+++ b/dev-db/pgmodeler/pgmodeler-1.1.6.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+POSTGRES_COMPAT=( {13..17} )
+inherit desktop postgres qmake-utils
+
+DESCRIPTION="PostgreSQL Database Modeler"
+HOMEPAGE="https://pgmodeler.io";
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="${POSTGRES_DEP}
+       dev-libs/libxml2
+       dev-qt/qtbase:6[gui,network,opengl,widgets,X]
+       dev-qt/qtsvg:6
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+       eqmake6 \
+               DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \
+               PREFIX="${EPREFIX}/usr" \
+               PLUGINSDIR="${EPREFIX}/usr/$(get_libdir)/${PN}/plugins" \
+               PRIVATEBINDIR="${EPREFIX}/usr/$(get_libdir)/${PN}/bin" \
+               PRIVATELIBDIR="${EPREFIX}/usr/$(get_libdir)/${PN}" \
+               NO_UPDATE_CHECK="true" \
+               -r ${PN}.pro
+}
+
+src_test() {
+       pushd "${S}/tests" || die
+               # skip tests with graphical interaction
+               sed     -e '/^src\/fileselectortest/d' \
+                       -e '/^src\/linenumberstest/d' \
+                       -i tests.pro || die
+               # skip test with sandbox restriction (/proc/self/mem)
+               sed     -e '/^src\/syntaxhighlightertest/d' \
+                       -i tests.pro || die
+               # skip xml tests
+               # see https://github.com/pgmodeler/pgmodeler/issues/1971
+               sed     -e '/^src\/foreigndatawrappertest/d' \
+                       -e '/^src\/proceduretest/d' \
+                       -e '/^src\/servertest/d' \
+                       -e '/^src\/transformtest/d' \
+                       -e '/^src\/xmlparsertest/d' \
+                       -i tests.pro || die
+
+               eqmake6 \
+                       BINDIR="${T}" \
+                       SAMPLESDIR="${S}/assets/samples" \
+                       SCHEMASDIR="${S}/assets" \
+                       tests.pro
+               emake
+
+               # append all shared-libs to LD_LIBRARY_PATH
+               local l
+               for l in "${S}"/libs/*; do
+                       [[ -d ${l} ]] && LD_LIBRARY_PATH+=":${l}"
+               done
+               export LD_LIBRARY_PATH
+
+               local -x QT_QPA_PLATFORM=offscreen
+
+               # run each test individually
+               local t
+               for t in $(find src -type f -executable); do
+                       ${t} || die "${t} failed"
+               done
+       popd || die
+}
+
+src_install() {
+       emake INSTALL_ROOT="${D}" install
+
+       doicon assets/conf/${PN}_logo.png
+       make_desktop_entry ${PN} ${PN} ${PN}_logo Development
+}

Reply via email to