mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-25 11:57:36 -08:00
Merge updates from master
This commit is contained in:
@@ -21,11 +21,9 @@ DIST f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip 211919 BLAKE2B 2c7
|
||||
DIST frozen-1.1.1.tar.gz 186589 BLAKE2B 5f103311c49777d0d284cabe026fae55f09bd24b2227d56133c48b9f9f0542361f3e007687089145939c12fc6a1af8baf1c76ba76176bdddec3d726e45d705d1 SHA512 e22561a4e634e388e11f95b3005bc711e543013d314f6aaeda34befb2c673aea2d71a717d8822bc8fa85bdc8409945ba2ad91a1bac4f8cb5303080de01a5f60e
|
||||
DIST libreoffice-24.2.3.2-icu-74.tar.xz 28100 BLAKE2B 5c49749f3e8f23d28dc2463001030eb660e3387480aa1b0611460987f80fa2c965adb4a84d822177452994a072ad94dbff41a43d621b89c37d4133875620a591 SHA512 32c906fb4bfc431baecbc7f01bfcb32227da740b10ff97a53288275e179344070344e594e273a79671070c74423bcc3ea68dec88543d6ab89fb20a57f4c2c114
|
||||
DIST libreoffice-24.2.4.2.tar.xz 279938452 BLAKE2B a950463998c5b5478ac2b17c7ef6e9bf579e01b3434a26edb8cd1eb320dbeb444a63ace5a64cc37c98e2f3e8166b0044a5cc28474f6125b645cce6c16ed353c8 SHA512 a0d10ccfd3c88285519a3ff00c429cbeec3591d779769b2264c2bde67aed3921462b5e5a4fda52217a483088f7fd1f518339d9809907b1a8dea54dc66b86ae3e
|
||||
DIST libreoffice-7.6.4.1.tar.xz 281547116 BLAKE2B 55712cf41e38373476dbc3d6a6f244dc0ba9222caf587c5d8a56c5f952e064e815d752a786d6770891775dc2a43739ae05fb94935006c005b41b3aeca229a866 SHA512 dbfc0cc8aa68e26c89da12156046ccf18201759c0e67757ce259a1150934ad7e2d914837701731fbe00aeab9a2f8c996619eb0892b7907de8012fdd7421da0f6
|
||||
DIST libreoffice-7.6.7.2.tar.xz 282345404 BLAKE2B 7214739ce3e495e07180875834908078975857bed83fbd4f33ccfaaca5b30a0651661da4e42aa59f9c7011fe7ce2c58667c41d48b73f621d2004e8dbbdd0817f SHA512 443d818f35d9cac1af3a911f031b0b8f455eb28afa1a563ee3551b3285810f3b7b19265a64f853eef07e0c550c5d81f95e2774db46bd9dfee7b9aee029eb3747
|
||||
DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f
|
||||
DIST libreoffice-help-24.2.4.2.tar.xz 167013820 BLAKE2B 9345efdfdd47336c623fe6da872eb22278dc8156e29ab049969ea11d947b374dfe0661388a14318afacfc4f0dbf717d16906f71e0d300f52eed0b18fa909f6e7 SHA512 2dc8c7d5976b4784011ac6d3e7a507e433673bf68451a13cbe243b478d32659cbb46f38af345f44efc24ca90dcd4e74f2d53354fd11d738635070ef57da0c317
|
||||
DIST libreoffice-help-7.6.4.1.tar.xz 166959028 BLAKE2B fadcd32c50af1d4607ecd20ef7640cfbd1912361a792c324540dee1b5ee78c5f622b8363a5b96a1afb8256618573a0bb6f919a144de98fe88a1331d9241612f0 SHA512 0f72cd933ab7b897ec36f7b29bc5e568be289ea50ae0844e6083ff4957eab3cd313b39ffbda2e58f59de7962a05b371d8d61043d80323bb474e5436d23d3a859
|
||||
DIST libreoffice-help-7.6.7.2.tar.xz 166901284 BLAKE2B 636772e6ba11b00d26f0280f3ac564e4c4ab839808ec21eeefdbec7a16e4fdad512466b523f1e58cfd74bfe29f4bc06b7d203e18e5e2a2b1a6ed5b8ff8ec9093 SHA512 724cdb884b37bd847080b4610d1fe2f9b111479585bc097f2ad2a73141565c542d08eab088a36eb3374a3c85a0b803a7c65e43058234076c3ddc99c6f847e3a8
|
||||
DIST skia-m111-a31e897fb3dcbc96b2b40999751611d029bf5404.tar.xz 10693272 BLAKE2B 67f2bd33d58c58c59f1ee5fb693a6a7e6a1ace52f269ae0fa6617027e93131031b0af9d44c36e371fe5a38c5b7519a61f9bcf4286a13ef5b06ea7e7eb5cb0a0f SHA512 58d50fdd19cc5df640244e0c765aec6addc3e552701b201772584e8bea7cda12047e4a6af41452c6669aadfc026de29a4a4e7c6b31c7dfff30e29e50ed46fe3d
|
||||
DIST skia-m116-2ddcf183eb260f63698aa74d1bb380f247ad7ccd.tar.xz 10868024 BLAKE2B ce8247de4cd6939b0593adf1c3dc6b78cdf4220fbcd2dfb2b9cf6d80d42f9c49f4d93fbe3cff68d079f04cc5801daf20999b288f7fdc85b58e32035151a3616a SHA512 6c10785ed9ab8cdf3385ebd3f3d13a64b850df9cc7a12e513326a84c7a3e6f6235f9f4dbce128eac2e43a2707fe6a6011716de5985adf4742d55879210bf32e9
|
||||
|
||||
@@ -1,303 +0,0 @@
|
||||
From c8f7408db73d2f2ccacb25a2b4fef8dfebdfc6cb Mon Sep 17 00:00:00 2001
|
||||
From: Miklos Vajna <vmiklos@collabora.com>
|
||||
Date: Mon, 27 Nov 2023 08:02:59 +0100
|
||||
Subject: tdf#158302 fix build against system-libxml-2.12
|
||||
|
||||
Seen in a fedora:40 container, using --with-system-libcmis,
|
||||
--with-system-liblangtag and --with-system-xmlsec.
|
||||
|
||||
Change-Id: I9d748d3dc0b70dbfdfcb6b99c9ce8440bda6f326
|
||||
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159980
|
||||
Tested-by: Jenkins
|
||||
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
|
||||
---
|
||||
drawinglayer/source/tools/primitive2dxmldump.cxx | 1 +
|
||||
filter/source/xsltfilter/LibXSLTTransformer.cxx | 2 +-
|
||||
helpcompiler/source/HelpLinker.cxx | 4 ++++
|
||||
include/xmloff/xmltoken.hxx | 2 +-
|
||||
sax/source/fastparser/fastparser.cxx | 2 +-
|
||||
sc/source/core/tool/interpr7.cxx | 1 +
|
||||
sc/source/filter/xml/XMLExportDataPilot.cxx | 2 +-
|
||||
sc/source/filter/xml/XMLExportDatabaseRanges.cxx | 2 +-
|
||||
sc/source/filter/xml/xmlfilti.cxx | 6 +++---
|
||||
unoxml/source/dom/attr.cxx | 1 +
|
||||
unoxml/source/dom/document.cxx | 1 +
|
||||
unoxml/source/dom/documentbuilder.cxx | 1 +
|
||||
unoxml/source/dom/entity.cxx | 1 +
|
||||
unoxml/source/xpath/xpathapi.cxx | 7 ++++++-
|
||||
xmloff/source/core/xmltoken.cxx | 2 +-
|
||||
xmloff/source/style/PageMasterStyleMap.cxx | 2 +-
|
||||
xmlsecurity/inc/xmlsec-wrapper.h | 1 +
|
||||
xmlsecurity/inc/xmlsec/saxhelper.hxx | 1 +
|
||||
18 files changed, 28 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/drawinglayer/source/tools/primitive2dxmldump.cxx b/drawinglayer/source/tools/primitive2dxmldump.cxx
|
||||
index 76aefec902ea..f3b9ef1bc919 100644
|
||||
--- a/drawinglayer/source/tools/primitive2dxmldump.cxx
|
||||
+++ b/drawinglayer/source/tools/primitive2dxmldump.cxx
|
||||
@@ -15,6 +15,7 @@
|
||||
|
||||
#include <math.h>
|
||||
#include <memory>
|
||||
+#include <libxml/parser.h>
|
||||
#include <sal/log.hxx>
|
||||
|
||||
#include <drawinglayer/primitive2d/bitmapprimitive2d.hxx>
|
||||
diff --git a/filter/source/xsltfilter/LibXSLTTransformer.cxx b/filter/source/xsltfilter/LibXSLTTransformer.cxx
|
||||
index 1a7c34805f1b..5e9a7c4bcd35 100644
|
||||
--- a/filter/source/xsltfilter/LibXSLTTransformer.cxx
|
||||
+++ b/filter/source/xsltfilter/LibXSLTTransformer.cxx
|
||||
@@ -333,7 +333,7 @@ namespace XSLT
|
||||
}
|
||||
else
|
||||
{
|
||||
- xmlErrorPtr lastErr = xmlGetLastError();
|
||||
+ const xmlError* lastErr = xmlGetLastError();
|
||||
OUString msg;
|
||||
if (lastErr)
|
||||
msg = OStringToOUString(lastErr->message, RTL_TEXTENCODING_UTF8);
|
||||
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx
|
||||
index 3d52834dbe6b..898a8b26392a 100644
|
||||
--- a/helpcompiler/source/HelpLinker.cxx
|
||||
+++ b/helpcompiler/source/HelpLinker.cxx
|
||||
@@ -815,7 +815,11 @@ static const HelpProcessingException* GpXMLParsingException = nullptr;
|
||||
|
||||
extern "C" {
|
||||
|
||||
+#if LIBXML_VERSION >= 21200
|
||||
+static void StructuredXMLErrorFunction(SAL_UNUSED_PARAMETER void *, const xmlError* error)
|
||||
+#else
|
||||
static void StructuredXMLErrorFunction(SAL_UNUSED_PARAMETER void *, xmlErrorPtr error)
|
||||
+#endif
|
||||
{
|
||||
std::string aErrorMsg = error->message;
|
||||
std::string aXMLParsingFile;
|
||||
diff --git a/include/xmloff/xmltoken.hxx b/include/xmloff/xmltoken.hxx
|
||||
index 4e6441841774..ba42fae4d035 100644
|
||||
--- a/include/xmloff/xmltoken.hxx
|
||||
+++ b/include/xmloff/xmltoken.hxx
|
||||
@@ -744,7 +744,7 @@ namespace xmloff::token {
|
||||
XML_EMBEDDED_VISIBLE_AREA,
|
||||
XML_EMBOSSED,
|
||||
XML_EMISSIVE_COLOR,
|
||||
- XML_EMPTY,
|
||||
+ XML_TOKEN_EMPTY,
|
||||
XML_EMPTY_LINE_REFRESH,
|
||||
XML_ENABLE_NUMBERING,
|
||||
XML_ENABLED,
|
||||
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
|
||||
index ec8065016a12..e0338e053cf0 100644
|
||||
--- a/sax/source/fastparser/fastparser.cxx
|
||||
+++ b/sax/source/fastparser/fastparser.cxx
|
||||
@@ -578,7 +578,7 @@ Event& Entity::getEvent( CallbackType aType )
|
||||
OUString lclGetErrorMessage( xmlParserCtxtPtr ctxt, std::u16string_view sSystemId, sal_Int32 nLine )
|
||||
{
|
||||
const char* pMessage;
|
||||
- xmlErrorPtr error = xmlCtxtGetLastError( ctxt );
|
||||
+ const xmlError* error = xmlCtxtGetLastError( ctxt );
|
||||
if( error && error->message )
|
||||
pMessage = error->message;
|
||||
else
|
||||
diff --git a/sc/source/core/tool/interpr7.cxx b/sc/source/core/tool/interpr7.cxx
|
||||
index 352c7cf70e45..ecb4ea346396 100644
|
||||
--- a/sc/source/core/tool/interpr7.cxx
|
||||
+++ b/sc/source/core/tool/interpr7.cxx
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
#include <string_view>
|
||||
+#include <libxml/parser.h>
|
||||
|
||||
using namespace com::sun::star;
|
||||
|
||||
diff --git a/sc/source/filter/xml/XMLExportDataPilot.cxx b/sc/source/filter/xml/XMLExportDataPilot.cxx
|
||||
index da65bec0dab7..bd5f16d828ff 100644
|
||||
--- a/sc/source/filter/xml/XMLExportDataPilot.cxx
|
||||
+++ b/sc/source/filter/xml/XMLExportDataPilot.cxx
|
||||
@@ -123,7 +123,7 @@ void ScXMLExportDataPilot::WriteDPCondition(const ScQueryEntry& aQueryEntry, boo
|
||||
|
||||
if (aQueryEntry.IsQueryByEmpty())
|
||||
{
|
||||
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_OPERATOR, GetXMLToken(XML_EMPTY));
|
||||
+ rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_OPERATOR, GetXMLToken(XML_TOKEN_EMPTY));
|
||||
}
|
||||
else if (aQueryEntry.IsQueryByNonEmpty())
|
||||
{
|
||||
diff --git a/sc/source/filter/xml/XMLExportDatabaseRanges.cxx b/sc/source/filter/xml/XMLExportDatabaseRanges.cxx
|
||||
index 6905e02d651b..e4307065bd92 100644
|
||||
--- a/sc/source/filter/xml/XMLExportDatabaseRanges.cxx
|
||||
+++ b/sc/source/filter/xml/XMLExportDatabaseRanges.cxx
|
||||
@@ -376,7 +376,7 @@ private:
|
||||
case SC_EQUAL:
|
||||
{
|
||||
if (rEntry.IsQueryByEmpty())
|
||||
- return GetXMLToken(XML_EMPTY);
|
||||
+ return GetXMLToken(XML_TOKEN_EMPTY);
|
||||
else if (rEntry.IsQueryByNonEmpty())
|
||||
return GetXMLToken(XML_NOEMPTY);
|
||||
|
||||
diff --git a/sc/source/filter/xml/xmlfilti.cxx b/sc/source/filter/xml/xmlfilti.cxx
|
||||
index 7585ce0c50fa..61f7cfe4a349 100644
|
||||
--- a/sc/source/filter/xml/xmlfilti.cxx
|
||||
+++ b/sc/source/filter/xml/xmlfilti.cxx
|
||||
@@ -370,7 +370,7 @@ void ScXMLConditionContext::GetOperator(
|
||||
rEntry.eOp = SC_BOTPERC;
|
||||
else if (IsXMLToken(aOpStr, XML_BOTTOM_VALUES))
|
||||
rEntry.eOp = SC_BOTVAL;
|
||||
- else if (IsXMLToken(aOpStr, XML_EMPTY))
|
||||
+ else if (IsXMLToken(aOpStr, XML_TOKEN_EMPTY))
|
||||
rEntry.SetQueryByEmpty();
|
||||
else if (aOpStr == u">")
|
||||
rEntry.eOp = SC_GREATER;
|
||||
@@ -422,7 +422,7 @@ void SAL_CALL ScXMLConditionContext::endFastElement( sal_Int32 /*nElement*/ )
|
||||
if (maQueryItems.empty())
|
||||
{
|
||||
ScQueryEntry::Item& rItem = rEntry.GetQueryItem();
|
||||
- if (IsXMLToken(sOperator, XML_EMPTY))
|
||||
+ if (IsXMLToken(sOperator, XML_TOKEN_EMPTY))
|
||||
return;
|
||||
if (IsXMLToken(sDataType, XML_NUMBER))
|
||||
{
|
||||
@@ -753,7 +753,7 @@ void SAL_CALL ScXMLDPConditionContext::endFastElement( sal_Int32 /*nElement*/ )
|
||||
else
|
||||
aFilterField.eConnect = SC_AND;
|
||||
pFilterContext->SetIsCaseSensitive(bIsCaseSensitive);
|
||||
- if (IsXMLToken(sOperator, XML_EMPTY))
|
||||
+ if (IsXMLToken(sOperator, XML_TOKEN_EMPTY))
|
||||
aFilterField.SetQueryByEmpty();
|
||||
else if (IsXMLToken(sOperator, XML_NOEMPTY))
|
||||
aFilterField.SetQueryByNonEmpty();
|
||||
diff --git a/unoxml/source/dom/attr.cxx b/unoxml/source/dom/attr.cxx
|
||||
index dd974d910edb..d8d873cdf055 100644
|
||||
--- a/unoxml/source/dom/attr.cxx
|
||||
+++ b/unoxml/source/dom/attr.cxx
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <memory>
|
||||
+#include <libxml/entities.h>
|
||||
|
||||
#include <osl/diagnose.h>
|
||||
#include <sal/log.hxx>
|
||||
diff --git a/unoxml/source/dom/document.cxx b/unoxml/source/dom/document.cxx
|
||||
index cb48bd1635f8..0825fc2cd7ed 100644
|
||||
--- a/unoxml/source/dom/document.cxx
|
||||
+++ b/unoxml/source/dom/document.cxx
|
||||
@@ -41,6 +41,7 @@
|
||||
#include <eventdispatcher.hxx>
|
||||
|
||||
#include <string.h>
|
||||
+#include <libxml/xmlIO.h>
|
||||
|
||||
#include <osl/diagnose.h>
|
||||
|
||||
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx
|
||||
index c3cd7663d2fc..3898d58e4be4 100644
|
||||
--- a/unoxml/source/dom/documentbuilder.cxx
|
||||
+++ b/unoxml/source/dom/documentbuilder.cxx
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <libxml/xmlerror.h>
|
||||
+#include <libxml/parser.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
diff --git a/unoxml/source/dom/entity.cxx b/unoxml/source/dom/entity.cxx
|
||||
index ccc8a0872499..98909dfe8f12 100644
|
||||
--- a/unoxml/source/dom/entity.cxx
|
||||
+++ b/unoxml/source/dom/entity.cxx
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <osl/diagnose.h>
|
||||
|
||||
#include <string.h>
|
||||
+#include <libxml/entities.h>
|
||||
|
||||
using namespace css::uno;
|
||||
using namespace css::xml::dom;
|
||||
diff --git a/unoxml/source/xpath/xpathapi.cxx b/unoxml/source/xpath/xpathapi.cxx
|
||||
index a60083983882..c2b753783176 100644
|
||||
--- a/unoxml/source/xpath/xpathapi.cxx
|
||||
+++ b/unoxml/source/xpath/xpathapi.cxx
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <libxml/xmlerror.h>
|
||||
#include <libxml/xpath.h>
|
||||
#include <libxml/xpathInternals.h>
|
||||
+#include <libxml/xmlIO.h>
|
||||
|
||||
#include <com/sun/star/xml/xpath/XPathException.hpp>
|
||||
|
||||
@@ -217,7 +218,7 @@ namespace XPath
|
||||
return selectSingleNode(contextNode, expr);
|
||||
}
|
||||
|
||||
- static OUString make_error_message(xmlErrorPtr pError)
|
||||
+ static OUString make_error_message(const xmlError* pError)
|
||||
{
|
||||
OUStringBuffer buf;
|
||||
if (pError) {
|
||||
@@ -259,7 +260,11 @@ namespace XPath
|
||||
SAL_WARN("unoxml", "libxml2 error: " << str);
|
||||
}
|
||||
|
||||
+#if LIBXML_VERSION >= 21200
|
||||
+ static void structured_error_func(void *, const xmlError* error)
|
||||
+#else
|
||||
static void structured_error_func(void *, xmlErrorPtr error)
|
||||
+#endif
|
||||
{
|
||||
SAL_WARN("unoxml", "libxml2 error: " << make_error_message(error));
|
||||
}
|
||||
diff --git a/xmloff/source/core/xmltoken.cxx b/xmloff/source/core/xmltoken.cxx
|
||||
index 6879f37db295..e11dc0d16111 100644
|
||||
--- a/xmloff/source/core/xmltoken.cxx
|
||||
+++ b/xmloff/source/core/xmltoken.cxx
|
||||
@@ -756,7 +756,7 @@ namespace xmloff::token {
|
||||
TOKEN( "embedded-visible-area", XML_EMBEDDED_VISIBLE_AREA ),
|
||||
TOKEN( "embossed", XML_EMBOSSED ),
|
||||
TOKEN( "emissive-color", XML_EMISSIVE_COLOR ),
|
||||
- TOKEN( "empty", XML_EMPTY ),
|
||||
+ TOKEN( "empty", XML_TOKEN_EMPTY ),
|
||||
TOKEN( "empty-line-refresh", XML_EMPTY_LINE_REFRESH ),
|
||||
TOKEN( "enable-numbering", XML_ENABLE_NUMBERING ),
|
||||
TOKEN( "enabled", XML_ENABLED ),
|
||||
diff --git a/xmloff/source/style/PageMasterStyleMap.cxx b/xmloff/source/style/PageMasterStyleMap.cxx
|
||||
index 7b2cab4751aa..6f631289672b 100644
|
||||
--- a/xmloff/source/style/PageMasterStyleMap.cxx
|
||||
+++ b/xmloff/source/style/PageMasterStyleMap.cxx
|
||||
@@ -157,7 +157,7 @@ const XMLPropertyMapEntry aXMLPageMasterStyleMap[] =
|
||||
PLMAP( PROP_FootnoteLineRelativeWidth, XML_NAMESPACE_STYLE, XML__EMPTY, XML_TYPE_PERCENT8|MID_FLAG_SPECIAL_ITEM, CTF_PM_FTN_LINE_WIDTH ),
|
||||
PLMAP( PROP_FootnoteLineTextDistance, XML_NAMESPACE_STYLE, XML__EMPTY, XML_TYPE_MEASURE|MID_FLAG_SPECIAL_ITEM, CTF_PM_FTN_LINE_DISTANCE ),
|
||||
PLMAP( PROP_FootnoteLineWeight, XML_NAMESPACE_STYLE, XML_FOOTNOTE_SEP, XML_TYPE_MEASURE16|MID_FLAG_ELEMENT_ITEM, CTF_PM_FTN_LINE_WEIGHT ),
|
||||
- PLMAP( PROP_FootnoteLineStyle, XML_NAMESPACE_STYLE, XML_EMPTY, XML_TYPE_STRING|MID_FLAG_ELEMENT_ITEM, CTF_PM_FTN_LINE_STYLE ),
|
||||
+ PLMAP( PROP_FootnoteLineStyle, XML_NAMESPACE_STYLE, XML_TOKEN_EMPTY, XML_TYPE_STRING|MID_FLAG_ELEMENT_ITEM, CTF_PM_FTN_LINE_STYLE ),
|
||||
PLMAP_EXT(PROP_GutterMargin, XML_NAMESPACE_LO_EXT, XML_MARGIN_GUTTER, XML_TYPE_MEASURE, CTF_PM_MARGINGUTTER),
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
diff --git a/xmlsecurity/inc/xmlsec-wrapper.h b/xmlsecurity/inc/xmlsec-wrapper.h
|
||||
index 7c6d267e8b73..3ad705400c52 100644
|
||||
--- a/xmlsecurity/inc/xmlsec-wrapper.h
|
||||
+++ b/xmlsecurity/inc/xmlsec-wrapper.h
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include <sal/types.h>
|
||||
|
||||
+#include <libxml/parser.h>
|
||||
#include <xmlsec/base64.h>
|
||||
#include <xmlsec/bn.h>
|
||||
#include <xmlsec/errors.h>
|
||||
diff --git a/xmlsecurity/inc/xmlsec/saxhelper.hxx b/xmlsecurity/inc/xmlsec/saxhelper.hxx
|
||||
index a49ccef1894c..a5863ffd0e2a 100644
|
||||
--- a/xmlsecurity/inc/xmlsec/saxhelper.hxx
|
||||
+++ b/xmlsecurity/inc/xmlsec/saxhelper.hxx
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include <string_view>
|
||||
|
||||
+#include <libxml/parser.h>
|
||||
#include <libxml/tree.h>
|
||||
|
||||
#include <rtl/ustring.hxx>
|
||||
--
|
||||
cgit v1.2.1
|
||||
|
||||
@@ -1,668 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_REQ_USE="threads(+),xml(+)"
|
||||
|
||||
MY_PV="${PV/_alpha/.alpha}"
|
||||
MY_PV="${MY_PV/_beta/.beta}"
|
||||
# experimental ; release ; old
|
||||
# Usually the tarballs are moved a lot so this should make everyone happy.
|
||||
DEV_URI="
|
||||
https://dev-builds.libreoffice.org/pre-releases/src
|
||||
https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
|
||||
https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
|
||||
"
|
||||
ADDONS_URI="https://dev-www.libreoffice.org/src/"
|
||||
|
||||
BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
|
||||
# PATCHSET="${P}-patchset-01.tar.xz"
|
||||
|
||||
[[ ${MY_PV} == *9999* ]] && inherit git-r3
|
||||
inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils
|
||||
|
||||
DESCRIPTION="A full office productivity suite"
|
||||
HOMEPAGE="https://www.libreoffice.org"
|
||||
SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
|
||||
[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
|
||||
|
||||
# Split modules following git/tarballs; Core MUST be first!
|
||||
# Help is used for the image generator
|
||||
# Only release has the tarballs
|
||||
if [[ ${MY_PV} != *9999* ]]; then
|
||||
for i in ${DEV_URI}; do
|
||||
SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
|
||||
SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
|
||||
done
|
||||
unset i
|
||||
fi
|
||||
unset DEV_URI
|
||||
|
||||
# Really required addons
|
||||
# These are bundles that can't be removed for now due to huge patchsets.
|
||||
# If you want them gone, patches are welcome.
|
||||
ADDONS_SRC=(
|
||||
# not packaged in Gentoo
|
||||
"${ADDONS_URI}/dragonbox-1.1.3.tar.gz"
|
||||
# not packaged in Gentoo, https://www.netlib.org/fp/dtoa.c
|
||||
"${ADDONS_URI}/dtoa-20180411.tgz"
|
||||
# not packaged in Gentoo, https://github.com/serge-sans-paille/frozen
|
||||
"${ADDONS_URI}/frozen-1.1.1.tar.gz"
|
||||
# not packaged in Gentoo, https://skia.org/
|
||||
"${ADDONS_URI}/skia-m111-a31e897fb3dcbc96b2b40999751611d029bf5404.tar.xz"
|
||||
"base? (
|
||||
${ADDONS_URI}/commons-logging-1.2-src.tar.gz
|
||||
${ADDONS_URI}/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip
|
||||
${ADDONS_URI}/d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip
|
||||
${ADDONS_URI}/eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip
|
||||
${ADDONS_URI}/3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip
|
||||
${ADDONS_URI}/3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip
|
||||
${ADDONS_URI}/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip
|
||||
${ADDONS_URI}/97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip
|
||||
${ADDONS_URI}/8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip
|
||||
${ADDONS_URI}/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip
|
||||
${ADDONS_URI}/ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip
|
||||
${ADDONS_URI}/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip
|
||||
)"
|
||||
"java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
||||
# no release for 8 years, should we package it?
|
||||
"libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
|
||||
# Does not build with 1.6 rhino at all
|
||||
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
|
||||
# requirement of rhino
|
||||
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
|
||||
# not packageable
|
||||
"odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
|
||||
)
|
||||
SRC_URI+=" ${ADDONS_SRC[*]}"
|
||||
|
||||
unset ADDONS_URI
|
||||
unset ADDONS_SRC
|
||||
|
||||
# Extensions that need extra work:
|
||||
LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
|
||||
|
||||
IUSE="accessibility base bluetooth +branding clang coinmp +cups custom-cflags +dbus debug eds firebird
|
||||
googledrive gstreamer +gtk kde ldap +mariadb odk pdfimport postgres test valgrind vulkan
|
||||
$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
base? ( java )
|
||||
bluetooth? ( dbus )
|
||||
libreoffice_extensions_nlpsolver? ( java )
|
||||
libreoffice_extensions_scripting-beanshell? ( java )
|
||||
libreoffice_extensions_scripting-javascript? ( java )
|
||||
libreoffice_extensions_wiki-publisher? ( java )
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
||||
SLOT="0"
|
||||
|
||||
[[ ${MY_PV} == *9999* ]] || \
|
||||
KEYWORDS="amd64 ~arm arm64 ~loong ppc64 ~riscv x86 ~amd64-linux"
|
||||
|
||||
COMMON_DEPEND="${PYTHON_DEPS}
|
||||
app-arch/unzip
|
||||
app-arch/zip
|
||||
app-crypt/gpgme:=[cxx]
|
||||
app-text/hunspell:=
|
||||
>=app-text/libabw-0.1.0
|
||||
>=app-text/libebook-0.1
|
||||
app-text/libepubgen
|
||||
>=app-text/libetonyek-0.1
|
||||
app-text/libexttextcat
|
||||
app-text/liblangtag
|
||||
>=app-text/libmspub-0.1.0
|
||||
>=app-text/libmwaw-0.3.21
|
||||
>=app-text/libnumbertext-1.0.6
|
||||
>=app-text/libodfgen-0.1.0
|
||||
app-text/libqxp
|
||||
app-text/libstaroffice
|
||||
app-text/libwpd:0.10[tools]
|
||||
app-text/libwpg:0.3
|
||||
>=app-text/libwps-0.4
|
||||
app-text/mythes
|
||||
>=dev-cpp/clucene-2.3.3.4-r2
|
||||
>=dev-cpp/libcmis-0.6.2:0=
|
||||
dev-db/unixODBC
|
||||
dev-lang/perl
|
||||
dev-libs/boost:=[nls]
|
||||
dev-libs/expat
|
||||
dev-libs/hyphen
|
||||
dev-libs/icu:=
|
||||
dev-libs/libassuan:=
|
||||
dev-libs/libgpg-error
|
||||
>=dev-libs/liborcus-0.18.0:0/0.18
|
||||
dev-libs/librevenge
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
dev-libs/nspr
|
||||
dev-libs/nss
|
||||
>=dev-libs/redland-1.0.16
|
||||
>=dev-libs/xmlsec-1.2.35:=[nss]
|
||||
>=games-engines/box2d-2.4.1:0
|
||||
media-gfx/fontforge
|
||||
media-gfx/graphite2
|
||||
media-libs/fontconfig
|
||||
>=media-libs/freetype-2.11.0-r1:2
|
||||
>=media-libs/harfbuzz-5.1.0:=[graphite,icu]
|
||||
media-libs/lcms:2
|
||||
>=media-libs/libcdr-0.1.0
|
||||
>=media-libs/libepoxy-1.3.1[X]
|
||||
>=media-libs/libfreehand-0.1.0
|
||||
media-libs/libjpeg-turbo:=
|
||||
media-libs/libpagemaker
|
||||
>=media-libs/libpng-1.4:0=
|
||||
>=media-libs/libvisio-0.1.0
|
||||
media-libs/libwebp:=
|
||||
media-libs/libzmf
|
||||
media-libs/openjpeg:=
|
||||
media-libs/tiff:=
|
||||
media-libs/zxing-cpp:=
|
||||
net-misc/curl
|
||||
sci-mathematics/lpsolve:=
|
||||
sys-libs/zlib
|
||||
virtual/opengl
|
||||
x11-libs/cairo[X]
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
accessibility? (
|
||||
$(python_gen_cond_dep 'dev-python/lxml[${PYTHON_USEDEP}]')
|
||||
)
|
||||
bluetooth? (
|
||||
dev-libs/glib:2
|
||||
net-wireless/bluez
|
||||
)
|
||||
coinmp? ( sci-libs/coinor-mp )
|
||||
cups? ( net-print/cups )
|
||||
dbus? ( sys-apps/dbus )
|
||||
eds? (
|
||||
dev-libs/glib:2
|
||||
>=gnome-base/dconf-0.40.0
|
||||
gnome-extra/evolution-data-server
|
||||
)
|
||||
firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
|
||||
gstreamer? (
|
||||
media-libs/gstreamer:1.0
|
||||
media-libs/gst-plugins-base:1.0
|
||||
)
|
||||
gtk? (
|
||||
app-accessibility/at-spi2-core:2
|
||||
dev-libs/glib:2
|
||||
dev-libs/gobject-introspection
|
||||
gnome-base/dconf
|
||||
media-libs/mesa[egl(+)]
|
||||
x11-libs/gtk+:3[X]
|
||||
x11-libs/pango
|
||||
)
|
||||
kde? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtx11extras:5
|
||||
kde-frameworks/kconfig:5
|
||||
kde-frameworks/kcoreaddons:5
|
||||
kde-frameworks/ki18n:5
|
||||
kde-frameworks/kio:5
|
||||
kde-frameworks/kwindowsystem:5
|
||||
)
|
||||
ldap? ( net-nds/openldap:= )
|
||||
libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
|
||||
libreoffice_extensions_scripting-javascript? ( >=dev-java/rhino-1.7.14:1.6 )
|
||||
mariadb? ( dev-db/mariadb-connector-c:= )
|
||||
!mariadb? ( dev-db/mysql-connector-c:= )
|
||||
pdfimport? ( >=app-text/poppler-22.06:=[cxx] )
|
||||
postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
|
||||
"
|
||||
# FIXME: cppunit should be moved to test conditional
|
||||
# after everything upstream is under gbuild
|
||||
# as dmake execute tests right away
|
||||
# tests apparently also need google-carlito-fonts (not packaged)
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-libs/libatomic_ops-7.2d
|
||||
dev-perl/Archive-Zip
|
||||
>=dev-util/cppunit-1.14.0
|
||||
>=dev-util/gperf-3.1
|
||||
dev-util/mdds:1/2.1
|
||||
media-libs/glm
|
||||
x11-base/xorg-proto
|
||||
x11-libs/libXt
|
||||
x11-libs/libXtst
|
||||
java? (
|
||||
dev-java/ant-core
|
||||
>=virtual/jdk-11
|
||||
)
|
||||
test? (
|
||||
app-crypt/gnupg
|
||||
dev-util/cppunit
|
||||
media-fonts/dejavu
|
||||
media-fonts/liberation-fonts
|
||||
)
|
||||
valgrind? ( dev-debug/valgrind )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
acct-group/libreoffice
|
||||
acct-user/libreoffice
|
||||
!app-office/libreoffice-bin
|
||||
!app-office/libreoffice-bin-debug
|
||||
media-fonts/liberation-fonts
|
||||
|| ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
|
||||
java? ( >=virtual/jre-11 )
|
||||
kde? ( kde-frameworks/breeze-icons:* )
|
||||
"
|
||||
BDEPEND="
|
||||
dev-util/intltool
|
||||
sys-apps/which
|
||||
app-alternatives/yacc
|
||||
app-alternatives/lex
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
clang? (
|
||||
|| (
|
||||
( sys-devel/clang:18
|
||||
sys-devel/llvm:18
|
||||
=sys-devel/lld-18* )
|
||||
( sys-devel/clang:17
|
||||
sys-devel/llvm:17
|
||||
=sys-devel/lld-17* )
|
||||
( sys-devel/clang:16
|
||||
sys-devel/llvm:16
|
||||
=sys-devel/lld-16* )
|
||||
( sys-devel/clang:15
|
||||
sys-devel/llvm:15
|
||||
=sys-devel/lld-15* )
|
||||
)
|
||||
)
|
||||
odk? ( >=app-text/doxygen-1.8.4 )
|
||||
"
|
||||
if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
|
||||
PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*"
|
||||
else
|
||||
# Translations are not reliable on live ebuilds
|
||||
# rather force people to use english only.
|
||||
RDEPEND+=" !app-office/libreoffice-l10n"
|
||||
fi
|
||||
|
||||
PATCHES=(
|
||||
# "${WORKDIR}"/${PATCHSET/.tar.xz/}
|
||||
|
||||
# not upstreamable stuff
|
||||
"${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
|
||||
"${FILESDIR}/${PN}-6.1-nomancompress.patch"
|
||||
"${FILESDIR}/${PN}-7.2.0.4-qt5detect.patch"
|
||||
|
||||
# maybe upstreamable
|
||||
"${FILESDIR}/${PN}-7.5.8.2-icu-74-compatibility.patch"
|
||||
|
||||
# 24.2 branch
|
||||
"${FILESDIR}/${PN}-7.5.9.2-libxml2-2.12.patch" # bug 917691
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
_check_reqs() {
|
||||
CHECKREQS_MEMORY="512M"
|
||||
if is-flagq "-g*" && ! is-flagq "-g*0" ; then
|
||||
CHECKREQS_DISK_BUILD="22G"
|
||||
else
|
||||
CHECKREQS_DISK_BUILD="6G"
|
||||
fi
|
||||
check-reqs_$1
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
use base ||
|
||||
ewarn "If you plan to use Base application you must enable USE base."
|
||||
use java ||
|
||||
ewarn "Without USE java, several wizards are not going to be available."
|
||||
|
||||
[[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
java-pkg-opt-2_pkg_setup
|
||||
python-single-r1_pkg_setup
|
||||
xdg_environment_reset
|
||||
|
||||
[[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
if [[ ${MY_PV} = *9999* ]]; then
|
||||
local base_uri branch mypv
|
||||
base_uri="https://anongit.freedesktop.org/git"
|
||||
branch="master"
|
||||
mypv=${MY_PV/.9999}
|
||||
[[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
|
||||
git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
|
||||
git-r3_checkout "${base_uri}/${PN}/core"
|
||||
LOCOREGIT_VERSION=${EGIT_VERSION}
|
||||
|
||||
git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
|
||||
git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# sandbox violations on many systems, we don't need it. Bug #646406
|
||||
sed -i \
|
||||
-e "/KF5_CONFIG/s/kf5-config/no/" \
|
||||
configure.ac || die "Failed to disable kf5-config"
|
||||
|
||||
AT_M4DIR="m4" eautoreconf
|
||||
# hack in the autogen.sh
|
||||
touch autogen.lastrun
|
||||
|
||||
# sed in the tests
|
||||
sed -i \
|
||||
-e "s#all : build unitcheck#all : build#g" \
|
||||
solenv/gbuild/Module.mk || die
|
||||
sed -i \
|
||||
-e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
|
||||
-e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
|
||||
Makefile.in || die
|
||||
|
||||
sed -i \
|
||||
-e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
|
||||
-e "s,\$INSTALLDIRNAME.sh,${PN}," \
|
||||
bin/distro-install-desktop-integration || die
|
||||
|
||||
if use branding; then
|
||||
# hack...
|
||||
mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
|
||||
fi
|
||||
|
||||
# Don't list pdfimport support in desktop when built with none, bug # 605464
|
||||
if ! use pdfimport; then
|
||||
sed -i \
|
||||
-e ":MimeType: s:application/pdf;::" \
|
||||
-e ":Keywords: s:pdf;::" \
|
||||
sysui/desktop/menus/draw.desktop || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
|
||||
# Note: these are for Gentoo use ONLY. For your own distribution, please get
|
||||
# your own set of keys. Feel free to contact chromium@gentoo.org for more info.
|
||||
local google_default_client_id="329227923882.apps.googleusercontent.com"
|
||||
local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
|
||||
|
||||
# Show flags set at the beginning
|
||||
einfo "Preset CFLAGS: ${CFLAGS}"
|
||||
einfo "Preset LDFLAGS: ${LDFLAGS}"
|
||||
|
||||
# Workaround for bug #915067
|
||||
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
|
||||
|
||||
if use clang ; then
|
||||
# Force clang
|
||||
einfo "Enforcing the use of clang due to USE=clang ..."
|
||||
AR=llvm-ar
|
||||
CC=${CHOST}-clang
|
||||
CXX=${CHOST}-clang++
|
||||
NM=llvm-nm
|
||||
RANLIB=llvm-ranlib
|
||||
LDFLAGS+=" -fuse-ld=lld"
|
||||
|
||||
# Workaround for bug #907905
|
||||
filter-lto
|
||||
|
||||
# Not implemented by Clang, bug #903889
|
||||
filter-flags -Wlto-type-mismatch -Werror=lto-type-mismatch
|
||||
else
|
||||
# Force gcc
|
||||
einfo "Enforcing the use of gcc due to USE=-clang ..."
|
||||
AR=gcc-ar
|
||||
CC=${CHOST}-gcc
|
||||
CXX=${CHOST}-g++
|
||||
NM=gcc-nm
|
||||
RANLIB=gcc-ranlib
|
||||
|
||||
# Apparently the Clang flags get used even for GCC builds sometimes.
|
||||
# bug #838115
|
||||
sed -i -e "s/-flto=thin/-flto/" solenv/gbuild/platform/com_GCC_defs.mk || die
|
||||
fi
|
||||
|
||||
if use custom-cflags ; then
|
||||
elog "USE=custom-cflags has been selected. You are on your own to make sure that"
|
||||
elog "the build succeeds. Good luck!"
|
||||
else
|
||||
strip-flags
|
||||
fi
|
||||
|
||||
export LO_CLANG_CC=${CC}
|
||||
export LO_CLANG_CXX=${CXX}
|
||||
|
||||
# Show flags set at the end
|
||||
einfo " Used CFLAGS: ${CFLAGS}"
|
||||
einfo " Used LDFLAGS: ${LDFLAGS}"
|
||||
|
||||
# Ensure we use correct toolchain
|
||||
tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
|
||||
|
||||
# optimization flags
|
||||
export GMAKE_OPTIONS="${MAKEOPTS}"
|
||||
# System python enablement:
|
||||
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
||||
export PYTHON_LIBS=$(python_get_LIBS)
|
||||
|
||||
use kde && export QT5DIR="$(qt5_get_bindir)/.."
|
||||
|
||||
local gentoo_buildid="Gentoo official package"
|
||||
if [[ -n ${LOCOREGIT_VERSION} ]]; then
|
||||
gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
|
||||
fi
|
||||
|
||||
# system headers/libs/...: enforce using system packages
|
||||
# --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
|
||||
# --enable-cairo: ensure that cairo is always required
|
||||
# --enable-*-link: link to the library rather than just dlopen on runtime
|
||||
# --enable-release-build: build the libreoffice as release
|
||||
# --disable-fetch-external: prevent dowloading during compile phase
|
||||
# --enable-extension-integration: enable any extension integration support
|
||||
# --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
|
||||
# --disable-report-builder: too much java packages pulled in without pkgs
|
||||
# --without-system-sane: just sane.h header that is used for scan in writer,
|
||||
# not linked or anything else, worthless to depend on
|
||||
# --disable-pdfium: not yet packaged
|
||||
local myeconfargs=(
|
||||
--with-system-dicts
|
||||
--with-system-epoxy
|
||||
--with-system-headers
|
||||
--with-system-jars
|
||||
--with-system-libs
|
||||
--enable-build-opensymbol
|
||||
--enable-cairo-canvas
|
||||
--enable-largefile
|
||||
--enable-mergelibs
|
||||
--enable-python=system
|
||||
--enable-randr
|
||||
--enable-release-build
|
||||
--disable-breakpad
|
||||
--disable-bundle-mariadb
|
||||
--disable-ccache
|
||||
--disable-epm
|
||||
--disable-fetch-external
|
||||
--disable-gtk3-kde5
|
||||
--disable-online-update
|
||||
--disable-openssl
|
||||
--disable-pdfium
|
||||
--disable-qt6
|
||||
--with-extra-buildid="${gentoo_buildid}"
|
||||
--enable-extension-integration
|
||||
--with-external-dict-dir="${EPREFIX}/usr/share/myspell"
|
||||
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
|
||||
--with-external-thes-dir="${EPREFIX}/usr/share/myspell"
|
||||
--with-external-tar="${DISTDIR}"
|
||||
--with-lang=""
|
||||
--with-parallelism=$(makeopts_jobs)
|
||||
--with-system-openjpeg
|
||||
--with-tls=nss
|
||||
--with-vendor="Gentoo Foundation"
|
||||
--with-x
|
||||
--without-fonts
|
||||
--without-myspell-dicts
|
||||
--with-help="html"
|
||||
--without-helppack-integration
|
||||
--with-system-gpgmepp
|
||||
--without-system-abseil
|
||||
--without-system-dragonbox
|
||||
--without-system-frozen
|
||||
--without-system-jfreereport
|
||||
--without-system-libfixmath
|
||||
--without-system-sane
|
||||
$(use_enable base report-builder)
|
||||
$(use_enable bluetooth sdremote-bluetooth)
|
||||
$(use_enable coinmp)
|
||||
$(use_enable cups)
|
||||
$(use_enable dbus)
|
||||
$(use_enable debug)
|
||||
$(use_enable eds evolution2)
|
||||
$(use_enable firebird firebird-sdbc)
|
||||
$(use_enable gstreamer gstreamer-1-0)
|
||||
$(use_enable gtk gtk3)
|
||||
$(use_enable kde kf5)
|
||||
$(use_enable kde qt5)
|
||||
$(use_enable ldap)
|
||||
$(use_enable odk)
|
||||
$(use_enable pdfimport)
|
||||
$(use_enable postgres postgresql-sdbc)
|
||||
$(use_enable vulkan skia)
|
||||
$(use_with accessibility lxml)
|
||||
$(use_with coinmp system-coinmp)
|
||||
$(use_with googledrive gdrive-client-id ${google_default_client_id})
|
||||
$(use_with googledrive gdrive-client-secret ${google_default_client_secret})
|
||||
$(use_with java)
|
||||
$(use_with odk doxygen)
|
||||
$(use_with valgrind)
|
||||
)
|
||||
|
||||
if use eds || use gtk; then
|
||||
myeconfargs+=( --enable-dconf --enable-gio )
|
||||
else
|
||||
myeconfargs+=( --disable-dconf --disable-gio )
|
||||
fi
|
||||
|
||||
# libreoffice extensions handling
|
||||
for lo_xt in ${LO_EXTS}; do
|
||||
if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
|
||||
myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
|
||||
else
|
||||
myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
|
||||
fi
|
||||
done
|
||||
|
||||
if use java; then
|
||||
# hsqldb: system one is too new
|
||||
myeconfargs+=(
|
||||
--without-junit
|
||||
--without-system-hsqldb
|
||||
--with-ant-home="${ANT_HOME}"
|
||||
--with-jdk-home="${JAVA_HOME}"
|
||||
)
|
||||
|
||||
use libreoffice_extensions_scripting-beanshell && \
|
||||
myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
|
||||
|
||||
use libreoffice_extensions_scripting-javascript && \
|
||||
myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 rhino.jar) )
|
||||
fi
|
||||
|
||||
tc-is-lto && myeconfargs+=( --enable-lto )
|
||||
|
||||
MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# more and more LO stuff tries to use OpenGL, including tests during build
|
||||
# bug 501508, bug 540624, bug 545974 and probably more
|
||||
addpredict /dev/dri
|
||||
addpredict /dev/ati
|
||||
addpredict /dev/nvidiactl
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake unitcheck
|
||||
emake slowcheck
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" distro-pack-install -o build -o check
|
||||
|
||||
# bug 593514
|
||||
if use gtk; then
|
||||
dosym libreoffice/program/liblibreofficekitgtk.so \
|
||||
/usr/$(get_libdir)/liblibreofficekitgtk.so
|
||||
fi
|
||||
|
||||
# bash completion aliases
|
||||
bashcomp_alias \
|
||||
libreoffice \
|
||||
unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
|
||||
|
||||
if use branding; then
|
||||
insinto /usr/$(get_libdir)/${PN}/program
|
||||
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
||||
dodir /etc/env.d
|
||||
echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die
|
||||
fi
|
||||
|
||||
# bug 703474
|
||||
insinto /usr/include
|
||||
doins -r include/LibreOfficeKit
|
||||
|
||||
local lodir=/usr/$(get_libdir)/libreoffice
|
||||
# patching this would break tests
|
||||
cat <<-EOF > "${T}"/uno.py
|
||||
import sys, os
|
||||
sys.path.append('${EPREFIX}${lodir}/program')
|
||||
os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:${EPREFIX}${lodir}/program/fundamentalrc')
|
||||
EOF
|
||||
sed -e "/^import sys/d" -e "/^import os/d" \
|
||||
-i "${D}"${lodir}/program/uno.py || die "cleanup dupl imports failed"
|
||||
cat "${D}"${lodir}/program/uno.py >> "${T}"/uno.py || die
|
||||
cp "${T}"/uno.py "${D}"${lodir}/program/uno.py || die
|
||||
|
||||
# more system pyuno mess
|
||||
sed -e "/sOffice = \"\" # lets hope for the best/s:\"\":\"${EPREFIX}${lodir}/program\":" \
|
||||
-i "${D}"${lodir}/program/officehelper.py || die
|
||||
|
||||
python_optimize "${D}"${lodir}/program
|
||||
# link python bridge in site-packages, bug 667802
|
||||
local py pyc loprogdir=/usr/$(get_libdir)/libreoffice/program
|
||||
for py in uno.py unohelper.py officehelper.py; do
|
||||
dosym -r ${loprogdir}/${py} $(python_get_sitedir)/${py}
|
||||
while IFS="" read -d $'\0' -r pyc; do
|
||||
pyc=${pyc//*\/}
|
||||
dosym -r ${loprogdir}/__pycache__/${pyc} $(python_get_sitedir)/__pycache__/${pyc}
|
||||
done < <(find "${D}"${lodir}/program -type f -name ${py/.py/*.pyc} -print0)
|
||||
done
|
||||
|
||||
newinitd "${FILESDIR}/libreoffice.initd" libreoffice
|
||||
newconfd "${FILESDIR}/libreoffice.confd" libreoffice
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
@@ -1,9 +1,5 @@
|
||||
DIST poppler-24.02.0.tar.xz 1897604 BLAKE2B ba97ea0807eab8e27112f66bcdcc695fe71881b873e129ebbaab521ad895815cf782faf9e32efd8530ec7c840546a505ef9a1b195258dafd55ce21fe4e11250e SHA512 95a208d21ac4d2d308a7ab3da43b95092ef78cd55ebe873c97e0d6c12d8b9d5c4614f83087616c35e1ed9d67ca606a5e008a98698bd12a332a8206ed4cf55500
|
||||
DIST poppler-24.02.0.tar.xz.sig 833 BLAKE2B 9daed6e9c3ba6f42f7b7e81abcf835658a03c4041a221b1de2e3a8e016eebe7b369174379f8faadb6119cac4502bf58e9f1c548e401d417d8ef5c1a2ab5fb322 SHA512 9bb03899e5fc475097a3422ed5f03b528796dc09d14bef0dabbbb457f9d5b20b48db462cc1478522803bae42c5b25ef46715d3ff6c26f4582f2ecf9c1bf1598e
|
||||
DIST poppler-24.04.0.tar.xz 1904936 BLAKE2B c4a9350b990981b0018229923160ded621f4035b19ec3d87c328ef67b22b9e36cc15ef4912da625a55a5befacc95aef6a8ef5dc48aa46cd79943b03985333b47 SHA512 49a9bef20ebdca3b56e53fa610d5ff76a7fba378dd7d8bb64a11bea909bf103ec7fd385e95ca971feab84aaebb523d4c7515a3a42ac0c7eb728e376a1239cfd9
|
||||
DIST poppler-24.04.0.tar.xz.sig 833 BLAKE2B 842f500b45396a3a0a6e5789a6f0957ea5f3d66536dfb6e32420201bdfc4a867a0262d0dc97302cc0d530e68ca163fda10f143516a472394bcb085f746d891d1 SHA512 4419a2a94c34621ffde1f1e0d1d26929171f81b6809a5380af30434c2220a7bf694ff2f8e7ba7a611b1ebd265e91424060238f51d2cccd9acecd92f66e0e1e28
|
||||
DIST poppler-24.05.0.tar.xz 1909164 BLAKE2B 65d5d1509078012a26d0bd97985516a39c49594a3c83016f1b7c7745caf1d13faaa82bbaea62c16466f4b1c159c765fa88f97e20f10a87b08514b00e5bdb1113 SHA512 caa3d31b8f22186a7218831039c2ff7384b07863de04f166980dfe534a7a5f047e7c21e1114b9ed0ef323beb60983b45a36bb906c4189c0828f4119e3e2dbaa1
|
||||
DIST poppler-24.05.0.tar.xz.sig 833 BLAKE2B f1125a8b81089a4b8beb9385fa4a9b170b97f08e2bc732fd1cc2671ed43a81bb7b58b9ced61691e55188af94ee6b2c701be0ea1e12feecebbc7c4062a97b76fb SHA512 3010eeda09ff58d9705465bffe4861d9af1f294597b8eec1e1cc90f59008ab146000fcc694b2fad8bb675d89d68b2b78d54236ae6d42411058b9444b87514db3
|
||||
DIST poppler-24.06.1.tar.xz 1910252 BLAKE2B 7eb2543dce1da0a04ce872d4af30eb25304db72fb6dc6f3ed309d478844af0fdd66e886a6e8c3a48df2096a8aa834f6b14e65689466de3283b54bc50289cd8b3 SHA512 4add06c9cb7741a66cd11e169b6cc332e80151b6e3450295400e948f30c340d018f67fcf2b923f4f65a11f20e2ce1c2740008e823d9b97f966eded7ae51e4167
|
||||
DIST poppler-24.06.1.tar.xz.sig 833 BLAKE2B f2fa137d12e9143691d1a640a39c40fe8d923b017e60e2a125026082adce8e0863c501167a170d60aa38044d9c799f9e31a8eacfee68847554ac86f7eea84d26 SHA512 f6343d3b7c8889a5b8e8a14a14e60fd11990393608639b0f41bb35451c2ac5ec28bba01af79578c0cb224726886b28a491a769cba5347df67680d18812258b9f
|
||||
DIST poppler-test-400f3ff05b2b1c0ae17797a0bd50e75e35c1f1b1.tar.bz2 5199265 BLAKE2B d58f6ee7b44ca45291c205f9619db3833871f5789dd6a4e3ccc9acce2b6d7967a6b8596e3f32b7b35ba3d185976e8b9c8a998071c4451bb5ce674825a4005d6d SHA512 5bf5d99956fa0a6a93e0b0dc4713ecd8810811eca35514cc5765ffaafb9485f64f94b21487afa46c16eaf66326fcb999e792b8121eeb188e7e33a32a4798fb76
|
||||
|
||||
@@ -1,157 +0,0 @@
|
||||
# Copyright 2005-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake flag-o-matic toolchain-funcs xdg-utils
|
||||
|
||||
if [[ ${PV} == *9999* ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://anongit.freedesktop.org/git/poppler/poppler.git"
|
||||
SLOT="0/9999"
|
||||
else
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/aacid.asc
|
||||
inherit verify-sig
|
||||
|
||||
TEST_COMMIT="400f3ff05b2b1c0ae17797a0bd50e75e35c1f1b1"
|
||||
SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz"
|
||||
SRC_URI+=" test? ( https://gitlab.freedesktop.org/poppler/test/-/archive/${TEST_COMMIT}/test-${TEST_COMMIT}.tar.bz2 -> ${PN}-test-${TEST_COMMIT}.tar.bz2 )"
|
||||
SRC_URI+=" verify-sig? ( https://poppler.freedesktop.org/${P}.tar.xz.sig )"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
SLOT="0/134" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION
|
||||
fi
|
||||
|
||||
DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
|
||||
HOMEPAGE="https://poppler.freedesktop.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
IUSE="boost cairo cjk curl +cxx debug doc gpgme +introspection +jpeg +jpeg2k +lcms nss png qt5 qt6 test tiff +utils"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=media-libs/fontconfig-2.13
|
||||
>=media-libs/freetype-2.10
|
||||
sys-libs/zlib
|
||||
cairo? (
|
||||
>=dev-libs/glib-2.64:2
|
||||
>=x11-libs/cairo-1.16
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.64:= )
|
||||
)
|
||||
curl? ( net-misc/curl )
|
||||
gpgme? ( >=app-crypt/gpgme-1.19.0:=[cxx] )
|
||||
jpeg? ( >=media-libs/libjpeg-turbo-1.1.0:= )
|
||||
jpeg2k? ( >=media-libs/openjpeg-2.3.0-r1:2= )
|
||||
lcms? ( media-libs/lcms:2 )
|
||||
nss? ( >=dev-libs/nss-3.49 )
|
||||
png? ( media-libs/libpng:0= )
|
||||
qt5? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtxml:5
|
||||
)
|
||||
qt6? ( dev-qt/qtbase:6[gui,xml] )
|
||||
tiff? ( media-libs/tiff:= )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
cjk? ( app-text/poppler-data )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
boost? ( >=dev-libs/boost-1.71 )
|
||||
test? (
|
||||
qt5? (
|
||||
dev-qt/qttest:5
|
||||
dev-qt/qtwidgets:5
|
||||
)
|
||||
qt6? ( dev-qt/qtbase:6[widgets] )
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
>=dev-util/glib-utils-2.64
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
if [[ ${PV} != *9999* ]] ; then
|
||||
BDEPEND+=" verify-sig? ( >=sec-keys/openpgp-keys-aacid-20230907 )"
|
||||
fi
|
||||
|
||||
DOCS=( AUTHORS NEWS README.md README-XPDF )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-23.10.0-qt-deps.patch"
|
||||
"${FILESDIR}/${PN}-21.09.0-respect-cflags.patch"
|
||||
"${FILESDIR}/${PN}-0.57.0-disable-internal-jpx.patch"
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == *9999* ]] ; then
|
||||
git-r3_src_unpack
|
||||
elif use verify-sig ; then
|
||||
verify-sig_verify_detached "${DISTDIR}"/${P}.tar.xz{,.sig}
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
# Clang doesn't grok this flag, the configure nicely tests that, but
|
||||
# cmake just uses it, so remove it if we use clang
|
||||
if tc-is-clang ; then
|
||||
sed -e 's/-fno-check-new//' -i cmake/modules/PopplerMacros.cmake || die
|
||||
fi
|
||||
|
||||
if ! grep -Fq 'cmake_policy(SET CMP0002 OLD)' CMakeLists.txt ; then
|
||||
sed -e '/^cmake_minimum_required/acmake_policy(SET CMP0002 OLD)' \
|
||||
-i CMakeLists.txt || die
|
||||
else
|
||||
einfo "policy(SET CMP0002 OLD) - workaround can be removed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
xdg_environment_reset
|
||||
append-lfs-flags # bug #898506
|
||||
|
||||
local mycmakeargs=(
|
||||
-DBUILD_GTK_TESTS=OFF
|
||||
-DBUILD_QT5_TESTS=$(usex test $(usex qt5))
|
||||
-DBUILD_QT6_TESTS=$(usex test $(usex qt6))
|
||||
-DBUILD_CPP_TESTS=$(usex test)
|
||||
-DBUILD_MANUAL_TESTS=$(usex test)
|
||||
-DTESTDATADIR="${WORKDIR}"/test-${TEST_COMMIT}
|
||||
-DRUN_GPERF_IF_PRESENT=OFF
|
||||
-DENABLE_BOOST="$(usex boost)"
|
||||
-DENABLE_ZLIB_UNCOMPRESS=OFF
|
||||
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON
|
||||
-DUSE_FLOAT=OFF
|
||||
-DWITH_Cairo=$(usex cairo)
|
||||
-DENABLE_LIBCURL=$(usex curl)
|
||||
-DENABLE_CPP=$(usex cxx)
|
||||
-DENABLE_GPGME=$(usex gpgme)
|
||||
-DWITH_JPEG=$(usex jpeg)
|
||||
-DENABLE_DCTDECODER=$(usex jpeg libjpeg none)
|
||||
-DENABLE_LIBOPENJPEG=$(usex jpeg2k openjpeg2 none)
|
||||
-DENABLE_LCMS=$(usex lcms)
|
||||
-DENABLE_NSS3=$(usex nss)
|
||||
-DWITH_PNG=$(usex png)
|
||||
-DENABLE_QT5=$(usex qt5)
|
||||
-DENABLE_QT6=$(usex qt6)
|
||||
-DENABLE_LIBTIFF=$(usex tiff)
|
||||
-DENABLE_UTILS=$(usex utils)
|
||||
)
|
||||
use cairo && mycmakeargs+=( -DWITH_GObjectIntrospection=$(usex introspection) )
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
# live version doesn't provide html documentation
|
||||
if use cairo && use doc && [[ ${PV} != *9999* ]]; then
|
||||
# For now install gtk-doc there
|
||||
insinto /usr/share/gtk-doc/html/poppler
|
||||
doins -r "${S}"/glib/reference/html/*
|
||||
fi
|
||||
}
|
||||
@@ -1,157 +0,0 @@
|
||||
# Copyright 2005-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake flag-o-matic toolchain-funcs xdg-utils
|
||||
|
||||
if [[ ${PV} == *9999* ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://anongit.freedesktop.org/git/poppler/poppler.git"
|
||||
SLOT="0/9999"
|
||||
else
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/aacid.asc
|
||||
inherit verify-sig
|
||||
|
||||
TEST_COMMIT="ff3133cdb6cb496ee1d2c3231bfa35006a5e8410"
|
||||
SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz"
|
||||
SRC_URI+=" test? ( https://gitlab.freedesktop.org/poppler/test/-/archive/${TEST_COMMIT}/test-${TEST_COMMIT}.tar.bz2 -> ${PN}-test-${TEST_COMMIT}.tar.bz2 )"
|
||||
SRC_URI+=" verify-sig? ( https://poppler.freedesktop.org/${P}.tar.xz.sig )"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
SLOT="0/137" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION
|
||||
fi
|
||||
|
||||
DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
|
||||
HOMEPAGE="https://poppler.freedesktop.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
IUSE="boost cairo cjk curl +cxx debug doc gpgme +introspection +jpeg +jpeg2k +lcms nss png qt5 qt6 test tiff +utils"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=media-libs/fontconfig-2.13
|
||||
>=media-libs/freetype-2.10
|
||||
sys-libs/zlib
|
||||
cairo? (
|
||||
>=dev-libs/glib-2.64:2
|
||||
>=x11-libs/cairo-1.16
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.72:= )
|
||||
)
|
||||
curl? ( net-misc/curl )
|
||||
gpgme? ( >=app-crypt/gpgme-1.19.0:=[cxx] )
|
||||
jpeg? ( >=media-libs/libjpeg-turbo-1.1.0:= )
|
||||
jpeg2k? ( >=media-libs/openjpeg-2.3.0-r1:2= )
|
||||
lcms? ( media-libs/lcms:2 )
|
||||
nss? ( >=dev-libs/nss-3.49 )
|
||||
png? ( media-libs/libpng:0= )
|
||||
qt5? (
|
||||
>=dev-qt/qtcore-5.15.2:5
|
||||
>=dev-qt/qtgui-5.15.2:5
|
||||
>=dev-qt/qtxml-5.15.2:5
|
||||
)
|
||||
qt6? ( dev-qt/qtbase:6[gui,xml] )
|
||||
tiff? ( media-libs/tiff:= )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
cjk? ( app-text/poppler-data )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
boost? ( >=dev-libs/boost-1.74 )
|
||||
test? (
|
||||
qt5? (
|
||||
>=dev-qt/qttest-5.15.2:5
|
||||
>=dev-qt/qtwidgets-5.15.2:5
|
||||
)
|
||||
qt6? ( dev-qt/qtbase:6[widgets] )
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
>=dev-util/glib-utils-2.64
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
if [[ ${PV} != *9999* ]] ; then
|
||||
BDEPEND+=" verify-sig? ( >=sec-keys/openpgp-keys-aacid-20230907 )"
|
||||
fi
|
||||
|
||||
DOCS=( AUTHORS NEWS README.md README-XPDF )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-23.10.0-qt-deps.patch"
|
||||
"${FILESDIR}/${PN}-21.09.0-respect-cflags.patch"
|
||||
"${FILESDIR}/${PN}-0.57.0-disable-internal-jpx.patch"
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == *9999* ]] ; then
|
||||
git-r3_src_unpack
|
||||
elif use verify-sig ; then
|
||||
verify-sig_verify_detached "${DISTDIR}"/${P}.tar.xz{,.sig}
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
# Clang doesn't grok this flag, the configure nicely tests that, but
|
||||
# cmake just uses it, so remove it if we use clang
|
||||
if tc-is-clang ; then
|
||||
sed -e 's/-fno-check-new//' -i cmake/modules/PopplerMacros.cmake || die
|
||||
fi
|
||||
|
||||
if ! grep -Fq 'cmake_policy(SET CMP0002 OLD)' CMakeLists.txt ; then
|
||||
sed -e '/^cmake_minimum_required/acmake_policy(SET CMP0002 OLD)' \
|
||||
-i CMakeLists.txt || die
|
||||
else
|
||||
einfo "policy(SET CMP0002 OLD) - workaround can be removed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
xdg_environment_reset
|
||||
append-lfs-flags # bug #898506
|
||||
|
||||
local mycmakeargs=(
|
||||
-DBUILD_GTK_TESTS=OFF
|
||||
-DBUILD_QT5_TESTS=$(usex test $(usex qt5))
|
||||
-DBUILD_QT6_TESTS=$(usex test $(usex qt6))
|
||||
-DBUILD_CPP_TESTS=$(usex test)
|
||||
-DBUILD_MANUAL_TESTS=$(usex test)
|
||||
-DTESTDATADIR="${WORKDIR}"/test-${TEST_COMMIT}
|
||||
-DRUN_GPERF_IF_PRESENT=OFF
|
||||
-DENABLE_BOOST="$(usex boost)"
|
||||
-DENABLE_ZLIB_UNCOMPRESS=OFF
|
||||
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON
|
||||
-DUSE_FLOAT=OFF
|
||||
-DWITH_Cairo=$(usex cairo)
|
||||
-DENABLE_LIBCURL=$(usex curl)
|
||||
-DENABLE_CPP=$(usex cxx)
|
||||
-DENABLE_GPGME=$(usex gpgme)
|
||||
-DWITH_JPEG=$(usex jpeg)
|
||||
-DENABLE_DCTDECODER=$(usex jpeg libjpeg none)
|
||||
-DENABLE_LIBOPENJPEG=$(usex jpeg2k openjpeg2 none)
|
||||
-DENABLE_LCMS=$(usex lcms)
|
||||
-DENABLE_NSS3=$(usex nss)
|
||||
-DWITH_PNG=$(usex png)
|
||||
-DENABLE_QT5=$(usex qt5)
|
||||
-DENABLE_QT6=$(usex qt6)
|
||||
-DENABLE_LIBTIFF=$(usex tiff)
|
||||
-DENABLE_UTILS=$(usex utils)
|
||||
)
|
||||
use cairo && mycmakeargs+=( -DWITH_GObjectIntrospection=$(usex introspection) )
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
# live version doesn't provide html documentation
|
||||
if use cairo && use doc && [[ ${PV} != *9999* ]]; then
|
||||
# For now install gtk-doc there
|
||||
insinto /usr/share/gtk-doc/html/poppler
|
||||
doins -r "${S}"/glib/reference/html/*
|
||||
fi
|
||||
}
|
||||
@@ -17,7 +17,7 @@ else
|
||||
SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz"
|
||||
SRC_URI+=" test? ( https://gitlab.freedesktop.org/poppler/test/-/archive/${TEST_COMMIT}/test-${TEST_COMMIT}.tar.bz2 -> ${PN}-test-${TEST_COMMIT}.tar.bz2 )"
|
||||
SRC_URI+=" verify-sig? ( https://poppler.freedesktop.org/${P}.tar.xz.sig )"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~mips ppc ~ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
SLOT="0/138" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION
|
||||
fi
|
||||
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
DIST kirigami-addons-0.11.0.tar.xz 136692 BLAKE2B 26301176ddeaea3aec351207e82dc28a56e465aa6bc6d3bfd23b1feaa5d14cc0821a4c39fdf5eee3d134a8ed9bbcb5e503ee31d3864185c57bb0fcb788744f2d SHA512 f5a721eee6d0ebd37e67cdb5f89aba81136eb4ac23bc042b7d9bedd6a33f96f913353e1d83ec91e6997a8eea5e2834d9203eb7cd286eed1157149ecedeab6b89
|
||||
DIST kirigami-addons-1.2.1.tar.xz 1157936 BLAKE2B 0df5296ac7985d3dfda8c486275938282eee97d94b118be38714549958205d1d6515faa78e3a5347bd11db34535a6cc2f973ff955bd3e1e10c5bb4a96b1f313d SHA512 bdb635f147cb78d0b92bda2c72c72577682cbc3965c232d106113b5de4fb9193e1d18d409d6bc7af2b2aebc613d0c175a27b294e7259bf08e3c41db1ef0601f3
|
||||
DIST kirigami-addons-1.3.0.tar.xz 1287344 BLAKE2B 18303139a015fb5ad131c877bd20524ca8b7751fba17d4cb5b73ad95df0fc525b7ee8456a0d271d0c79788f3ddbdfac0d147a2c2b95b66508db2f3cb4ab864b0 SHA512 e80fb311b169d8c6344e1b1c5a7fc1ae284bc39db5132d285863889e359cfadec656802b436da4b69c7f7efb420e99bbd267dfd6d8488cffcaf3b158e1e1e206
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
# Copyright 2021-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ECM_QTHELP="true"
|
||||
ECM_TEST="true"
|
||||
KFMIN=6.3.0
|
||||
QTMIN=6.6.2
|
||||
inherit ecm kde.org
|
||||
|
||||
if [[ ${KDE_BUILD_TYPE} = release ]]; then
|
||||
SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Visual end user components for Kirigami-based applications"
|
||||
HOMEPAGE="https://invent.kde.org/libraries/kirigami-addons"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 LGPL-3 ) LGPL-2.1+"
|
||||
SLOT="6"
|
||||
IUSE=""
|
||||
|
||||
# would profit from VIRTUALX_REQUIRED=test, but then still requires
|
||||
# org.qt-project.qt.mediaplayer service and fails, bug 911186
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=dev-qt/qtbase-${QTMIN}:6[gui]
|
||||
>=dev-qt/qtdeclarative-${QTMIN}:6
|
||||
>=kde-frameworks/ki18n-${KFMIN}:6
|
||||
>=kde-frameworks/kirigami-${KFMIN}:6
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
>=dev-qt/qtmultimedia-${QTMIN}:6[qml]
|
||||
>=kde-frameworks/qqc2-desktop-style-${KFMIN}:6
|
||||
kde-plasma/libplasma:6
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
test? (
|
||||
>=dev-qt/qtmultimedia-${QTMIN}:6[qml]
|
||||
x11-themes/sound-theme-freedesktop
|
||||
)
|
||||
"
|
||||
@@ -1,2 +1 @@
|
||||
DIST plasma-wayland-protocols-1.12.0.tar.xz 44272 BLAKE2B 05f6c7e496d8be7d215ceeed6059230bb609c43c81eba363fc85e49279f2322a5c7c6cedebd9987d1f6d4edefad01eb84039cd949de730607e9ee4bb9a9c2c01 SHA512 4894493e117669d7ab54b385e2a40d69ddce7cb860b68d9a28f9032d63cad6004858f984ad8ece34567e0e806ccb3f973852596b905d2618b60115ccf9c82886
|
||||
DIST plasma-wayland-protocols-1.13.0.tar.xz 45016 BLAKE2B 179bc29e79c210008e9f0b54cd50ce6350b0e575f746dbb6d2fe0dc0db4c4c1b98e29cd2b2faa98ce2049b001f2b2e8cbef9cded64db6823f8f56973e92cea8e SHA512 7e335df79a9b614701330d1dd4aa37803a35a5fa409f4d9456f487383c9c3c02414f74551363b22694e7fea9c4c2427ead3213d984c3673c90348e7f890826af
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake kde.org
|
||||
|
||||
DESCRIPTION="Plasma Specific Protocols for Wayland"
|
||||
HOMEPAGE="https://invent.kde.org/libraries/plasma-wayland-protocols"
|
||||
|
||||
if [[ ${KDE_BUILD_TYPE} = release ]]; then
|
||||
SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz"
|
||||
KEYWORDS="amd64 arm arm64 ~loong ppc64 ~riscv x86"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
|
||||
BDEPEND="
|
||||
dev-libs/libpcre2:*
|
||||
>=kde-frameworks/extra-cmake-modules-5.115.0:*
|
||||
|| (
|
||||
dev-qt/qtbase:6
|
||||
dev-qt/qtcore:5
|
||||
)
|
||||
"
|
||||
|
||||
ecm_src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON # ecm.eclass
|
||||
-DKDE_INSTALL_DOCBUNDLEDIR="${EPREFIX}/usr/share/help" # ecm.eclass
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -1,2 +1,2 @@
|
||||
DIST kdiff3-1.10.7.tar.xz 1131116 BLAKE2B 5aff7d24d3440b367e0d124e7db444fb1164e1e23a39cc808b83d9f872e11c78442f73e5b95199ed00ace30cf5e4d15adbba0c9d46fe79bc2f5eae693e0aa93d SHA512 ab7ce8312014de200bcc613be1a28b384289f96be08d7f2e1e640b202cede3bbfeffa7b3e53b605f8edf9be2368d2aa6c6b5ee4501577ed8560ca1c4704802db
|
||||
DIST kdiff3-1.11.1.tar.xz 1140680 BLAKE2B 4a3e2f3300a4d8ebe390e3e7ad6392b26cdac919bfa80d2b24e145536a763cca924c8a811826972a92215da7c297662b805c60ce0ee5a57816a3549c059a8353 SHA512 5f481a3cd67e80db939eb795618a635bda2c08875eb826c3a1b6487b631374c48ab9b8a546d9b9504c1bcbc0ed9072f16452d6ef9fe181ce6850f741ced710ce
|
||||
DIST kdiff3-1.11.2.tar.xz 1141676 BLAKE2B 53ceb67ed232a2af81705d977ab691305a6a8a0fafce23d56601e7e24787a4cd81b044448251acefdb43a1ac142f53c1864fb64bd236d03a80105bbb8541805e SHA512 7318bbc867a369a656e78a9a5530a4329d176cdf170ff43278a8f9b9d821950c17f5a41266a0756bb84322ed78eb6d9d21f587968fedb7432656ec4f65c367cf
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ECM_HANDBOOK="optional"
|
||||
KFMIN=5.106.0
|
||||
QTMIN=5.15.9
|
||||
inherit ecm kde.org
|
||||
|
||||
DESCRIPTION="Frontend to diff3 based on KDE Frameworks"
|
||||
HOMEPAGE="https://apps.kde.org/kdiff3/ https://userbase.kde.org/KDiff3"
|
||||
SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="5"
|
||||
KEYWORDS="amd64 ~arm64 ~ppc64 x86"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=dev-qt/qtgui-${QTMIN}:5
|
||||
>=dev-qt/qtprintsupport-${QTMIN}:5
|
||||
>=dev-qt/qtwidgets-${QTMIN}:5
|
||||
>=kde-frameworks/kconfig-${KFMIN}:5
|
||||
>=kde-frameworks/kconfigwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/kcoreaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kcrash-${KFMIN}:5
|
||||
>=kde-frameworks/ki18n-${KFMIN}:5
|
||||
>=kde-frameworks/kio-${KFMIN}:5
|
||||
>=kde-frameworks/kparts-${KFMIN}:5
|
||||
>=kde-frameworks/ktextwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/kwidgetsaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kxmlgui-${KFMIN}:5
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-libs/boost
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
sys-apps/diffutils
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_WITH_QT6=OFF
|
||||
)
|
||||
ecm_src_configure
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ECM_HANDBOOK="optional"
|
||||
KFMIN=6.3.0
|
||||
QTMIN=6.6.2
|
||||
inherit ecm kde.org
|
||||
|
||||
DESCRIPTION="Frontend to diff3 based on KDE Frameworks"
|
||||
HOMEPAGE="https://apps.kde.org/kdiff3/ https://userbase.kde.org/KDiff3"
|
||||
SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=dev-qt/qt5compat-${QTMIN}:6
|
||||
>=dev-qt/qtbase-${QTMIN}:6[gui,widgets]
|
||||
>=kde-frameworks/kconfig-${KFMIN}:6
|
||||
>=kde-frameworks/kconfigwidgets-${KFMIN}:6
|
||||
>=kde-frameworks/kcoreaddons-${KFMIN}:6
|
||||
>=kde-frameworks/kcrash-${KFMIN}:6
|
||||
>=kde-frameworks/ki18n-${KFMIN}:6
|
||||
>=kde-frameworks/kio-${KFMIN}:6
|
||||
>=kde-frameworks/ktextwidgets-${KFMIN}:6
|
||||
>=kde-frameworks/kwidgetsaddons-${KFMIN}:6
|
||||
>=kde-frameworks/kxmlgui-${KFMIN}:6
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-libs/boost-1.82
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
!${CATEGORY}/${PN}:5
|
||||
sys-apps/diffutils
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_WITH_QT6=ON
|
||||
# TODO: -DENABLE_GDBINDEX?
|
||||
)
|
||||
ecm_src_configure
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
DIST tellico-3.5.4.tar.xz 6768904 BLAKE2B 61242fa43287f8e37990040f1a94df631a3596527a4d2e3d7b61c7c34e50005ba2529acdde6d44acffef6127bfd634e86bd5d66c21e4623496daf31d80b6fbe3 SHA512 b38405feb59107c4022158fee5a0435b61ea5e66c9265f930d1cb3be22d66e972b107f2f7eddb0cdf07f044f4d1428e2df879aaa67270045c8c30dd678dd83b9
|
||||
DIST tellico-3.5.5.tar.xz 6796536 BLAKE2B 6e526869840a865bc4dcca37e42141889c66739bee657592d9233eda20da1d6e9fdf44f82a29c6b656f34da82f56b2580324278fd73a810e13c844a72d4abd2c SHA512 4bbb975a8d23ac6fb45160b42d7d893adbaa772fd9f04a5a72a5a48c447cfcf1a933e192d71705b59c36cf64f50038248002174ad132d8f22848e3bbbee5dea7
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ECM_HANDBOOK="forceoptional"
|
||||
ECM_TEST="forceoptional"
|
||||
inherit ecm kde.org
|
||||
|
||||
DESCRIPTION="Collection manager based on KDE Frameworks"
|
||||
HOMEPAGE="https://tellico-project.org/"
|
||||
|
||||
if [[ ${KDE_BUILD_TYPE} != live ]]; then
|
||||
SRC_URI="https://tellico-project.org/files/${P}.tar.xz"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 )"
|
||||
SLOT="5"
|
||||
IUSE="bibtex cddb discid pdf scanner semantic-desktop taglib v4l xmp yaz"
|
||||
|
||||
# tests need network access
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
dev-qt/qtcharts:5
|
||||
dev-qt/qtdbus:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtprintsupport:5
|
||||
dev-qt/qtwebengine:5[widgets]
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtxml:5
|
||||
kde-frameworks/karchive:5
|
||||
kde-frameworks/kcodecs:5
|
||||
kde-frameworks/kcompletion:5
|
||||
kde-frameworks/kconfig:5
|
||||
kde-frameworks/kconfigwidgets:5
|
||||
kde-frameworks/kcoreaddons:5
|
||||
kde-frameworks/kcrash:5
|
||||
kde-frameworks/kguiaddons:5
|
||||
kde-frameworks/kiconthemes:5
|
||||
kde-frameworks/kitemmodels:5
|
||||
kde-frameworks/ki18n:5
|
||||
kde-frameworks/kjobwidgets:5
|
||||
kde-frameworks/kio:5
|
||||
kde-frameworks/knewstuff:5
|
||||
kde-frameworks/kparts:5
|
||||
kde-frameworks/kservice:5
|
||||
kde-frameworks/ktextwidgets:5
|
||||
kde-frameworks/kwallet:5
|
||||
kde-frameworks/kwidgetsaddons:5
|
||||
kde-frameworks/kwindowsystem:5
|
||||
kde-frameworks/kxmlgui:5
|
||||
kde-frameworks/solid:5
|
||||
kde-frameworks/sonnet:5
|
||||
bibtex? ( >=dev-perl/Text-BibTeX-0.780.0-r1 )
|
||||
cddb? ( kde-apps/libkcddb:5 )
|
||||
discid? ( dev-libs/libcdio:= )
|
||||
pdf? ( app-text/poppler[qt5] )
|
||||
scanner? ( kde-apps/libksane:5 )
|
||||
semantic-desktop? ( kde-frameworks/kfilemetadata:5 )
|
||||
taglib? ( >=media-libs/taglib-1.5 )
|
||||
v4l? ( >=media-libs/libv4l-0.8.3 )
|
||||
xmp? ( >=media-libs/exempi-2:= )
|
||||
yaz? ( >=dev-libs/yaz-2:0= )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="sys-devel/gettext"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Csv=ON
|
||||
-DENABLE_BTPARSE=$(usex bibtex)
|
||||
$(cmake_use_find_package cddb KF5Cddb)
|
||||
$(cmake_use_find_package discid CDIO)
|
||||
$(cmake_use_find_package pdf Poppler)
|
||||
$(cmake_use_find_package scanner KF5Sane)
|
||||
$(cmake_use_find_package semantic-desktop KF5FileMetaData)
|
||||
$(cmake_use_find_package taglib Taglib)
|
||||
-DENABLE_WEBCAM=$(usex v4l)
|
||||
$(cmake_use_find_package xmp Exempi)
|
||||
$(cmake_use_find_package yaz Yaz)
|
||||
)
|
||||
|
||||
ecm_src_configure
|
||||
}
|
||||
@@ -6,6 +6,7 @@ EAPI=8
|
||||
DESCRIPTION="OpenSMTPD filter for signing mail with DKIM"
|
||||
HOMEPAGE="https://imperialat.at/dev/filter-dkimsign/"
|
||||
SRC_URI="https://imperialat.at/releases/filter-dkimsign-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S=${WORKDIR}/${P#opensmtpd-}
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
@@ -16,9 +17,6 @@ DEPEND="
|
||||
dev-libs/openssl
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
S=${WORKDIR}/${P#opensmtpd-}
|
||||
|
||||
src_prepare() {
|
||||
mv -f Makefile.gnu Makefile
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
DIST harfbuzz-8.3.0.tar.xz 19002808 BLAKE2B 3749d2ff7955e135cf0d740bf6fe8b5c20a6bbf171480a29e6ae14fde8c26e1457506278b8c66e3b9630cbeb006874c19075c784a575e490c41297274a27fe59 SHA512 6b8753c0b55d34a1a46a64466b9b0de8bc4748c42b29fa9463616a5f48db08ceb4a80cce416e10861778b98dc96d0638d9dd8d7204e404662154f419f3f61f21
|
||||
DIST harfbuzz-8.3.1.tar.xz 19228384 BLAKE2B 84a371284a281a19c3b1f6f9a47dd92060e6fe2b6f4d2469e45e5dbce58b0b151414fa70057bca352a626d8b852ac251168a9749ccac5436ee06280165d31821 SHA512 47bb8150faf215d317a434f78c3029261924aae5ff479fbd3a5d62dbbbfce159460fcbc6f53c3c8ec85b09fad5ae0c9d591d67a0ca70424f43ed5b7849eef4ea
|
||||
DIST harfbuzz-8.4.0.tar.xz 19241260 BLAKE2B 03d6bf0f70354d01ee85edb9fb80d48a91301f862f94f66fddc57ec808105dbeea013e595e2ee616d364773bb68bf5135d4cd44f31a5d3894952a1dced98855c SHA512 9d79ea86f7642f2f1a8726e12a48363eb395162c9b50524e7651b63ad3bb458a69fc82427dbcbfe2550231138f7e454b2c12097a51890f63c645fa3dc668f542
|
||||
DIST harfbuzz-8.5.0.tar.xz 19468172 BLAKE2B f598d7de953834499d1ab36c0fc9d95099fd7e99b87f630e1527aaa39deb2d339b9f3caaea3643238c6c1b321557f794f273929950b54fe9de2faa430d77855a SHA512 d5762f77b0913792d34596e6f3adb98ab693e2ef928396f997ca2e647ca7cad13fdd204fa15b49e2f7c33320ff210d7f078215d5765c9365571458b919a4f10c
|
||||
DIST harfbuzz-9.0.0.tar.xz 17895360 BLAKE2B fd35c41d25e77c96b1fc760b8ca0ffd1ac8f3382b51991bb28797d55c2171bf0700ac65266996bf5cab82b8e9c835c2fad9c8374d9c60d2a361c924d805afbf6 SHA512 2700b560727d9c4440ad9c74a170b857f20f9e553e5d98b0c4bcf086a25ba644149d7c89009a41d964af7a924efcc486da4dcbfa5cc4d47f9f10e9b6b8c689af
|
||||
|
||||
@@ -1,101 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit flag-o-matic meson-multilib python-any-r1 xdg-utils
|
||||
|
||||
DESCRIPTION="An OpenType text shaping engine"
|
||||
HOMEPAGE="https://www.freedesktop.org/wiki/Software/HarfBuzz"
|
||||
|
||||
if [[ ${PV} == 9999 ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/harfbuzz/harfbuzz.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/harfbuzz/harfbuzz/releases/download/${PV}/${P}.tar.xz"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="Old-MIT ISC icu"
|
||||
# 0.9.18 introduced the harfbuzz-icu split; bug #472416
|
||||
# 3.0.0 dropped some unstable APIs; bug #813705
|
||||
# 6.0.0 changed libharfbuzz-subset.so ABI
|
||||
SLOT="0/6.0.0"
|
||||
|
||||
IUSE="+cairo debug doc experimental +glib +graphite icu +introspection test +truetype"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="introspection? ( glib )"
|
||||
|
||||
RDEPEND="
|
||||
cairo? ( x11-libs/cairo:=[${MULTILIB_USEDEP}] )
|
||||
glib? ( >=dev-libs/glib-2.38:2[${MULTILIB_USEDEP}] )
|
||||
graphite? ( >=media-gfx/graphite2-1.2.1:=[${MULTILIB_USEDEP}] )
|
||||
icu? ( >=dev-libs/icu-51.2-r1:=[${MULTILIB_USEDEP}] )
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.34:= )
|
||||
truetype? ( >=media-libs/freetype-2.5.0.1:2=[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
virtual/pkgconfig
|
||||
doc? ( dev-util/gtk-doc )
|
||||
introspection? ( dev-util/glib-utils )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
xdg_environment_reset
|
||||
|
||||
# bug #726120
|
||||
sed -i \
|
||||
-e '/tests\/macos\.tests/d' \
|
||||
test/shape/data/in-house/Makefile.sources \
|
||||
|| die
|
||||
|
||||
# bug #790359
|
||||
filter-flags -fexceptions -fthreadsafe-statics
|
||||
|
||||
if ! use debug ; then
|
||||
append-cppflags -DHB_NDEBUG
|
||||
fi
|
||||
|
||||
# bug #762415
|
||||
local pyscript
|
||||
for pyscript in $(find -type f -name "*.py") ; do
|
||||
python_fix_shebang -q "${pyscript}"
|
||||
done
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# harfbuzz-gobject only used for introspection, bug #535852
|
||||
local emesonargs=(
|
||||
-Dcoretext=disabled
|
||||
-Dchafa=disabled
|
||||
-Dwasm=disabled
|
||||
|
||||
$(meson_feature cairo)
|
||||
$(meson_feature glib)
|
||||
$(meson_feature graphite graphite2)
|
||||
$(meson_feature icu)
|
||||
$(meson_feature introspection gobject)
|
||||
$(meson_feature test tests)
|
||||
$(meson_feature truetype freetype)
|
||||
|
||||
$(meson_native_use_feature doc docs)
|
||||
$(meson_native_use_feature introspection)
|
||||
# Breaks building tests..
|
||||
#$(meson_native_use_feature utilities)
|
||||
|
||||
$(meson_use experimental experimental_api)
|
||||
)
|
||||
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
# harfbuzz:src / check-static-inits times out on hppa
|
||||
meson_src_test --timeout-multiplier 5
|
||||
}
|
||||
@@ -1,101 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit flag-o-matic meson-multilib python-any-r1 xdg-utils
|
||||
|
||||
DESCRIPTION="An OpenType text shaping engine"
|
||||
HOMEPAGE="https://www.freedesktop.org/wiki/Software/HarfBuzz"
|
||||
|
||||
if [[ ${PV} == 9999 ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/harfbuzz/harfbuzz.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/harfbuzz/harfbuzz/releases/download/${PV}/${P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="Old-MIT ISC icu"
|
||||
# 0.9.18 introduced the harfbuzz-icu split; bug #472416
|
||||
# 3.0.0 dropped some unstable APIs; bug #813705
|
||||
# 6.0.0 changed libharfbuzz-subset.so ABI
|
||||
SLOT="0/6.0.0"
|
||||
|
||||
IUSE="+cairo debug doc experimental +glib +graphite icu +introspection test +truetype"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="introspection? ( glib )"
|
||||
|
||||
RDEPEND="
|
||||
cairo? ( x11-libs/cairo:=[${MULTILIB_USEDEP}] )
|
||||
glib? ( >=dev-libs/glib-2.38:2[${MULTILIB_USEDEP}] )
|
||||
graphite? ( >=media-gfx/graphite2-1.2.1:=[${MULTILIB_USEDEP}] )
|
||||
icu? ( >=dev-libs/icu-51.2-r1:=[${MULTILIB_USEDEP}] )
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.34:= )
|
||||
truetype? ( >=media-libs/freetype-2.5.0.1:2=[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
virtual/pkgconfig
|
||||
doc? ( dev-util/gtk-doc )
|
||||
introspection? ( dev-util/glib-utils )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
xdg_environment_reset
|
||||
|
||||
# bug #726120
|
||||
sed -i \
|
||||
-e '/tests\/macos\.tests/d' \
|
||||
test/shape/data/in-house/Makefile.sources \
|
||||
|| die
|
||||
|
||||
# bug #790359
|
||||
filter-flags -fexceptions -fthreadsafe-statics
|
||||
|
||||
if ! use debug ; then
|
||||
append-cppflags -DHB_NDEBUG
|
||||
fi
|
||||
|
||||
# bug #762415
|
||||
local pyscript
|
||||
for pyscript in $(find -type f -name "*.py") ; do
|
||||
python_fix_shebang -q "${pyscript}"
|
||||
done
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# harfbuzz-gobject only used for introspection, bug #535852
|
||||
local emesonargs=(
|
||||
-Dcoretext=disabled
|
||||
-Dchafa=disabled
|
||||
-Dwasm=disabled
|
||||
|
||||
$(meson_feature cairo)
|
||||
$(meson_feature glib)
|
||||
$(meson_feature graphite graphite2)
|
||||
$(meson_feature icu)
|
||||
$(meson_feature introspection gobject)
|
||||
$(meson_feature test tests)
|
||||
$(meson_feature truetype freetype)
|
||||
|
||||
$(meson_native_use_feature doc docs)
|
||||
$(meson_native_use_feature introspection)
|
||||
# Breaks building tests..
|
||||
#$(meson_native_use_feature utilities)
|
||||
|
||||
$(meson_use experimental experimental_api)
|
||||
)
|
||||
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
# harfbuzz:src / check-static-inits times out on hppa
|
||||
meson_src_test --timeout-multiplier 5
|
||||
}
|
||||
@@ -15,7 +15,7 @@ if [[ ${PV} == 9999 ]] ; then
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/harfbuzz/harfbuzz/releases/download/${PV}/${P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ~ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="Old-MIT ISC icu"
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
DIST accounts-qml-0.7-patches-1.tar.xz 3416 BLAKE2B bbaef28c3d455d4aa458790a875a321870c90e88ba3e6735790b3ea50d89c6ac4ac3ef3320239fb4a120681690af4144ea616638ebe21e51e898e178a94eb5cb SHA512 3f3f4996311fe76c9a438dc2794394879b655373146baa38be13c54a93f0016035d371ae7152df02b56b25f7898ab7d0752de636202e88acae1ee536f2809ad6
|
||||
DIST accounts-qml-0.7_p20231028.tar.bz2 50521 BLAKE2B 6704557e50b40d0be6e706c05ce888f959fd2028c7fa9aea9d3f2064828b6869bee454cd88189e70abe483b0809ec857634b0b8fa5f989fca05ae7af55efb80a SHA512 0d366b526873bdeecb9a5582992b8d659777beff3b5449745141a3c8156e130714acd81343440a2edcff7ed7bfeed2ce1afdb89188c8be2a2737491278b44253
|
||||
DIST accounts-qml-module-VERSION_0.7.tar.gz 62029 BLAKE2B 0924b73868135ad5d9ec7545d5b0ba84f140053f0be4d17f1c6d3754ec19e362af906af60fb45e6405b5d080dd8f63845070815b12e8bfeda30032c9ed172708 SHA512 4e0e5df64d0a477e11f412c0def85d0de1730efff9682790f5339a57d58778282aa8ca0fa201e409b3b9a2a75fea70f10555b1f70224a3b95ab8d44b942cf7e1
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit qmake-utils
|
||||
|
||||
DESCRIPTION="QML bindings for accounts-qt and signond"
|
||||
HOMEPAGE="https://accounts-sso.gitlab.io/"
|
||||
SRC_URI="https://gitlab.com/accounts-sso/${PN}-module/-/archive/VERSION_${PV}/${PN}-module-VERSION_${PV}.tar.gz
|
||||
https://dev.gentoo.org/~asturm/distfiles/${P}-patches-1.tar.xz"
|
||||
S="${WORKDIR}/${PN}-module-VERSION_${PV}"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86"
|
||||
IUSE="doc test"
|
||||
|
||||
# dbus problems
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtdeclarative:5
|
||||
net-libs/accounts-qt
|
||||
net-libs/signond
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qttest:5
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
doc? (
|
||||
app-text/doxygen
|
||||
dev-qt/qdoc:5
|
||||
dev-qt/qthelp:5
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( README.md )
|
||||
|
||||
PATCHES=(
|
||||
"${WORKDIR}/${P}-patches-1" # bug 849773
|
||||
"${FILESDIR}/${P}-gcc12.patch" # bug 870157, pending upstream
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
rm -v .gitignore doc/html/.gitignore || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
eqmake5 \
|
||||
CONFIG+=no_docs \
|
||||
PREFIX="${EPREFIX}"/usr
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
if use doc; then
|
||||
$(qt5_get_bindir)/qdoc doc/accounts-qml-module.qdocconf || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake INSTALL_ROOT="${D}" install_subtargets
|
||||
use doc && local HTML_DOCS=( doc/html )
|
||||
einstalldocs
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
From 6bfa9d24363e28971839d86925d9de3d7aef512c Mon Sep 17 00:00:00 2001
|
||||
From: Sam James <sam@gentoo.org>
|
||||
Date: Wed, 14 Sep 2022 22:40:30 +0100
|
||||
Subject: [PATCH] Fix build failure with GCC 12 (missing <algorithms> include)
|
||||
|
||||
Needed for std::sort.
|
||||
|
||||
Bug: https://bugs.gentoo.org/870157
|
||||
Fixes: 69e17dec5add40655cd9334ec7ad4eef13fed8a4
|
||||
Signed-off-by: Sam James <sam@gentoo.org>
|
||||
---
|
||||
src/account-service-model.cpp | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/account-service-model.cpp b/src/account-service-model.cpp
|
||||
index deb157e..20a445c 100644
|
||||
--- a/src/account-service-model.cpp
|
||||
+++ b/src/account-service-model.cpp
|
||||
@@ -20,6 +20,8 @@
|
||||
#include "debug.h"
|
||||
#include "manager.h"
|
||||
|
||||
+#include <algorithm>
|
||||
+
|
||||
#include <Accounts/Account>
|
||||
#include <Accounts/AccountService>
|
||||
#include <Accounts/Application>
|
||||
--
|
||||
GitLab
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
DIST accounts-qt-1.16a.tar.gz 64376 BLAKE2B 39abe10249efff2edeae1a8ce210be3ce06656311ed5a3a3fbcb847194ebbd8ec6e111ef070fb29a2a847591304cf22a7cb60e9d1178a201b886313c4c8aaadb SHA512 a2a65899a258ac41c67fe496ba14468a95615fe8cfc518b7aaf7d3e72e0088304c61f5d76d50bd26a95b5f56dea4d0191bf08ecead508286504161aa05b7a05b
|
||||
DIST accounts-qt-1.17.tar.bz2 55907 BLAKE2B e13debd3f7bc9a17cf73c55777b62e904a6bf7791fe3ad0e1af25a72622a8c21cb56bf033afb50d17a1dd703be0af88de9e557d0947d9b7c12e1ac241b45b743 SHA512 ceab67d5db1acb68e391be0557e5fd4b9675f1401b1fe81ff431d5d1eb1d7124cd5170fde44658d7db8b46f721e9d3f7db719c5b727aa681a9e35ea026a71908
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit qmake-utils
|
||||
|
||||
DESCRIPTION="Qt5 bindings for libaccounts-glib"
|
||||
HOMEPAGE="https://accounts-sso.gitlab.io/"
|
||||
SRC_URI="https://gitlab.com/accounts-sso/lib${PN}/-/archive/VERSION_${PV}/lib${PN}-VERSION_${PV}.tar.gz -> ${P}a.tar.gz"
|
||||
S="${WORKDIR}/lib${PN}-VERSION_${PV}"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86"
|
||||
IUSE="doc test"
|
||||
|
||||
# dbus problems
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/glib:2
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtxml:5
|
||||
>=net-libs/libaccounts-glib-1.23:=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-qt/qttest:5 )
|
||||
"
|
||||
BDEPEND="
|
||||
doc? (
|
||||
app-text/doxygen[dot]
|
||||
dev-qt/qthelp:5
|
||||
)
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -e "s|share/doc/\$\${PROJECT_NAME}|share/doc/${PF}|" \
|
||||
-i doc/doc.pri || die
|
||||
sed -e "/QHG_LOCATION/s|qhelpgenerator|$(qt5_get_bindir)/&|" \
|
||||
-i doc/doxy.conf || die
|
||||
if ! use doc; then
|
||||
sed -e "/include( doc\/doc.pri )/d" -i ${PN}.pro || die
|
||||
fi
|
||||
if ! use test; then
|
||||
sed -e '/^SUBDIRS/s/tests//' \
|
||||
-i accounts-qt.pro || die "couldn't disable tests"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
eqmake5 LIBDIR="${EPREFIX}/usr/$(get_libdir)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake INSTALL_ROOT="${D}" install
|
||||
}
|
||||
@@ -1,2 +1 @@
|
||||
DIST kdsoap-2.1.1.tar.gz 948277 BLAKE2B 6daec26426bb6becc78400877ad221b929f0c30e45755644258eca864617d20b9d1269d8a964d38d40e9f5eb93ae213a95e05deb0a34dd3817261096178815a2 SHA512 12224f664dcae7ceb7395a7c3de48a208ae81c10f6fba4d0db233613472c6b9cdbea6375297c27b58fe7338d7db27a4447844f4e8f40a24ec1b4dd3fa38d20bb
|
||||
DIST kdsoap-2.2.0.tar.gz 11918875 BLAKE2B 0cce6af5ee08948d8029a2302174e0faa9cc06a7c813cb914a5395078a27b23d3c10ccc63f50831ecbd8f8958cb2eb5620b460d78cd6e63480e17580a331a8f9 SHA512 6ed5cd6a0d02a9faf6881facbd28391c553b3671512153ecd058ab53bfbe9d3f0afa3704d580e66010ddf6a3de7e578a632339f8c1ae7529c28f9d5fd7d1eb5f
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
SRC_URI="https://github.com/KDAB/KDSoap/releases/download/${P}/${P}.tar.gz"
|
||||
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86"
|
||||
else
|
||||
EGIT_REPO_URI="https://github.com/KDAB/KDSoap.git"
|
||||
EGIT_SUBMODULES=( kdwsdl2cpp/libkode -autogen )
|
||||
inherit git-r3
|
||||
fi
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Qt-based client-side and server-side SOAP component"
|
||||
HOMEPAGE="https://www.kdab.com/development-resources/qt-tools/kd-soap/"
|
||||
|
||||
LICENSE="GPL-3 AGPL-3"
|
||||
SLOT="0/2"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtxml:5
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-libs/boost
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
sed -e "/install.*INSTALL_DOC_DIR/d" -i CMakeLists.txt || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DKDSoap_DOCS=OFF
|
||||
-DKDSoap_EXAMPLES=OFF # no install targets
|
||||
-DKDSoap_STATIC=OFF
|
||||
-DKDSoap_QT6=OFF
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -1,2 +1 @@
|
||||
DIST signon-oauth2-0.25.tar.gz 41090 BLAKE2B d14cde073cf834427e337f94345b719ad1af38a285587f987f6ed42f96e8aecfcf63720e42b7f86f2018565c198e1f31b7b75da74c86db3e8a15680da70d3f9e SHA512 721cd514ee0a1175e3b1bbaa78dc1a87fd382327bcbee8356de040f04455f7cc80ed173e3f33a6acf4c0d679847063a25282e9d5c9a9be99f730bec41be96451
|
||||
DIST signon-oauth2-0.25_p20210102.tar.bz2 34873 BLAKE2B 4e53f6d19cf0e9c8513afef44ab640dcd3ed811a9830acff65abd997691926388015b35e6f010c6a0bc25cc257e22a4b8e359ec690bbc35182cd1cf87c716b85 SHA512 5b371e6230c9ed4352ff151626dfaf40d2ecb41e389ee3a753fc41be3937191d416b864d555fd85cecbfe1615233a063db881adae3ea29aefb652a36d46633b5
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
From 94e7cdbe1b15455e932a2272fdf2284fecfb9204 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Sturmlechner <asturm@gentoo.org>
|
||||
Date: Wed, 11 Nov 2020 22:35:06 +0100
|
||||
Subject: [PATCH] Disable -Werror, -fno-rtti
|
||||
|
||||
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
|
||||
---
|
||||
common-project-config.pri | 5 +----
|
||||
1 file changed, 1 insertion(+), 4 deletions(-)
|
||||
|
||||
diff --git a/common-project-config.pri b/common-project-config.pri
|
||||
index e149d90..9c7801a 100644
|
||||
--- a/common-project-config.pri
|
||||
+++ b/common-project-config.pri
|
||||
@@ -17,10 +17,7 @@ UI_DIR = ui
|
||||
UI_HEADERS_DIR = ui/include
|
||||
UI_SOURCES_DIR = ui/src
|
||||
|
||||
-QMAKE_CXXFLAGS += -fno-exceptions \
|
||||
- -fno-rtti
|
||||
-# we don't like warnings...
|
||||
-unix:QMAKE_CXXFLAGS += -Werror
|
||||
+QMAKE_CXXFLAGS += -fno-exceptions
|
||||
|
||||
TOP_SRC_DIR = $$PWD
|
||||
|
||||
--
|
||||
2.29.2
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
MY_PN=signon-plugin-oauth2
|
||||
MY_PV=VERSION_${PV}
|
||||
MY_P=${MY_PN}-${MY_PV}
|
||||
inherit qmake-utils
|
||||
|
||||
DESCRIPTION="OAuth2 plugin for Signon daemon"
|
||||
HOMEPAGE="https://gitlab.com/accounts-sso/signon-plugin-oauth2"
|
||||
SRC_URI="https://gitlab.com/accounts-sso/${MY_PN}/-/archive/${MY_PV}/${MY_P}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtnetwork:5[ssl]
|
||||
net-libs/signond
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-qt/qttest:5 )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
# downstream patches
|
||||
"${FILESDIR}/${PN}-0.24-dont-install-tests.patch"
|
||||
"${FILESDIR}/${P}-pkgconfig-libdir.patch"
|
||||
"${FILESDIR}/${P}-cxxflags.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i "s|@LIBDIR@|$(get_libdir)|g" src/signon-oauth2plugin.pc || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myqmakeargs=(
|
||||
LIBDIR=/usr/$(get_libdir)
|
||||
)
|
||||
use test || myqmakeargs+=( CONFIG+=nomake_tests )
|
||||
|
||||
eqmake5 "${myqmakeargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake INSTALL_ROOT="${D}" install
|
||||
}
|
||||
@@ -1,2 +1 @@
|
||||
DIST signon-ui-0.15_p20171022.tar.bz2 55849 BLAKE2B 6b97b3f673fb4494c7e32dc345f6c4697acdb19305b9459fe954d88983e4666211926921dac70829435706cdd9a41f36d36241a73905b2a795873c2894ffa8d7 SHA512 d0a4ca222de00abf4000905d917799fc6f9e04a2c3f49d0d0882dc4e90fdbcde14da91f355d10f8a3feac03661febd321ea6de1df227fa5a3c404eaefa7c2d60
|
||||
DIST signon-ui-0.15_p20231016.tar.bz2 55078 BLAKE2B eff35b2b311c4b923148656ad7512418ee6e19607babd02f2bc8bff9d6f2f5cfdc37c7030fb842b65b25c310f6e44f76a73b9d0a4569af52f7661b0eb09da2f2 SHA512 c26be8921c5d2a559bd62793f3eca19184c236c2e2649728631d60d2781f4b4457f63bbd35238cb274ff3a7747220688688f0880df8db0e78ccaf6f126d6e86e
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
COMMIT=4368bb77d9d1abc2978af514225ba4a42c29a646
|
||||
inherit qmake-utils
|
||||
|
||||
DESCRIPTION="Online accounts signon UI"
|
||||
HOMEPAGE="https://gitlab.com/accounts-sso/signon-ui"
|
||||
SRC_URI="https://gitlab.com/accounts-sso/${PN}/-/archive/${COMMIT}/${PN}-${COMMIT}.tar.bz2 -> ${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2 GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
BDEPEND="test? ( dev-qt/qttest:5 )"
|
||||
DEPEND="
|
||||
dev-libs/glib:2
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtdbus:5
|
||||
dev-qt/qtdeclarative:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5[ssl]
|
||||
dev-qt/qtwebengine:5
|
||||
dev-qt/qtwidgets:5
|
||||
net-libs/accounts-qt
|
||||
net-libs/libproxy
|
||||
net-libs/signond
|
||||
x11-libs/libnotify
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
dev-qt/qtwebchannel:5
|
||||
"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
# thanks to openSUSE
|
||||
"${FILESDIR}/${P}-webengine-cachedir-path.patch"
|
||||
"${FILESDIR}/${P}-fix-username-field-reading.patch"
|
||||
# downstream
|
||||
"${FILESDIR}/${P}-drop-fno-rtti.patch"
|
||||
"${FILESDIR}/${P}-disable-tests.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
|
||||
src_configure() {
|
||||
eqmake5
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake INSTALL_ROOT="${D}" -j1 install
|
||||
}
|
||||
@@ -1,2 +1 @@
|
||||
DIST signond-8.61.tar.bz2 203066 BLAKE2B 2f78e08143d346777ab3517ef6b76b54ab1b17efa6d15b2c5a16487c2e11f38c88cb2820bff8dd04deb334d0c178c16bd061c0eba694c5edfb0e31411581648a SHA512 95e83bc672792ec10493f1f456788af7e8051ce0bed6b047b6b6f5fa9ac019dd3392063152930be49cf68d590567fd7467c544d642cc58624b1aabdc0b405258
|
||||
DIST signond-8.61.tar.gz 282965 BLAKE2B 8ab8f4ac3f8416ef9c1b8d8c73057ffcf0024a7e3cf6c2fa97a3119826f6c655b215e2530137c199e60e9e9518b0858fa1a23a3f107c71751f33d2a34898a610 SHA512 1652ee8e97d6aee036075f5416909649c5848e33c3c71f367176f3e5d6f9c360fd7a46c65ba877d58b3ae8fb8df0712938c5e073409ba945d66d8afeacfd6f72
|
||||
|
||||
@@ -1,266 +0,0 @@
|
||||
From 62ce2305081075a53836999441214f03d37b50b5 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Sturmlechner <asturm@gentoo.org>
|
||||
Date: Sun, 28 Jun 2020 21:44:42 +0200
|
||||
Subject: [PATCH 3/3] Consistent overrideable install paths
|
||||
|
||||
At least signon-plugins.pc and signon-plugins-common.pc were getting it wrong.
|
||||
|
||||
This patch is converting absolute INSTALL_LIBDIR to LIBDIR relative beneath
|
||||
INSTALL_PREFIX.
|
||||
|
||||
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
|
||||
---
|
||||
common-installs-config.pri | 2 +-
|
||||
common-pkgconfig.pri | 2 +-
|
||||
common-project-config.pri | 30 +++++++++----------
|
||||
lib/SignOn/SignOnQt5Config.cmake.in | 6 ++--
|
||||
lib/SignOn/libsignon-qt.pc.in | 2 +-
|
||||
lib/SignOn/libsignon-qt.pri | 2 +-
|
||||
lib/SignOn/libsignon-qt5.pc.in | 2 +-
|
||||
.../signon-plugins-common.pc.in | 4 +--
|
||||
lib/plugins/signon-plugins.pc.in | 4 +--
|
||||
lib/signond/SignOn/SignOnExtension.pc.in | 2 +-
|
||||
lib/signond/signond.pc.in | 2 +-
|
||||
src/extensions/cryptsetup/cryptsetup.pro | 2 +-
|
||||
src/plugins/plugins.pri | 4 +--
|
||||
13 files changed, 32 insertions(+), 32 deletions(-)
|
||||
|
||||
diff --git a/common-installs-config.pri b/common-installs-config.pri
|
||||
index 69c5ae8..b72477a 100644
|
||||
--- a/common-installs-config.pri
|
||||
+++ b/common-installs-config.pri
|
||||
@@ -18,7 +18,7 @@ contains( TEMPLATE, app ) {
|
||||
# default installation target for libraries
|
||||
#-----------------------------------------------------------------------------
|
||||
contains( TEMPLATE, lib ) {
|
||||
- target.path = $${INSTALL_LIBDIR}
|
||||
+ target.path = $${INSTALL_PREFIX}/$${LIBDIR}
|
||||
INSTALLS += target
|
||||
message("====")
|
||||
message("==== INSTALLS += target")
|
||||
diff --git a/common-pkgconfig.pri b/common-pkgconfig.pri
|
||||
index 975068a..9f010d3 100644
|
||||
--- a/common-pkgconfig.pri
|
||||
+++ b/common-pkgconfig.pri
|
||||
@@ -3,7 +3,7 @@
|
||||
!isEmpty(pkgconfig.files) {
|
||||
QMAKE_SUBSTITUTES += $${pkgconfig.files}.in
|
||||
pkgconfig.CONFIG = no_check_exist
|
||||
- pkgconfig.path = $${INSTALL_LIBDIR}/pkgconfig
|
||||
+ pkgconfig.path = $${INSTALL_PREFIX}/$${LIBDIR}/pkgconfig
|
||||
QMAKE_EXTRA_TARGETS += pkgconfig
|
||||
|
||||
QMAKE_CLEAN += $${pkgconfig.files}
|
||||
diff --git a/common-project-config.pri b/common-project-config.pri
|
||||
index 606f70b..1185559 100644
|
||||
--- a/common-project-config.pri
|
||||
+++ b/common-project-config.pri
|
||||
@@ -57,36 +57,36 @@ exists( meego-release ) {
|
||||
ARCH = $$system(uname -m)
|
||||
}
|
||||
|
||||
-linux-g++-64|linux-icc-64: INSTALL_LIBDIR = $${INSTALL_PREFIX}/lib64
|
||||
-else: linux-g++-32|linux-icc-32: INSTALL_LIBDIR = $${INSTALL_PREFIX}/lib32
|
||||
-else: INSTALL_LIBDIR = $${INSTALL_PREFIX}/lib
|
||||
+linux-g++-64|linux-icc-64: DEFAULT_LIBDIR = lib64
|
||||
+else: linux-g++-32|linux-icc-32: DEFAULT_LIBDIR = lib32
|
||||
+else: DEFAULT_LIBDIR = lib
|
||||
|
||||
# default library directory can be overriden by defining LIBDIR when
|
||||
# running qmake
|
||||
isEmpty( LIBDIR ) {
|
||||
+ LIBDIR = $${DEFAULT_LIBDIR}
|
||||
message("====")
|
||||
- message("==== NOTE: To override the library installation path run: `qmake LIBDIR=/custom/path'")
|
||||
- message("==== (current installation path is `$${INSTALL_LIBDIR}')")
|
||||
+ message("==== NOTE: To override the library dir beneath INSTALL_PREFIX run: `qmake LIBDIR=customdir'")
|
||||
+ message("==== (current library dir is `$${LIBDIR}`, install path `$${INSTALL_PREFIX}/$${LIBDIR}')")
|
||||
} else {
|
||||
- INSTALL_LIBDIR = $${LIBDIR}
|
||||
message("====")
|
||||
- message("==== library install path set to `$${INSTALL_LIBDIR}'")
|
||||
+ message("==== library dir set to `$${LIBDIR}`, install path `$${INSTALL_PREFIX}/$${LIBDIR}'")
|
||||
}
|
||||
|
||||
-isEmpty ( CMAKE_CONFIG_PATH ) {
|
||||
- CMAKE_CONFIG_PATH = $${INSTALL_LIBDIR}/cmake/$${CMAKE_BASENAME}
|
||||
+isEmpty ( CMAKE_MODULE_DIR ) {
|
||||
+ CMAKE_MODULE_DIR = $${LIBDIR}/cmake/$${CMAKE_BASENAME}
|
||||
message("====")
|
||||
- message("==== NOTE: To override the cmake module installation path run: `qmake CMAKE_CONFIG_PATH=/custom/path'")
|
||||
- message("==== (current installation path is `$${CMAKE_CONFIG_PATH}')")
|
||||
+ message("==== NOTE: To override the cmake module dir beneath INSTALL_PREFIX run: `qmake CMAKE_MODULE_DIR=customdir'")
|
||||
+ message("==== (current cmake module dir is `$${CMAKE_MODULE_DIR}`, install path `$${INSTALL_PREFIX}/$${CMAKE_MODULE_DIR}')")
|
||||
} else {
|
||||
message("====")
|
||||
- message("==== cmake module install path set to `$${CMAKE_CONFIG_PATH}'")
|
||||
+ message("==== cmake module dir set to `$${CMAKE_MODULE_DIR}', install path `$${INSTALL_PREFIX}/$${CMAKE_MODULE_DIR}')")
|
||||
}
|
||||
|
||||
# Default directory for signond extensions
|
||||
_EXTENSIONS = $$(SIGNOND_EXTENSIONS_DIR)
|
||||
isEmpty(_EXTENSIONS) {
|
||||
- SIGNOND_EXTENSIONS_DIR = $${INSTALL_LIBDIR}/signon/extensions
|
||||
+ SIGNOND_EXTENSIONS_DIR = $${INSTALL_PREFIX}/$${LIBDIR}/signon/extensions
|
||||
} else {
|
||||
SIGNOND_EXTENSIONS_DIR = $$_EXTENSIONS
|
||||
}
|
||||
@@ -94,7 +94,7 @@ SIGNOND_EXTENSIONS_DIR_QUOTED = \\\"$$SIGNOND_EXTENSIONS_DIR\\\"
|
||||
|
||||
_PLUGINS = $$(SIGNOND_PLUGINS_DIR)
|
||||
isEmpty(_PLUGINS) {
|
||||
- SIGNOND_PLUGINS_DIR = $${INSTALL_LIBDIR}/signon
|
||||
+ SIGNOND_PLUGINS_DIR = $${INSTALL_PREFIX}/$${LIBDIR}/signon
|
||||
} else {
|
||||
SIGNOND_PLUGINS_DIR = $$_PLUGINS
|
||||
}
|
||||
@@ -102,7 +102,7 @@ SIGNOND_PLUGINS_DIR_QUOTED = \\\"$$SIGNOND_PLUGINS_DIR\\\"
|
||||
|
||||
# Note that you have to CONFIG+=install_tests in order to install tests
|
||||
isEmpty(TESTDIR) {
|
||||
- INSTALL_TESTDIR = $${INSTALL_LIBDIR}/signon
|
||||
+ INSTALL_TESTDIR = $${INSTALL_PREFIX}/$${LIBDIR}/signon
|
||||
} else {
|
||||
INSTALL_TESTDIR = $${TESTDIR}
|
||||
}
|
||||
diff --git a/lib/SignOn/SignOnQt5Config.cmake.in b/lib/SignOn/SignOnQt5Config.cmake.in
|
||||
index 523fffb..7105315 100644
|
||||
--- a/lib/SignOn/SignOnQt5Config.cmake.in
|
||||
+++ b/lib/SignOn/SignOnQt5Config.cmake.in
|
||||
@@ -2,6 +2,6 @@
|
||||
# SIGNONQT_LIBRARIES - The libraries needed to use libsignon-qt
|
||||
# SIGNONQT_LIBRARIES_STATIC - The static version of libsignon-qt
|
||||
|
||||
-set(SIGNONQT_LIBRARIES $${INSTALL_LIBDIR}/lib$${TARGET}.so)
|
||||
-set(SIGNONQT_LIBRARIES_STATIC $${INSTALL_LIBDIR}/lib$${TARGET}.a)
|
||||
-set(SIGNONQT_INCLUDE_DIRS $${INSTALL_PREFIX}/include/$${TARGET})
|
||||
\ No newline at end of file
|
||||
+set(SIGNONQT_LIBRARIES $${INSTALL_PREFIX}/$${LIBDIR}/lib$${TARGET}.so)
|
||||
+set(SIGNONQT_LIBRARIES_STATIC $${INSTALL_PREFIX}/$${LIBDIR}/lib$${TARGET}.a)
|
||||
+set(SIGNONQT_INCLUDE_DIRS $${INSTALL_PREFIX}/include/$${TARGET})
|
||||
diff --git a/lib/SignOn/libsignon-qt.pc.in b/lib/SignOn/libsignon-qt.pc.in
|
||||
index 26f0f5b..c614541 100644
|
||||
--- a/lib/SignOn/libsignon-qt.pc.in
|
||||
+++ b/lib/SignOn/libsignon-qt.pc.in
|
||||
@@ -1,6 +1,6 @@
|
||||
prefix=$$INSTALL_PREFIX
|
||||
exec_prefix=${prefix}
|
||||
-libdir=$$INSTALL_LIBDIR
|
||||
+libdir=${prefix}/$$LIBDIR
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: libsignon-qt
|
||||
diff --git a/lib/SignOn/libsignon-qt.pri b/lib/SignOn/libsignon-qt.pri
|
||||
index 1458c50..d80f8bb 100644
|
||||
--- a/lib/SignOn/libsignon-qt.pri
|
||||
+++ b/lib/SignOn/libsignon-qt.pri
|
||||
@@ -79,6 +79,6 @@ QMAKE_SUBSTITUTES += $${CMAKE_BASENAME}Config.cmake.in \
|
||||
$${CMAKE_BASENAME}ConfigVersion.cmake.in
|
||||
cmake_modules.files = $${CMAKE_BASENAME}Config.cmake \
|
||||
$${CMAKE_BASENAME}ConfigVersion.cmake
|
||||
-cmake_modules.path = $${CMAKE_CONFIG_PATH}
|
||||
+cmake_modules.path = $${INSTALL_PREFIX}/$${CMAKE_MODULE_DIR}
|
||||
|
||||
INSTALLS += cmake_modules
|
||||
diff --git a/lib/SignOn/libsignon-qt5.pc.in b/lib/SignOn/libsignon-qt5.pc.in
|
||||
index 2181359..5d98b6d 100644
|
||||
--- a/lib/SignOn/libsignon-qt5.pc.in
|
||||
+++ b/lib/SignOn/libsignon-qt5.pc.in
|
||||
@@ -1,6 +1,6 @@
|
||||
prefix=$$INSTALL_PREFIX
|
||||
exec_prefix=${prefix}
|
||||
-libdir=$$INSTALL_LIBDIR
|
||||
+libdir=${prefix}/$$LIBDIR
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: libsignon-qt5
|
||||
diff --git a/lib/plugins/signon-plugins-common/signon-plugins-common.pc.in b/lib/plugins/signon-plugins-common/signon-plugins-common.pc.in
|
||||
index 3d7f3db..2240789 100644
|
||||
--- a/lib/plugins/signon-plugins-common/signon-plugins-common.pc.in
|
||||
+++ b/lib/plugins/signon-plugins-common/signon-plugins-common.pc.in
|
||||
@@ -1,10 +1,10 @@
|
||||
prefix=$$INSTALL_PREFIX
|
||||
exec_prefix=${prefix}
|
||||
-libdir=$$INSTALL_LIBDIR
|
||||
+libdir=${prefix}/$$LIBDIR
|
||||
includedir=${prefix}/include
|
||||
plugin_includedir=${includedir}/signon-plugins/SignOn
|
||||
Name: signon-plugins-common
|
||||
Description: SignonPluginsCommon
|
||||
Version: $$PROJECT_VERSION
|
||||
-Libs.private: -L/usr/lib -lQt5Core
|
||||
+Libs.private: -L${libdir} -lQt5Core
|
||||
Cflags: -I${includedir}/signon-plugins -I${includedir}/signon-plugins/SignOn
|
||||
diff --git a/lib/plugins/signon-plugins.pc.in b/lib/plugins/signon-plugins.pc.in
|
||||
index 5be38df..2e3c087 100644
|
||||
--- a/lib/plugins/signon-plugins.pc.in
|
||||
+++ b/lib/plugins/signon-plugins.pc.in
|
||||
@@ -1,6 +1,6 @@
|
||||
prefix=$$INSTALL_PREFIX
|
||||
exec_prefix=${prefix}
|
||||
-libdir=$$INSTALL_LIBDIR
|
||||
+libdir=${prefix}/$$LIBDIR
|
||||
includedir=${prefix}/include
|
||||
plugin_includedir=${includedir}/signon-plugins/SignOn
|
||||
plugindir=$$SIGNOND_PLUGINS_DIR
|
||||
@@ -8,6 +8,6 @@ Name: signon-plugins
|
||||
Description: SignonPlugins
|
||||
Version: $$PROJECT_VERSION
|
||||
Requires: $${LIBSIGNON}
|
||||
-Libs.private: -L/usr/lib -lQt5Core
|
||||
+Libs.private: -L${libdir} -lQt5Core
|
||||
Cflags: -I${includedir}/signon-plugins -I${includedir}/signon-plugins/SignOn
|
||||
Libs: -lsignon-plugins
|
||||
diff --git a/lib/signond/SignOn/SignOnExtension.pc.in b/lib/signond/SignOn/SignOnExtension.pc.in
|
||||
index e439284..8fc669c 100644
|
||||
--- a/lib/signond/SignOn/SignOnExtension.pc.in
|
||||
+++ b/lib/signond/SignOn/SignOnExtension.pc.in
|
||||
@@ -1,6 +1,6 @@
|
||||
prefix=$$INSTALL_PREFIX
|
||||
exec_prefix=${prefix}
|
||||
-libdir=$$INSTALL_LIBDIR
|
||||
+libdir=${prefix}/$$LIBDIR
|
||||
includedir=${prefix}/include
|
||||
plugindir=$$SIGNOND_EXTENSIONS_DIR
|
||||
|
||||
diff --git a/lib/signond/signond.pc.in b/lib/signond/signond.pc.in
|
||||
index a7b5036..9ec0b1a 100644
|
||||
--- a/lib/signond/signond.pc.in
|
||||
+++ b/lib/signond/signond.pc.in
|
||||
@@ -1,6 +1,6 @@
|
||||
prefix=$$INSTALL_PREFIX
|
||||
exec_prefix=${prefix}
|
||||
-libdir=$$INSTALL_LIBDIR
|
||||
+libdir=${prefix}/$$LIBDIR
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: signond-dev
|
||||
diff --git a/src/extensions/cryptsetup/cryptsetup.pro b/src/extensions/cryptsetup/cryptsetup.pro
|
||||
index f4b6e53..2657b47 100644
|
||||
--- a/src/extensions/cryptsetup/cryptsetup.pro
|
||||
+++ b/src/extensions/cryptsetup/cryptsetup.pro
|
||||
@@ -41,6 +41,6 @@ LIBS += \
|
||||
|
||||
include( $${TOP_SRC_DIR}/common-installs-config.pri )
|
||||
|
||||
-target.path = $${INSTALL_LIBDIR}/signon/extensions
|
||||
+target.path = $${INSTALL_PREFIX}/$${LIBDIR}/signon/extensions
|
||||
INSTALLS += target
|
||||
|
||||
diff --git a/src/plugins/plugins.pri b/src/plugins/plugins.pri
|
||||
index 2c03e74..ea2fcb2 100644
|
||||
--- a/src/plugins/plugins.pri
|
||||
+++ b/src/plugins/plugins.pri
|
||||
@@ -27,7 +27,7 @@ QMAKE_CXXFLAGS += -fno-exceptions \
|
||||
|
||||
headers.path = $${INSTALL_PREFIX}/include/signon-plugins
|
||||
|
||||
-pkgconfig.path = $${INSTALL_LIBDIR}/pkgconfig
|
||||
+pkgconfig.path = $${INSTALL_PREFIX}/$${LIBDIR}/pkgconfig
|
||||
|
||||
-target.path = $${INSTALL_LIBDIR}/signon
|
||||
+target.path = $${INSTALL_PREFIX}/$${LIBDIR}/signon
|
||||
INSTALLS = target
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit qmake-utils
|
||||
|
||||
DESCRIPTION="Signon daemon for libaccounts-glib"
|
||||
HOMEPAGE="https://gitlab.com/accounts-sso"
|
||||
SRC_URI="https://gitlab.com/accounts-sso/${PN}/-/archive/VERSION_${PV}/${PN}-VERSION_${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-VERSION_${PV}"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86"
|
||||
IUSE="doc test"
|
||||
|
||||
# tests are brittle; they all pass when stars align, bug 727666
|
||||
RESTRICT="test !test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtdbus:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtsql:5
|
||||
net-libs/libproxy
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-qt/qttest:5 )
|
||||
"
|
||||
BDEPEND="
|
||||
doc? (
|
||||
app-text/doxygen[dot]
|
||||
dev-qt/qthelp:5
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-8.60-buildsystem.patch"
|
||||
"${FILESDIR}/${PN}-8.60-consistent-paths.patch" # bug 701142
|
||||
"${FILESDIR}/${PN}-8.60-unused-dep.patch" # bug 727346
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -e "/QHG_LOCATION/s|qhelpgenerator|$(qt5_get_bindir)/&|" \
|
||||
-i {lib/plugins/,lib/SignOn/,}doc/doxy.conf || die
|
||||
|
||||
# install docs to correct location
|
||||
sed -e "s|share/doc/\$\${PROJECT_NAME}|share/doc/${PF}|" \
|
||||
-i doc/doc.pri || die
|
||||
sed -e "/^documentation.path = /c\documentation.path = \$\${INSTALL_PREFIX}/share/doc/${PF}/\$\${TARGET}/" \
|
||||
-i lib/plugins/doc/doc.pri || die
|
||||
sed -e "/^documentation.path = /c\documentation.path = \$\${INSTALL_PREFIX}/share/doc/${PF}/libsignon-qt/" \
|
||||
-i lib/SignOn/doc/doc.pri || die
|
||||
|
||||
use doc || sed -e "/include(\s*doc\/doc.pri\s*)/d" \
|
||||
-i signon.pro lib/SignOn/SignOn.pro lib/plugins/plugins.pro || die
|
||||
|
||||
use test || sed -e '/^SUBDIRS/s/tests//' \
|
||||
-i signon.pro || die "couldn't disable tests"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
eqmake5 PREFIX="${EPREFIX}"/usr LIBDIR=$(get_libdir)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake INSTALL_ROOT="${D}" install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]] && \
|
||||
! has_version "kde-apps/signon-kwallet-extension:*"; then
|
||||
ewarn "Without kde-apps/signon-kwallet-extension installed, passwords"
|
||||
ewarn "will be saved in plaintext!"
|
||||
fi
|
||||
}
|
||||
@@ -1,77 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ECM_HANDBOOK="forceoptional"
|
||||
KFMIN=5.106.0
|
||||
QTMIN=5.15.9
|
||||
inherit ecm kde.org
|
||||
|
||||
DESCRIPTION="Advanced network neighborhood browser"
|
||||
HOMEPAGE="https://apps.kde.org/smb4k/
|
||||
https://sourceforge.net/p/smb4k/home/Home/"
|
||||
|
||||
if [[ ${KDE_BUILD_TYPE} = release ]]; then
|
||||
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.xz"
|
||||
KEYWORDS="amd64 ~arm64 ~riscv x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="5"
|
||||
IUSE="+discovery plasma"
|
||||
|
||||
DEPEND="
|
||||
>=dev-qt/qtdeclarative-${QTMIN}:5
|
||||
>=dev-qt/qtgui-${QTMIN}:5
|
||||
>=dev-qt/qtnetwork-${QTMIN}:5
|
||||
>=dev-qt/qtprintsupport-${QTMIN}:5
|
||||
>=dev-qt/qtwidgets-${QTMIN}:5
|
||||
>=kde-frameworks/kauth-${KFMIN}:5
|
||||
>=kde-frameworks/kcompletion-${KFMIN}:5
|
||||
>=kde-frameworks/kconfig-${KFMIN}:5
|
||||
>=kde-frameworks/kconfigwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/kcoreaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kcrash-${KFMIN}:5
|
||||
>=kde-frameworks/kdbusaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kdnssd-${KFMIN}:5
|
||||
>=kde-frameworks/ki18n-${KFMIN}:5
|
||||
>=kde-frameworks/kiconthemes-${KFMIN}:5
|
||||
>=kde-frameworks/kio-${KFMIN}:5
|
||||
>=kde-frameworks/kjobwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/knotifications-${KFMIN}:5
|
||||
>=kde-frameworks/kwallet-${KFMIN}:5
|
||||
>=kde-frameworks/kwidgetsaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kwindowsystem-${KFMIN}:5
|
||||
>=kde-frameworks/kxmlgui-${KFMIN}:5
|
||||
>=kde-frameworks/solid-${KFMIN}:5
|
||||
net-fs/samba[cups]
|
||||
discovery? (
|
||||
net-libs/kdsoap:=[qt5(+)]
|
||||
<net-libs/kdsoap-ws-discovery-client-0.3.0
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
plasma? (
|
||||
>=dev-qt/qtquickcontrols2-${QTMIN}:5
|
||||
>=kde-plasma/libplasma-${KFMIN}:5
|
||||
)
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DSMB4K_WITH_WS_DISCOVERY=$(usex discovery)
|
||||
-DSMB4K_INSTALL_PLASMOID=$(usex plasma)
|
||||
)
|
||||
ecm_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ecm_pkg_postinst
|
||||
elog "Users of Samba 4.7 and above please note that for the time being,"
|
||||
elog "the following setting has to be added to or changed in the [global]"
|
||||
elog "section of the smb.conf file:"
|
||||
elog
|
||||
elog "[global]"
|
||||
elog "client max protocol = NT1"
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake flag-o-matic
|
||||
|
||||
DESCRIPTION="Cross-platform Sextractor and Astrometry.net-Based internal astrometric solver"
|
||||
HOMEPAGE="https://github.com/rlancaste/stellarsolver"
|
||||
SRC_URI="https://github.com/rlancaste/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-qt/qtconcurrent:5
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtwidgets:5
|
||||
sci-libs/cfitsio:=
|
||||
sci-libs/gsl:=
|
||||
sci-astronomy/wcslib:=
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
# bug #862930
|
||||
filter-lto
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -1,2 +1 @@
|
||||
DIST polkit-qt-1-0.114.0.tar.xz 58384 BLAKE2B e788198e386797ba9b4c228a451dde703f83e79c81eacaf805e431a3f60c0832adc3faef4616e3008dfaa816d7dc5a7a80aaf02936ea232373e78e0d008724ca SHA512 4a16d9428d5ccc0107dcbd67c29ecba196424e555dc43d55cf2b6e0e7b72c99f894e9c994eaed85a9536010d67a19f20fe74f792c0d6b9ca0e05ce85f655f9a8
|
||||
DIST polkit-qt-1-0.200.0.tar.xz 58216 BLAKE2B 4edd1577178d4b61889f3da3699f36e0b3251c38b111c0c219ad9c9585ff32845034c068a5c382c29baa1d9cd8d723378422dafb4ea8734766da1b8032025826 SHA512 a09214043fa874234086a5de4d27153368dbe775dd6d573dd2531f2f2be79eb22bf73bbfb2a3a839c20c0347762e7af86b73ba38a05b2dcd43e59526e29c008d
|
||||
|
||||
@@ -1,301 +0,0 @@
|
||||
From 1f151d81381106c15084280f1e11209d259ae45c Mon Sep 17 00:00:00 2001
|
||||
From: John Zimmermann <me@johnnynator.dev>
|
||||
Date: Sat, 19 Jun 2021 15:47:56 +0200
|
||||
Subject: [PATCH] Change installed .cmake and .pc files to contain realtive
|
||||
paths
|
||||
|
||||
The LIB_DESTINATION and INCLUDE_DESTIONATION variables do hold little
|
||||
value, since one can just override the normal CMAKE variables as needed.
|
||||
Furthermore using CMAKE_INSTALL_FULL_LIBDIR is harmful, since this
|
||||
prevents CMake to use it's logic to install relocatable .cmake files.
|
||||
Also libdir and includedir in pkgconfig files need to be prefixed by
|
||||
either ${exec_prefix} or ${prefix} for the same relocation reasons.
|
||||
---
|
||||
CMakeLists.txt | 27 +++++++++++----------------
|
||||
PolkitQt-1Config.cmake.in | 4 ++--
|
||||
agent/CMakeLists.txt | 6 +++---
|
||||
core/CMakeLists.txt | 6 +++---
|
||||
gui/CMakeLists.txt | 6 +++---
|
||||
polkit-qt-1.pc.cmake | 4 ++--
|
||||
polkit-qt-agent-1.pc.cmake | 4 ++--
|
||||
polkit-qt-core-1.pc.cmake | 4 ++--
|
||||
polkit-qt-gui-1.pc.cmake | 4 ++--
|
||||
polkit-qt5-1.pc.cmake | 4 ++--
|
||||
polkit-qt5-agent-1.pc.cmake | 4 ++--
|
||||
polkit-qt5-core-1.pc.cmake | 4 ++--
|
||||
polkit-qt5-gui-1.pc.cmake | 4 ++--
|
||||
13 files changed, 38 insertions(+), 43 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 32eb737..a82f8cb 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -21,11 +21,6 @@ include(GNUInstallDirs)
|
||||
|
||||
include(FeatureSummary)
|
||||
|
||||
-# Set the different paths
|
||||
-set(LIB_DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}" CACHE PATH "Library directory name")
|
||||
-set(INCLUDE_DESTINATION "${CMAKE_INSTALL_FULL_INCLUDEDIR}" CACHE PATH "The subdirectory to the header prefix")
|
||||
-
|
||||
-
|
||||
set(REQUIRED_QT_VERSION 5.5.0)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
|
||||
@@ -103,7 +98,7 @@ install(FILES
|
||||
${CMAKE_CURRENT_BINARY_DIR}/agent/polkitqt1-agent-export.h
|
||||
|
||||
DESTINATION
|
||||
- ${INCLUDE_DESTINATION}/${POLKITQT-1_INCLUDE_PATH} COMPONENT Devel)
|
||||
+ ${CMAKE_INSTALL_INCLUDEDIR}/${POLKITQT-1_INCLUDE_PATH} COMPONENT Devel)
|
||||
|
||||
install(FILES
|
||||
includes/PolkitQt1/Authority
|
||||
@@ -113,40 +108,40 @@ install(FILES
|
||||
includes/PolkitQt1/TemporaryAuthorization
|
||||
includes/PolkitQt1/ActionDescription
|
||||
DESTINATION
|
||||
- ${INCLUDE_DESTINATION}/${POLKITQT-1_INCLUDE_PATH}/PolkitQt1 COMPONENT Devel)
|
||||
+ ${CMAKE_INSTALL_INCLUDEDIR}/${POLKITQT-1_INCLUDE_PATH}/PolkitQt1 COMPONENT Devel)
|
||||
|
||||
install(FILES
|
||||
includes/PolkitQt1/Gui/Action
|
||||
includes/PolkitQt1/Gui/ActionButton
|
||||
includes/PolkitQt1/Gui/ActionButtons
|
||||
DESTINATION
|
||||
- ${INCLUDE_DESTINATION}/${POLKITQT-1_INCLUDE_PATH}/PolkitQt1/Gui COMPONENT Devel)
|
||||
+ ${CMAKE_INSTALL_INCLUDEDIR}/${POLKITQT-1_INCLUDE_PATH}/PolkitQt1/Gui COMPONENT Devel)
|
||||
|
||||
install(FILES
|
||||
includes/PolkitQt1/Agent/Listener
|
||||
includes/PolkitQt1/Agent/Session
|
||||
DESTINATION
|
||||
- ${INCLUDE_DESTINATION}/${POLKITQT-1_INCLUDE_PATH}/PolkitQt1/Agent COMPONENT Devel)
|
||||
+ ${CMAKE_INSTALL_INCLUDEDIR}/${POLKITQT-1_INCLUDE_PATH}/PolkitQt1/Agent COMPONENT Devel)
|
||||
|
||||
if(NOT WIN32)
|
||||
# Pkgconfig
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${POLKITQT-1_PCNAME}.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/${POLKITQT-1_PCNAME}.pc @ONLY)
|
||||
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${POLKITQT-1_PCNAME}.pc DESTINATION ${LIB_DESTINATION}/pkgconfig )
|
||||
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${POLKITQT-1_PCNAME}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig )
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${POLKITQT-1_CORE_PCNAME}.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/${POLKITQT-1_CORE_PCNAME}.pc
|
||||
@ONLY)
|
||||
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${POLKITQT-1_CORE_PCNAME}.pc DESTINATION ${LIB_DESTINATION}/pkgconfig )
|
||||
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${POLKITQT-1_CORE_PCNAME}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig )
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${POLKITQT-1_GUI_PCNAME}.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/${POLKITQT-1_GUI_PCNAME}.pc @ONLY)
|
||||
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${POLKITQT-1_GUI_PCNAME}.pc DESTINATION ${LIB_DESTINATION}/pkgconfig )
|
||||
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${POLKITQT-1_GUI_PCNAME}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig )
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${POLKITQT-1_AGENT_PCNAME}.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/${POLKITQT-1_AGENT_PCNAME}.pc
|
||||
@ONLY)
|
||||
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${POLKITQT-1_AGENT_PCNAME}.pc DESTINATION ${LIB_DESTINATION}/pkgconfig )
|
||||
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${POLKITQT-1_AGENT_PCNAME}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig )
|
||||
endif(NOT WIN32)
|
||||
|
||||
|
||||
if(USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR)
|
||||
- set(_PolkitQt-1Config_INSTALL_DIR ${LIB_DESTINATION}/cmake/${POLKITQT-1_CAMEL_NAME})
|
||||
+ set(_PolkitQt-1Config_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/${POLKITQT-1_CAMEL_NAME})
|
||||
else(USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR)
|
||||
- set(_PolkitQt-1Config_INSTALL_DIR ${LIB_DESTINATION}/${POLKITQT-1_CAMEL_NAME}/cmake)
|
||||
+ set(_PolkitQt-1Config_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/${POLKITQT-1_CAMEL_NAME}/cmake)
|
||||
endif(USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR)
|
||||
|
||||
|
||||
@@ -154,7 +149,7 @@ endif(USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR)
|
||||
configure_package_config_file(PolkitQt-1Config.cmake.in
|
||||
${CMAKE_BINARY_DIR}/${POLKITQT-1_CAMEL_NAME}Config.cmake
|
||||
INSTALL_DESTINATION ${_PolkitQt-1Config_INSTALL_DIR}
|
||||
- PATH_VARS LIB_DESTINATION INCLUDE_DESTINATION
|
||||
+ PATH_VARS CMAKE_INSTALL_LIBDIR CMAKE_INSTALL_INCLUDEDIR
|
||||
)
|
||||
|
||||
write_basic_package_version_file(${CMAKE_BINARY_DIR}/${POLKITQT-1_CAMEL_NAME}ConfigVersion.cmake
|
||||
diff --git a/PolkitQt-1Config.cmake.in b/PolkitQt-1Config.cmake.in
|
||||
index f39480c..e09678c 100644
|
||||
--- a/PolkitQt-1Config.cmake.in
|
||||
+++ b/PolkitQt-1Config.cmake.in
|
||||
@@ -20,9 +20,9 @@ if(NOT POLKITQT-1_INSTALL_DIR)
|
||||
set(POLKITQT-1_INSTALL_DIR "@CMAKE_INSTALL_PREFIX@")
|
||||
endif(NOT POLKITQT-1_INSTALL_DIR)
|
||||
|
||||
-set_and_check(POLKITQT-1_INCLUDE_DIR "@PACKAGE_INCLUDE_DESTINATION@/@POLKITQT-1_INCLUDE_PATH@")
|
||||
+set_and_check(POLKITQT-1_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@/@POLKITQT-1_INCLUDE_PATH@")
|
||||
set_and_check(POLKITQT-1_INCLUDE_DIRS "${POLKITQT-1_INCLUDE_DIR}")
|
||||
-set_and_check(POLKITQT-1_LIB_DIR "@PACKAGE_LIB_DESTINATION@")
|
||||
+set_and_check(POLKITQT-1_LIB_DIR "@PACKAGE_CMAKE_INSTALL_LIBDIR@")
|
||||
set(POLKITQT-1_POLICY_FILES_INSTALL_DIR "${POLKITQT-1_INSTALL_DIR}/share/polkit-1/actions")
|
||||
##################################
|
||||
|
||||
diff --git a/agent/CMakeLists.txt b/agent/CMakeLists.txt
|
||||
index ccf2711..1a86cd8 100644
|
||||
--- a/agent/CMakeLists.txt
|
||||
+++ b/agent/CMakeLists.txt
|
||||
@@ -29,11 +29,11 @@ set_target_properties(${POLKITQT-1_AGENT_PCNAME} PROPERTIES VERSION ${POLKITQT-1
|
||||
|
||||
target_include_directories(${POLKITQT-1_AGENT_PCNAME}
|
||||
INTERFACE
|
||||
- $<INSTALL_INTERFACE:${INCLUDE_DESTINATION}/${POLKITQT-1_INCLUDE_PATH}>
|
||||
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${POLKITQT-1_INCLUDE_PATH}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
|
||||
)
|
||||
|
||||
-install(TARGETS ${POLKITQT-1_AGENT_PCNAME} EXPORT ${POLKITQT-1_CAMEL_NAME}Export ARCHIVE DESTINATION ${LIB_DESTINATION}
|
||||
- LIBRARY DESTINATION ${LIB_DESTINATION}
|
||||
+install(TARGETS ${POLKITQT-1_AGENT_PCNAME} EXPORT ${POLKITQT-1_CAMEL_NAME}Export ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION bin)
|
||||
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
|
||||
index 3a80adc..8225871 100644
|
||||
--- a/core/CMakeLists.txt
|
||||
+++ b/core/CMakeLists.txt
|
||||
@@ -32,12 +32,12 @@ set_target_properties(${POLKITQT-1_CORE_PCNAME} PROPERTIES VERSION ${POLKITQT-1_
|
||||
|
||||
target_include_directories(${POLKITQT-1_CORE_PCNAME}
|
||||
INTERFACE
|
||||
- $<INSTALL_INTERFACE:${INCLUDE_DESTINATION}/${POLKITQT-1_INCLUDE_PATH}>
|
||||
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${POLKITQT-1_INCLUDE_PATH}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
|
||||
)
|
||||
|
||||
-install(TARGETS ${POLKITQT-1_CORE_PCNAME} EXPORT ${POLKITQT-1_CAMEL_NAME}Export ARCHIVE DESTINATION ${LIB_DESTINATION}
|
||||
- LIBRARY DESTINATION ${LIB_DESTINATION}
|
||||
+install(TARGETS ${POLKITQT-1_CORE_PCNAME} EXPORT ${POLKITQT-1_CAMEL_NAME}Export ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION bin)
|
||||
|
||||
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt
|
||||
index d9d800d..c22deba 100644
|
||||
--- a/gui/CMakeLists.txt
|
||||
+++ b/gui/CMakeLists.txt
|
||||
@@ -28,11 +28,11 @@ set_target_properties(${POLKITQT-1_GUI_PCNAME} PROPERTIES VERSION ${POLKITQT-1_L
|
||||
|
||||
target_include_directories(${POLKITQT-1_GUI_PCNAME}
|
||||
INTERFACE
|
||||
- $<INSTALL_INTERFACE:${INCLUDE_DESTINATION}/${POLKITQT-1_INCLUDE_PATH}>
|
||||
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${POLKITQT-1_INCLUDE_PATH}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
|
||||
)
|
||||
|
||||
-install(TARGETS ${POLKITQT-1_GUI_PCNAME} EXPORT ${POLKITQT-1_CAMEL_NAME}Export ARCHIVE DESTINATION ${LIB_DESTINATION}
|
||||
- LIBRARY DESTINATION ${LIB_DESTINATION}
|
||||
+install(TARGETS ${POLKITQT-1_GUI_PCNAME} EXPORT ${POLKITQT-1_CAMEL_NAME}Export ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION bin)
|
||||
diff --git a/polkit-qt-1.pc.cmake b/polkit-qt-1.pc.cmake
|
||||
index 7cc55a9..ba8e46e 100644
|
||||
--- a/polkit-qt-1.pc.cmake
|
||||
+++ b/polkit-qt-1.pc.cmake
|
||||
@@ -1,7 +1,7 @@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
exec_prefix=@CMAKE_INSTALL_PREFIX@
|
||||
-libdir=@LIB_DESTINATION@
|
||||
-includedir=@INCLUDE_DESTINATION@/@POLKITQT-1_INCLUDE_PATH@
|
||||
+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
|
||||
+includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/@POLKITQT-1_INCLUDE_PATH@
|
||||
|
||||
Name: @POLKITQT-1_PCNAME@
|
||||
Description: Convenience library for using polkit with a Qt-styled API
|
||||
diff --git a/polkit-qt-agent-1.pc.cmake b/polkit-qt-agent-1.pc.cmake
|
||||
index 001925d..23b2cae 100644
|
||||
--- a/polkit-qt-agent-1.pc.cmake
|
||||
+++ b/polkit-qt-agent-1.pc.cmake
|
||||
@@ -1,7 +1,7 @@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
exec_prefix=@CMAKE_INSTALL_PREFIX@
|
||||
-libdir=@LIB_DESTINATION@
|
||||
-includedir=@INCLUDE_DESTINATION@/@POLKITQT-1_INCLUDE_PATH@
|
||||
+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
|
||||
+includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/@POLKITQT-1_INCLUDE_PATH@
|
||||
|
||||
Name: @POLKITQT-1_AGENT_PCNAME@
|
||||
Description: Convenience library for using polkit Agent with a Qt-styled API
|
||||
diff --git a/polkit-qt-core-1.pc.cmake b/polkit-qt-core-1.pc.cmake
|
||||
index ca435a6..fa501f0 100644
|
||||
--- a/polkit-qt-core-1.pc.cmake
|
||||
+++ b/polkit-qt-core-1.pc.cmake
|
||||
@@ -1,7 +1,7 @@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
exec_prefix=@CMAKE_INSTALL_PREFIX@
|
||||
-libdir=@LIB_DESTINATION@
|
||||
-includedir=@INCLUDE_DESTINATION@/@POLKITQT-1_INCLUDE_PATH@
|
||||
+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
|
||||
+includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/@POLKITQT-1_INCLUDE_PATH@
|
||||
|
||||
Name: @POLKITQT-1_CORE_PCNAME@
|
||||
Description: Convenience library for using polkit with a Qt-styled API, non-GUI classes
|
||||
diff --git a/polkit-qt-gui-1.pc.cmake b/polkit-qt-gui-1.pc.cmake
|
||||
index e7279d1..7261b0c 100644
|
||||
--- a/polkit-qt-gui-1.pc.cmake
|
||||
+++ b/polkit-qt-gui-1.pc.cmake
|
||||
@@ -1,7 +1,7 @@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
exec_prefix=@CMAKE_INSTALL_PREFIX@
|
||||
-libdir=@LIB_DESTINATION@
|
||||
-includedir=@INCLUDE_DESTINATION@/@POLKITQT-1_INCLUDE_PATH@
|
||||
+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
|
||||
+includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/@POLKITQT-1_INCLUDE_PATH@
|
||||
|
||||
Name: @POLKITQT-1_GUI_PCNAME@
|
||||
Description: Convenience library for using polkit with a Qt-styled API, GUI classes
|
||||
diff --git a/polkit-qt5-1.pc.cmake b/polkit-qt5-1.pc.cmake
|
||||
index 7cc55a9..ba8e46e 100644
|
||||
--- a/polkit-qt5-1.pc.cmake
|
||||
+++ b/polkit-qt5-1.pc.cmake
|
||||
@@ -1,7 +1,7 @@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
exec_prefix=@CMAKE_INSTALL_PREFIX@
|
||||
-libdir=@LIB_DESTINATION@
|
||||
-includedir=@INCLUDE_DESTINATION@/@POLKITQT-1_INCLUDE_PATH@
|
||||
+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
|
||||
+includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/@POLKITQT-1_INCLUDE_PATH@
|
||||
|
||||
Name: @POLKITQT-1_PCNAME@
|
||||
Description: Convenience library for using polkit with a Qt-styled API
|
||||
diff --git a/polkit-qt5-agent-1.pc.cmake b/polkit-qt5-agent-1.pc.cmake
|
||||
index fabc0db..709a24e 100644
|
||||
--- a/polkit-qt5-agent-1.pc.cmake
|
||||
+++ b/polkit-qt5-agent-1.pc.cmake
|
||||
@@ -1,7 +1,7 @@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
exec_prefix=@CMAKE_INSTALL_PREFIX@
|
||||
-libdir=@LIB_DESTINATION@
|
||||
-includedir=@INCLUDE_DESTINATION@/@POLKITQT-1_INCLUDE_PATH@
|
||||
+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
|
||||
+includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/@POLKITQT-1_INCLUDE_PATH@
|
||||
|
||||
Name: @POLKITQT-1_AGENT_PCNAME@
|
||||
Description: Convenience library for using polkit Agent with a Qt-styled API
|
||||
diff --git a/polkit-qt5-core-1.pc.cmake b/polkit-qt5-core-1.pc.cmake
|
||||
index 33687c2..588f267 100644
|
||||
--- a/polkit-qt5-core-1.pc.cmake
|
||||
+++ b/polkit-qt5-core-1.pc.cmake
|
||||
@@ -1,7 +1,7 @@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
exec_prefix=@CMAKE_INSTALL_PREFIX@
|
||||
-libdir=@LIB_DESTINATION@
|
||||
-includedir=@INCLUDE_DESTINATION@/@POLKITQT-1_INCLUDE_PATH@
|
||||
+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
|
||||
+includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/@POLKITQT-1_INCLUDE_PATH@
|
||||
|
||||
Name: @POLKITQT-1_CORE_PCNAME@
|
||||
Description: Convenience library for using polkit with a Qt-styled API, non-GUI classes
|
||||
diff --git a/polkit-qt5-gui-1.pc.cmake b/polkit-qt5-gui-1.pc.cmake
|
||||
index 4280226..1c012dd 100644
|
||||
--- a/polkit-qt5-gui-1.pc.cmake
|
||||
+++ b/polkit-qt5-gui-1.pc.cmake
|
||||
@@ -1,7 +1,7 @@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
exec_prefix=@CMAKE_INSTALL_PREFIX@
|
||||
-libdir=@LIB_DESTINATION@
|
||||
-includedir=@INCLUDE_DESTINATION@/@POLKITQT-1_INCLUDE_PATH@
|
||||
+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
|
||||
+includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/@POLKITQT-1_INCLUDE_PATH@
|
||||
|
||||
Name: @POLKITQT-1_GUI_PCNAME@
|
||||
Description: Convenience library for using polkit with a Qt-styled API, GUI classes
|
||||
--
|
||||
GitLab
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
From e6a3603b1f07cd85dbd84377afeda0777d6535e8 Mon Sep 17 00:00:00 2001
|
||||
From: Zhang Dingyuan <justforlxz@gmail.com>
|
||||
Date: Tue, 14 Jun 2022 11:37:40 +0800
|
||||
Subject: [PATCH] fix: memory leak
|
||||
|
||||
agent listener does not reclaim private memory after destructing.
|
||||
Use `QScopedPointer` to protect private pointers from being copied and to
|
||||
reclaim memory properly.
|
||||
---
|
||||
agent/polkitqt1-agent-listener.h | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/agent/polkitqt1-agent-listener.h b/agent/polkitqt1-agent-listener.h
|
||||
index 07fe03a..a40ff41 100644
|
||||
--- a/agent/polkitqt1-agent-listener.h
|
||||
+++ b/agent/polkitqt1-agent-listener.h
|
||||
@@ -9,6 +9,7 @@
|
||||
#define POLKITQT1_AGENT_LISTENER_H
|
||||
|
||||
#include <QObject>
|
||||
+#include <QScopedPointer>
|
||||
|
||||
#include "polkitqt1-agent-session.h"
|
||||
|
||||
@@ -137,7 +138,7 @@ public Q_SLOTS:
|
||||
virtual void cancelAuthentication() = 0;
|
||||
|
||||
private:
|
||||
- ListenerPrivate * const d;
|
||||
+ QScopedPointer<ListenerPrivate> d;
|
||||
};
|
||||
}
|
||||
|
||||
--
|
||||
GitLab
|
||||
|
||||
@@ -1,188 +0,0 @@
|
||||
From 2656bf02e19f282ee963309a48ba497873e9fa40 Mon Sep 17 00:00:00 2001
|
||||
From: Albert Astals Cid <aacid@kde.org>
|
||||
Date: Fri, 6 Aug 2021 11:57:43 +0200
|
||||
Subject: [PATCH] Require glib 2.36 and remove "do nothing" g_type_init
|
||||
|
||||
g_type_init deprecated and a no-op since glib 2.36
|
||||
|
||||
glib 2.36 was released in 2013, i think it's a reasonable min dependency
|
||||
nowadays
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
agent/polkitqt1-agent-listener.cpp | 4 ----
|
||||
agent/polkitqtlistener.cpp | 1 -
|
||||
core/polkitqt1-actiondescription.cpp | 2 --
|
||||
core/polkitqt1-authority.cpp | 2 --
|
||||
core/polkitqt1-details.cpp | 2 --
|
||||
core/polkitqt1-identity.cpp | 2 --
|
||||
core/polkitqt1-subject.cpp | 5 -----
|
||||
core/polkitqt1-temporaryauthorization.cpp | 1 -
|
||||
examples/agent/pkagentexample.cpp | 2 --
|
||||
10 files changed, 1 insertion(+), 22 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index a82f8cb..dd0977e 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -40,7 +40,7 @@ set(POLKITQT-1_INCLUDE_PATH "polkit-qt5-1")
|
||||
|
||||
pkg_check_modules(POLKIT_GOBJECT polkit-gobject-1 REQUIRED IMPORTED_TARGET)
|
||||
pkg_check_modules(POLKIT_AGENT polkit-agent-1 REQUIRED IMPORTED_TARGET)
|
||||
-pkg_check_modules(GLIB2 glib-2.0 REQUIRED IMPORTED_TARGET)
|
||||
+pkg_check_modules(GLIB2 glib-2.0>=2.36 REQUIRED IMPORTED_TARGET)
|
||||
pkg_check_modules(GOBJECT gobject-2.0 REQUIRED IMPORTED_TARGET)
|
||||
|
||||
add_definitions(-DQT_NO_KEYWORDS)
|
||||
diff --git a/agent/polkitqt1-agent-listener.cpp b/agent/polkitqt1-agent-listener.cpp
|
||||
index cb99299..27348b1 100644
|
||||
--- a/agent/polkitqt1-agent-listener.cpp
|
||||
+++ b/agent/polkitqt1-agent-listener.cpp
|
||||
@@ -34,8 +34,6 @@ public:
|
||||
Listener::Listener(QObject *parent)
|
||||
: QObject(parent), d(new ListenerPrivate)
|
||||
{
|
||||
- g_type_init();
|
||||
-
|
||||
d->listener = polkit_qt_listener_new();
|
||||
|
||||
qDebug() << "New PolkitAgentListener " << d->listener;
|
||||
@@ -46,8 +44,6 @@ Listener::Listener(QObject *parent)
|
||||
Listener::Listener(PolkitAgentListener *listener, QObject *parent)
|
||||
: QObject(parent), d(new ListenerPrivate)
|
||||
{
|
||||
- g_type_init();
|
||||
-
|
||||
d->listener = listener;
|
||||
|
||||
if (d->listener != nullptr) {
|
||||
diff --git a/agent/polkitqtlistener.cpp b/agent/polkitqtlistener.cpp
|
||||
index 69c4f8a..e8713b5 100644
|
||||
--- a/agent/polkitqtlistener.cpp
|
||||
+++ b/agent/polkitqtlistener.cpp
|
||||
@@ -49,7 +49,6 @@ G_DEFINE_TYPE(PolkitQtListener, polkit_qt_listener, POLKIT_AGENT_TYPE_LISTENER)
|
||||
|
||||
static void polkit_qt_listener_init(PolkitQtListener *listener)
|
||||
{
|
||||
- g_type_init();
|
||||
}
|
||||
|
||||
static void polkit_qt_listener_finalize(GObject *object)
|
||||
diff --git a/core/polkitqt1-actiondescription.cpp b/core/polkitqt1-actiondescription.cpp
|
||||
index f865c37..c08f5c4 100644
|
||||
--- a/core/polkitqt1-actiondescription.cpp
|
||||
+++ b/core/polkitqt1-actiondescription.cpp
|
||||
@@ -55,8 +55,6 @@ ActionDescription::ActionDescription()
|
||||
ActionDescription::ActionDescription(PolkitActionDescription *polkitActionDescription)
|
||||
: d(new Data)
|
||||
{
|
||||
- g_type_init();
|
||||
-
|
||||
d->actionId = QString::fromUtf8(polkit_action_description_get_action_id(polkitActionDescription));
|
||||
d->description = QString::fromUtf8(polkit_action_description_get_description(polkitActionDescription));
|
||||
d->message = QString::fromUtf8(polkit_action_description_get_message(polkitActionDescription));
|
||||
diff --git a/core/polkitqt1-authority.cpp b/core/polkitqt1-authority.cpp
|
||||
index a891b92..73dd97e 100644
|
||||
--- a/core/polkitqt1-authority.cpp
|
||||
+++ b/core/polkitqt1-authority.cpp
|
||||
@@ -172,8 +172,6 @@ void Authority::Private::init()
|
||||
QDBusError error;
|
||||
QDBusError dbus_error;
|
||||
|
||||
- g_type_init();
|
||||
-
|
||||
m_systemBus = new QDBusConnection(QDBusConnection::connectToBus(QDBusConnection::SystemBus,
|
||||
QStringLiteral("polkit_qt_system_bus")));
|
||||
|
||||
diff --git a/core/polkitqt1-details.cpp b/core/polkitqt1-details.cpp
|
||||
index b9494f0..ba107b1 100644
|
||||
--- a/core/polkitqt1-details.cpp
|
||||
+++ b/core/polkitqt1-details.cpp
|
||||
@@ -39,14 +39,12 @@ public:
|
||||
Details::Details()
|
||||
: d(new Data)
|
||||
{
|
||||
- g_type_init();
|
||||
d->polkitDetails = polkit_details_new();
|
||||
}
|
||||
|
||||
Details::Details(PolkitDetails *pkDetails)
|
||||
: d(new Data)
|
||||
{
|
||||
- g_type_init();
|
||||
d->polkitDetails = pkDetails;
|
||||
|
||||
if (d->polkitDetails != nullptr) {
|
||||
diff --git a/core/polkitqt1-identity.cpp b/core/polkitqt1-identity.cpp
|
||||
index 2489c33..0924c5a 100644
|
||||
--- a/core/polkitqt1-identity.cpp
|
||||
+++ b/core/polkitqt1-identity.cpp
|
||||
@@ -39,13 +39,11 @@ public:
|
||||
Identity::Identity()
|
||||
: d(new Data)
|
||||
{
|
||||
- g_type_init();
|
||||
}
|
||||
|
||||
Identity::Identity(PolkitIdentity *polkitIdentity)
|
||||
: d(new Data)
|
||||
{
|
||||
- g_type_init();
|
||||
d->identity = polkitIdentity;
|
||||
|
||||
if (d->identity) {
|
||||
diff --git a/core/polkitqt1-subject.cpp b/core/polkitqt1-subject.cpp
|
||||
index 3d86437..3dae3bd 100644
|
||||
--- a/core/polkitqt1-subject.cpp
|
||||
+++ b/core/polkitqt1-subject.cpp
|
||||
@@ -39,13 +39,11 @@ public:
|
||||
Subject::Subject()
|
||||
: d(new Data)
|
||||
{
|
||||
- g_type_init();
|
||||
}
|
||||
|
||||
Subject::Subject(PolkitSubject *subject)
|
||||
: d(new Data)
|
||||
{
|
||||
- g_type_init();
|
||||
d->subject = subject;
|
||||
|
||||
if (d->subject != nullptr) {
|
||||
@@ -95,9 +93,6 @@ QString Subject::toString() const
|
||||
|
||||
Subject Subject::fromString(const QString &string)
|
||||
{
|
||||
- // should be in polkit library!!! but for strange reason it's necessary to have it here
|
||||
- g_type_init();
|
||||
-
|
||||
Subject subject;
|
||||
GError *error = nullptr;
|
||||
subject.d->subject = polkit_subject_from_string(string.toUtf8().data(), &error);
|
||||
diff --git a/core/polkitqt1-temporaryauthorization.cpp b/core/polkitqt1-temporaryauthorization.cpp
|
||||
index 64209ff..ae40f3b 100644
|
||||
--- a/core/polkitqt1-temporaryauthorization.cpp
|
||||
+++ b/core/polkitqt1-temporaryauthorization.cpp
|
||||
@@ -38,7 +38,6 @@ public:
|
||||
TemporaryAuthorization::TemporaryAuthorization(PolkitTemporaryAuthorization *pkTemporaryAuthorization)
|
||||
: d(new Data)
|
||||
{
|
||||
- g_type_init();
|
||||
d->id = QString::fromUtf8(polkit_temporary_authorization_get_id(pkTemporaryAuthorization));
|
||||
d->actionId = QString::fromUtf8(polkit_temporary_authorization_get_action_id(pkTemporaryAuthorization));
|
||||
d->subject = Subject::fromString(polkit_subject_to_string(polkit_temporary_authorization_get_subject(pkTemporaryAuthorization)));
|
||||
diff --git a/examples/agent/pkagentexample.cpp b/examples/agent/pkagentexample.cpp
|
||||
index 8b1128b..da555c7 100644
|
||||
--- a/examples/agent/pkagentexample.cpp
|
||||
+++ b/examples/agent/pkagentexample.cpp
|
||||
@@ -9,8 +9,6 @@
|
||||
PkAgentExample::PkAgentExample(int &argc, char **argv)
|
||||
: QCoreApplication(argc, argv)
|
||||
{
|
||||
- g_type_init();
|
||||
-
|
||||
PolkitQt1::UnixSessionSubject session(getpid());
|
||||
|
||||
m_listener.registerListener(session, "/org/kde/PolicyKit1/AuthenticationAgent");
|
||||
--
|
||||
GitLab
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KDE_ORG_CATEGORY="libraries"
|
||||
KDE_ORG_NAME="polkit-qt-1"
|
||||
inherit cmake kde.org
|
||||
|
||||
DESCRIPTION="Qt wrapper around polkit-1 client libraries"
|
||||
HOMEPAGE="https://api.kde.org/polkit-qt-1/html/"
|
||||
|
||||
if [[ ${KDE_BUILD_TYPE} = release ]]; then
|
||||
SRC_URI="mirror://kde/stable/${KDE_ORG_NAME}/${KDE_ORG_NAME}-${PV}.tar.xz"
|
||||
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ppc64 ~riscv x86"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/glib:2
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtdbus:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
>=sys-auth/polkit-0.103[daemon(+)]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
DOCS=( AUTHORS README README.porting TODO )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-cmake.patch"
|
||||
"${FILESDIR}/${P}-glib-2.36.patch"
|
||||
"${FILESDIR}/${P}-fix-memory-leak.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -177,8 +177,6 @@ src_configure() {
|
||||
use cet && filter-flags -mindirect-branch -mindirect-branch=*
|
||||
use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152
|
||||
|
||||
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
|
||||
|
||||
local x
|
||||
echo
|
||||
for x in CATEGORY CBUILD CHOST CTARGET CFLAGS LDFLAGS ; do
|
||||
|
||||
@@ -77,6 +77,10 @@ pkgversion() {
|
||||
multilib_src_configure() {
|
||||
filter-lto
|
||||
|
||||
# Workaround for lld-17 (bug #914640)
|
||||
# Should be able to drop this w/ >=binutils-2.43
|
||||
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
|
||||
|
||||
local myconf=(
|
||||
# portage's econf() does not detect presence of --d-d-t
|
||||
# because it greps only top-level ./configure. But not
|
||||
|
||||
Reference in New Issue
Block a user