summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hallas <david@davidhallas.dk>2018-08-08 21:32:49 +0200
committerMichał Górny <mgorny@gentoo.org>2018-09-13 19:18:57 +0200
commitc6880019d5b32d439391bbd26120141a30a7aa59 (patch)
tree11ae375a605f7a7abfb01332f135d61dc7a6c35d /dev-cpp/sourcetrail
parentlicenses: Adds Sourcetrail license to the @EULA group (diff)
downloadgentoo-c6880019d5b32d439391bbd26120141a30a7aa59.tar.gz
gentoo-c6880019d5b32d439391bbd26120141a30a7aa59.tar.bz2
gentoo-c6880019d5b32d439391bbd26120141a30a7aa59.zip
dev-cpp/sourcetrail: New package
Sourcetrail is a cross-platform source explorer for C/C++ and Java code. It makes it easy to navigate a codebase in an intuitive way. Closes: https://bugs.gentoo.org/663036 Package-Manager: Portage-2.3.40, Repoman-2.3.9 Closes: https://github.com/gentoo/gentoo/pull/9513
Diffstat (limited to 'dev-cpp/sourcetrail')
-rw-r--r--dev-cpp/sourcetrail/Manifest1
-rw-r--r--dev-cpp/sourcetrail/metadata.xml15
-rw-r--r--dev-cpp/sourcetrail/sourcetrail-2018.3.55.ebuild89
3 files changed, 105 insertions, 0 deletions
diff --git a/dev-cpp/sourcetrail/Manifest b/dev-cpp/sourcetrail/Manifest
new file mode 100644
index 000000000000..02dc9406177c
--- /dev/null
+++ b/dev-cpp/sourcetrail/Manifest
@@ -0,0 +1 @@
+DIST sourcetrail-2018.3.55.tar.gz 74278615 BLAKE2B e046acfb90cdb495ff28c3dcf4530129cc569a0e9c481f127f656059f80575e4be22e9b63a8b6f00ffdac977ca930ad7a3c4d0e1aa7912af711150afbef03707 SHA512 b8fccc4bae55abf5c5a05418b37c665817c860cc27e314f8ccb69665a63b90ef68485c2395fc899f1112a05def8e95068d7a5c92db399f1d3f7a203a09107767
diff --git a/dev-cpp/sourcetrail/metadata.xml b/dev-cpp/sourcetrail/metadata.xml
new file mode 100644
index 000000000000..1e96a507061f
--- /dev/null
+++ b/dev-cpp/sourcetrail/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>david@davidhallas.dk</email>
+ <name>David Hallas</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers Project</name>
+ </maintainer>
+ <use>
+ <flag name="examples">Install example projects.</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-cpp/sourcetrail/sourcetrail-2018.3.55.ebuild b/dev-cpp/sourcetrail/sourcetrail-2018.3.55.ebuild
new file mode 100644
index 000000000000..16d87f9d5581
--- /dev/null
+++ b/dev-cpp/sourcetrail/sourcetrail-2018.3.55.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit desktop gnome2-utils 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 ) FDL-1.3 BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples selinux"
+
+DEPEND="dev-util/patchelf"
+
+RDEPEND="
+ dev-libs/openssl
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/libpng: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
+ insinto /opt/sourcetrail
+ doins -r EULA.txt README data lib plugin
+ if use examples; then
+ doins -r user
+ fi
+ 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|' "setup/share/applications/sourcetrail.desktop" || die
+ sed -i -e 's/Utilities;//' "setup/share/applications/sourcetrail.desktop" || die
+ domenu "setup/share/applications/sourcetrail.desktop"
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ xdg_mimeinfo_database_update
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_mimeinfo_database_update
+ xdg_desktop_database_update
+}