Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/sourcetrail/
Date: Mon, 04 Feb 2019 13:42:34
Message-Id: 1549287660.07fad24c94cfa6f66609acf2647720976d6522d5.asturm@gentoo
1 commit: 07fad24c94cfa6f66609acf2647720976d6522d5
2 Author: David Hallas <david <AT> davidhallas <DOT> dk>
3 AuthorDate: Fri Jan 11 07:06:05 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 4 13:41:00 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07fad24c
7
8 dev-cpp/sourcetrail: Adjust openssl dependency
9
10 Adjust openssl dependency to depend on =dev-libs/openssl-1.0*:*.
11 The Sourcetrail package is built agains openssl-1.0.1 so depending
12 on =dev-libs/openssl-1.0*:0 should match the correct version.
13
14 Closes: https://bugs.gentoo.org/674788
15 Package-Manager: Portage-2.3.51, Repoman-2.3.11
16 Signed-off-by: David Hallas <david <AT> davidhallas.dk>
17 Closes: https://github.com/gentoo/gentoo/pull/10777
18 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
19
20 .../sourcetrail/sourcetrail-2018.3.55-r1.ebuild | 89 ++++++++++++++++++++++
21 1 file changed, 89 insertions(+)
22
23 diff --git a/dev-cpp/sourcetrail/sourcetrail-2018.3.55-r1.ebuild b/dev-cpp/sourcetrail/sourcetrail-2018.3.55-r1.ebuild
24 new file mode 100644
25 index 00000000000..07a989c7d93
26 --- /dev/null
27 +++ b/dev-cpp/sourcetrail/sourcetrail-2018.3.55-r1.ebuild
28 @@ -0,0 +1,89 @@
29 +# Copyright 1999-2019 Gentoo Authors
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=6
33 +
34 +inherit desktop gnome2-utils xdg-utils
35 +
36 +DESCRIPTION="A cross-platform source explorer for C/C++ and Java"
37 +HOMEPAGE="https://www.sourcetrail.com/"
38 +SRC_URI="https://www.sourcetrail.com/downloads/${PV}/linux/64bit -> ${P}.tar.gz"
39 +
40 +LICENSE="Sourcetrail || ( GPL-2 GPL-3 LGPL-3 ) FDL-1.3 BSD"
41 +SLOT="0"
42 +KEYWORDS="~amd64"
43 +IUSE="examples selinux"
44 +
45 +DEPEND="dev-util/patchelf"
46 +
47 +RDEPEND="
48 + =dev-libs/openssl-1.0*:*
49 + media-libs/fontconfig
50 + media-libs/freetype
51 + media-libs/libpng:1.2
52 + sys-libs/libudev-compat
53 + virtual/opengl
54 + x11-libs/libdrm
55 + x11-libs/libX11
56 + x11-libs/libXau
57 + x11-libs/libxcb
58 + x11-libs/libXdamage
59 + x11-libs/libXext
60 + x11-libs/libXfixes
61 + x11-libs/libXi
62 + x11-libs/libXrender
63 + x11-libs/libXxf86vm
64 + selinux? ( sys-libs/libselinux )
65 +"
66 +
67 +S="${WORKDIR}/Sourcetrail"
68 +QA_PREBUILT="*"
69 +
70 +src_install() {
71 + # This removes the rpath entries with $$ORIGIN
72 + # since they trigger warnings when merging
73 + for f in "Sourcetrail" "sourcetrail_indexer"; do
74 + rpath=$(patchelf --print-rpath "${f}" 2>/dev/null)
75 + new_rpath=${rpath//\$\$ORIGIN\/lib\/:/}
76 + patchelf --set-rpath "${new_rpath}" "${f}" || die
77 + done
78 +
79 + # Remove bundled libraries
80 + rm -f lib/libXi.so.6 lib/libXxf86vm.so.1 lib/libXrender.so.1 lib/libXfixes.so.3 lib/libXext.so.6 \
81 + lib/libXdamage.so.1 lib/libxcb* lib/libXau.so.6 lib/libX11-xcb.so.1 lib/libX11.so.6 \
82 + lib/libudev.so.0 lib/libEGL.so.1 lib/libgbm.so.1 lib/libglapi.so.0 lib/libGL.so.1 \
83 + lib/libdrm.so.2 lib/libfontconfig.so.1 lib/libfreetype.so.6 lib/libcrypto.so lib/libssl.so \
84 + lib/libpng12.so.0 lib/libselinux.so.1
85 + insinto /opt/sourcetrail
86 + doins -r EULA.txt README data lib plugin
87 + if use examples; then
88 + doins -r user
89 + fi
90 + exeinto /opt/sourcetrail
91 + doexe Sourcetrail sourcetrail_indexer Sourcetrail.sh resetPreferences.sh
92 + into /opt
93 + newbin - sourcetrail <<-EOF
94 + #! /bin/sh
95 + exec /opt/sourcetrail/Sourcetrail.sh "\$@"
96 + EOF
97 + local size
98 + for size in 48 64 128 256 512; do
99 + newicon -s ${size} "setup/share/icons/hicolor/${size}x${size}/apps/sourcetrail.png" \
100 + "sourcetrail.png"
101 + done
102 + sed -i -e 's|Exec=/usr/bin/sourcetrail|Exec=/opt/bin/sourcetrail|' "setup/share/applications/sourcetrail.desktop" || die
103 + sed -i -e 's/Utilities;//' "setup/share/applications/sourcetrail.desktop" || die
104 + domenu "setup/share/applications/sourcetrail.desktop"
105 +}
106 +
107 +pkg_postinst() {
108 + gnome2_icon_cache_update
109 + xdg_mimeinfo_database_update
110 + xdg_desktop_database_update
111 +}
112 +
113 +pkg_postrm() {
114 + gnome2_icon_cache_update
115 + xdg_mimeinfo_database_update
116 + xdg_desktop_database_update
117 +}