mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 23:46:14 -04:00
Try to respect LDFLAGS and CFLAGS by updating regular expression Closes: https://bugs.gentoo.org/814977 Closes: https://bugs.gentoo.org/814980 Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit desktop wrapper xdg
|
|
|
|
MY_PN="eclipse"
|
|
MY_PV="2021-06"
|
|
DESCRIPTION="Eclipse IDE for Scientific Computing (C, C++, Fortran)"
|
|
HOMEPAGE="https://www.eclipse.org/"
|
|
SRC_URI="
|
|
amd64? ( https://download.eclipse.org/technology/epp/downloads/release/${MY_PV}/R/eclipse-parallel-${MY_PV}-R-linux-gtk-x86_64.tar.gz )
|
|
arm64? ( https://download.eclipse.org/technology/epp/downloads/release/${MY_PV}/R/eclipse-parallel-${MY_PV}-R-linux-gtk-aarch64.tar.gz )
|
|
"
|
|
|
|
S="${WORKDIR}/${MY_PN}"
|
|
|
|
LICENSE="EPL-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="-* ~amd64 ~arm64"
|
|
RESTRICT="mirror"
|
|
|
|
RDEPEND="
|
|
|| ( dev-java/openjdk:11 dev-java/openjdk-bin:11 dev-java/openjdk-jre-bin:11 dev-java/openjdk-sts-bin:15 )
|
|
x11-libs/gtk+:3
|
|
"
|
|
|
|
QA_FLAGS_IGNORED="
|
|
/opt/eclipse-parallel-bin/eclipse
|
|
/opt/eclipse-parallel-bin/plugins/org.eclipse.equinox.launcher.gtk.linux[.].*/eclipse_.*[.]so
|
|
"
|
|
|
|
src_install() {
|
|
insinto "/opt/${PN}"
|
|
doins -r "${S}/."
|
|
|
|
exeinto "/opt/${PN}"
|
|
doexe "${S}/${MY_PN}"
|
|
make_wrapper ${PN%-*} "/opt/${PN}/${MY_PN} -vm /opt/openjdk*/bin/java" "" "/opt/${PN}" "/opt/bin"
|
|
|
|
doicon -s 48 plugins/org.eclipse.platform_4.20.0.v20210611-1600/eclipse48.png
|
|
make_desktop_entry eclipse-parallel "Eclipse IDE Parallel ${MY_PV}" eclipse48 "Development;" || die "Failed making desktop entry!"
|
|
}
|