-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Oleg Vinichenko
committed
Sep 18, 2013
1 parent
842ddbb
commit 5b41bb7
Showing
4 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DIST eclipse-java-kepler-R-linux-gtk-4.3.tar.gz 157438253 SHA256 c91225bfc03091f8022ffae777d947afb6ab29bc697a793b674759861ded3843 SHA512 e356f52d07581c96bc23e841f820470b8269ddc3ff30e871db9d9dc42d4a251c6a8ede3ccba2374889e184aaa0733e112408f5e14dcc047cab8f228cd0de3204 WHIRLPOOL 9fd115564b5002f649152a89f35ade77cf01c856b9e8f682853c68732ccc73a863e95235f99495bd7caf49360bcf4e2b1d92338b9d25188c1972f7b316ee7d1c | ||
DIST eclipse-java-kepler-R-linux-gtk-x86_64-4.3.tar.gz 157586568 SHA256 b849fb0e53e9d7c44af472c93bd3ddb936b2b503eb8b242ec5adab1208b34001 SHA512 299046da6a7723f1fe17baca473667f97d400477ed34731072541de48d6a9b7d86505bca145af4e65de78a16d8061f99273c02630de51f6068ff66268cc805a3 WHIRLPOOL d7514c80262270773466eb4816ff9b8c28e5a46a3df8eb578a43765c9ba8f45255ccb874263b83636e5d797f56c82722fb0a740a1fcbd238ec7827e6f77a9c33 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=5 | ||
|
||
inherit eutils versionator | ||
|
||
SR=R$(get_version_component_range 3) | ||
RNAME="kepler" | ||
|
||
SRC_BASE="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/${RNAME}/${SR}/eclipse-java-${RNAME}-${SR}-linux-gtk" | ||
|
||
DESCRIPTION="Eclipse SDK" | ||
HOMEPAGE="http://www.eclipse.org" | ||
SRC_URI=" | ||
amd64? ( ${SRC_BASE}-x86_64.tar.gz&r=1 -> eclipse-java-${RNAME}-${SR}-linux-gtk-x86_64-${PV}.tar.gz ) | ||
x86? ( ${SRC_BASE}.tar.gz&r=1 -> eclipse-java-${RNAME}-${SR}-linux-gtk-${PV}.tar.gz )" | ||
|
||
LICENSE="EPL-1.0" | ||
SLOT="$(get_version_component_range 1-2)" | ||
KEYWORDS="~*" | ||
IUSE="" | ||
|
||
RDEPEND=" | ||
>=virtual/jdk-1.6 | ||
x11-libs/gtk+:2" | ||
|
||
S=${WORKDIR}/eclipse | ||
|
||
src_install() { | ||
local dest=/opt/${PN}-${SLOT} | ||
|
||
insinto ${dest} | ||
doins -r features icon.xpm plugins artifacts.xml p2 eclipse.ini configuration dropins | ||
|
||
exeinto ${dest} | ||
doexe eclipse | ||
|
||
dohtml -r about.html about_files epl-v10.html notice.html readme/* | ||
|
||
cp "${FILESDIR}"/eclipserc-bin "${T}" || die | ||
cp "${FILESDIR}"/eclipse-bin "${T}" || die | ||
sed "s@%SLOT%@${SLOT}@" -i "${T}"/eclipse{,rc}-bin || die | ||
|
||
insinto /etc | ||
newins "${T}"/eclipserc-bin eclipserc-bin-${SLOT} | ||
|
||
newbin "${T}"/eclipse-bin eclipse-bin-${SLOT} | ||
make_desktop_entry "eclipse-bin-${SLOT}" "Eclipse ${PV} (bin)" "${dest}/icon.xpm" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#! /bin/sh | ||
# | ||
# Tiny startup wrapper for Eclipse | ||
# | ||
# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org> | ||
# Copyright (c) 2007-2008, Jean-Noël Rivasseau <elvanor@gentoo.org> | ||
# Copyright (c) 2004-2008, Gentoo Foundation | ||
# | ||
# Licensed under the GNU General Public License, version 2 | ||
# | ||
|
||
SLOT="4.2" | ||
|
||
[ -f "/etc/eclipserc-bin-${SLOT}" ] && . "/etc/eclipserc-bin-${SLOT}" | ||
[ -f "$HOME/gentoo/.eclipserc" ] && . "$HOME/gentoo/.eclipserc" | ||
|
||
ECLIPSE_HOME=${ECLIPSE_HOME:="/opt/eclipse-sdk-bin-4.2"} | ||
ECLIPSE_BIN="${ECLIPSE_HOME}/eclipse" | ||
|
||
if [ ! -x "${ECLIPSE_BIN}" ] ; then | ||
echo "Failed to find executable '${ECLIPSE_BIN}'" > /dev/stderr | ||
exit 1 | ||
fi | ||
|
||
if [ $(id -u) -eq 0 ] ; then | ||
echo "Do not run eclipse as root user! Exiting ..." > /dev/stderr | ||
exit 1 | ||
fi | ||
|
||
case "$(java-config -f)" in | ||
*gcj*) | ||
export JAVA_PKG_CLASSMAP="${ECLIPSE_HOME}/eclipse.gcjdb" | ||
;; | ||
esac | ||
|
||
#eval $(gjl --package "swt-${SLOT}" --get-args) | ||
|
||
[ -n "${ECLIPSE_XMS}" ] && VM_ARGS="${VM_ARGS} -Xms${ECLIPSE_XMS}" | ||
[ -n "${ECLIPSE_XMX}" ] && VM_ARGS="${VM_ARGS} -Xmx${ECLIPSE_XMX}" | ||
[ -n "${ECLIPSE_PERMSIZE}" ] && VM_ARGS="${VM_ARGS} -XX:PermSize=${ECLIPSE_PERMSIZE}" | ||
[ -n "${ECLIPSE_MAX_PERMSIZE}" ] && VM_ARGS="${VM_ARGS} -XX:MaxPermSize=${ECLIPSE_MAX_PERMSIZE}" | ||
|
||
# Fix for JRE 1.5. | ||
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib | ||
|
||
exec "${ECLIPSE_BIN}" -vm $(java-config --java) "$@" "${ECLIPSE_USER_ARGS}" -vmargs ${VM_ARGS} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file specifies some initial Eclipse settings, like memory allowed | ||
# These settings only affect Eclipse startup and overall configuration | ||
# Main Eclipse configuration should be done within Eclipse (with the GUI) | ||
|
||
# Following variables controls the minimal and maximum amounts of memory | ||
# allocated to Eclipse (respectively). | ||
# Increase those numbers if you get OutOfMemory errors. | ||
|
||
ECLIPSE_XMS=128m | ||
ECLIPSE_XMX=256m | ||
|
||
# Following variables controls the minimal and maximum amounts of memory | ||
# allocated to the permanent generation space. | ||
# This space contains data related to all classes. | ||
# Thus, if you use a lot of Eclipse plugins, it is recommended to uncomment | ||
# these variables and even increase it, if you have enough RAM. | ||
# Else you will get crashes related to OutOfMemory in PermGen exceptions. | ||
|
||
#ECLIPSE_PERMSIZE=64m | ||
#ECLIPSE_MAX_PERMSIZE=128m |