summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2022-11-04 22:51:14 +0000
committerormorph <roma251078@mail.ru>2022-11-04 22:57:32 +0000
commitb1f87280c29e08fdebef7df1478b1a9a5e276a62 (patch)
tree4a10c5654e13023636344730c7048aad26bb85b8
parente85983bae943efefa4559b6c1b6185af5585707b (diff)
downloadtde-packaging-gentoo-b1f87280c29e08fdebef7df1478b1a9a5e276a62.tar.gz
tde-packaging-gentoo-b1f87280c29e08fdebef7df1478b1a9a5e276a62.zip
Added libexecinfo package and fixes for tdelibs, fix #277
Signed-off-by: ormorph <roma251078@mail.ru>
-rw-r--r--dev-libs/libexecinfo/Manifest1
-rw-r--r--dev-libs/libexecinfo/libexecinfo-1.1-r3.ebuild32
-rw-r--r--dev-libs/libexecinfo/metadata.xml8
-rw-r--r--trinity-base/tdelibs/files/tdelibs-backtrace.patch12
-rw-r--r--trinity-base/tdelibs/tdelibs-14.0.13.ebuild4
5 files changed, 57 insertions, 0 deletions
diff --git a/dev-libs/libexecinfo/Manifest b/dev-libs/libexecinfo/Manifest
new file mode 100644
index 00000000..3f967cf0
--- /dev/null
+++ b/dev-libs/libexecinfo/Manifest
@@ -0,0 +1 @@
+DIST libexecinfo-1.1-3.tar.gz 5392 BLAKE2B 9eaf4f7f418bf5d53b6983775c743f52b46a70054b6bc7ba4281e5c053839fe8d85e016dc064c7af9246bf1dea95436baaf418f292bd7fdec227db37fefddc74 SHA512 a5015b0d3c6411deff16124599b3103431c396a07d630c19eb2887b40590a520d4e9dd5cd05f433b0aa2feaeeffea0432f4a0d45fd82f4939b077c79297256af
diff --git a/dev-libs/libexecinfo/libexecinfo-1.1-r3.ebuild b/dev-libs/libexecinfo/libexecinfo-1.1-r3.ebuild
new file mode 100644
index 00000000..00c94200
--- /dev/null
+++ b/dev-libs/libexecinfo/libexecinfo-1.1-r3.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PV="${PV}-3"
+DESCRIPTION="A quick-n-dirty BSD licensed clone of the GNU libc backtrace facility"
+HOMEPAGE="https://www.freshports.org/devel/libexecinfo"
+SRC_URI="https://github.com/mikroskeem/${PN}/archive/refs/tags/${PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="static-libs"
+
+src_prepare() {
+ default
+
+ sed -i -e 's/CC=/CC?=/' \
+ -e 's/AR=/AR?=/' \
+ Makefile || die
+}
+
+src_install() {
+ einstalldocs
+
+ doheader execinfo.h
+ doheader stacktraverse.h
+ use static-libs && dolib.a libexecinfo.a
+ dolib.so libexecinfo.so.1
+ dosym ./libexecinfo.so.1 /usr/"$(get_libdir)"/libexecinfo.so
+}
diff --git a/dev-libs/libexecinfo/metadata.xml b/dev-libs/libexecinfo/metadata.xml
new file mode 100644
index 00000000..689e1534
--- /dev/null
+++ b/dev-libs/libexecinfo/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>team-gentoo@trinitydesktop.org</email>
+ <name>Trinity Gentoo ebuilds project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/trinity-base/tdelibs/files/tdelibs-backtrace.patch b/trinity-base/tdelibs/files/tdelibs-backtrace.patch
new file mode 100644
index 00000000..21020b46
--- /dev/null
+++ b/trinity-base/tdelibs/files/tdelibs-backtrace.patch
@@ -0,0 +1,12 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -374,6 +374,9 @@
+ find_package( Backtrace )
+ if ( Backtrace_FOUND )
+ set ( HAVE_BACKTRACE 1 )
++ else ()
++ set ( Backtrace_LIBRARY "" )
++ set ( Backtrace_HEADER "" )
+ endif ()
+ endif ()
+ check_cxx_source_compiles( "#include <cxxabi.h>
diff --git a/trinity-base/tdelibs/tdelibs-14.0.13.ebuild b/trinity-base/tdelibs/tdelibs-14.0.13.ebuild
index be6dde79..fb4abe4b 100644
--- a/trinity-base/tdelibs/tdelibs-14.0.13.ebuild
+++ b/trinity-base/tdelibs/tdelibs-14.0.13.ebuild
@@ -77,6 +77,10 @@ RDEPEND="${DEPEND}
)
"
+PATCHES=(
+ "${FILESDIR}/tdelibs-backtrace.patch"
+)
+
src_configure() {
local enable_logind="OFF"
if use systemd || use elogind; then