mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-cpp/sourcetrail: treeclean
Closes: https://bugs.gentoo.org/884715 Closes: https://bugs.gentoo.org/834071 Closes: https://bugs.gentoo.org/735710 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST sourcetrail-2019.3.46.tar.gz 108528120 BLAKE2B f36e4e2eb98c28a4d4aa245df3cbd2febd524a3370111d77cc79c2220e6a6227509c9fb9ba9c8d8e0d286719ab55a858adcaee4c983233ee72daebddb62c9467 SHA512 032e9299430c4333115ececedfeb85f39a374d14366c06130becb395a71fc43af9ad9ee09258c4a3ba2d0c2daa0997d5054ad48f0701654fe48eea055ebec666
|
||||
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>david@davidhallas.dk</email>
|
||||
<name>David Hallas</name>
|
||||
</maintainer>
|
||||
<maintainer type="project" proxied="proxy">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers Project</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="examples">Install example projects.</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -1,93 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit desktop xdg-utils
|
||||
|
||||
DESCRIPTION="A cross-platform source explorer for C/C++ and Java"
|
||||
HOMEPAGE="https://www.sourcetrail.com/"
|
||||
SRC_URI="https://www.sourcetrail.com/downloads/${PV}/linux/64bit -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Sourcetrail || ( GPL-2 GPL-3 LGPL-3 ) BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="examples selinux"
|
||||
RESTRICT="mirror bindist"
|
||||
|
||||
DEPEND="dev-util/patchelf"
|
||||
|
||||
RDEPEND="
|
||||
|| (
|
||||
dev-libs/openssl-compat:1.0.0
|
||||
=dev-libs/openssl-1.0*:*
|
||||
)
|
||||
dev-libs/libffi-compat:6
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
media-libs/libpng-compat:1.2
|
||||
sys-libs/libudev-compat
|
||||
virtual/opengl
|
||||
x11-libs/libdrm
|
||||
x11-libs/libX11
|
||||
x11-libs/libXau
|
||||
x11-libs/libxcb
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXi
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXxf86vm
|
||||
selinux? ( sys-libs/libselinux )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/Sourcetrail"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
src_install() {
|
||||
# This removes the rpath entries with $$ORIGIN
|
||||
# since they trigger warnings when merging
|
||||
for f in "Sourcetrail" "sourcetrail_indexer"; do
|
||||
rpath=$(patchelf --print-rpath "${f}" 2>/dev/null)
|
||||
new_rpath=${rpath//\$\$ORIGIN\/lib\/:/}
|
||||
patchelf --set-rpath "${new_rpath}" "${f}" || die
|
||||
done
|
||||
|
||||
# Remove bundled libraries
|
||||
rm -f lib/libXi.so.6 lib/libXxf86vm.so.1 lib/libXrender.so.1 lib/libXfixes.so.3 lib/libXext.so.6 \
|
||||
lib/libXdamage.so.1 lib/libxcb* lib/libXau.so.6 lib/libX11-xcb.so.1 lib/libX11.so.6 \
|
||||
lib/libudev.so.0 lib/libEGL.so.1 lib/libgbm.so.1 lib/libglapi.so.0 lib/libGL.so.1 \
|
||||
lib/libdrm.so.2 lib/libfontconfig.so.1 lib/libfreetype.so.6 lib/libcrypto.so lib/libssl.so \
|
||||
lib/libpng12.so.0 lib/libselinux.so.1 || die
|
||||
insinto /opt/sourcetrail
|
||||
doins -r EULA.txt README data lib plugin
|
||||
use examples && doins -r user
|
||||
exeinto /opt/sourcetrail
|
||||
doexe Sourcetrail sourcetrail_indexer Sourcetrail.sh resetPreferences.sh
|
||||
into /opt
|
||||
newbin - sourcetrail <<-EOF
|
||||
#! /bin/sh
|
||||
exec /opt/sourcetrail/Sourcetrail.sh "\$@"
|
||||
EOF
|
||||
local size
|
||||
for size in 48 64 128 256 512; do
|
||||
newicon -s "${size}" "setup/share/icons/hicolor/${size}x${size}/apps/sourcetrail.png" \
|
||||
"sourcetrail.png"
|
||||
done
|
||||
sed -i -e 's|Exec=/usr/bin/sourcetrail|Exec=/opt/bin/sourcetrail|' \
|
||||
-e 's/Utilities;//' "setup/share/applications/sourcetrail.desktop" \
|
||||
"setup/share/applications/sourcetrail.desktop" || die
|
||||
domenu "setup/share/applications/sourcetrail.desktop"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
xdg_mimeinfo_database_update
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
xdg_mimeinfo_database_update
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
@@ -839,12 +839,6 @@ net-p2p/vuze-coreplugins
|
||||
# This version currently is not compatible with kernel build (yet)
|
||||
~dev-util/bindgen-0.63.0
|
||||
|
||||
# Jonas Stein <jstein@gentoo.org> (2022-12-11)
|
||||
# Unfetchable and mirror-restricted.
|
||||
# Upstream discontinued
|
||||
# Removal after 2023-02-01. Bug #884715.
|
||||
dev-cpp/sourcetrail
|
||||
|
||||
# Sam James <sam@gentoo.org> (2022-12-09)
|
||||
# Breaks compilation of reverse dependencies with broken pkgconfig (pc) file
|
||||
# bug #885075, https://github.com/libarchive/libarchive/issues/1766
|
||||
|
||||
Reference in New Issue
Block a user