summaryrefslogtreecommitdiff
path: root/dev-util/eclipse/eclipse-4.16.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net>2020-07-06 18:53:06 +0000
committerLiguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net>2020-07-06 18:53:06 +0000
commit9f5bb0272cd1d7eaae6662651291c7fb4e6110a5 (patch)
tree9a0264f8bb50e6ffa001dfae329d99605154768f /dev-util/eclipse/eclipse-4.16.ebuild
parentb1f6e4413ec80fedfd7e91a643e5c7849ef7395d (diff)
downloadsrcux-9f5bb0272cd1d7eaae6662651291c7fb4e6110a5.tar.gz
srcux-9f5bb0272cd1d7eaae6662651291c7fb4e6110a5.tar.xz
srcux-9f5bb0272cd1d7eaae6662651291c7fb4e6110a5.zip
Updating liguros repo
Diffstat (limited to 'dev-util/eclipse/eclipse-4.16.ebuild')
-rw-r--r--dev-util/eclipse/eclipse-4.16.ebuild63
1 files changed, 63 insertions, 0 deletions
diff --git a/dev-util/eclipse/eclipse-4.16.ebuild b/dev-util/eclipse/eclipse-4.16.ebuild
new file mode 100644
index 000000000000..c3b3980afad9
--- /dev/null
+++ b/dev-util/eclipse/eclipse-4.16.ebuild
@@ -0,0 +1,63 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit gnome2-utils xdg
+
+DESCRIPTION="Eclipse IDE"
+HOMEPAGE="https://www.eclipse.org"
+LICENSE="EPL-1.0"
+
+KEYWORDS="amd64"
+SLOT="0"
+
+BDEPEND="
+ app-arch/tar
+"
+
+RDEPEND="
+ !dev-util/eclipse-enterprise
+ virtual/jdk
+ x11-libs/gtk+:2
+"
+
+RESTRICT="strip"
+
+S=${WORKDIR}/eclipse
+
+SRC_URI_BASE="https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release"
+
+if [[ ${PV} == 4.16 ]]; then
+ SRC_URI="${SRC_URI_BASE}/2020-03/R/eclipse-java-2020-03-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2020-06-R-linux-gtk-x86_64-${PV}.tar.gz"
+elif [[ ${PV} == 4.15 ]]; then
+ SRC_URI="${SRC_URI_BASE}/2020-03/R/eclipse-java-2020-03-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2020-03-R-linux-gtk-x86_64-${PV}.tar.gz"
+elif [[ ${PV} == 4.14 ]]; then
+ SRC_URI="${SRC_URI_BASE}/2019-12/R/eclipse-java-2019-12-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-12-R-linux-gtk-x86_64-${PV}.tar.gz"
+fi
+
+src_install() {
+
+ insinto "/opt/${PN}"
+ doins -r *
+
+ fperms 755 /opt/${PN}/${PN}
+
+ dosym ../../opt/${PN}/${PN} /usr/bin/${PN}
+
+ cp "${FILESDIR}/eclipse.conf" "${T}"
+ insinto "/etc"
+ newins "${T}/eclipse.conf" "eclipse.conf"
+
+ newicon "icon.xpm" "${PN}.png"
+ make_desktop_entry "eclipse" "Eclipse" "${PN}" "Development;"
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_pkg_postrm
+ gnome2_icon_cache_update
+}