diff options
| author | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-07-01 14:18:03 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-07-01 14:18:03 +0000 |
| commit | fb6ffa5e6e2e05267623d09239d10327c35fa8c4 (patch) | |
| tree | de239dab4f4e0097f772d2c02f88c5cd40541d2f /dev-util/eclipse | |
| parent | d8787bc1ff136d4f231e24cc9fcbd89bb3d11842 (diff) | |
| download | srcux-fb6ffa5e6e2e05267623d09239d10327c35fa8c4.tar.gz srcux-fb6ffa5e6e2e05267623d09239d10327c35fa8c4.tar.xz srcux-fb6ffa5e6e2e05267623d09239d10327c35fa8c4.zip | |
Updating liguros repo
Diffstat (limited to 'dev-util/eclipse')
| -rw-r--r--[l---------] | dev-util/eclipse/eclipse-4.10.ebuild | 121 | ||||
| -rw-r--r--[l---------] | dev-util/eclipse/eclipse-4.11.ebuild | 121 | ||||
| -rw-r--r--[l---------] | dev-util/eclipse/eclipse-4.12.ebuild | 121 | ||||
| -rw-r--r--[l---------] | dev-util/eclipse/eclipse-4.13.ebuild | 121 | ||||
| -rw-r--r--[l---------] | dev-util/eclipse/eclipse-4.14.ebuild | 121 | ||||
| -rw-r--r--[l---------] | dev-util/eclipse/eclipse-4.15.ebuild | 121 | ||||
| -rw-r--r--[l---------] | dev-util/eclipse/eclipse-4.5.2.ebuild | 121 | ||||
| -rw-r--r--[l---------] | dev-util/eclipse/eclipse-4.6.3.ebuild | 121 | ||||
| -rw-r--r--[l---------] | dev-util/eclipse/eclipse-4.7.3.ebuild | 121 | ||||
| -rw-r--r--[l---------] | dev-util/eclipse/eclipse-4.8.0.ebuild | 121 | ||||
| -rw-r--r--[l---------] | dev-util/eclipse/eclipse-4.9.0.ebuild | 121 | ||||
| -rw-r--r-- | dev-util/eclipse/eclipse-9999.ebuild | 2 |
12 files changed, 1321 insertions, 12 deletions
diff --git a/dev-util/eclipse/eclipse-4.10.ebuild b/dev-util/eclipse/eclipse-4.10.ebuild index 49b5f8784e4d..868e3c7837b5 120000..100644 --- a/dev-util/eclipse/eclipse-4.10.ebuild +++ b/dev-util/eclipse/eclipse-4.10.ebuild @@ -1 +1,120 @@ -eclipse-9999.ebuild
\ No newline at end of file +# 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" + +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.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" + KEYWORDS="amd64" +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" + KEYWORDS="amd64" +elif [[ ${PV} == 4.13 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-09/R/eclipse-java-2019-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-09-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.12 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-06/R/eclipse-java-2019-06-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-06-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.11 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-03/R/eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-03-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.10 ]]; then + SRC_URI="${SRC_URI_BASE}/2018-12/R/eclipse-java-2018-12-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-12-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.9.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.8.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.7.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.6.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.5.2 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +fi + +pkg_pretend() { + if has network-sandbox ${FEATURES}; then + eerror + eerror "Eclipse ebuild contains many SRC_URI links which spam the" + eerror "network-sandbox log. The emerge will complete successfully," + eerror "however to hide this spam either use FEATURES=-network-sandbox" + eerror "or use env + package.env to permanently disable network-sandbox" + eerror "for this package" + eerror + eerror "see:" + eerror" https://wiki.gentoo.org/wiki//etc/portage/package.env" + eerror + die "network-sandbox is enabled, disable it to proceed"; + 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 +} diff --git a/dev-util/eclipse/eclipse-4.11.ebuild b/dev-util/eclipse/eclipse-4.11.ebuild index 49b5f8784e4d..868e3c7837b5 120000..100644 --- a/dev-util/eclipse/eclipse-4.11.ebuild +++ b/dev-util/eclipse/eclipse-4.11.ebuild @@ -1 +1,120 @@ -eclipse-9999.ebuild
\ No newline at end of file +# 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" + +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.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" + KEYWORDS="amd64" +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" + KEYWORDS="amd64" +elif [[ ${PV} == 4.13 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-09/R/eclipse-java-2019-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-09-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.12 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-06/R/eclipse-java-2019-06-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-06-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.11 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-03/R/eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-03-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.10 ]]; then + SRC_URI="${SRC_URI_BASE}/2018-12/R/eclipse-java-2018-12-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-12-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.9.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.8.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.7.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.6.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.5.2 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +fi + +pkg_pretend() { + if has network-sandbox ${FEATURES}; then + eerror + eerror "Eclipse ebuild contains many SRC_URI links which spam the" + eerror "network-sandbox log. The emerge will complete successfully," + eerror "however to hide this spam either use FEATURES=-network-sandbox" + eerror "or use env + package.env to permanently disable network-sandbox" + eerror "for this package" + eerror + eerror "see:" + eerror" https://wiki.gentoo.org/wiki//etc/portage/package.env" + eerror + die "network-sandbox is enabled, disable it to proceed"; + 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 +} diff --git a/dev-util/eclipse/eclipse-4.12.ebuild b/dev-util/eclipse/eclipse-4.12.ebuild index 49b5f8784e4d..868e3c7837b5 120000..100644 --- a/dev-util/eclipse/eclipse-4.12.ebuild +++ b/dev-util/eclipse/eclipse-4.12.ebuild @@ -1 +1,120 @@ -eclipse-9999.ebuild
\ No newline at end of file +# 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" + +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.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" + KEYWORDS="amd64" +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" + KEYWORDS="amd64" +elif [[ ${PV} == 4.13 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-09/R/eclipse-java-2019-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-09-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.12 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-06/R/eclipse-java-2019-06-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-06-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.11 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-03/R/eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-03-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.10 ]]; then + SRC_URI="${SRC_URI_BASE}/2018-12/R/eclipse-java-2018-12-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-12-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.9.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.8.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.7.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.6.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.5.2 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +fi + +pkg_pretend() { + if has network-sandbox ${FEATURES}; then + eerror + eerror "Eclipse ebuild contains many SRC_URI links which spam the" + eerror "network-sandbox log. The emerge will complete successfully," + eerror "however to hide this spam either use FEATURES=-network-sandbox" + eerror "or use env + package.env to permanently disable network-sandbox" + eerror "for this package" + eerror + eerror "see:" + eerror" https://wiki.gentoo.org/wiki//etc/portage/package.env" + eerror + die "network-sandbox is enabled, disable it to proceed"; + 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 +} diff --git a/dev-util/eclipse/eclipse-4.13.ebuild b/dev-util/eclipse/eclipse-4.13.ebuild index 49b5f8784e4d..868e3c7837b5 120000..100644 --- a/dev-util/eclipse/eclipse-4.13.ebuild +++ b/dev-util/eclipse/eclipse-4.13.ebuild @@ -1 +1,120 @@ -eclipse-9999.ebuild
\ No newline at end of file +# 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" + +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.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" + KEYWORDS="amd64" +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" + KEYWORDS="amd64" +elif [[ ${PV} == 4.13 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-09/R/eclipse-java-2019-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-09-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.12 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-06/R/eclipse-java-2019-06-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-06-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.11 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-03/R/eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-03-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.10 ]]; then + SRC_URI="${SRC_URI_BASE}/2018-12/R/eclipse-java-2018-12-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-12-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.9.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.8.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.7.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.6.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.5.2 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +fi + +pkg_pretend() { + if has network-sandbox ${FEATURES}; then + eerror + eerror "Eclipse ebuild contains many SRC_URI links which spam the" + eerror "network-sandbox log. The emerge will complete successfully," + eerror "however to hide this spam either use FEATURES=-network-sandbox" + eerror "or use env + package.env to permanently disable network-sandbox" + eerror "for this package" + eerror + eerror "see:" + eerror" https://wiki.gentoo.org/wiki//etc/portage/package.env" + eerror + die "network-sandbox is enabled, disable it to proceed"; + 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 +} diff --git a/dev-util/eclipse/eclipse-4.14.ebuild b/dev-util/eclipse/eclipse-4.14.ebuild index 49b5f8784e4d..868e3c7837b5 120000..100644 --- a/dev-util/eclipse/eclipse-4.14.ebuild +++ b/dev-util/eclipse/eclipse-4.14.ebuild @@ -1 +1,120 @@ -eclipse-9999.ebuild
\ No newline at end of file +# 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" + +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.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" + KEYWORDS="amd64" +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" + KEYWORDS="amd64" +elif [[ ${PV} == 4.13 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-09/R/eclipse-java-2019-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-09-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.12 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-06/R/eclipse-java-2019-06-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-06-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.11 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-03/R/eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-03-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.10 ]]; then + SRC_URI="${SRC_URI_BASE}/2018-12/R/eclipse-java-2018-12-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-12-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.9.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.8.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.7.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.6.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.5.2 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +fi + +pkg_pretend() { + if has network-sandbox ${FEATURES}; then + eerror + eerror "Eclipse ebuild contains many SRC_URI links which spam the" + eerror "network-sandbox log. The emerge will complete successfully," + eerror "however to hide this spam either use FEATURES=-network-sandbox" + eerror "or use env + package.env to permanently disable network-sandbox" + eerror "for this package" + eerror + eerror "see:" + eerror" https://wiki.gentoo.org/wiki//etc/portage/package.env" + eerror + die "network-sandbox is enabled, disable it to proceed"; + 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 +} diff --git a/dev-util/eclipse/eclipse-4.15.ebuild b/dev-util/eclipse/eclipse-4.15.ebuild index 49b5f8784e4d..868e3c7837b5 120000..100644 --- a/dev-util/eclipse/eclipse-4.15.ebuild +++ b/dev-util/eclipse/eclipse-4.15.ebuild @@ -1 +1,120 @@ -eclipse-9999.ebuild
\ No newline at end of file +# 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" + +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.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" + KEYWORDS="amd64" +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" + KEYWORDS="amd64" +elif [[ ${PV} == 4.13 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-09/R/eclipse-java-2019-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-09-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.12 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-06/R/eclipse-java-2019-06-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-06-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.11 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-03/R/eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-03-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.10 ]]; then + SRC_URI="${SRC_URI_BASE}/2018-12/R/eclipse-java-2018-12-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-12-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.9.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.8.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.7.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.6.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.5.2 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +fi + +pkg_pretend() { + if has network-sandbox ${FEATURES}; then + eerror + eerror "Eclipse ebuild contains many SRC_URI links which spam the" + eerror "network-sandbox log. The emerge will complete successfully," + eerror "however to hide this spam either use FEATURES=-network-sandbox" + eerror "or use env + package.env to permanently disable network-sandbox" + eerror "for this package" + eerror + eerror "see:" + eerror" https://wiki.gentoo.org/wiki//etc/portage/package.env" + eerror + die "network-sandbox is enabled, disable it to proceed"; + 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 +} diff --git a/dev-util/eclipse/eclipse-4.5.2.ebuild b/dev-util/eclipse/eclipse-4.5.2.ebuild index 49b5f8784e4d..868e3c7837b5 120000..100644 --- a/dev-util/eclipse/eclipse-4.5.2.ebuild +++ b/dev-util/eclipse/eclipse-4.5.2.ebuild @@ -1 +1,120 @@ -eclipse-9999.ebuild
\ No newline at end of file +# 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" + +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.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" + KEYWORDS="amd64" +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" + KEYWORDS="amd64" +elif [[ ${PV} == 4.13 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-09/R/eclipse-java-2019-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-09-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.12 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-06/R/eclipse-java-2019-06-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-06-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.11 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-03/R/eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-03-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.10 ]]; then + SRC_URI="${SRC_URI_BASE}/2018-12/R/eclipse-java-2018-12-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-12-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.9.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.8.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.7.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.6.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.5.2 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +fi + +pkg_pretend() { + if has network-sandbox ${FEATURES}; then + eerror + eerror "Eclipse ebuild contains many SRC_URI links which spam the" + eerror "network-sandbox log. The emerge will complete successfully," + eerror "however to hide this spam either use FEATURES=-network-sandbox" + eerror "or use env + package.env to permanently disable network-sandbox" + eerror "for this package" + eerror + eerror "see:" + eerror" https://wiki.gentoo.org/wiki//etc/portage/package.env" + eerror + die "network-sandbox is enabled, disable it to proceed"; + 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 +} diff --git a/dev-util/eclipse/eclipse-4.6.3.ebuild b/dev-util/eclipse/eclipse-4.6.3.ebuild index 49b5f8784e4d..868e3c7837b5 120000..100644 --- a/dev-util/eclipse/eclipse-4.6.3.ebuild +++ b/dev-util/eclipse/eclipse-4.6.3.ebuild @@ -1 +1,120 @@ -eclipse-9999.ebuild
\ No newline at end of file +# 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" + +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.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" + KEYWORDS="amd64" +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" + KEYWORDS="amd64" +elif [[ ${PV} == 4.13 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-09/R/eclipse-java-2019-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-09-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.12 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-06/R/eclipse-java-2019-06-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-06-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.11 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-03/R/eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-03-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.10 ]]; then + SRC_URI="${SRC_URI_BASE}/2018-12/R/eclipse-java-2018-12-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-12-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.9.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.8.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.7.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.6.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.5.2 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +fi + +pkg_pretend() { + if has network-sandbox ${FEATURES}; then + eerror + eerror "Eclipse ebuild contains many SRC_URI links which spam the" + eerror "network-sandbox log. The emerge will complete successfully," + eerror "however to hide this spam either use FEATURES=-network-sandbox" + eerror "or use env + package.env to permanently disable network-sandbox" + eerror "for this package" + eerror + eerror "see:" + eerror" https://wiki.gentoo.org/wiki//etc/portage/package.env" + eerror + die "network-sandbox is enabled, disable it to proceed"; + 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 +} diff --git a/dev-util/eclipse/eclipse-4.7.3.ebuild b/dev-util/eclipse/eclipse-4.7.3.ebuild index 49b5f8784e4d..868e3c7837b5 120000..100644 --- a/dev-util/eclipse/eclipse-4.7.3.ebuild +++ b/dev-util/eclipse/eclipse-4.7.3.ebuild @@ -1 +1,120 @@ -eclipse-9999.ebuild
\ No newline at end of file +# 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" + +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.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" + KEYWORDS="amd64" +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" + KEYWORDS="amd64" +elif [[ ${PV} == 4.13 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-09/R/eclipse-java-2019-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-09-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.12 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-06/R/eclipse-java-2019-06-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-06-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.11 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-03/R/eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-03-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.10 ]]; then + SRC_URI="${SRC_URI_BASE}/2018-12/R/eclipse-java-2018-12-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-12-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.9.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.8.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.7.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.6.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.5.2 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +fi + +pkg_pretend() { + if has network-sandbox ${FEATURES}; then + eerror + eerror "Eclipse ebuild contains many SRC_URI links which spam the" + eerror "network-sandbox log. The emerge will complete successfully," + eerror "however to hide this spam either use FEATURES=-network-sandbox" + eerror "or use env + package.env to permanently disable network-sandbox" + eerror "for this package" + eerror + eerror "see:" + eerror" https://wiki.gentoo.org/wiki//etc/portage/package.env" + eerror + die "network-sandbox is enabled, disable it to proceed"; + 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 +} diff --git a/dev-util/eclipse/eclipse-4.8.0.ebuild b/dev-util/eclipse/eclipse-4.8.0.ebuild index 49b5f8784e4d..868e3c7837b5 120000..100644 --- a/dev-util/eclipse/eclipse-4.8.0.ebuild +++ b/dev-util/eclipse/eclipse-4.8.0.ebuild @@ -1 +1,120 @@ -eclipse-9999.ebuild
\ No newline at end of file +# 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" + +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.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" + KEYWORDS="amd64" +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" + KEYWORDS="amd64" +elif [[ ${PV} == 4.13 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-09/R/eclipse-java-2019-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-09-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.12 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-06/R/eclipse-java-2019-06-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-06-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.11 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-03/R/eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-03-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.10 ]]; then + SRC_URI="${SRC_URI_BASE}/2018-12/R/eclipse-java-2018-12-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-12-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.9.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.8.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.7.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.6.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.5.2 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +fi + +pkg_pretend() { + if has network-sandbox ${FEATURES}; then + eerror + eerror "Eclipse ebuild contains many SRC_URI links which spam the" + eerror "network-sandbox log. The emerge will complete successfully," + eerror "however to hide this spam either use FEATURES=-network-sandbox" + eerror "or use env + package.env to permanently disable network-sandbox" + eerror "for this package" + eerror + eerror "see:" + eerror" https://wiki.gentoo.org/wiki//etc/portage/package.env" + eerror + die "network-sandbox is enabled, disable it to proceed"; + 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 +} diff --git a/dev-util/eclipse/eclipse-4.9.0.ebuild b/dev-util/eclipse/eclipse-4.9.0.ebuild index 49b5f8784e4d..868e3c7837b5 120000..100644 --- a/dev-util/eclipse/eclipse-4.9.0.ebuild +++ b/dev-util/eclipse/eclipse-4.9.0.ebuild @@ -1 +1,120 @@ -eclipse-9999.ebuild
\ No newline at end of file +# 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" + +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.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" + KEYWORDS="amd64" +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" + KEYWORDS="amd64" +elif [[ ${PV} == 4.13 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-09/R/eclipse-java-2019-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-09-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.12 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-06/R/eclipse-java-2019-06-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-06-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.11 ]]; then + SRC_URI="${SRC_URI_BASE}/2019-03/R/eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2019-03-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.10 ]]; then + SRC_URI="${SRC_URI_BASE}/2018-12/R/eclipse-java-2018-12-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-12-R-linux-gtk-x86_64-${PV}.tar.gz" + KEYWORDS="amd64" +elif [[ ${PV} == 4.9.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/2018-09/R/eclipse-java-2018-09-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-2018-09-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.8.0 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/photon/R/eclipse-java-photon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-photon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.7.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/oxygen/R/eclipse-java-oxygen-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-oxygen-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.6.3 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/neon/R/eclipse-java-neon-R-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-neon-R-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +elif [[ ${PV} == 4.5.2 ]]; then + SRC_URI=" + x86? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-${PV}.tar.gz" ) + amd64? ( "${SRC_URI_BASE}/mars/2/eclipse-java-mars-2-linux-gtk-x86_64.tar.gz&r=1 -> eclipse-java-mars-2-linux-gtk-x86_64-${PV}.tar.gz" ) + " + KEYWORDS="x86 amd64" +fi + +pkg_pretend() { + if has network-sandbox ${FEATURES}; then + eerror + eerror "Eclipse ebuild contains many SRC_URI links which spam the" + eerror "network-sandbox log. The emerge will complete successfully," + eerror "however to hide this spam either use FEATURES=-network-sandbox" + eerror "or use env + package.env to permanently disable network-sandbox" + eerror "for this package" + eerror + eerror "see:" + eerror" https://wiki.gentoo.org/wiki//etc/portage/package.env" + eerror + die "network-sandbox is enabled, disable it to proceed"; + 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 +} diff --git a/dev-util/eclipse/eclipse-9999.ebuild b/dev-util/eclipse/eclipse-9999.ebuild index 836202571e13..868e3c7837b5 100644 --- a/dev-util/eclipse/eclipse-9999.ebuild +++ b/dev-util/eclipse/eclipse-9999.ebuild @@ -5,7 +5,7 @@ EAPI=6 inherit gnome2-utils xdg DESCRIPTION="Eclipse IDE" -HOMEPAGE="http://www.eclipse.org" +HOMEPAGE="https://www.eclipse.org" LICENSE="EPL-1.0" SLOT="0" |
