From 1f43c627b2cb3f94c17254b415ea33781bd5893e Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Wed, 8 May 2024 11:13:39 -0400 Subject: [PATCH] Add qt6pas package which is dependency of goverlay --- dev-libs/qt6pas/Manifest | 1 + dev-libs/qt6pas/files/01_inlines-hidden.patch | 16 ++++++++ dev-libs/qt6pas/qt6pas-6.2.8.ebuild | 40 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 dev-libs/qt6pas/Manifest create mode 100644 dev-libs/qt6pas/files/01_inlines-hidden.patch create mode 100644 dev-libs/qt6pas/qt6pas-6.2.8.ebuild diff --git a/dev-libs/qt6pas/Manifest b/dev-libs/qt6pas/Manifest new file mode 100644 index 0000000..227cd33 --- /dev/null +++ b/dev-libs/qt6pas/Manifest @@ -0,0 +1 @@ +DIST qt6pas-6.2.8.tar.gz 321154 BLAKE2B 56f07bbd5ad7f2950523235727e1e91ec64d9c09bbb80bf9fa1e01aa5cd31c5af9087a90a379050467f054b049cc77d8194db332a49b4fac21d22df2980086cd SHA512 e90cfed2faf7004a71007036eb04839bf3f770c56a8d9d6e844fa83c232d88723991ea353d347d26f84d7f26ac4f63f1b04950d557563108220afc571ed9bb5b diff --git a/dev-libs/qt6pas/files/01_inlines-hidden.patch b/dev-libs/qt6pas/files/01_inlines-hidden.patch new file mode 100644 index 0000000..b18f22c --- /dev/null +++ b/dev-libs/qt6pas/files/01_inlines-hidden.patch @@ -0,0 +1,16 @@ +Compile with -fvisibility-inlines-hidden to reduce +the amount of exported symbols that we need to take +care of in the .symbols file. +Index: libqtpas/Qt5Pas.pro +=================================================================== +--- libqtpas.orig/Qt6Pas.pro ++++ libqtpas/Qt6Pas.pro +@@ -21,7 +21,7 @@ TEMPLATE = lib + VPATH = src + MOC_DIR = tmp + OBJECTS_DIR = tmp +-QMAKE_CXXFLAGS += -Wfatal-errors ++QMAKE_CXXFLAGS += -Wfatal-errors -fvisibility-inlines-hidden + + # Match Intel x86_64 i686 i586 i386 x86 ... + is86 = $$find(QMAKE_HOST.arch, ".*86") diff --git a/dev-libs/qt6pas/qt6pas-6.2.8.ebuild b/dev-libs/qt6pas/qt6pas-6.2.8.ebuild new file mode 100644 index 0000000..a0183bd --- /dev/null +++ b/dev-libs/qt6pas/qt6pas-6.2.8.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit qmake-utils + +LAZ_COMMIT="b71e3074a333b1573c6d662930b4689d92f5962e" +LAZ_DIRECTORY="lcl/interfaces/qt6/cbindings" +LAZ_UNPACKED_DIR="lazarus-${LAZ_COMMIT}-${LAZ_DIRECTORY//\//-}" + +DESCRIPTION="Free Pascal Qt6 bindings library updated by lazarus IDE." +HOMEPAGE="https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/main/lcl/interfaces/qt6/cbindings" +SRC_URI=" https://gitlab.com/freepascal.org/lazarus/lazarus/-/archive/${LAZ_COMMIT}/lazarus-main.tar.gz?path=${LAZ_DIRECTORY} -> ${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + dev-qt/qtbase:6[gui,network] +" +RDEPEND="${DEPEND}" +BDEPEND="" + +PATCHES=( "${FILESDIR}/01_inlines-hidden.patch" ) + +src_unpack() { + default + + mv "${WORKDIR}/${LAZ_UNPACKED_DIR}/${LAZ_DIRECTORY}" "${WORKDIR}/${P}" +} + +src_configure() { + eqmake6 Qt6Pas.pro +} + +src_install() { + emake INSTALL_ROOT="${D}" install +}