From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/sourcetrail/
Date: Fri, 4 Oct 2019 05:39:46 +0000 (UTC) [thread overview]
Message-ID: <1570165348.dfe43c1faf50353ea2ec2c71f35b4979c20d1157.juippis@gentoo> (raw)
commit: dfe43c1faf50353ea2ec2c71f35b4979c20d1157
Author: David Hallas <david <AT> davidhallas <DOT> dk>
AuthorDate: Thu Oct 3 14:47:28 2019 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Oct 4 05:02:28 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfe43c1f
dev-cpp/sourcetrail: Fix libffi dependency
Sourcetrail depends on .so version 6 of libffi, so add
dev-libs/libffi-compat:6 to RDEPEND
Closes: https://bugs.gentoo.org/696090
Signed-off-by: David Hallas <david <AT> davidhallas.dk>
Closes: https://github.com/gentoo/gentoo/pull/13134
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
.../sourcetrail/sourcetrail-2019.3.46-r1.ebuild | 93 ++++++++++++++++++++++
1 file changed, 93 insertions(+)
diff --git a/dev-cpp/sourcetrail/sourcetrail-2019.3.46-r1.ebuild b/dev-cpp/sourcetrail/sourcetrail-2019.3.46-r1.ebuild
new file mode 100644
index 00000000000..e2d02701ebc
--- /dev/null
+++ b/dev-cpp/sourcetrail/sourcetrail-2019.3.46-r1.ebuild
@@ -0,0 +1,93 @@
+# 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: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
+}
next reply other threads:[~2019-10-04 5:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-04 5:39 Joonas Niilola [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-11-08 6:48 [gentoo-commits] repo/gentoo:master commit in: dev-cpp/sourcetrail/ Michał Górny
2019-09-23 17:09 Joonas Niilola
2019-06-27 12:49 Michał Górny
2019-06-14 17:46 Thomas Deutschmann
2019-06-01 8:16 Michał Górny
2019-04-19 12:55 Michał Górny
2019-02-04 13:42 Andreas Sturmlechner
2019-02-04 13:42 Andreas Sturmlechner
2018-09-13 17:19 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1570165348.dfe43c1faf50353ea2ec2c71f35b4979c20d1157.juippis@gentoo \
--to=juippis@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox