1 |
commit: fe7ba9df2ed8770afd2125efffd5f697bd73f9b6 |
2 |
Author: David Hallas <david <AT> davidhallas <DOT> dk> |
3 |
AuthorDate: Thu May 30 14:17:22 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 27 12:49:19 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe7ba9df |
7 |
|
8 |
dev-cpp/sourcetrail: Bump to 2019.2.39 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/687014 |
11 |
Signed-off-by: David Hallas <david <AT> davidhallas.dk> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/12135 |
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
dev-cpp/sourcetrail/Manifest | 1 + |
16 |
dev-cpp/sourcetrail/sourcetrail-2019.2.39.ebuild | 92 ++++++++++++++++++++++++ |
17 |
2 files changed, 93 insertions(+) |
18 |
|
19 |
diff --git a/dev-cpp/sourcetrail/Manifest b/dev-cpp/sourcetrail/Manifest |
20 |
index 14d514b02ed..77c70263998 100644 |
21 |
--- a/dev-cpp/sourcetrail/Manifest |
22 |
+++ b/dev-cpp/sourcetrail/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST sourcetrail-2018.3.55.tar.gz 74278615 BLAKE2B e046acfb90cdb495ff28c3dcf4530129cc569a0e9c481f127f656059f80575e4be22e9b63a8b6f00ffdac977ca930ad7a3c4d0e1aa7912af711150afbef03707 SHA512 b8fccc4bae55abf5c5a05418b37c665817c860cc27e314f8ccb69665a63b90ef68485c2395fc899f1112a05def8e95068d7a5c92db399f1d3f7a203a09107767 |
25 |
DIST sourcetrail-2019.1.11.tar.gz 76120891 BLAKE2B 865c8a510a544705e130e3ec7bc82f1e7ca16d4dee2fa27849dd3530a92a20ef47ed909765ac08c8106ee0e992e3b4a03e79ef7094fb1593c4088b7d8e356423 SHA512 9022873572aef796fcbacf079c37b916d645aacd1479cc79fcddbfd8c561d0004c97202c46812b60d8c539dae3d68bd805da101678ebd1518ce13c3e58009ac9 |
26 |
+DIST sourcetrail-2019.2.39.tar.gz 84960185 BLAKE2B a515da1a0c6a061d7db843b9bef3b1d419fdbea361c4f5465d32a4a9bfc018575a334de739354de2e249facb7ea6d342329c445990173303fce4fb818da8131d SHA512 5603d7c2fe84c58a13dc682bad6bdbd807b15a9fd7c73c6633f8a7d9e051a660916b3a03b9a5244e2cb4243492586d555a98f0cc464f7405c02f36ef655c8959 |
27 |
|
28 |
diff --git a/dev-cpp/sourcetrail/sourcetrail-2019.2.39.ebuild b/dev-cpp/sourcetrail/sourcetrail-2019.2.39.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..3989b699749 |
31 |
--- /dev/null |
32 |
+++ b/dev-cpp/sourcetrail/sourcetrail-2019.2.39.ebuild |
33 |
@@ -0,0 +1,92 @@ |
34 |
+# Copyright 1999-2019 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+inherit desktop xdg-utils |
40 |
+ |
41 |
+DESCRIPTION="A cross-platform source explorer for C/C++ and Java" |
42 |
+HOMEPAGE="https://www.sourcetrail.com/" |
43 |
+SRC_URI="https://www.sourcetrail.com/downloads/${PV}/linux/64bit -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="Sourcetrail || ( GPL-2 GPL-3 LGPL-3 ) BSD" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64" |
48 |
+IUSE="examples selinux" |
49 |
+RESTRICT="mirror bindist" |
50 |
+ |
51 |
+DEPEND="dev-util/patchelf" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ || ( |
55 |
+ dev-libs/openssl-compat:1.0.0 |
56 |
+ =dev-libs/openssl-1.0*:* |
57 |
+ ) |
58 |
+ media-libs/fontconfig |
59 |
+ media-libs/freetype |
60 |
+ media-libs/libpng:1.2 |
61 |
+ sys-libs/libudev-compat |
62 |
+ virtual/opengl |
63 |
+ x11-libs/libdrm |
64 |
+ x11-libs/libX11 |
65 |
+ x11-libs/libXau |
66 |
+ x11-libs/libxcb |
67 |
+ x11-libs/libXdamage |
68 |
+ x11-libs/libXext |
69 |
+ x11-libs/libXfixes |
70 |
+ x11-libs/libXi |
71 |
+ x11-libs/libXrender |
72 |
+ x11-libs/libXxf86vm |
73 |
+ selinux? ( sys-libs/libselinux ) |
74 |
+" |
75 |
+ |
76 |
+S="${WORKDIR}/Sourcetrail" |
77 |
+QA_PREBUILT="*" |
78 |
+ |
79 |
+src_install() { |
80 |
+ # This removes the rpath entries with $$ORIGIN |
81 |
+ # since they trigger warnings when merging |
82 |
+ for f in "Sourcetrail" "sourcetrail_indexer"; do |
83 |
+ rpath=$(patchelf --print-rpath "${f}" 2>/dev/null) |
84 |
+ new_rpath=${rpath//\$\$ORIGIN\/lib\/:/} |
85 |
+ patchelf --set-rpath "${new_rpath}" "${f}" || die |
86 |
+ done |
87 |
+ |
88 |
+ # Remove bundled libraries |
89 |
+ rm -f lib/libXi.so.6 lib/libXxf86vm.so.1 lib/libXrender.so.1 lib/libXfixes.so.3 lib/libXext.so.6 \ |
90 |
+ lib/libXdamage.so.1 lib/libxcb* lib/libXau.so.6 lib/libX11-xcb.so.1 lib/libX11.so.6 \ |
91 |
+ lib/libudev.so.0 lib/libEGL.so.1 lib/libgbm.so.1 lib/libglapi.so.0 lib/libGL.so.1 \ |
92 |
+ lib/libdrm.so.2 lib/libfontconfig.so.1 lib/libfreetype.so.6 lib/libcrypto.so lib/libssl.so \ |
93 |
+ lib/libpng12.so.0 lib/libselinux.so.1 || die |
94 |
+ insinto /opt/sourcetrail |
95 |
+ doins -r EULA.txt README data lib plugin |
96 |
+ use examples && doins -r user |
97 |
+ exeinto /opt/sourcetrail |
98 |
+ doexe Sourcetrail sourcetrail_indexer Sourcetrail.sh resetPreferences.sh |
99 |
+ into /opt |
100 |
+ newbin - sourcetrail <<-EOF |
101 |
+ #! /bin/sh |
102 |
+ exec /opt/sourcetrail/Sourcetrail.sh "\$@" |
103 |
+ EOF |
104 |
+ local size |
105 |
+ for size in 48 64 128 256 512; do |
106 |
+ newicon -s "${size}" "setup/share/icons/hicolor/${size}x${size}/apps/sourcetrail.png" \ |
107 |
+ "sourcetrail.png" |
108 |
+ done |
109 |
+ sed -i -e 's|Exec=/usr/bin/sourcetrail|Exec=/opt/bin/sourcetrail|' \ |
110 |
+ -e 's/Utilities;//' "setup/share/applications/sourcetrail.desktop" \ |
111 |
+ "setup/share/applications/sourcetrail.desktop" || die |
112 |
+ domenu "setup/share/applications/sourcetrail.desktop" |
113 |
+} |
114 |
+ |
115 |
+pkg_postinst() { |
116 |
+ xdg_icon_cache_update |
117 |
+ xdg_mimeinfo_database_update |
118 |
+ xdg_desktop_database_update |
119 |
+} |
120 |
+ |
121 |
+pkg_postrm() { |
122 |
+ xdg_icon_cache_update |
123 |
+ xdg_mimeinfo_database_update |
124 |
+ xdg_desktop_database_update |
125 |
+} |