Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-util/eclipse-sdk
# Copyright 2003-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/ChangeLog,v 1.147 2008/08/05 08:07:53 elvanor Exp $
*eclipse-sdk-3.4-r2 (05 Aug 2008)
05 Aug 2008; Jean-Noël Rivasseau
+files/3.4/eclipse-3.4, +files/3.4/eclipse_build-libs.diff,
+files/3.4/eclipserc, +files/3.4/ant-osgi-manifest.mf,
+files/3.4/eclipse_String.compareTo.diff,
+files/3.4/eclipse_buildfix-pde.diff,
+files/3.4/fedora/eclipse-libupdatebuild2.patch,
+files/3.4/fedora/eclipse-pde.build-add-package-build.patch,
+eclipse-sdk-3.4-r2.ebuild:
Eclipse 3.4 (Ganymede) version bump (moved from overlay).
01 Aug 2008; Jean-Noël Rivasseau
eclipse-sdk-3.3.1.1-r2.ebuild:
Fix for #233574, slotted ecj dependency.
*eclipse-sdk-3.3.1.1-r2 (28 Jul 2008)
28 Jul 2008; Jean-Noël Rivasseau
+eclipse-sdk-3.3.1.1-r2.ebuild:
Changed dependency on icu4j to SLOT=0, now that icu4j-4.0 is in tree.
17 Apr 2008; Vlastimil Babka
files/3.3/eclipse-3.3-r1:
Add 1.6.0.06 to the workaround in startup scripts for bug #215150. No
revbump, remerge eclipse if you hit the bug.
10 Apr 2008; Markus Meier
amd64/x86 stable, bug #215150
08 Apr 2008; Vlastimil Babka
eclipse-sdk-3.3.1.1.ebuild, eclipse-sdk-3.3.1.1-r1.ebuild:
Force swt to
*eclipse-sdk-3.3.1.1-r1 (06 Apr 2008)
06 Apr 2008; Vlastimil Babka
+files/3.3/eclipse-3.3-r1, +eclipse-sdk-3.3.1.1-r1.ebuild:
Revbump for workaround of bug #215150 in the eclipse startup script. Also
get MOZILLA_FIVE_HOME variable from swt's package.env (bug #214785) - this
was by mistake already applied to 3.3.1.1 when locking swt dep (see below)
but only revbump gets this to everyone.
*eclipse-sdk-3.2.1-r3 (06 Apr 2008)
06 Apr 2008; Vlastimil Babka
+eclipse-sdk-3.2.1-r3.ebuild:
Revbump for workaround of bug #215150 in the eclipse startup script.
03 Apr 2008; Vlastimil Babka
eclipse-sdk-3.3.1.1.ebuild:
Lock swt dep to slot 3.
06 Feb 2008; Vlastimil Babka
eclipse-sdk-3.3.1.1.ebuild:
Update commons-logging dependency to pull osgi-aware revision. Fixes one
instance of bug #209087.
24 Jan 2008; Vlastimil Babka
eclipse-sdk-3.3.1.1.ebuild:
Replace sun-j2me-bin dependency with new opensource cldc-api package, bug
#207270.
23 Jan 2008; Jean-Noël Rivasseau
files/3.3/eclipse-3.3:
Fix for -Djava.library.path not found on Sun JDK 1.5 and amd64 (at least).
*eclipse-sdk-3.3.1.1 (21 Jan 2008)
21 Jan 2008; Jean-Noël Rivasseau
+files/3.3/ant-osgi-manifest.mf, +files/3.3/disable-jdt-tool.diff,
+files/3.3/eclipse-workbench-miscompile-workaround.diff,
+files/3.3/eclipse-3.3, +files/3.3/eclipserc,
+files/3.3/disable-jdk6.diff, +files/3.3/disable-swt.diff,
+files/3.3/eclipse-jsch-api-update.patch,
+files/3.3/fedora/eclipse-fileinitializer.patch,
+files/3.3/fedora/eclipse-libupdatebuild2.patch,
+files/3.3/fedora/eclipse-pde.build-add-package-build.patch,
+files/3.3/launcher_double-free.diff, +files/3.3/set-java-home.diff,
eclipse-sdk-3.2.1-r2.ebuild, +eclipse-sdk-3.3.1.1.ebuild:
Version bump to Eclipse 3.3.1.1.
17 Jan 2008; Petteri Räty
eclipse-sdk-3.2.1-r2.ebuild:
USE EAPI 1 slot deps to only match slot 1 of dev-java/lucene.
02 Jan 2008; Vlastimil Babka
-eclipse-sdk-3.2.1-r1.ebuild, eclipse-sdk-3.2.1-r2.ebuild:
Remove direct dependencies to dev-java/ant-tasks
15 Jun 2007; Tobias Scherbaum
eclipse-sdk-3.2.1-r2.ebuild:
ppc stable, bug #176856
28 May 2007; Vlastimil Babka
-files/eclipse-3, -files/04-amd64-gtk.patch, -files/eclipse-3.0.2,
-files/eclipse-3.1, -files/05-mozilla-xpcom.patch,
-files/eclipse-3.1.desktop, -files/03-motif-java1.5-build.patch,
-files/eclipse-3.desktop, -files/06-path-fixups.patch, -files/eclipse-2,
-files/eclipse.1, -eclipse-sdk-3.0.1-r3.ebuild,
-eclipse-sdk-3.0.2-r1.ebuild, -eclipse-sdk-3.1.2-r3.ebuild:
Cleanup old versions after month in package.mask.
12 May 2007; William L. Thomson Jr.
eclipse-sdk-3.2.1-r2.ebuild:
Stable on amd64, bug #176856
05 May 2007; Andrej Kacian
Stable on x86, bug #176856.
04 May 2007; Vlastimil Babka
eclipse-sdk-3.2.1-r2.ebuild:
Micromanage ant-tasks dep to prevent bug #177079.
*eclipse-sdk-3.2.1-r2 (30 Apr 2007)
30 Apr 2007; Vlastimil Babka
eclipse-sdk-3.2.1-r1.ebuild, +eclipse-sdk-3.2.1-r2.ebuild:
Fix bug #176596 for 3.2.1-r1; revbump that depends on split-ant and links
whole ant plugin lib dir to /usr/share/ant/lib instead of calling jar-from.
25 Apr 2007; Petteri Räty
-eclipse-sdk-3.2.ebuild, -eclipse-sdk-3.2.1.ebuild:
Cleanup.
19 Apr 2007; Petteri Räty
files/digest-eclipse-sdk-3.1.2-r3, Manifest:
Fix 3.1.2 digest for bug #170143
12 Apr 2007;
Stable on amd64 wrt bug 173245
07 Apr 2007; Joseph Jezak
Marked ppc stable for bug #173245.
06 Apr 2007; Christian Faulhammer
eclipse-sdk-3.2.1-r1.ebuild:
stable x86, bug 173245
05 Apr 2007; Petteri Räty
Fix sourcing of ${HOME}/.eclipserc.
03 Apr 2007; Joshua Nichols
Added java to metadata.
05 Feb 2007; Christian Faulhammer
eclipse-sdk-3.2.ebuild:
stable x86; bug #143325
28 Jan 2007; Petteri Räty
eclipse-sdk-3.2.1-r1.ebuild:
Apply a quick fix for bug #163969. Still need to find out why popd and push
have changed behaviour.
26 Oct 2006; Vlastimil Babka
-eclipse-sdk-3.0.1-r2.ebuild, -eclipse-sdk-3.0.2.ebuild:
Remove ebuilds using deprecated mozilla USE flags for bug #137665.
08 Oct 2006; Joshua Nichols
eclipse-sdk-3.2.1-r1.ebuild:
Made branded splash depend on branding use flag.
*eclipse-sdk-3.2.1-r1 (08 Oct 2006)
08 Oct 2006; Joshua Nichols
+eclipse-sdk-3.2.1-r1.ebuild:
Updated to use patchset from fedora. New splash screen! See bug #150314.
*eclipse-sdk-3.2.1 (01 Oct 2006)
01 Oct 2006; Joshua Nichols
Version bump with help from Federico Fissore
28 Sep 2006; Joshua Nichols
eclipse-sdk-3.0.1-r3.ebuild:
Added missing java-pkg inherit, for bug #147101.
06 Jul 2006; Joshua Nichols
eclipse-sdk-3.0.1-r3.ebuild:
Fixed jdk dep for 3.0.1.
*eclipse-sdk-3.0.2-r1 (06 Jul 2006)
*eclipse-sdk-3.0.1-r3 (06 Jul 2006)
06 Jul 2006; Joshua Nichols
+eclipse-sdk-3.0.1-r3.ebuild, +eclipse-sdk-3.0.2-r1.ebuild:
Disabling mozilla support in 3.0.x for bug #137665
06 Jul 2006; Joshua Nichols
eclipse-sdk-3.0.1-r2.ebuild:
Fixed JDK dependency for 3.0.1.
06 Jul 2006; Joshua Nichols
-eclipse-sdk-3.1.1.ebuild, -eclipse-sdk-3.1.2-r2.ebuild:
Pruning old revisions with SLOT='3.1'
*eclipse-sdk-3.2 (06 Jul 2006)
*eclipse-sdk-3.1.2-r3 (06 Jul 2006)
06 Jul 2006; Joshua Nichols
eclipse-sdk-3.1.2-r2.ebuild, +eclipse-sdk-3.1.2-r3.ebuild,
-eclipse-sdk-3.2_rc7-r1.ebuild, +eclipse-sdk-3.2.ebuild:
Revision bump for 3.1.2 to disable embedded browser support (bug #137665).
Version bump to 3.2 (bug #139191).
*eclipse-sdk-3.2_rc7-r1 (04 Jul 2006)
04 Jul 2006; Joshua Nichols
+eclipse-sdk-3.2_rc7-r1.ebuild:
Version bump. Uses seamonkey instead of gecko-sdk. bug #112537
03 Jul 2006; Petteri Räty
-files/01-distribute_ant_target-2.1.patch,
-files/02-konqueror_help_browser-2.1.patch,
-files/01-distribute_ant_target-3.0.patch, -eclipse-sdk-2.1.3-r5.ebuild,
-eclipse-sdk-3.0.0-r3.ebuild:
Removed old versions and patches. Fixes bug #138728.
*eclipse-sdk-3.1.2-r2 (20 Apr 2006)
20 Apr 2006; Joshua Nichols
-eclipse-sdk-3.1.2-r1.ebuild, +eclipse-sdk-3.1.2-r2.ebuild:
Changed source and doc back to nosrc and nodoc
19 Apr 2006; Joshua Nichols
-eclipse-sdk-3.1-r1.ebuild, -eclipse-sdk-3.1.2.ebuild:
Cleaning out some ebuilds.
*eclipse-sdk-3.1.2-r1 (18 Apr 2006)
18 Apr 2006; Joshua Nichols
+eclipse-sdk-3.1.2-r1.ebuild:
Loads of cleanup. Now compiles against gecko-sdk, instead of firefox or
mozilla.
*eclipse-sdk-3.1.2 (17 Apr 2006)
17 Apr 2006; Dominik Stadler
+eclipse-sdk-3.1.2.ebuild:
Add 3.1.2, fixes Bug 120723, also regenerate some of digest-files with
RMD160 and SHA256 digests and update copyright
12 Nov 2005; Thomas Matthijs
remove broken ebuild
*eclipse-sdk-3.1.1 (09 Nov 2005)
09 Nov 2005; Thomas Matthijs
version bump
15 Aug 2005; Karl Trygve Kalleberg
eclipse-sdk-3.1-r1.ebuild:
Fixes #100360.
24 Jul 2005; Karl Trygve Kalleberg
eclipse-sdk-3.1-r1.ebuild:
Fixed some platform-breaking settings.
*eclipse-sdk-3.1-r1 (23 Jul 2005)
23 Jul 2005; Karl Trygve Kalleberg
+eclipse-sdk-3.1-r1.ebuild:
Dropped gcj support altogether. Cleaner usage of ant, which is compatible
with 1.6.5.
04 Jul 2005; Karl Trygve Kalleberg
-eclipse-sdk-3.1_rc1.ebuild, eclipse-sdk-3.1.ebuild:
Removed rc1, since it requires gcc 4.0
04 Jul 2005; Karl Trygve Kalleberg
eclipse-sdk-3.1.ebuild:
Removed gcj flag.
03 Jul 2005; Karl Trygve Kalleberg
-eclipse-sdk-3.0.1.ebuild, -eclipse-sdk-3.0.1-r1.ebuild,
-eclipse-sdk-3.1_pre1.ebuild, -eclipse-sdk-3.1_pre2.ebuild,
-eclipse-sdk-3.1_pre3.ebuild, -eclipse-sdk-3.1_pre4.ebuild,
-eclipse-sdk-3.1_pre5.ebuild, -eclipse-sdk-3.1_pre6.ebuild,
-eclipse-sdk-3.1_pre6-r1.ebuild, -eclipse-sdk-3.1_pre7.ebuild:
Removed old versions.
*eclipse-sdk-3.1 (03 Jul 2005)
03 Jul 2005; Karl Trygve Kalleberg
+files/06-path-fixups.patch, +eclipse-sdk-3.1.ebuild:
New upstream release. Adapted ebuild submitted by Mikko Tiihonen
19 May 2005; Sven Wegener
eclipse-sdk-3.1_pre6-r1.ebuild:
Removed * postfix from >= dependency.
*eclipse-sdk-3.1_rc1 (01 Jun 2005)
01 Jun 2005; Karl Trygve Kalleberg
+eclipse-sdk-3.1_rc1.ebuild:
New upstream release.
*eclipse-sdk-3.1_pre7 (18 May 2005)
18 May 2005; Karl Trygve Kalleberg
+eclipse-sdk-3.1_pre7.ebuild:
New upstream release. Fixes #92606.
*eclipse-sdk-3.1_pre6-r1 (18 May 2005)
18 May 2005; Karl Trygve Kalleberg
+eclipse-sdk-3.1_pre6-r1.ebuild:
Partial fix for #91607.
*eclipse-sdk-3.1_pre6-r1 (14 May 2005)
14 May 2005; Karl Trygve Kalleberg
+eclipse-sdk-3.1_pre6-r1.ebuild:
Added in support for the IBM JDK again.
05 May 2005; Sven Wegener
eclipse-sdk-3.1_pre4.ebuild, eclipse-sdk-3.1_pre5.ebuild,
eclipse-sdk-3.1_pre6.ebuild:
Removed * postfix from <, <=, >= and > dependencies.
21 Apr 2005; Michael Hanselmann
eclipse-sdk-3.0.1-r2.ebuild:
Stable on ppc.
13 Apr 2005; Thomas Matthijs
eclipse-sdk-3.1_pre6.ebuild:
fix bug 88961
*eclipse-sdk-3.0.2 (08 Apr 2005)
08 Apr 2005; Karl Trygve Kalleberg
+files/eclipse-3.0.2, +files/05-mozilla-xpcom.patch,
+eclipse-sdk-3.0.2.ebuild, eclipse-sdk-3.1_pre6.ebuild:
Patches and most ebuild modifications provided by Mikko Tiihonen
*eclipse-sdk-3.1_pre6 (06 Apr 2005)
06 Apr 2005; Karl Trygve Kalleberg
+eclipse-sdk-3.1_pre6.ebuild:
New upstream release. Disabled Motif and KDE support, since this is
deprecated upstream. Can now be bootstrapped with jikes. In theory,
eclipse-sdk should now be compilable on any VM which provide the JNI
headers, using Jikes.
23 Mar 2005; Seemant Kulleen
eclipse-sdk-2.1.3-r5.ebuild, eclipse-sdk-3.0.0-r3.ebuild,
eclipse-sdk-3.0.1.ebuild, eclipse-sdk-3.0.1-r1.ebuild,
eclipse-sdk-3.0.1-r2.ebuild, eclipse-sdk-3.1_pre1.ebuild,
eclipse-sdk-3.1_pre2.ebuild, eclipse-sdk-3.1_pre3.ebuild,
eclipse-sdk-3.1_pre4.ebuild, eclipse-sdk-3.1_pre5.ebuild:
change dep from net-www/mozilla to www-client/mozilla
03 Mar 2005; Karl Trygve Kalleberg
eclipse-sdk-3.1_pre5.ebuild:
Dropped amd64 as it doesn't compile there anymore. See #75806.
*eclipse-sdk-3.1_pre5a (21 Feb 2005)
21 Feb 2005; Karl Trygve Kalleberg
+eclipse-sdk-3.1_pre5a.ebuild:
New upstream version. Portage doesn't allow a sensible version name on this
release (M5a), so I've just called it pre5.
13 Feb 2005; Karl Trygve Kalleberg
eclipse-sdk-3.1_pre4.ebuild:
Added bail-out on attempt to compile with a 1.5.x VM. Fixes #72519.
04 Feb 2005; Karl Trygve Kalleberg
eclipse-sdk-3.1_pre4.ebuild:
Added proper build id. Updated to work only with Mozilla >=1.7.x series
(only tested with 1.7.5).
03 Feb 2005; Karl Trygve Kalleberg
eclipse-sdk-3.0.1-r2.ebuild:
Marked stable on x86, so we'll see what happens.
01 Feb 2005; Karl Trygve Kalleberg
eclipse-sdk-3.1_pre4.ebuild:
Temporarily dropped firefox support.
28 Jan 2005; Gregorio Guidi
eclipse-sdk-3.1_pre4.ebuild:
Avoid installing things in /usr/kde.
*eclipse-sdk-3.1_pre4 (24 Dec 2004)
24 Dec 2004; Karl Trygve Kalleberg
+eclipse-sdk-3.1_pre4.ebuild:
New upstream release. Fixes #75440.
11 Dec 2004;
stable on ppc
26 Nov 2004; Karl Trygve Kalleberg
files/eclipse-3.1:
Using @ instead of *, so paths with spaces act sanely.
24 Nov 2004; Karl Trygve Kalleberg
-eclipse-sdk-2.1.3-r3.ebuild, eclipse-sdk-2.1.3-r5.ebuild:
Removed the huge 00-refactor_rename.patch, fixes #72369. Also removed old
revisions and marked -r5 stable on ppc, x86 and sparc.
24 Nov 2004; Karl Trygve Kalleberg
Added link files, fixes #72367.
*eclipse-sdk-3.0.1-r2 (16 Nov 2004)
16 Nov 2004; Karl Trygve Kalleberg
+eclipse-sdk-3.0.1-r2.ebuild:
Added amd64 patch from #65962, thanks to Dan
*eclipse-sdk-3.1_pre3 (06 Nov 2004)
06 Nov 2004; Karl Trygve Kalleberg
eclipse-sdk-3.1_pre3.ebuild:
New upstream version.
*eclipse-sdk-3.1_pre1 (31 Oct 2004)
31 Oct 2004; Karl Trygve Kalleberg
eclipse-sdk-3.1_pre2.ebuild:
New upstream version. Merged rewrite of pre1 with pauldv's pre2
ebuild. Fixes #66813.
09 Oct 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.1-r1.ebuild:
Fixed one motif build problem.
09 Oct 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.1-r1.ebuild:
Rewrote and cleaned up a bit. Hopefully fixes #66810, #66822.
*eclipse-sdk-3.0.1-r1 (07 Oct 2004)
07 Oct 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.1-r1.ebuild:
Added support for multiple KDEs. Added amd64 patch by
Dan
23 Sep 2004; Karl Trygve Kalleberg
eclipse-sdk-3.1_pre1.ebuild:
Masked. Added notice about conservative bug reporting.
*eclipse-sdk-3.0.1 (18 Sep 2004)
18 Sep 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.1.ebuild:
New upstream version. Removed jikes useflag.
16 Sep 2004;
added a warning about memory requirements in ppc
*eclipse-sdk-3.1_pre1 (08 Sep 2004)
08 Aug 2004; Karl Trygve Kalleberg
eclipse-sdk-3.1_pre1.ebuild, files/eclipse-3.1, files/eclipse-3.1.desktop:
New upstream version.
22 Aug 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0-r3.ebuild, eclipse-sdk-2.1.3-r5.ebuild:
Added dependency on app-arch/zip, fixing #60199. Patch by
Jose Gonzalez Gomez
22 Aug 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0-r3.ebuild, eclipse-sdk-2.1.3-r5.ebuild:
Added the graphics.jar to the IBM JDK classpath. Ugh, when will
we learn;) Should fix #59673. Added quiet option to and in 2.1.3-r5,
and early-out on errors. Removed xml.jar as classpath variable, as it
breaks the compilation.
09 Aug 2004;
added the xml.jar to the ppc classpath
02 Aug 2004;
added ~ppc keyword
01 Aug 2004; Karl Trygve Kalleberg
eclipse-2.1.3-r5.ebuild: Fixed || () problems, see #56840. Removed old
revisions of 2.1.3 and 3.0.0.
30 Jul 2004;
eclipse-sdk-3.0.0-r3.ebuild, eclipse-sdk-3.0.0.ebuild:
added the xml.jar for ppc to bootclasspath
*eclipse-sdk-3.0.0-r3 (30 Jul 2004)
30 Jul 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0-r3.ebuild: Trying to get it working on PPC.
*eclipse-sdk-3.0.0-r2 (27 Jul 2004)
27 Jul 2004; Karl Trygve Kalleberg
eclipse-sdk-2.1.3-r5.ebuild:
Added manpage.
*eclipse-sdk-2.1.3-r5 (27 Jul 2004)
27 Jul 2004; Karl Trygve Kalleberg
eclipse-sdk-2.1.3-r5.ebuild:
Added manpage.
*eclipse-sdk-3.0.0-r1 (21 Jul 2004)
21 Jul 2004; Karl Trygve Kalleberg
Fixed mozilla embedding problem, #56516. Fixed dependency issue, #56840.
17 Jul 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_pre9.ebuild, eclipse-sdk-3.0.0_rc1.ebuild,
eclipse-sdk-3.0.0_rc2.ebuild, eclipse-sdk-3.0.0_rc3.ebuild:
Removed.
*eclipse-sdk-2.1.3-r4 (09 Jul 2004)
09 Jul 2004; Karl Trygve Kalleberg
eclipse-sdk-2.1.3-r4.ebuild: Reworked use flags so that only
one frontend is actually compiled when multiple are selected,
fixes #55162.
07 Jul 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0.ebuild: Added patch to allow compiling the
Motif frontend with Tiger, sorry, Java 1.5, sorry, 5.0.
*eclipse-sdk-3.0.0 (04 Jul 2004)
04 Jul 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0.ebuild: New upstream version. Added block
against media-fonts/unifont, at the request of Billy Biggs
from Eclipse.
29 Jun 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_rc3.ebuild: Added temporary check that at least
one of motif or gtk has been specified in the USE flags. Should
rather have a default fallback. Fixes #55200.
22 Jun 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_rc1.ebuild, eclipse-sdk-3.0.0_rc2.ebuild,
eclipse-sdk-3.0.0_rc3.ebuild: Fixes #54723, thanks to Bert Geens
22 Jun 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_pre8-r3.ebuild: Removed.
22 Jun 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_rc3.ebuild: New upstream version.
22 Jun 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_rc2.ebuild, eclipse-sdk-3.0.0_pre9: Fixes
#54407, thanks to Alexander Gretencord
21 Jun 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_rc2.ebuild: New upstream version.
17 Jun 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0._rc1.ebuild: Fixed minor bug preventing motif from
working.
17 Jun 2004; Karl Trygve Kalleberg
eclipse-sdk-2.1.3-r3.ebuild: Added back gtk+ 2.4 workaround, fixes
#53906.
12 Jun 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_rc1.ebuild: Added dep for libgnomeui, fixes #53690.
07 Jun 2004; Ferris McCormick
eclipse-sdk-2.1.3-r3.ebuild:
Marked stable on sparc.
*eclipse-sdk-3.0.0_rc1 (06 Jun 2004)
04 Jun 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_rc1.ebuild, eclipse-2.1.3-r2.ebuild: New upstream
version. Fixes #52760. Temporarily removed Jikes as a compiler for
both these versions, as it simply doesn't compile it.
04 Jun 2004; Karl Trygve Kalleberg
eclipse-sdk-2.1.3-r3.ebuild: Added jikes as compile-time dep, since
it appears to consistently compile with jikes now.
03 Jun 2004; Karl Trygve Kalleberg
eclipse-sdk-2.1.3-r3.ebuild: Marked as stable on x86, as it improves
markedly on previous versions anyway.
02 Jun 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_pre9.ebuild, eclipse-sdk-3.0.0_pre8-r3.ebuild: Added
fugly workaround to keep repoman happy.
28 May 2004; Karl Trygve Kalleberg
eclipse-sdk-2.1.1.ebuild, eclipse-sdk-2.1.2-r1.ebuild, files/eclipse,
files/eclipse.desktop: Removed these, as 2.1.3 appears more stable and
works on the same platforms.
28 May 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_pre9.ebuild, eclipse-sdk-3.0.0_pre8-r3.ebuild: Added check
to ensure it's only compiled with 1.4.2 JDKs and newer. Works with
blackdown-jdk-1.4.2_rc1. Removed eclipse-sdk-3.0.0_pre8-r2.ebuild
*eclipse-sdk-3.0.0_pre9 (28 May 2004)
28 May 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_pre9.ebuild: New upstream release. Help no longer works.
Does not compile with blackdown, only tested successfully with
sun-jdk. Fixes #51845.
26 May 2004; Ferris McCormick
eclipse-sdk-2.1.3-r3.ebuild:
Add ~sparc keyword.
*eclipse-sdk-3.0.0_pre8-r3 (26 May 2004)
26 May 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_pre8-r3.ebuild eclipse-sdk-2.1.3-r3: Fixes #51953. Adds
initial sparc support to 2.1.3-r3, not added ~sparc yet.
25 May 2004; Karl Trygve Kalleberg
eclipse-sdk-2.1.1.ebuild, eclipse-sdk-2.1.2-r1.ebuild,
files/eclipse.desktop, eclipse-3.0.0_pre8-r2: Removed.
19 May 2004; Luca Barbato
Marked ~ppc, added -o to unzip to avoid interactivity
18 May 2004; Karl Trygve Kalleberg
eclipse-sdk-2.1.3-r3.ebuild: Added back the refactor-rename patch.
*eclipse-sdk-3.0.0_pre8-r2 (18 May 2004)
17 May 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_pre8-r2.ebuild, files/01-distribute_ant_target-3.0.patch,
files/02-konqueror_help_browser-3.0.patch: Reworked build system to better
support KDE and version all installed plugins properly. The update manager
behaves much better.
Removed eclipse-sdk-2.1.3, eclipse-sdk-2.1.3-r1, eclipse-sdk-2.1.3-r2,
eclipse-sdk-3.0.0_pre5, eclipse-sdk-3.0.0_pre8, eclipse-sdk-3.0.0_pre8-r1,
eclipse-sdk-2.1, eclipse-2.1.2 and cruft in files/.
*eclipse-sdk-2.1.3-r3 (16 May 2004)
16 May 2004; Karl Trygve Kalleberg
eclipse-sdk-2.1.3-r3.ebuild: Added install.ini to /usr/lib/eclipse-2/, fixing
the annoying "Completing install..." splash, #26174. Doesn't compile GNOME
in motif frontend, fixes #50828 for this version. Added optional dep on
mozilla, since an alternative browser can easily be specified. Uses
konqueror by default if kde is in USE.
14 May 2004; Karl Trygve Kalleberg
eclipse-sdk-2.1.3-r2.ebuild: Added pauldv's build patches. Fixes #50759.
Can not be safely compiled with jikes at the moment.
10 May 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_pre8-r1.ebuild: Added -fPIC when compiling xpcom.o
thanks to lu_zero.
*eclipse-sdk-2.1.3-r2 (10 May 2004)
10 May 2004; Karl Trygve Kalleberg
eclipse-sdk-2.1.3-r2.ebuild: Complete rewrite based on the 3.0.0_pre8-r1.
Hopefully fixes a lot of the installation trouble seen with the old ebuild
series.
*eclipse-sdk-3.0.0_pre8-r1 (10 May 2004)
10 May 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_pre8-r1.ebuild: Fixed missing linking to gthread-2.0, which
makes it run with sun-jdk too. Fixes #50582.
10 May 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_pre8.ebuild: Added support for the motif frontend again.
09 May 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_pre8.ebuild: Added small fix for gtk+-2.4.x to compile
again. Fixes #50480.
*eclipse-sdk-3.0.0_pre8 (07 May 2004)
07 May 2004; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_pre8.ebuild: Totally revamped st_lim's submission. Will only
work for gtk currently. Hopefully fixes #36471.
27 Apr 2004; Aron Griffis
Add inherit eutils
20 Apr 2004; Gustavo Felisberto
eclipse-sdk-3.0_rc8.ebuild:
Cosmetics in ewarn
15 Apr 2004; Gustavo Felisberto
eclipse-sdk-3.0_rc8.ebuild:
Fixed header and added small warning
*eclipse-sdk-3.0_rc8 (05 Apr 2004)
05 Apr 2004; Gustavo Felisberto
eclipse-sdk-3.0_rc8.ebuild:
Adding version M8 of eclipse 3. This is a milestone release it is getting near
final (we hope)
*eclipse-sdk-2.1.3-r1 (02 Apr 2004)
02 Apr 2004; Lim Swee Tat
eclipse-sdk-2.1.3.ebuild:
Thanks to Christo
Added the GTK_DISABLE_DEPRECATED hack
28 Mar 2004; Karl Trygve Kalleberg
eclipse-sdk-2.1.3.ebuild:
Cleaned the RDEPEND and DEPEND a bit, trying to move away from the ?:
notation, but the new || () notation is not working properly, so we can't
yet.
*eclipse-sdk-2.1.3 (25 Mar 2004)
25 Mar 2004; Lim Swee Tat
eclipse-sdk-2.1.2-r1.ebuild:
Updated eclipse-sdk-2.1.2-r1 and added eclipse-2.1.3 There is a deprecation of
GtkCombo in gtk+-2.4 and the deprecation causes compilation of libswt-pi-gtk
to fail. Removed "#define GTK_DISABLE_DEPRECATION" to allow for compilation
Only tested against gtk+-2.4
11 Jan 2004; Heinrich Wendel
eclipse-sdk-2.1.2-r1.ebuild, eclipse-sdk-2.1.2.ebuild,
eclipse-sdk-3.0.0_pre5.ebuild:
fixed motif dep
21 Dec 2003; Karl Trygve Kalleberg
eclipse-sdk-2.1.2-r1.ebuild:
Fixed compilation with IBM JDK, tries to fix #37421. Must test it
on ppc.
*eclipse-sdk-3.0.0_pre5 (11 Dec 2003)
11 Dec 2003; Karl Trygve Kalleberg
eclipse-sdk-3.0.0_pre5:
Added experimental upstream version, thanks to submission by David
Love
it; this is highly volatile stuff.
*eclipse-sdk-2.1.2-r1 (28 Nov 2003)
28 Nov 2003; Karl Trygve Kalleberg
eclipse-sdk-2.1.2-r1.ebuild, files/00-refactor_rename.patch:
Stole patch from Debian. Fixes #33124.
*eclipse-sdk-2.1.2 (17 Nov 2003)
17 Nov 2003; Karl Trygve Kalleberg
eclipse-sdk-2.1.2.ebuild:
New upstream version. Fixes #33680.
*eclipse-sdk-2.1.1 (04 Nov 2003)
04 Oct 2003; Karl Trygve Kalleberg
eclipse-sdk-2.1.1.ebuild:
Fixes #32165. We blindly assume that any system will either have sh-utils
or coreutils installed, which should be a reasonable assumption.
*eclipse-sdk-2.1.1 (05 Oct 2003)
05 Oct 2003; Karl Trygve Kalleberg
eclipse-sdk-2.1.1.ebuild, files/eclipse:
Thanks to the wonderful work of Jesse
Fixes #19317.
*eclipse-sdk-2.1 (30 Jun 2003)
30 Jun 2003; Karl Trygve Kalleberg
eclipse-sdk-2.1.ebuild, files/eclipse.desktop:
Initial import. Note that a binary ebuild for Eclipse also exists, as
eclipse-sdk-bin. This ebuild will eventually try to build all of Eclipse
from sources. For now, it only builds the basic platform, and none of the
GTK+ stuff.
AUX 3.3/ant-osgi-manifest.mf 3165 RMD160 75444432268c9eef06cd4bb18352b77e426ed116 SHA1 c09dd82dee4708e8726b52569e25da0edda641df SHA256 1df8d7283d6f8fa3d1c3bbbbd832a5fd091f39b52d27d88b131064aeb81ab542
AUX 3.3/disable-jdk6.diff 8875 RMD160 c14a9721c61b392cd3f57c9893afd0d0148a31ed SHA1 a9c55df75f28d4d09474c10a0df19c6797145d56 SHA256 46987a38e7394b2831915861946226b99fcbff607130ed9430f8e655cb97e64a
AUX 3.3/disable-jdt-tool.diff 6111 RMD160 fcc8c0891d4fdd22ab8a8a2c90bf77b0cd1419eb SHA1 e7ac7fd9948774f16978f49d88c107c06abd6972 SHA256 cbffbc7e5c167b0d890d4f790280acb515b07734641e8737f17487757bdcc4cf
AUX 3.3/disable-swt.diff 16961 RMD160 442d769aa58a06032f79ac1bd38324e5d743f33b SHA1 2b271daa5414403da84c37f6504df47baedda41b SHA256 dfd3092376afdea520287387397f38f1433e872fecce99f80c4e3ffeeff79744
AUX 3.3/eclipse-3.3 1308 RMD160 2d13c201394446bf3604fa535a7bcbf1719e67d8 SHA1 8767136cf48c409234c1a88fad15a907a4d8e291 SHA256 2f17956b2bf919eae473217936689f70f60db93d7d2e85e958c3026ce8dc4d8f
AUX 3.3/eclipse-3.3-r1 1735 RMD160 e1cb827402ab3ddad07b1a199b69759a31347b3f SHA1 379f407c1b03e4bc87b5a5a81ebe799e38b01e39 SHA256 8a2467ddc626c107d270efec5a9a272f840d07bd18145bb1fede0ac649d84592
AUX 3.3/eclipse-jsch-api-update.patch 554 RMD160 7f45812032eeb0aed10ab8cffd5d9b4633032b3f SHA1 43d1caaf0369253a5a3b4159216e9cc49efa3ede SHA256 33616660eed6b57fcd7a3df040d86d93e7912d47bf4c690c17e844f4ad361b14
AUX 3.3/eclipse-workbench-miscompile-workaround.diff 629 RMD160 a122e199f769147df84772e557ce719a531abfd2 SHA1 e5ad09c6c4a18747ac787258bc8041636c5e2aa4 SHA256 4ef77f3e0967731eb53561780285488fd32eebac8d8cdee39508ba2d157c3434
AUX 3.3/eclipserc 858 RMD160 f911438aa661be9ca8fc352dd372c9485d163ddb SHA1 abb1c369326be455d16bc42cf0a1b035aa145dc0 SHA256 0aea733c968ca064ad5ca95d5895778ecf7387826198b512e98d0cbb7dd353f1
AUX 3.3/fedora/eclipse-fileinitializer.patch 18251 RMD160 7cead267e841b74f8411a9eee5fb5c78e7ea5d1e SHA1 1a46b9b5720b96f8ae2073b6ace8be8cf8ced14e SHA256 7bcbc3aa3770df0aa617fd5b18e0cdb9c397e3b3e23f5951cead2ecc36c894c4
AUX 3.3/fedora/eclipse-libupdatebuild2.patch 783 RMD160 cea490ebf47998ddf960f53672be79a1e13c7459 SHA1 32a99ff5562dbe5dcfc23cfb7cd406f61fd1ee88 SHA256 40c81d4b4929ace444b2c39424a5b4e4367432a4c5a93faa67dd75da602ee0a6
AUX 3.3/fedora/eclipse-pde.build-add-package-build.patch 11604 RMD160 ba63781fa77452e4c36eae7e07d81b7d39f5ec29 SHA1 7ee30f8fc2732125e1f2ba01038922d995b21456 SHA256 d361930896c940c09a7faf41f2c8d7843d56be9b90391e91538890062e5d7803
AUX 3.3/launcher_double-free.diff 340 RMD160 4574222833a92c9611bcb2a346d01b0fb406d39a SHA1 50d78fc4ca2f3ed935644f132a53bdf7b1b71ead SHA256 6af7bdc0ccd9d0fcfcfdc7f979bb947d1334065c551551213a2c47074626cc9c
AUX 3.3/set-java-home.diff 417 RMD160 f4ec180dfad9c81e41f91cad562739a2d9198239 SHA1 d837d67cae0dcb0c1604e8756d7492043662d647 SHA256 6e0627318ab5249d16cbb1d42eb245c614298bccdaa8e36fcc2a0a290222b6e9
AUX 3.4/ant-osgi-manifest.mf 3165 RMD160 75444432268c9eef06cd4bb18352b77e426ed116 SHA1 c09dd82dee4708e8726b52569e25da0edda641df SHA256 1df8d7283d6f8fa3d1c3bbbbd832a5fd091f39b52d27d88b131064aeb81ab542
AUX 3.4/eclipse-3.4 1287 RMD160 aa2b164c3e51d2813f00e1cbcbf3471de3732298 SHA1 f12f6643ffcfe2040c354c81db4d7073c9366906 SHA256 e834ada06a933ab9eb42c78b378b302f2a78150c911b7e6e324e2ccfc3dfcf60
AUX 3.4/eclipse_String.compareTo.diff 1883 RMD160 e8bec8213808cfc7ee213ce0eeb4fc130da500a2 SHA1 c259d3683df513ac66b7161f5cd452899e654644 SHA256 1b81dcc85230d19419c4535057119bb9d5f4ad1bd59f0a821865e51aaa0a2208
AUX 3.4/eclipse_build-libs.diff 2054 RMD160 0d74a889ecfb10d62e7cb20bad73c956e8225503 SHA1 3c570014221537debd8ac568d7ab94da18d8ebb4 SHA256 ce181b5dd7dc47bbb60b965c0241b126a4b5edfdddae762596ed882fdbd637bf
AUX 3.4/eclipse_buildfix-pde.diff 470 RMD160 f5868f6da880e6e930051893cba3e4277e927fb5 SHA1 f6ca5a75a40cff1d132af2b0d32367de744d4c62 SHA256 99450b348f6d41a489adfd51e1132f640eb8c43dfc4e9dd8e026aec66b41e30a
AUX 3.4/eclipserc 1001 RMD160 a008502defce8739022f3e4333cde1fb7f3de0f5 SHA1 b712b8b53e27214b0b51f01206b6252c9ef4ab9c SHA256 c1d66404893b11b5c4d743a974a61277508c5d3fcec0aad96f50f620d42c6191
AUX 3.4/fedora/eclipse-libupdatebuild2.patch 722 RMD160 6baa55ab7545f02e808ed05c901f77fb1d6709d4 SHA1 29f86a88e8ddc048e1fb4206a73824b2a4ed742d SHA256 ba7af44c1751b749591a53cb2c80852ef08f2f003917a5914042937e2d05b464
AUX 3.4/fedora/eclipse-pde.build-add-package-build.patch 11604 RMD160 ba63781fa77452e4c36eae7e07d81b7d39f5ec29 SHA1 7ee30f8fc2732125e1f2ba01038922d995b21456 SHA256 d361930896c940c09a7faf41f2c8d7843d56be9b90391e91538890062e5d7803
AUX eclipse-3.2 1152 RMD160 6d7a2d67e1aa0fd011d056d2b287dc7196528b44 SHA1 3562c650d4e41f5186b396d31630c2faa7c132a9 SHA256 5f10f1cbae578c394e98b5d380c0d4f362620e7ff87fa3bde226e5533d34b8cf
AUX eclipse-3.2-r1 1604 RMD160 ebc7ff4eb6b776e653d23fc7934690f1c782185e SHA1 e538c6d2454b977acf2b706636ac3db77b06b1ee SHA256 35ff6dc5124e8f868ae5fd9493fcb3c75d5f52fda30d5c50238dfc42e3ecbc7a
DIST eclipse-sdk-3.2.1-r1-patches.tar.bz2 85951 RMD160 55a0f98229feb47d936acbcdcf7ad42074ebdb5c SHA1 4af81d8615dbfbd771136c441ee8a7b53096b468 SHA256 fa9f8d047d8375ab55eaca12c110bd9faf9eb5452af2a70d038afd5a6b4b5171
DIST eclipse-sourceBuild-srcIncluded-3.2.1.zip 82433420 RMD160 9648176b79adac7217371e5b8dee7aeb4cd458db SHA1 a27bae4ff9f866a1fab995eae2da00ab2be5e840 SHA256 2d6a0628333d068b6ab678c42f925d71df1c003035543830a30e3ee80fb855c7
DIST eclipse-sourceBuild-srcIncluded-3.3.1.1.zip 94267330 RMD160 78d19b528e99c3f3416de099ab5dcd59430fc9ac SHA1 901f4c66acf4c988fc08f78f3ffcd45b3748b344 SHA256 e4c24d54a2b9bc630f961320c61f8e804255f49b141370d240ce0444eb89a658
DIST eclipse-sourceBuild-srcIncluded-3.4.zip 105671901 RMD160 91b93c4f1538efe98471c2f9ee9ccd6ff081816c SHA1 c3200eca6b51147e2c00f7da09ca1f45160fd08e SHA256 df829822473886aa62b15d9f95654f88e868634fb1b78ce0b12c550b85054e93
EBUILD eclipse-sdk-3.2.1-r2.ebuild 12774 RMD160 432060d99495abfb5ecdc8bf23820a0968a79e85 SHA1 33e27e840c2fb09318afe82c765e2446c1e50381 SHA256 e6948af605a48f152698a772f3f5f1be388fdb9410a51f9e70b742495cb20cd4
EBUILD eclipse-sdk-3.2.1-r3.ebuild 12794 RMD160 6c15ed3c5255bbab8ac5678276fff456c790b098 SHA1 341796121de64022d97e6abe9e26119b101c46c3 SHA256 a89756c5e2a04cbe59c2d6bd7d2aa23a8a022f08ab92518071174b8ba443d50d
EBUILD eclipse-sdk-3.3.1.1-r1.ebuild 12067 RMD160 af6a4cb69fcd8d96ccb80d4ed3a1beaba75ee1d3 SHA1 865f1a39cc2b8978645a58f4d2d38b52b272416f SHA256 fc9b93ad3ef5b87ee15ca66372d5fb4984c26d1dd43de28cdc423c5228a29019
EBUILD eclipse-sdk-3.3.1.1-r2.ebuild 12068 RMD160 048c2a585b90461a6be9447e9786bb5a216ff364 SHA1 e00af95e40d4441918ac313feb0e14c42371ae7a SHA256 2da17ac714ce65342e607172b891745a1c2d7569c36c8e9a6d18e60bd30a19b2
EBUILD eclipse-sdk-3.3.1.1.ebuild 12044 RMD160 d99d56d8f490ccaa9620f720ed2e19050897e61c SHA1 a5dd5c15d199356d43c2c58e74fc965e65870b6e SHA256 51529185a6754b18a536c19bc34316895be21c33def79517b76260cfd289e6e8
EBUILD eclipse-sdk-3.4-r2.ebuild 12572 RMD160 26cc701d61f1d2678639da4f0fa799f01258bdf1 SHA1 625426159d38d43ac4a863bd61f41c8960f0fb48 SHA256 53aa1a5057bd85a3c420f554bf7916707ec61ccfa973926fc4119e0da5ab0829
MISC ChangeLog 29069 RMD160 3bb0d5874338a9334551e76edd0b8fb83f5db79c SHA1 6878ef30e18bbd260e4b6c2a55b691eb4140ec17 SHA256 52a3b5b643e58f4020cd032a53f5f4441ec5c7b1649bdf4ea9bbcbf764139498
MISC metadata.xml 800 RMD160 f97cc4ac78898369a7706331bb14bc838519cf21 SHA1 21cd52a15acb6510aa3b955f78fb28a73cf58234 SHA256 76e243573c28c3d705f54745cfbcedd85dae3233b6ed00e2f81a61ac9caeeeaa
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/eclipse-sdk-3.2.1-r2.ebuild,v 1.8 2008/01/21 12:15:55 elvanor Exp $
EAPI=1
inherit eutils java-pkg-2 flag-o-matic check-reqs multilib
DATESTAMP="200609210945"
MY_A="eclipse-sourceBuild-srcIncluded-${PV}.zip"
DESCRIPTION="Eclipse Tools Platform"
HOMEPAGE="http://www.eclipse.org/"
SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/R-${PV}-${DATESTAMP}/${MY_A}
mirror://gentoo/${P}-r1-patches.tar.bz2"
IUSE="branding cairo gnome opengl seamonkey "
SLOT="3.2"
LICENSE="EPL-1.0"
# TODO might be able to have ia64 and ppc64 support
KEYWORDS="amd64 ppc x86"
S="${WORKDIR}"
COMMON_DEP="
>=x11-libs/gtk+-2.2.4
seamonkey? ( www-client/seamonkey )
gnome? ( =gnome-base/gnome-vfs-2* =gnome-base/libgnomeui-2* )
opengl? ( virtual/opengl )
>=dev-java/ant-1.7.0
=dev-java/junit-3*
dev-java/lucene:1"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEP}"
DEPEND="
${COMMON_DEP}
=virtual/jdk-1.4*
>=virtual/jdk-1.5
>=sys-apps/findutils-4.1.7
app-arch/unzip
app-arch/zip"
# Force 1.4 to be used for building
JAVA_PKG_NV_DEPEND="=virtual/jdk-1.4*"
ECLIPSE_DIR="/usr/lib/eclipse-${SLOT}"
ECLIPSE_LINKS_DIR="${ECLIPSE_DIR}/links"
# TODO:
# - use CFLAGS from make.conf when building native libraries
# - must patch eclipse build files
# - also submit patch to bugs.eclipse.org
# - ppc support not tested, but not explicitly broken either
# - make a extension location in /var/lib that's writable by 'eclipse' group
# - update man page
pkg_setup() {
java-pkg-2_pkg_setup
debug-print "Checking for sufficient physical RAM"
CHECKREQS_MEMORY="768"
check_reqs
# All other gentoo archs match in eclipse build system except amd64
if use amd64 ; then
eclipsearch=x86_64
else
eclipsearch=${ARCH}
fi
if use x86 ; then
jvmarch=i386
else
jvmarch=${ARCH}
fi
# Add the eclipse group, for our plugins/features directories
enewgroup eclipse
}
src_unpack() {
unpack ${A}
fix-swt-targets
pushd plugins/org.apache.ant >/dev/null || die "pushd failed"
rm -rf lib
ln -s /usr/share/ant/lib lib
popd >/dev/null
pushd plugins/org.junit >/dev/null
rm *.jar
java-pkg_jar-from junit
popd >/dev/null
pushd plugins/org.apache.lucene >/dev/null
rm *.jar
java-pkg_jar-from lucene-1 lucene.jar lucene-1.4.3.jar
popd >/dev/null
# For some reason popd above fails to go back to workdir.
# ^Was caused by the three argument form of java-pkg_jar-from
# that Caster recently broke in the eclass. The cd here does not
# hurt and I like these comments.
# https://bugs.gentoo.org/show_bug.cgi?id=163969
cd "${WORKDIR}"
apply-patchset
}
src_compile() {
# Figure out VM, set up ant classpath and native library paths
setup-jvm-opts
if use seamonkey ; then
einfo "Will compile embedded seamonkey support against www-client/seamonkey"
setup-mozilla-opts
else
einfo "Not building embedded seamonkey support"
fi
local java5vm=$(depend-java-query --get-vm ">=virtual/jdk-1.5")
local java5home=$(GENTOO_VM=${java5vm} java-config --jdk-home)
einfo "Using ${java5home} for java5home"
# TODO patch build to take buildId
./build -os linux \
-arch ${eclipsearch} \
-ws gtk \
-java5home ${java5home} || die "build failed"
}
src_install() {
dodir /usr/lib
# TODO maybe there's a better way of installing than extracting the tar?
[[ -f result/linux-gtk-${eclipsearch}-sdk.tar.gz ]] || die "tar.gz bundle was not built properly!"
tar zxf "result/linux-gtk-${eclipsearch}-sdk.tar.gz" -C "${D}/usr/lib" \
|| die "Failed to extract the built package"
mv "${D}/usr/lib/eclipse" "${D}/${ECLIPSE_DIR}"
#insinto ${ECLIPSE_DIR}
echo "-Djava.library.path=/usr/lib" >> "${D}/${ECLIPSE_DIR}/eclipse.ini"
debug-print "Installing eclipse-gtk binary"
exeinto ${ECLIPSE_DIR}
doexe eclipse || die "Failed to install eclipse binary"
# Install startup script
exeinto /usr/bin
doexe "${FILESDIR}/eclipse-${SLOT}"
make_desktop_entry eclipse-${SLOT} "Eclipse ${PV}" "${ECLIPSE_DIR}/icon.xpm"
}
# -----------------------------------------------------------------------------
# Helper functions
# -----------------------------------------------------------------------------
apply-patchset() {
# begin: patches/comments from fedora
# Build JNI libs
# FIXME: these should be built by upstream build method
# http://www.bagu.org/eclipse/plugin-source-drops.html
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=71637
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=86848
# GNU XML issue identified by Michael Koch
# %patch2 -p0
epatch "${WORKDIR}/${P}-build.patch"
# %patch4 -p0
epatch "${WORKDIR}/${P}-libupdatebuild.patch"
# %patch5 -p0
epatch "${WORKDIR}/${P}-libupdatebuild2.patch"
# Build swttools.jar
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=90364
pushd plugins/org.eclipse.swt.gtk.linux.x86_64 >/dev/null
# %patch18 -p0
epatch "${WORKDIR}/${P}-swttools.patch"
popd >/dev/null
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=90630
# %patch22 -p0
epatch "${WORKDIR}/${P}-updatehomedir.patch"
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=90535
pushd plugins/org.eclipse.core.runtime >/dev/null
# %patch24 -p0
epatch "${WORKDIR}/${P}-fileinitializer.patch"
popd >/dev/null
##
## FIXME: breaks!!
##
## tomcat patches
## These patches need to go upstream
## https://bugs.eclipse.org/bugs/show_bug.cgi?id=98371
#pushd plugins/org.eclipse.tomcat >/dev/null
## %patch28 -p0
#epatch ${WORKDIR}/${P}-tomcat55.patch
## %patch29 -p0
#epatch ${WORKDIR}/${P}-tomcat55-build.patch
#popd >/dev/null
#sed --in-place "s/4.1.130/5.5.17/" \
# features/org.eclipse.platform/build.xml \
# plugins/org.eclipse.tomcat/build.xml \
# assemble.*.xml
#pushd plugins/org.eclipse.help.webapp >/dev/null
## %patch31 -p0
#epatch ${WORKDIR}/${P}-webapp-tomcat55.patch
#popd >/dev/null
# pushd plugins/org.eclipse.compare
# COMMENTED BY FEDORA %patch33 -p0
# popd
# JPackage []s in names of symlinks ...
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=162177
pushd plugins/org.eclipse.jdt.core >/dev/null
# %patch34 -p0
epatch "${WORKDIR}/${P}-bz162177.patch"
# Use ecj for gcj
# %patch57 -p0
epatch "${WORKDIR}/${P}-ecj-gcj.patch"
popd >/dev/null
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=114001
# %patch38 -p0
epatch "${WORKDIR}/${P}-helpindexbuilder.patch"
# %patch40 -p0
epatch "${WORKDIR}/${P}-usebuiltlauncher.patch"
# DO NOT APPLY %patch43
pushd plugins/org.eclipse.swt/Eclipse\ SWT\ Mozilla/common/library >/dev/null
# Build cairo native libs
# %patch46
# epatch ${WORKDIR}/${P}-libswt-xpcomgcc4.patch
popd >/dev/null
# Because the launcher source is zipped up, we need to unzip, patch, and re-pack
mkdir launchertmp
unzip -qq -d launchertmp plugins/org.eclipse.platform/launchersrc.zip >/dev/null || die "unzip failed"
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=79592
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=168726
pushd launchertmp >/dev/null
# %patch47 -p1
epatch "${WORKDIR}/${P}-launcher-link.patch"
zip -q -9 -r ../launchersrc.zip * >/dev/null || die "zip failed"
popd >/dev/null
mv launchersrc.zip plugins/org.eclipse.platform
rm -rf launchertmp
pushd features/org.eclipse.platform.launchers >/dev/null
# %patch47 -p1
epatch "${WORKDIR}/${P}-launcher-link.patch"
popd >/dev/null
# Link against our system-installed javadocs
# Don't attempt to link to Sun's javadocs
# %patch48 -p0
epatch "${WORKDIR}/${P}-javadoclinks.patch"
sed --in-place "s:/usr/share/:%{_datadir}/:g" \
plugins/org.eclipse.jdt.doc.isv/jdtOptions.txt \
plugins/org.eclipse.pde.doc.user/pdeOptions.txt \
plugins/org.eclipse.pde.doc.user/pdeOptions \
plugins/org.eclipse.platform.doc.isv/platformOptions.txt
# Always generate debug info when building RPMs (Andrew Haley)
# %patch49 -p0
epatch "${WORKDIR}/${P}-ecj-rpmdebuginfo.patch"
# generic releng plugins that can be used to build plugins
# see this thread for deails:
# https://www.redhat.com/archives/fedora-devel-java-list/2006-April/msg00048.html
pushd plugins/org.eclipse.pde.build >/dev/null
# %patch53
epatch "${WORKDIR}/${P}-pde.build-add-package-build.patch"
sed --in-place "s:@eclipse_base@:%{_datadir}/%{name}:" templates/package-build/build.properties
popd >/dev/null
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=191536
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=142861
pushd plugins/org.eclipse.swt/Eclipse\ SWT >/dev/null
# %patch54
epatch "${WORKDIR}/${P}-swt-rm-ON_TOP.patch"
popd >/dev/null
# We need to disable junit4 and apt until GCJ can handle Java5 code
# %patch55 -p0
epatch "${WORKDIR}/${P}-disable-junit4-apt.patch"
rm plugins/org.junit4/junit-4.1.jar
##
## FIXME: breaks!!
##
## I love directories with spaces in their names
#pushd plugins/org.eclipse.swt >/dev/null
#mv "Eclipse SWT Mozilla" Eclipse_SWT_Mozilla
#mv "Eclipse SWT PI" Eclipse_SWT_PI
## Build against firefox:
## - fix swt profile include path
## - don't compile the mozilla 1.7 / firefox profile library -- build it inline
## - don't use symbols not in our firefox builds
## FIXME: add reference(s) to discussion(s) and bug(s)
## Note: I made this patch from within Eclipse and then did the following to
## it due to spaces in the paths:
## sed --in-place "s/Eclipse\ SWT\ Mozilla/Eclipse_SWT_Mozilla/g" eclipse-swt-firefox.patch
## sed --in-place "s/Eclipse\ SWT\ PI/Eclipse_SWT_PI/g" eclipse-swt-firefox.patch
## %patch59
#epatch ${WORKDIR}/${P}-swt-firefox.patch
#mv Eclipse_SWT_Mozilla "Eclipse SWT Mozilla"
#mv Eclipse_SWT_PI "Eclipse SWT PI"
#popd >/dev/null
#pushd plugins/org.eclipse.swt.tools >/dev/null
#mv "JNI Generation" JNI_Generation
## %patch60
#epatch ${WORKDIR}/${P}-swt-firefox.2.patch
#mv JNI_Generation "JNI Generation"
#popd >/dev/null
# FIXME check if this has been applied upstream
pushd plugins/org.eclipse.platform.doc.isv >/dev/null
# %patch100 -p0
epatch "${WORKDIR}/customBuildCallbacks.xml-add-pre.gather.bin.parts.patch"
popd >/dev/null
pushd plugins/org.eclipse.platform.doc.user >/dev/null
# %patch100 -p0
epatch "${WORKDIR}/customBuildCallbacks.xml-add-pre.gather.bin.parts.patch"
popd >/dev/null
if use branding; then
pushd plugins/org.eclipse.platform >/dev/null
cp "${WORKDIR}/splash.bmp" .
popd >/dev/null
fi
# FIXME this should be patched upstream with a flag to turn on and off
# all output should be directed to stdout
find -type f -name \*.xml -exec sed --in-place -r "s/output=\".*(txt|log).*\"//g" "{}" \;
}
fix-swt-targets() {
# Build using O2
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=71637
pushd plugins/org.eclipse.swt/Eclipse\ SWT\ PI/gtk/library >/dev/null
# %patch0 -p0
epatch "${WORKDIR}/${P}-gentoo-libswt-enableallandO2.patch"
popd >/dev/null
# Select the set of native libraries to compile
local targets="make_swt make_awt make_atk"
if use gnome ; then
einfo "Enabling GNOME VFS support"
targets="${targets} make_gnome"
fi
if use seamonkey ; then
einfo "Enabling embedded Mozilla support"
targets="${targets} make_mozilla"
fi
if use cairo ; then
einfo "Enabling CAIRO support"
targets="${targets} make_cairo"
fi
if use opengl ; then
einfo "Enabling OpenGL support"
targets="${targets} make_glx"
fi
sed -i "s/^all:.*/all: ${targets}/" \
"plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak" \
|| die "Failed to tweak make_linux.mak"
}
setup-jvm-opts() {
# Figure out correct boot classpath
# karltk: this should be handled by the java-pkg eclass in setup-vm
local bp="$(java-config --jdk-home)/jre/lib"
local bootclasspath=$(java-config --runtime)
if [[ ! -z "`java-config --java-version | grep IBM`" ]] ; then
# IBM JDK
JAVA_LIB_DIR="$(java-config --jdk-home)/jre/bin"
else
# Sun derived JDKs (Blackdown, Sun)
JAVA_LIB_DIR="$(java-config --jdk-home)/jre/lib/${jvmarch}"
fi
einfo "Using bootclasspath ${bootclasspath}"
einfo "Using JVM library path ${JAVA_LIB_DIR}"
if [[ ! -f ${JAVA_LIB_DIR}/libawt.so ]] ; then
die "Could not find libawt.so native library"
fi
export AWT_LIB_PATH=${JAVA_LIB_DIR}
}
setup-mozilla-opts() {
export GECKO_SDK="/usr/$(get_libdir)/seamonkey"
# TODO should this be using pkg-config?
export GECKO_INCLUDES=$(pkg-config seamonkey-gtkmozembed --cflags)
export GECKO_LIBS=$(pkg-config seamonkey-gtkmozembed --libs)
}
pkg_postinst() {
einfo "Users can now install plugins via Update Manager without any"
einfo "tweaking."
echo
einfo "Eclipse plugin packages (ie eclipse-cdt) will likely go away in"
einfo "the near future until they can be properly packaged. Update Manager"
einfo "is prefered in the meantime."
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/eclipse-sdk-3.2.1-r3.ebuild,v 1.2 2008/04/10 19:40:25 maekke Exp $
EAPI=1
inherit eutils java-pkg-2 flag-o-matic check-reqs multilib
DATESTAMP="200609210945"
MY_A="eclipse-sourceBuild-srcIncluded-${PV}.zip"
DESCRIPTION="Eclipse Tools Platform"
HOMEPAGE="http://www.eclipse.org/"
SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/R-${PV}-${DATESTAMP}/${MY_A}
mirror://gentoo/${P}-r1-patches.tar.bz2"
IUSE="branding cairo gnome opengl seamonkey "
SLOT="3.2"
LICENSE="EPL-1.0"
# TODO might be able to have ia64 and ppc64 support
KEYWORDS="amd64 ~ppc x86"
S="${WORKDIR}"
COMMON_DEP="
>=x11-libs/gtk+-2.2.4
seamonkey? ( www-client/seamonkey )
gnome? ( =gnome-base/gnome-vfs-2* =gnome-base/libgnomeui-2* )
opengl? ( virtual/opengl )
>=dev-java/ant-1.7.0
=dev-java/junit-3*
dev-java/lucene:1"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEP}"
DEPEND="
${COMMON_DEP}
=virtual/jdk-1.4*
>=virtual/jdk-1.5
>=sys-apps/findutils-4.1.7
app-arch/unzip
app-arch/zip"
# Force 1.4 to be used for building
JAVA_PKG_NV_DEPEND="=virtual/jdk-1.4*"
ECLIPSE_DIR="/usr/lib/eclipse-${SLOT}"
ECLIPSE_LINKS_DIR="${ECLIPSE_DIR}/links"
# TODO:
# - use CFLAGS from make.conf when building native libraries
# - must patch eclipse build files
# - also submit patch to bugs.eclipse.org
# - ppc support not tested, but not explicitly broken either
# - make a extension location in /var/lib that's writable by 'eclipse' group
# - update man page
pkg_setup() {
java-pkg-2_pkg_setup
debug-print "Checking for sufficient physical RAM"
CHECKREQS_MEMORY="768"
check_reqs
# All other gentoo archs match in eclipse build system except amd64
if use amd64 ; then
eclipsearch=x86_64
else
eclipsearch=${ARCH}
fi
if use x86 ; then
jvmarch=i386
else
jvmarch=${ARCH}
fi
# Add the eclipse group, for our plugins/features directories
enewgroup eclipse
}
src_unpack() {
unpack ${A}
fix-swt-targets
pushd plugins/org.apache.ant >/dev/null || die "pushd failed"
rm -rf lib
ln -s /usr/share/ant/lib lib
popd >/dev/null
pushd plugins/org.junit >/dev/null
rm *.jar
java-pkg_jar-from junit
popd >/dev/null
pushd plugins/org.apache.lucene >/dev/null
rm *.jar
java-pkg_jar-from lucene-1 lucene.jar lucene-1.4.3.jar
popd >/dev/null
# For some reason popd above fails to go back to workdir.
# ^Was caused by the three argument form of java-pkg_jar-from
# that Caster recently broke in the eclass. The cd here does not
# hurt and I like these comments.
# https://bugs.gentoo.org/show_bug.cgi?id=163969
cd "${WORKDIR}"
apply-patchset
}
src_compile() {
# Figure out VM, set up ant classpath and native library paths
setup-jvm-opts
if use seamonkey ; then
einfo "Will compile embedded seamonkey support against www-client/seamonkey"
setup-mozilla-opts
else
einfo "Not building embedded seamonkey support"
fi
local java5vm=$(depend-java-query --get-vm ">=virtual/jdk-1.5")
local java5home=$(GENTOO_VM=${java5vm} java-config --jdk-home)
einfo "Using ${java5home} for java5home"
# TODO patch build to take buildId
./build -os linux \
-arch ${eclipsearch} \
-ws gtk \
-java5home ${java5home} || die "build failed"
}
src_install() {
dodir /usr/lib
# TODO maybe there's a better way of installing than extracting the tar?
[[ -f result/linux-gtk-${eclipsearch}-sdk.tar.gz ]] || die "tar.gz bundle was not built properly!"
tar zxf "result/linux-gtk-${eclipsearch}-sdk.tar.gz" -C "${D}/usr/lib" \
|| die "Failed to extract the built package"
mv "${D}/usr/lib/eclipse" "${D}/${ECLIPSE_DIR}"
#insinto ${ECLIPSE_DIR}
echo "-Djava.library.path=/usr/lib" >> "${D}/${ECLIPSE_DIR}/eclipse.ini"
debug-print "Installing eclipse-gtk binary"
exeinto ${ECLIPSE_DIR}
doexe eclipse || die "Failed to install eclipse binary"
# Install startup script
exeinto /usr/bin
newexe "${FILESDIR}/eclipse-${SLOT}-r1" eclipse-${SLOT}
make_desktop_entry eclipse-${SLOT} "Eclipse ${PV}" "${ECLIPSE_DIR}/icon.xpm"
}
# -----------------------------------------------------------------------------
# Helper functions
# -----------------------------------------------------------------------------
apply-patchset() {
# begin: patches/comments from fedora
# Build JNI libs
# FIXME: these should be built by upstream build method
# http://www.bagu.org/eclipse/plugin-source-drops.html
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=71637
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=86848
# GNU XML issue identified by Michael Koch
# %patch2 -p0
epatch "${WORKDIR}/${P}-build.patch"
# %patch4 -p0
epatch "${WORKDIR}/${P}-libupdatebuild.patch"
# %patch5 -p0
epatch "${WORKDIR}/${P}-libupdatebuild2.patch"
# Build swttools.jar
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=90364
pushd plugins/org.eclipse.swt.gtk.linux.x86_64 >/dev/null
# %patch18 -p0
epatch "${WORKDIR}/${P}-swttools.patch"
popd >/dev/null
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=90630
# %patch22 -p0
epatch "${WORKDIR}/${P}-updatehomedir.patch"
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=90535
pushd plugins/org.eclipse.core.runtime >/dev/null
# %patch24 -p0
epatch "${WORKDIR}/${P}-fileinitializer.patch"
popd >/dev/null
##
## FIXME: breaks!!
##
## tomcat patches
## These patches need to go upstream
## https://bugs.eclipse.org/bugs/show_bug.cgi?id=98371
#pushd plugins/org.eclipse.tomcat >/dev/null
## %patch28 -p0
#epatch ${WORKDIR}/${P}-tomcat55.patch
## %patch29 -p0
#epatch ${WORKDIR}/${P}-tomcat55-build.patch
#popd >/dev/null
#sed --in-place "s/4.1.130/5.5.17/" \
# features/org.eclipse.platform/build.xml \
# plugins/org.eclipse.tomcat/build.xml \
# assemble.*.xml
#pushd plugins/org.eclipse.help.webapp >/dev/null
## %patch31 -p0
#epatch ${WORKDIR}/${P}-webapp-tomcat55.patch
#popd >/dev/null
# pushd plugins/org.eclipse.compare
# COMMENTED BY FEDORA %patch33 -p0
# popd
# JPackage []s in names of symlinks ...
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=162177
pushd plugins/org.eclipse.jdt.core >/dev/null
# %patch34 -p0
epatch "${WORKDIR}/${P}-bz162177.patch"
# Use ecj for gcj
# %patch57 -p0
epatch "${WORKDIR}/${P}-ecj-gcj.patch"
popd >/dev/null
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=114001
# %patch38 -p0
epatch "${WORKDIR}/${P}-helpindexbuilder.patch"
# %patch40 -p0
epatch "${WORKDIR}/${P}-usebuiltlauncher.patch"
# DO NOT APPLY %patch43
pushd plugins/org.eclipse.swt/Eclipse\ SWT\ Mozilla/common/library >/dev/null
# Build cairo native libs
# %patch46
# epatch ${WORKDIR}/${P}-libswt-xpcomgcc4.patch
popd >/dev/null
# Because the launcher source is zipped up, we need to unzip, patch, and re-pack
mkdir launchertmp
unzip -qq -d launchertmp plugins/org.eclipse.platform/launchersrc.zip >/dev/null || die "unzip failed"
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=79592
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=168726
pushd launchertmp >/dev/null
# %patch47 -p1
epatch "${WORKDIR}/${P}-launcher-link.patch"
zip -q -9 -r ../launchersrc.zip * >/dev/null || die "zip failed"
popd >/dev/null
mv launchersrc.zip plugins/org.eclipse.platform
rm -rf launchertmp
pushd features/org.eclipse.platform.launchers >/dev/null
# %patch47 -p1
epatch "${WORKDIR}/${P}-launcher-link.patch"
popd >/dev/null
# Link against our system-installed javadocs
# Don't attempt to link to Sun's javadocs
# %patch48 -p0
epatch "${WORKDIR}/${P}-javadoclinks.patch"
sed --in-place "s:/usr/share/:%{_datadir}/:g" \
plugins/org.eclipse.jdt.doc.isv/jdtOptions.txt \
plugins/org.eclipse.pde.doc.user/pdeOptions.txt \
plugins/org.eclipse.pde.doc.user/pdeOptions \
plugins/org.eclipse.platform.doc.isv/platformOptions.txt
# Always generate debug info when building RPMs (Andrew Haley)
# %patch49 -p0
epatch "${WORKDIR}/${P}-ecj-rpmdebuginfo.patch"
# generic releng plugins that can be used to build plugins
# see this thread for deails:
# https://www.redhat.com/archives/fedora-devel-java-list/2006-April/msg00048.html
pushd plugins/org.eclipse.pde.build >/dev/null
# %patch53
epatch "${WORKDIR}/${P}-pde.build-add-package-build.patch"
sed --in-place "s:@eclipse_base@:%{_datadir}/%{name}:" templates/package-build/build.properties
popd >/dev/null
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=191536
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=142861
pushd plugins/org.eclipse.swt/Eclipse\ SWT >/dev/null
# %patch54
epatch "${WORKDIR}/${P}-swt-rm-ON_TOP.patch"
popd >/dev/null
# We need to disable junit4 and apt until GCJ can handle Java5 code
# %patch55 -p0
epatch "${WORKDIR}/${P}-disable-junit4-apt.patch"
rm plugins/org.junit4/junit-4.1.jar
##
## FIXME: breaks!!
##
## I love directories with spaces in their names
#pushd plugins/org.eclipse.swt >/dev/null
#mv "Eclipse SWT Mozilla" Eclipse_SWT_Mozilla
#mv "Eclipse SWT PI" Eclipse_SWT_PI
## Build against firefox:
## - fix swt profile include path
## - don't compile the mozilla 1.7 / firefox profile library -- build it inline
## - don't use symbols not in our firefox builds
## FIXME: add reference(s) to discussion(s) and bug(s)
## Note: I made this patch from within Eclipse and then did the following to
## it due to spaces in the paths:
## sed --in-place "s/Eclipse\ SWT\ Mozilla/Eclipse_SWT_Mozilla/g" eclipse-swt-firefox.patch
## sed --in-place "s/Eclipse\ SWT\ PI/Eclipse_SWT_PI/g" eclipse-swt-firefox.patch
## %patch59
#epatch ${WORKDIR}/${P}-swt-firefox.patch
#mv Eclipse_SWT_Mozilla "Eclipse SWT Mozilla"
#mv Eclipse_SWT_PI "Eclipse SWT PI"
#popd >/dev/null
#pushd plugins/org.eclipse.swt.tools >/dev/null
#mv "JNI Generation" JNI_Generation
## %patch60
#epatch ${WORKDIR}/${P}-swt-firefox.2.patch
#mv JNI_Generation "JNI Generation"
#popd >/dev/null
# FIXME check if this has been applied upstream
pushd plugins/org.eclipse.platform.doc.isv >/dev/null
# %patch100 -p0
epatch "${WORKDIR}/customBuildCallbacks.xml-add-pre.gather.bin.parts.patch"
popd >/dev/null
pushd plugins/org.eclipse.platform.doc.user >/dev/null
# %patch100 -p0
epatch "${WORKDIR}/customBuildCallbacks.xml-add-pre.gather.bin.parts.patch"
popd >/dev/null
if use branding; then
pushd plugins/org.eclipse.platform >/dev/null
cp "${WORKDIR}/splash.bmp" .
popd >/dev/null
fi
# FIXME this should be patched upstream with a flag to turn on and off
# all output should be directed to stdout
find -type f -name \*.xml -exec sed --in-place -r "s/output=\".*(txt|log).*\"//g" "{}" \;
}
fix-swt-targets() {
# Build using O2
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=71637
pushd plugins/org.eclipse.swt/Eclipse\ SWT\ PI/gtk/library >/dev/null
# %patch0 -p0
epatch "${WORKDIR}/${P}-gentoo-libswt-enableallandO2.patch"
popd >/dev/null
# Select the set of native libraries to compile
local targets="make_swt make_awt make_atk"
if use gnome ; then
einfo "Enabling GNOME VFS support"
targets="${targets} make_gnome"
fi
if use seamonkey ; then
einfo "Enabling embedded Mozilla support"
targets="${targets} make_mozilla"
fi
if use cairo ; then
einfo "Enabling CAIRO support"
targets="${targets} make_cairo"
fi
if use opengl ; then
einfo "Enabling OpenGL support"
targets="${targets} make_glx"
fi
sed -i "s/^all:.*/all: ${targets}/" \
"plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak" \
|| die "Failed to tweak make_linux.mak"
}
setup-jvm-opts() {
# Figure out correct boot classpath
# karltk: this should be handled by the java-pkg eclass in setup-vm
local bp="$(java-config --jdk-home)/jre/lib"
local bootclasspath=$(java-config --runtime)
if [[ ! -z "`java-config --java-version | grep IBM`" ]] ; then
# IBM JDK
JAVA_LIB_DIR="$(java-config --jdk-home)/jre/bin"
else
# Sun derived JDKs (Blackdown, Sun)
JAVA_LIB_DIR="$(java-config --jdk-home)/jre/lib/${jvmarch}"
fi
einfo "Using bootclasspath ${bootclasspath}"
einfo "Using JVM library path ${JAVA_LIB_DIR}"
if [[ ! -f ${JAVA_LIB_DIR}/libawt.so ]] ; then
die "Could not find libawt.so native library"
fi
export AWT_LIB_PATH=${JAVA_LIB_DIR}
}
setup-mozilla-opts() {
export GECKO_SDK="/usr/$(get_libdir)/seamonkey"
# TODO should this be using pkg-config?
export GECKO_INCLUDES=$(pkg-config seamonkey-gtkmozembed --cflags)
export GECKO_LIBS=$(pkg-config seamonkey-gtkmozembed --libs)
}
pkg_postinst() {
einfo "Users can now install plugins via Update Manager without any"
einfo "tweaking."
echo
einfo "Eclipse plugin packages (ie eclipse-cdt) will likely go away in"
einfo "the near future until they can be properly packaged. Update Manager"
einfo "is prefered in the meantime."
}
# Copyright 2007-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/eclipse-sdk-3.3.1.1-r1.ebuild,v 1.2 2008/04/08 16:07:51 caster Exp $
# Tomcat is almost no longer needed in 3.3 and removed in 3.4.
# See bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=173692
# Currently we remove the Tomcat stuff entirely - potentially this can still break things.
# We'll put it back if there is any bug report, which is unlikely.
# To unbundle a jar, do the following:
# 1) Rewrite the ebuild so it uses OSGi packaging
# 2) Add the dependency and add it to gentoo_jars/system_jars
# 3) Remove it from the build directory, and don't forget to modify the main Ant file
# so that it does *NOT* copy the file at the end
# 4) Install the symlink itself via java-pkg_jarfrom
# Jetty, Tomcat-jasper and Lucene analysis (1.9.1) jars have to stay bundled for now, until someone does some work on them.
# Hopefully, wltjr will soon package tomcat-jasper.
# Current patches are hard to maintain when revbumping.
# Two solutions:
# 1) Split patches so that there is one per file
# 2) Use sed, better solution I would say.
EAPI="1"
JAVA_PKG_IUSE="doc"
inherit java-pkg-2 java-ant-2 check-reqs
DMF="R-${PV}-200710231652"
MY_A="eclipse-sourceBuild-srcIncluded-${PV/.0}.zip"
DESCRIPTION="Eclipse Tools Platform"
HOMEPAGE="http://www.eclipse.org/"
SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/${DMF}/${MY_A}"
SLOT="3.3"
LICENSE="EPL-1.0"
IUSE=""
KEYWORDS="~amd64 ~x86"
S=${WORKDIR}
PATCHDIR="${FILESDIR}/${SLOT}"
FEDORA="${PATCHDIR}/fedora"
ECLIPSE_DIR="/usr/lib/eclipse-${SLOT}"
CDEPEND=">=dev-java/ant-eclipse-ecj-3.3
dev-java/ant-core
dev-java/ant-nodeps
=dev-java/junit-3*
dev-java/junit:4
>=dev-java/icu4j-3.6.1
>=dev-java/commons-el-1.0-r2
>=dev-java/commons-logging-1.1-r6
>=dev-java/tomcat-servlet-api-5.5.25-r1:2.4
dev-java/lucene:1.9"
RDEPEND=">=virtual/jre-1.5
${CDEPEND}"
DEPEND=">=virtual/jdk-1.5
sys-apps/findutils
dev-java/cldc-api:1.1
app-arch/unzip
app-arch/zip
${CDEPEND}"
JAVA_PKG_BSFIX="off"
pkg_setup() {
java-pkg-2_pkg_setup
CHECKREQS_MEMORY="768"
check_reqs
eclipseArch=${ARCH}
use amd64 && eclipseArch="x86_64"
}
src_unpack() {
unpack ${A}
patch-apply
remove-bundled-stuff
# No warnings / Java 5 / all output should be directed to stdout
find "${S}" -type f -name '*.xml' -exec \
sed -r -e "s:(-encoding ISO-8859-1):\1 -nowarn:g" -e "s:(\"compilerArg\" value=\"):\1-nowarn :g" \
-e "s:(
# JDK home
sed -r -e "s:^(JAVA_HOME =) .*:\1 $(java-config --jdk-home):" -e "s:gcc :gcc ${CFLAGS} :" \
-i plugins/org.eclipse.core.filesystem/natives/unix/linux/Makefile || die "sed Makefile failed"
while read line; do
java-ant_rewrite-classpath "$line" > /dev/null
done < <(find "${S}" -type f -name "build.xml" )
}
src_compile() {
# Figure out correct boot classpath
local bootClassPath=$(java-config --runtime)
einfo "Using boot classpath ${bootClassPath}"
java-pkg_force-compiler ecj-3.3
# system_jars will be used when compiling (javac)
# gentoo_jars will be used when building JSPs and other ant tasks (not javac)
local systemJars="$(java-pkg_getjars swt-3,icu4j,ant-core,jsch,ant-nodeps,junit-4,tomcat-servlet-api-2.4,lucene-1.9):$(java-pkg_getjars --build-only cldc-api-1.1)"
local gentooJars="$(java-pkg_getjars ant-core,icu4j,jsch,commons-logging,commons-el,tomcat-servlet-api-2.4)"
local options="-q -Dnobootstrap=true -Dlibsconfig=true -Dbootclasspath=${bootClassPath} -DinstallOs=linux \
-DinstallWs=gtk -DinstallArch=${eclipseArch} -Djava5.home=$(java-config --jdk-home)"
use doc && options="${options} -Dgentoo.javadoc=true"
ANT_OPTS=-Xmx1024M ANT_TASKS="ant-nodeps" eant ${options} -Dgentoo.classpath="${systemJars}" -Dgentoo.jars="${gentooJars//:/,}"
}
src_install() {
dodir /usr/lib
[[ -f result/linux-gtk-${eclipseArch}-sdk.tar.gz ]] || die "tar.gz bundle was not built properly!"
tar zxf "result/linux-gtk-${eclipseArch}-sdk.tar.gz" -C "${D}/usr/lib" || die "Failed to extract the built package"
mv "${D}/usr/lib/eclipse" "${D}/${ECLIPSE_DIR}"
# Install startup script
newbin "${FILESDIR}"/${SLOT}/eclipse-${SLOT}-r1 eclipse-${SLOT}
# Chmod the actual binary in the Eclipse dir
chmod +x "${D}/${ECLIPSE_DIR}/eclipse"
insinto "/etc" && doins "${FILESDIR}/${SLOT}/eclipserc"
make_desktop_entry eclipse-${SLOT} "Eclipse ${PV}" "${ECLIPSE_DIR}/icon.xpm"
cd "${D}/${ECLIPSE_DIR}"
install-link-system-jars
}
pkg_postinst() {
einfo
einfo "Welcome to Eclipse-3.3 (Europa)!"
einfo
einfo "You can now install plugins via Update Manager without any"
einfo "tweaking. This is the recommended way to install new features for Eclipse."
einfo
einfo "Please read http://gentoo-wiki.com/Eclipse"
einfo "It contains a lot of useful information and help about Eclipse on Gentoo."
}
# -----------------------------------------------------------------------------
# Helper functions
# -----------------------------------------------------------------------------
install-link-system-jars() {
pushd plugins/ > /dev/null
java-pkg_jarfrom swt-3
mkdir "org.apache.ant"
mkdir "org.apache.ant/META-INF/"
mkdir "org.apache.ant/lib"
cp "${FILESDIR}/${SLOT}/ant-osgi-manifest.mf" "org.apache.ant/META-INF/MANIFEST.MF"
pushd org.apache.ant/lib > /dev/null
java-pkg_jarfrom ant-core
java-pkg_jarfrom ant-nodeps
popd > /dev/null
java-pkg_jarfrom icu4j
java-pkg_jarfrom jsch
java-pkg_jarfrom commons-el
java-pkg_jarfrom commons-logging
java-pkg_jarfrom lucene-1.9
java-pkg_jarfrom tomcat-servlet-api-2.4
popd > /dev/null
pushd plugins/org.junit_*/ > /dev/null
java-pkg_jarfrom junit
popd > /dev/null
pushd plugins/org.junit4*/ > /dev/null
java-pkg_jarfrom junit-4
popd > /dev/null
}
patch-apply() {
# Patch launcher source
mkdir launchertmp
unzip -qq -d launchertmp plugins/org.eclipse.platform/launchersrc.zip > /dev/null || die "unzip failed"
pushd launchertmp/ > /dev/null
epatch "${PATCHDIR}/launcher_double-free.diff"
sed -i "s/CFLAGS\ =\ -O\ -s\ -Wall/CFLAGS = ${CFLAGS}\ -Wall/" library/gtk/make_linux.mak \
|| die "Failed to tweak make_linux.mak"
zip -q -6 -r ../launchersrc.zip * >/dev/null || die "zip failed"
popd > /dev/null
mv launchersrc.zip plugins/org.eclipse.platform/launchersrc.zip
rm -rf launchertmp
# Disable SWT, JDT-Tool, JDK-6
epatch "${PATCHDIR}/disable-swt.diff"
epatch "${PATCHDIR}/disable-jdt-tool.diff"
epatch "${PATCHDIR}/disable-jdk6.diff"
epatch "${PATCHDIR}/set-java-home.diff" # this setups the java5 home variable
# Following are patches from Fedora - I did not investigate this yet
epatch "${FEDORA}/eclipse-libupdatebuild2.patch"
# Fedora does not apply this anymore because they checkout
# org.eclipse.equinox.initializer project from cvs. Untill a fix, we'll
# keep the old patch
pushd plugins/org.eclipse.core.runtime >/dev/null
epatch "${FEDORA}/eclipse-fileinitializer.patch"
popd >/dev/null
# Generic releng plugins that can be used to build plugins
# https://www.redhat.com/archives/fedora-devel-java-list/2006-April/msg00048.html
pushd plugins/org.eclipse.pde.build > /dev/null
# Patch 53
epatch "${FEDORA}/eclipse-pde.build-add-package-build.patch"
sed -e "s:@eclipse_base@:${ECLIPSE_DIR}:g" -i templates/package-build/build.properties
popd > /dev/null
# Gentoo patch to support jsch-0.1.36 - ali_bush
# Already fixed in upstream svn. Remove after next release?
pushd "plugins/org.eclipse.jsch.ui" > /dev/null
epatch "${PATCHDIR}/eclipse-jsch-api-update.patch"
popd > /dev/null
# Later we could produce a patch out of all these sed, but this is not the best solution
# since this would make a lot of patches (x86, x86_64...) and would be hard to revbump
# Following adds an additional classpath when building JSPs
sed -i '/
# Following allows the doc USE flag to be honored
sed -i -e '/
-e '/
"plugins/org.eclipse.platform.doc.isv/buildDoc.xml"
# Following disables Tomcat entirely
sed -i '/plugins\/org\.eclipse\.tomcat"/{N;N;N;N;d;}' "features/org.eclipse.platform/build.xml"
sed -i '/org\.eclipse\.tomcat/{N;N;N;d;}' "plugins/org.eclipse.platform.source/build.xml"
sed -i '/
# This allows to compile osgi.util and osgi.service, and fixes IPluginDescriptor.class which is present compiled
sed -i -e 's/
-e '/
}' "plugins/org.eclipse.osgi.services/build.xml"
sed -i -e 's/
-e '/
}' "plugins/org.eclipse.osgi.util/build.xml"
sed -i '/
# This removes the copying operation for bundled jars
sed -i -e "s/
-e "s/
-e "s/
# -e "s/
}
remove-bundled-stuff() {
# Remove pre-built eclipse binaries
find "${S}" -type f -name eclipse | xargs rm
# ... .so libraries
find "${S}" -type f -name '*.so' | xargs rm
# ... .jar files
rm plugins/org.eclipse.swt/extra_jars/exceptions.jar plugins/org.eclipse.osgi/osgi/osgi*.jar \
plugins/org.eclipse.osgi/supplement/osgi/osgi.jar
rm -rf plugins/org.eclipse.swt.*
rm -rf plugins/org.apache.ant_*
rm plugins/org.apache.commons.*.jar
rm plugins/com.jcraft.jsch*
rm plugins/com.ibm.icu*
rm plugins/org.junit_*/*.jar
rm plugins/org.junit4*/*.jar
rm plugins/javax.*.jar
rm plugins/org.apache.lucene_*.jar
# Removing Tomcat stuff
rm -rf "plugins/org.eclipse.tomcat/"
# Remove bundled classes
rm -rf "plugins/org.eclipse.osgi.services/org"
unzip -q "plugins/org.eclipse.osgi.services/src.zip" -d "plugins/org.eclipse.osgi.services/"
rm -rf "plugins/org.eclipse.osgi.util/org"
unzip -q "plugins/org.eclipse.osgi.util/src.zip" -d "plugins/org.eclipse.osgi.util/"
rm -rf plugins/org.eclipse.jdt.core/scripts/*.class
rm -rf plugins/org.eclipse.core.runtime.compatibility.registry/classes
}
# Copyright 2007-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/eclipse-sdk-3.3.1.1-r2.ebuild,v 1.2 2008/08/01 20:27:52 elvanor Exp $
# Tomcat is almost no longer needed in 3.3 and removed in 3.4.
# See bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=173692
# Currently we remove the Tomcat stuff entirely - potentially this can still break things.
# We'll put it back if there is any bug report, which is unlikely.
# To unbundle a jar, do the following:
# 1) Rewrite the ebuild so it uses OSGi packaging
# 2) Add the dependency and add it to gentoo_jars/system_jars
# 3) Remove it from the build directory, and don't forget to modify the main Ant file
# so that it does *NOT* copy the file at the end
# 4) Install the symlink itself via java-pkg_jarfrom
# Jetty, Tomcat-jasper and Lucene analysis (1.9.1) jars have to stay bundled for now, until someone does some work on them.
# Hopefully, wltjr will soon package tomcat-jasper.
# Current patches are hard to maintain when revbumping.
# Two solutions:
# 1) Split patches so that there is one per file
# 2) Use sed, better solution I would say.
EAPI="1"
JAVA_PKG_IUSE="doc"
inherit java-pkg-2 java-ant-2 check-reqs
DMF="R-${PV}-200710231652"
MY_A="eclipse-sourceBuild-srcIncluded-${PV/.0}.zip"
DESCRIPTION="Eclipse Tools Platform"
HOMEPAGE="http://www.eclipse.org/"
SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/${DMF}/${MY_A}"
SLOT="3.3"
LICENSE="EPL-1.0"
IUSE=""
KEYWORDS="~amd64 ~x86"
S=${WORKDIR}
PATCHDIR="${FILESDIR}/${SLOT}"
FEDORA="${PATCHDIR}/fedora"
ECLIPSE_DIR="/usr/lib/eclipse-${SLOT}"
CDEPEND="dev-java/ant-eclipse-ecj:3.3
dev-java/ant-core
dev-java/ant-nodeps
=dev-java/junit-3*
dev-java/junit:4
>=dev-java/icu4j-3.6.1:0
>=dev-java/commons-el-1.0-r2
>=dev-java/commons-logging-1.1-r6
>=dev-java/tomcat-servlet-api-5.5.25-r1:2.4
dev-java/lucene:1.9"
RDEPEND=">=virtual/jre-1.5
${CDEPEND}"
DEPEND=">=virtual/jdk-1.5
sys-apps/findutils
dev-java/cldc-api:1.1
app-arch/unzip
app-arch/zip
${CDEPEND}"
JAVA_PKG_BSFIX="off"
pkg_setup() {
java-pkg-2_pkg_setup
CHECKREQS_MEMORY="768"
check_reqs
eclipseArch=${ARCH}
use amd64 && eclipseArch="x86_64"
}
src_unpack() {
unpack ${A}
patch-apply
remove-bundled-stuff
# No warnings / Java 5 / all output should be directed to stdout
find "${S}" -type f -name '*.xml' -exec \
sed -r -e "s:(-encoding ISO-8859-1):\1 -nowarn:g" -e "s:(\"compilerArg\" value=\"):\1-nowarn :g" \
-e "s:(
# JDK home
sed -r -e "s:^(JAVA_HOME =) .*:\1 $(java-config --jdk-home):" -e "s:gcc :gcc ${CFLAGS} :" \
-i plugins/org.eclipse.core.filesystem/natives/unix/linux/Makefile || die "sed Makefile failed"
while read line; do
java-ant_rewrite-classpath "$line" > /dev/null
done < <(find "${S}" -type f -name "build.xml" )
}
src_compile() {
# Figure out correct boot classpath
local bootClassPath=$(java-config --runtime)
einfo "Using boot classpath ${bootClassPath}"
java-pkg_force-compiler ecj-3.3
# system_jars will be used when compiling (javac)
# gentoo_jars will be used when building JSPs and other ant tasks (not javac)
local systemJars="$(java-pkg_getjars swt-3,icu4j,ant-core,jsch,ant-nodeps,junit-4,tomcat-servlet-api-2.4,lucene-1.9):$(java-pkg_getjars --build-only cldc-api-1.1)"
local gentooJars="$(java-pkg_getjars ant-core,icu4j,jsch,commons-logging,commons-el,tomcat-servlet-api-2.4)"
local options="-q -Dnobootstrap=true -Dlibsconfig=true -Dbootclasspath=${bootClassPath} -DinstallOs=linux \
-DinstallWs=gtk -DinstallArch=${eclipseArch} -Djava5.home=$(java-config --jdk-home)"
use doc && options="${options} -Dgentoo.javadoc=true"
ANT_OPTS=-Xmx1024M ANT_TASKS="ant-nodeps" eant ${options} -Dgentoo.classpath="${systemJars}" -Dgentoo.jars="${gentooJars//:/,}"
}
src_install() {
dodir /usr/lib
[[ -f result/linux-gtk-${eclipseArch}-sdk.tar.gz ]] || die "tar.gz bundle was not built properly!"
tar zxf "result/linux-gtk-${eclipseArch}-sdk.tar.gz" -C "${D}/usr/lib" || die "Failed to extract the built package"
mv "${D}/usr/lib/eclipse" "${D}/${ECLIPSE_DIR}"
# Install startup script
newbin "${FILESDIR}"/${SLOT}/eclipse-${SLOT}-r1 eclipse-${SLOT}
# Chmod the actual binary in the Eclipse dir
chmod +x "${D}/${ECLIPSE_DIR}/eclipse"
insinto "/etc" && doins "${FILESDIR}/${SLOT}/eclipserc"
make_desktop_entry eclipse-${SLOT} "Eclipse ${PV}" "${ECLIPSE_DIR}/icon.xpm"
cd "${D}/${ECLIPSE_DIR}"
install-link-system-jars
}
pkg_postinst() {
einfo
einfo "Welcome to Eclipse-3.3 (Europa)!"
einfo
einfo "You can now install plugins via Update Manager without any"
einfo "tweaking. This is the recommended way to install new features for Eclipse."
einfo
einfo "Please read http://gentoo-wiki.com/Eclipse"
einfo "It contains a lot of useful information and help about Eclipse on Gentoo."
}
# -----------------------------------------------------------------------------
# Helper functions
# -----------------------------------------------------------------------------
install-link-system-jars() {
pushd plugins/ > /dev/null
java-pkg_jarfrom swt-3
mkdir "org.apache.ant"
mkdir "org.apache.ant/META-INF/"
mkdir "org.apache.ant/lib"
cp "${FILESDIR}/${SLOT}/ant-osgi-manifest.mf" "org.apache.ant/META-INF/MANIFEST.MF"
pushd org.apache.ant/lib > /dev/null
java-pkg_jarfrom ant-core
java-pkg_jarfrom ant-nodeps
popd > /dev/null
java-pkg_jarfrom icu4j
java-pkg_jarfrom jsch
java-pkg_jarfrom commons-el
java-pkg_jarfrom commons-logging
java-pkg_jarfrom lucene-1.9
java-pkg_jarfrom tomcat-servlet-api-2.4
popd > /dev/null
pushd plugins/org.junit_*/ > /dev/null
java-pkg_jarfrom junit
popd > /dev/null
pushd plugins/org.junit4*/ > /dev/null
java-pkg_jarfrom junit-4
popd > /dev/null
}
patch-apply() {
# Patch launcher source
mkdir launchertmp
unzip -qq -d launchertmp plugins/org.eclipse.platform/launchersrc.zip > /dev/null || die "unzip failed"
pushd launchertmp/ > /dev/null
epatch "${PATCHDIR}/launcher_double-free.diff"
sed -i "s/CFLAGS\ =\ -O\ -s\ -Wall/CFLAGS = ${CFLAGS}\ -Wall/" library/gtk/make_linux.mak \
|| die "Failed to tweak make_linux.mak"
zip -q -6 -r ../launchersrc.zip * >/dev/null || die "zip failed"
popd > /dev/null
mv launchersrc.zip plugins/org.eclipse.platform/launchersrc.zip
rm -rf launchertmp
# Disable SWT, JDT-Tool, JDK-6
epatch "${PATCHDIR}/disable-swt.diff"
epatch "${PATCHDIR}/disable-jdt-tool.diff"
epatch "${PATCHDIR}/disable-jdk6.diff"
epatch "${PATCHDIR}/set-java-home.diff" # this setups the java5 home variable
# Following are patches from Fedora - I did not investigate this yet
epatch "${FEDORA}/eclipse-libupdatebuild2.patch"
# Fedora does not apply this anymore because they checkout
# org.eclipse.equinox.initializer project from cvs. Untill a fix, we'll
# keep the old patch
pushd plugins/org.eclipse.core.runtime >/dev/null
epatch "${FEDORA}/eclipse-fileinitializer.patch"
popd >/dev/null
# Generic releng plugins that can be used to build plugins
# https://www.redhat.com/archives/fedora-devel-java-list/2006-April/msg00048.html
pushd plugins/org.eclipse.pde.build > /dev/null
# Patch 53
epatch "${FEDORA}/eclipse-pde.build-add-package-build.patch"
sed -e "s:@eclipse_base@:${ECLIPSE_DIR}:g" -i templates/package-build/build.properties
popd > /dev/null
# Gentoo patch to support jsch-0.1.36 - ali_bush
# Already fixed in upstream svn. Remove after next release?
pushd "plugins/org.eclipse.jsch.ui" > /dev/null
epatch "${PATCHDIR}/eclipse-jsch-api-update.patch"
popd > /dev/null
# Later we could produce a patch out of all these sed, but this is not the best solution
# since this would make a lot of patches (x86, x86_64...) and would be hard to revbump
# Following adds an additional classpath when building JSPs
sed -i '/
# Following allows the doc USE flag to be honored
sed -i -e '/
-e '/
"plugins/org.eclipse.platform.doc.isv/buildDoc.xml"
# Following disables Tomcat entirely
sed -i '/plugins\/org\.eclipse\.tomcat"/{N;N;N;N;d;}' "features/org.eclipse.platform/build.xml"
sed -i '/org\.eclipse\.tomcat/{N;N;N;d;}' "plugins/org.eclipse.platform.source/build.xml"
sed -i '/
# This allows to compile osgi.util and osgi.service, and fixes IPluginDescriptor.class which is present compiled
sed -i -e 's/
-e '/
}' "plugins/org.eclipse.osgi.services/build.xml"
sed -i -e 's/
-e '/
}' "plugins/org.eclipse.osgi.util/build.xml"
sed -i '/
# This removes the copying operation for bundled jars
sed -i -e "s/
-e "s/
-e "s/
# -e "s/
}
remove-bundled-stuff() {
# Remove pre-built eclipse binaries
find "${S}" -type f -name eclipse | xargs rm
# ... .so libraries
find "${S}" -type f -name '*.so' | xargs rm
# ... .jar files
rm plugins/org.eclipse.swt/extra_jars/exceptions.jar plugins/org.eclipse.osgi/osgi/osgi*.jar \
plugins/org.eclipse.osgi/supplement/osgi/osgi.jar
rm -rf plugins/org.eclipse.swt.*
rm -rf plugins/org.apache.ant_*
rm plugins/org.apache.commons.*.jar
rm plugins/com.jcraft.jsch*
rm plugins/com.ibm.icu*
rm plugins/org.junit_*/*.jar
rm plugins/org.junit4*/*.jar
rm plugins/javax.*.jar
rm plugins/org.apache.lucene_*.jar
# Removing Tomcat stuff
rm -rf "plugins/org.eclipse.tomcat/"
# Remove bundled classes
rm -rf "plugins/org.eclipse.osgi.services/org"
unzip -q "plugins/org.eclipse.osgi.services/src.zip" -d "plugins/org.eclipse.osgi.services/"
rm -rf "plugins/org.eclipse.osgi.util/org"
unzip -q "plugins/org.eclipse.osgi.util/src.zip" -d "plugins/org.eclipse.osgi.util/"
rm -rf plugins/org.eclipse.jdt.core/scripts/*.class
rm -rf plugins/org.eclipse.core.runtime.compatibility.registry/classes
}
# Copyright 2007-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/eclipse-sdk-3.3.1.1.ebuild,v 1.6 2008/04/08 16:07:51 caster Exp $
# Tomcat is almost no longer needed in 3.3 and removed in 3.4.
# See bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=173692
# Currently we remove the Tomcat stuff entirely - potentially this can still break things.
# We'll put it back if there is any bug report, which is unlikely.
# To unbundle a jar, do the following:
# 1) Rewrite the ebuild so it uses OSGi packaging
# 2) Add the dependency and add it to gentoo_jars/system_jars
# 3) Remove it from the build directory, and don't forget to modify the main Ant file
# so that it does *NOT* copy the file at the end
# 4) Install the symlink itself via java-pkg_jarfrom
# Jetty, Tomcat-jasper and Lucene analysis (1.9.1) jars have to stay bundled for now, until someone does some work on them.
# Hopefully, wltjr will soon package tomcat-jasper.
# Current patches are hard to maintain when revbumping.
# Two solutions:
# 1) Split patches so that there is one per file
# 2) Use sed, better solution I would say.
EAPI="1"
JAVA_PKG_IUSE="doc"
inherit java-pkg-2 java-ant-2 check-reqs
DMF="R-${PV}-200710231652"
MY_A="eclipse-sourceBuild-srcIncluded-${PV/.0}.zip"
DESCRIPTION="Eclipse Tools Platform"
HOMEPAGE="http://www.eclipse.org/"
SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/${DMF}/${MY_A}"
SLOT="3.3"
LICENSE="EPL-1.0"
IUSE=""
KEYWORDS="~amd64 ~x86"
S=${WORKDIR}
PATCHDIR="${FILESDIR}/${SLOT}"
FEDORA="${PATCHDIR}/fedora"
ECLIPSE_DIR="/usr/lib/eclipse-${SLOT}"
CDEPEND=">=dev-java/ant-eclipse-ecj-3.3
dev-java/ant-core
dev-java/ant-nodeps
=dev-java/junit-3*
dev-java/junit:4
>=dev-java/icu4j-3.6.1
>=dev-java/commons-el-1.0-r2
>=dev-java/commons-logging-1.1-r6
>=dev-java/tomcat-servlet-api-5.5.25-r1:2.4
dev-java/lucene:1.9"
RDEPEND=">=virtual/jre-1.5
${CDEPEND}"
DEPEND=">=virtual/jdk-1.5
sys-apps/findutils
dev-java/cldc-api:1.1
app-arch/unzip
app-arch/zip
${CDEPEND}"
JAVA_PKG_BSFIX="off"
pkg_setup() {
java-pkg-2_pkg_setup
CHECKREQS_MEMORY="768"
check_reqs
eclipseArch=${ARCH}
use amd64 && eclipseArch="x86_64"
}
src_unpack() {
unpack ${A}
patch-apply
remove-bundled-stuff
# No warnings / Java 5 / all output should be directed to stdout
find "${S}" -type f -name '*.xml' -exec \
sed -r -e "s:(-encoding ISO-8859-1):\1 -nowarn:g" -e "s:(\"compilerArg\" value=\"):\1-nowarn :g" \
-e "s:(
# JDK home
sed -r -e "s:^(JAVA_HOME =) .*:\1 $(java-config --jdk-home):" -e "s:gcc :gcc ${CFLAGS} :" \
-i plugins/org.eclipse.core.filesystem/natives/unix/linux/Makefile || die "sed Makefile failed"
while read line; do
java-ant_rewrite-classpath "$line" > /dev/null
done < <(find "${S}" -type f -name "build.xml" )
}
src_compile() {
# Figure out correct boot classpath
local bootClassPath=$(java-config --runtime)
einfo "Using boot classpath ${bootClassPath}"
java-pkg_force-compiler ecj-3.3
# system_jars will be used when compiling (javac)
# gentoo_jars will be used when building JSPs and other ant tasks (not javac)
local systemJars="$(java-pkg_getjars swt-3,icu4j,ant-core,jsch,ant-nodeps,junit-4,tomcat-servlet-api-2.4,lucene-1.9):$(java-pkg_getjars --build-only cldc-api-1.1)"
local gentooJars="$(java-pkg_getjars ant-core,icu4j,jsch,commons-logging,commons-el,tomcat-servlet-api-2.4)"
local options="-q -Dnobootstrap=true -Dlibsconfig=true -Dbootclasspath=${bootClassPath} -DinstallOs=linux \
-DinstallWs=gtk -DinstallArch=${eclipseArch} -Djava5.home=$(java-config --jdk-home)"
use doc && options="${options} -Dgentoo.javadoc=true"
ANT_OPTS=-Xmx1024M ANT_TASKS="ant-nodeps" eant ${options} -Dgentoo.classpath="${systemJars}" -Dgentoo.jars="${gentooJars//:/,}"
}
src_install() {
dodir /usr/lib
[[ -f result/linux-gtk-${eclipseArch}-sdk.tar.gz ]] || die "tar.gz bundle was not built properly!"
tar zxf "result/linux-gtk-${eclipseArch}-sdk.tar.gz" -C "${D}/usr/lib" || die "Failed to extract the built package"
mv "${D}/usr/lib/eclipse" "${D}/${ECLIPSE_DIR}"
# Install startup script
dobin "${FILESDIR}/${SLOT}/eclipse-${SLOT}"
# Chmod the actual binary in the Eclipse dir
chmod +x "${D}/${ECLIPSE_DIR}/eclipse"
insinto "/etc" && doins "${FILESDIR}/${SLOT}/eclipserc"
make_desktop_entry eclipse-${SLOT} "Eclipse ${PV}" "${ECLIPSE_DIR}/icon.xpm"
cd "${D}/${ECLIPSE_DIR}"
install-link-system-jars
}
pkg_postinst() {
einfo
einfo "Welcome to Eclipse-3.3 (Europa)!"
einfo
einfo "You can now install plugins via Update Manager without any"
einfo "tweaking. This is the recommended way to install new features for Eclipse."
einfo
einfo "Please read http://gentoo-wiki.com/Eclipse"
einfo "It contains a lot of useful information and help about Eclipse on Gentoo."
}
# -----------------------------------------------------------------------------
# Helper functions
# -----------------------------------------------------------------------------
install-link-system-jars() {
pushd plugins/ > /dev/null
java-pkg_jarfrom swt-3
mkdir "org.apache.ant"
mkdir "org.apache.ant/META-INF/"
mkdir "org.apache.ant/lib"
cp "${FILESDIR}/${SLOT}/ant-osgi-manifest.mf" "org.apache.ant/META-INF/MANIFEST.MF"
pushd org.apache.ant/lib > /dev/null
java-pkg_jarfrom ant-core
java-pkg_jarfrom ant-nodeps
popd > /dev/null
java-pkg_jarfrom icu4j
java-pkg_jarfrom jsch
java-pkg_jarfrom commons-el
java-pkg_jarfrom commons-logging
java-pkg_jarfrom lucene-1.9
java-pkg_jarfrom tomcat-servlet-api-2.4
popd > /dev/null
pushd plugins/org.junit_*/ > /dev/null
java-pkg_jarfrom junit
popd > /dev/null
pushd plugins/org.junit4*/ > /dev/null
java-pkg_jarfrom junit-4
popd > /dev/null
}
patch-apply() {
# Patch launcher source
mkdir launchertmp
unzip -qq -d launchertmp plugins/org.eclipse.platform/launchersrc.zip > /dev/null || die "unzip failed"
pushd launchertmp/ > /dev/null
epatch "${PATCHDIR}/launcher_double-free.diff"
sed -i "s/CFLAGS\ =\ -O\ -s\ -Wall/CFLAGS = ${CFLAGS}\ -Wall/" library/gtk/make_linux.mak \
|| die "Failed to tweak make_linux.mak"
zip -q -6 -r ../launchersrc.zip * >/dev/null || die "zip failed"
popd > /dev/null
mv launchersrc.zip plugins/org.eclipse.platform/launchersrc.zip
rm -rf launchertmp
# Disable SWT, JDT-Tool, JDK-6
epatch "${PATCHDIR}/disable-swt.diff"
epatch "${PATCHDIR}/disable-jdt-tool.diff"
epatch "${PATCHDIR}/disable-jdk6.diff"
epatch "${PATCHDIR}/set-java-home.diff" # this setups the java5 home variable
# Following are patches from Fedora - I did not investigate this yet
epatch "${FEDORA}/eclipse-libupdatebuild2.patch"
# Fedora does not apply this anymore because they checkout
# org.eclipse.equinox.initializer project from cvs. Untill a fix, we'll
# keep the old patch
pushd plugins/org.eclipse.core.runtime >/dev/null
epatch "${FEDORA}/eclipse-fileinitializer.patch"
popd >/dev/null
# Generic releng plugins that can be used to build plugins
# https://www.redhat.com/archives/fedora-devel-java-list/2006-April/msg00048.html
pushd plugins/org.eclipse.pde.build > /dev/null
# Patch 53
epatch "${FEDORA}/eclipse-pde.build-add-package-build.patch"
sed -e "s:@eclipse_base@:${ECLIPSE_DIR}:g" -i templates/package-build/build.properties
popd > /dev/null
# Gentoo patch to support jsch-0.1.36 - ali_bush
# Already fixed in upstream svn. Remove after next release?
pushd "plugins/org.eclipse.jsch.ui" > /dev/null
epatch "${PATCHDIR}/eclipse-jsch-api-update.patch"
popd > /dev/null
# Later we could produce a patch out of all these sed, but this is not the best solution
# since this would make a lot of patches (x86, x86_64...) and would be hard to revbump
# Following adds an additional classpath when building JSPs
sed -i '/
# Following allows the doc USE flag to be honored
sed -i -e '/
-e '/
"plugins/org.eclipse.platform.doc.isv/buildDoc.xml"
# Following disables Tomcat entirely
sed -i '/plugins\/org\.eclipse\.tomcat"/{N;N;N;N;d;}' "features/org.eclipse.platform/build.xml"
sed -i '/org\.eclipse\.tomcat/{N;N;N;d;}' "plugins/org.eclipse.platform.source/build.xml"
sed -i '/
# This allows to compile osgi.util and osgi.service, and fixes IPluginDescriptor.class which is present compiled
sed -i -e 's/
-e '/
}' "plugins/org.eclipse.osgi.services/build.xml"
sed -i -e 's/
-e '/
}' "plugins/org.eclipse.osgi.util/build.xml"
sed -i '/
# This removes the copying operation for bundled jars
sed -i -e "s/
-e "s/
-e "s/
# -e "s/
}
remove-bundled-stuff() {
# Remove pre-built eclipse binaries
find "${S}" -type f -name eclipse | xargs rm
# ... .so libraries
find "${S}" -type f -name '*.so' | xargs rm
# ... .jar files
rm plugins/org.eclipse.swt/extra_jars/exceptions.jar plugins/org.eclipse.osgi/osgi/osgi*.jar \
plugins/org.eclipse.osgi/supplement/osgi/osgi.jar
rm -rf plugins/org.eclipse.swt.*
rm -rf plugins/org.apache.ant_*
rm plugins/org.apache.commons.*.jar
rm plugins/com.jcraft.jsch*
rm plugins/com.ibm.icu*
rm plugins/org.junit_*/*.jar
rm plugins/org.junit4*/*.jar
rm plugins/javax.*.jar
rm plugins/org.apache.lucene_*.jar
# Removing Tomcat stuff
rm -rf "plugins/org.eclipse.tomcat/"
# Remove bundled classes
rm -rf "plugins/org.eclipse.osgi.services/org"
unzip -q "plugins/org.eclipse.osgi.services/src.zip" -d "plugins/org.eclipse.osgi.services/"
rm -rf "plugins/org.eclipse.osgi.util/org"
unzip -q "plugins/org.eclipse.osgi.util/src.zip" -d "plugins/org.eclipse.osgi.util/"
rm -rf plugins/org.eclipse.jdt.core/scripts/*.class
rm -rf plugins/org.eclipse.core.runtime.compatibility.registry/classes
}
# Copyright 2007-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/eclipse-sdk-3.4-r2.ebuild,v 1.1 2008/08/05 08:07:53 elvanor Exp $
# To unbundle a jar, do the following:
# 1) Rewrite the ebuild so it uses OSGi packaging
# 2) Add the dependency and add it to gentoo_jars/system_jars
# 3) Remove it from the build directory, and don't forget to modify the main Ant file
# so that it does *NOT* copy the file at the end
# 4) Install the symlink itself via java-pkg_jarfrom
# Jetty, Tomcat-jasper have to stay bundled for now, until someone does some work on them.
# Current patches are hard to maintain when revbumping.
# Two solutions:
# 1) Split patches so that there is one per file
# 2) Use sed, better solution I would say.
EAPI="1"
JAVA_PKG_IUSE="doc"
inherit java-pkg-2 java-ant-2 check-reqs
DMF="R-${PV}-200806172000"
MY_A="eclipse-sourceBuild-srcIncluded-${PV}.zip"
DESCRIPTION="Eclipse Tools Platform"
HOMEPAGE="http://www.eclipse.org/"
SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/${DMF}/${MY_A}"
SLOT="3.4"
LICENSE="EPL-1.0"
IUSE="java6"
KEYWORDS="~amd64 ~ppc ~x86"
S=${WORKDIR}
PATCHDIR="${FILESDIR}/${SLOT}"
FEDORA="${PATCHDIR}/fedora"
ECLIPSE_DIR="/usr/lib/eclipse-${SLOT}"
CDEPEND="dev-java/ant-eclipse-ecj:${SLOT}
dev-java/ant-core
dev-java/ant-nodeps
dev-java/junit:0
dev-java/junit:4
dev-java/swt:${SLOT}
>=dev-java/jsch-0.1.36-r1
>=dev-java/icu4j-3.8.1:0
>=dev-java/commons-el-1.0-r2
>=dev-java/commons-logging-1.1-r6
>=dev-java/tomcat-servlet-api-5.5.25-r1:2.4
dev-java/lucene:1.9
>=dev-java/lucene-analyzers-1.9.1-r1:1.9"
RDEPEND=">=virtual/jre-1.5
${CDEPEND}"
DEPEND=">=virtual/jdk-1.5
java6? ( >=virtual/jdk-1.6 )
dev-java/cldc-api:1.1
app-arch/unzip
app-arch/zip
${CDEPEND}"
JAVA_PKG_BSFIX="off"
pkg_setup() {
java-pkg-2_pkg_setup
CHECKREQS_MEMORY="512"
check_reqs
eclipsearch=${ARCH}
use amd64 && eclipsearch="x86_64"
}
src_unpack() {
unpack ${A}
patch-apply
remove-bundled-stuff
# Specific Gentoo tweaks for the build
find "${S}" -type f -name '*.xml' -exec \
sed -r -e "s:(-encoding ISO-8859-1):\1 -nowarn:g" \
-e "s:(\"compilerArg\" value=\"):\1-nowarn :g" \
-e "s:(
# JDK home
sed -r -e "s:gcc :gcc ${CFLAGS} :" \
-e "s:^(JAVA_HOME =) .*:\1 $(java-config --jdk-home):" \
-i plugins/org.eclipse.core.filesystem/natives/unix/linux/Makefile \
|| die "sed Makefile failed"
while read line; do
java-ant_rewrite-classpath "${line}" > /dev/null
done < <(find "${S}" -type f -name "build.xml")
}
src_compile() {
# Figure out correct boot classpath
local bootclasspath=$(java-config --runtime)
einfo "Using boot classpath ${bootclasspath}"
java-pkg_force-compiler ecj-${SLOT}
# system_jars will be used when compiling (javac)
# gentoo_jars will be used when building JSPs and other ant tasks (not javac)
local system_jars="$(java-pkg_getjars swt-${SLOT},icu4j,ant-core,jsch,junit-4,tomcat-servlet-api-2.4,\
lucene-1.9,lucene-analyzers-1.9):$(java-pkg_getjars --build-only ant-nodeps,cldc-api-1.1)"
local gentoo_jars="$(java-pkg_getjars ant-core,icu4j,jsch,commons-logging,commons-el,tomcat-servlet-api-2.4)"
local options="-q -Dnobootstrap=true -Dlibsconfig=true -Dbootclasspath=${bootclasspath} -DinstallOs=linux \
-DinstallWs=gtk -DinstallArch=${eclipsearch} -Djava5.home=$(java-config --jdk-home)"
use java6 && options="${options} -DJavaSE-1.6=${bootclasspath}"
use doc && options="${options} -Dgentoo.javadoc=true"
ANT_OPTS=-Xmx512M ANT_TASKS="ant-nodeps" \
eant ${options} \
-Dgentoo.classpath="${system_jars}" \
-Dgentoo.jars="${gentoo_jars//:/,}"
}
src_install() {
dodir "/usr/lib"
[ -f "result/linux-gtk-${eclipsearch}-sdk.tar.gz" ] \
|| die "tar.gz bundle was not built properly!"
tar xzf "result/linux-gtk-${eclipsearch}-sdk.tar.gz" -C "${D}/usr/lib" \
|| die "Failed to extract the built package"
mv "${D}/usr/lib/eclipse" "${D}/${ECLIPSE_DIR}"
# Install startup script
dobin "${FILESDIR}/${SLOT}/eclipse-${SLOT}"
chmod +x "${D}/${ECLIPSE_DIR}/eclipse"
insinto "/etc"
doins "${FILESDIR}/${SLOT}/eclipserc"
make_desktop_entry "eclipse-${SLOT}" "Eclipse ${PV}" "${ECLIPSE_DIR}/icon.xpm"
cd "${D}/${ECLIPSE_DIR}"
install-link-system-jars
}
pkg_postinst() {
einfo "Welcome to Eclipse ${PV} (Ganymede)!"
einfo
einfo "You can now install plugins via Update Manager without any"
einfo "tweaking. This is the recommended way to install new features for Eclipse."
einfo
einfo "Please read http://gentoo-wiki.com/Eclipse"
einfo "It contains a lot of useful information and help about Eclipse on Gentoo."
einfo
einfo "The FileInitializer Plugin is no more integrated."
einfo "If you need it, get org.eclipse.equinox.initializer_x.y.z.jar from:"
einfo " http://download.eclipse.org/eclipse/equinox/"
echo
ewarn "The new Update Manager (P2) is not yet supported under Gentoo."
ewarn "Please enable the 'Classic Update' under:"
ewarn "Window > Preferences > General > Capabilities"
}
# -----------------------------------------------------------------------------
# Helper functions
# -----------------------------------------------------------------------------
install-link-system-jars() {
pushd plugins/ > /dev/null
mkdir "org.apache.ant"
mkdir "org.apache.ant/META-INF/"
mkdir "org.apache.ant/lib"
cp "${FILESDIR}/${SLOT}/ant-osgi-manifest.mf" "org.apache.ant/META-INF/MANIFEST.MF"
pushd org.apache.ant/lib > /dev/null
java-pkg_jarfrom ant-core
java-pkg_jarfrom ant-nodeps
popd > /dev/null
java-pkg_jarfrom swt-${SLOT}
java-pkg_jarfrom icu4j
java-pkg_jarfrom jsch
java-pkg_jarfrom commons-el
java-pkg_jarfrom commons-logging
java-pkg_jarfrom lucene-1.9
java-pkg_jarfrom lucene-analyzers-1.9
java-pkg_jarfrom tomcat-servlet-api-2.4
java-pkg_jarfrom --into org.junit_*/ junit
java-pkg_jarfrom --into org.junit4*/ junit-4
popd > /dev/null
}
patch-apply() {
# optimize launcher build
mkdir launchertmp
unzip -qq -d launchertmp plugins/org.eclipse.platform/launchersrc.zip \
|| die "unzip failed"
pushd launchertmp/ > /dev/null
sed -r -e "s/CFLAGS = -O -s -Wall/CFLAGS = ${CFLAGS} -Wall/" \
-i library/gtk/make_linux.mak || die "Failed to tweak make_linux.mak"
zip -q -6 -r ../launchersrc.zip * || die "zip failed"
popd > /dev/null
mv launchersrc.zip plugins/org.eclipse.platform/launchersrc.zip
rm -rf launchertmp
# disable swt, jdk6
# use sed where possible => ease bump :)
sed -e "/..\/..\/plugins\/org.eclipse.ui.win32/,/<\/ant>/d" \
-i features/org.eclipse.platform/build.xml
sed -e "/dir=\"..\/..\/plugins\/org.eclipse.swt/,/<\/ant>/d" \
-i features/org.eclipse.rcp/build.xml \
-i features/org.eclipse.rcp.source/build.xml
sed -e "/dir=\"..\/..\/plugins\/org.eclipse.ui.carbon\"/,/<\/ant>/d" \
-i features/org.eclipse.rcp/build.xml
sed -e "/dir=\"plugins\/org.eclipse.swt.gtk.linux.${eclipsearch}\"/d" \
-e "/value=\"org.eclipse.swt.gtk.linux.${eclipsearch}_/,/eclipse.plugins/d" \
-i assemble.org.eclipse.sdk.linux.gtk.${eclipsearch}.xml
sed -e "s:\${basedir}/swt.jar:$(java-pkg_getjars --build-only swt-${SLOT}):" \
-i plugins/org.eclipse.swt.gtk.linux.${eclipsearch}/build.xml
if ! use java6; then
sed -e "/..\/..\/plugins\/org.eclipse.jdt.apt.pluggable.core/,/<\/ant>/d" \
-e "/..\/..\/plugins\/org.eclipse.jdt.compiler.apt/,/<\/ant>/d" \
-e "/..\/..\/plugins\/org.eclipse.jdt.compiler.tool/,/<\/ant>/d" \
-i features/org.eclipse.jdt/build.xml
sed -e "/id=\"org.eclipse.jdt.apt.pluggable.core\"/,/
sed -e "/dir=\"plugins\/org.eclipse.jdt.apt.pluggable.core\"/d" \
-e "/dir=\"plugins\/org.eclipse.jdt.compiler.apt/d" \
-e "/dir=\"plugins\/org.eclipse.jdt.compiler.tool\"/d" \
-e "/value=\"org.eclipse.jdt.apt.pluggable.core/,/eclipse.plugins/d" \
-e "/value=\"org.eclipse.jdt.compiler.apt/,/eclipse.plugins/d" \
-e "/value=\"org.eclipse.jdt.compiler.tool/,/eclipse.plugins/d" \
-i assemble.org.eclipse.sdk.linux.gtk.${eclipsearch}.xml
fi
epatch "${PATCHDIR}/eclipse_build-libs.diff"
epatch "${PATCHDIR}/eclipse_String.compareTo.diff"
epatch "${PATCHDIR}/eclipse_buildfix-pde.diff"
# JNI
epatch "${FEDORA}/eclipse-libupdatebuild2.patch"
# Generic releng plugins that can be used to build plugins
# https://www.redhat.com/archives/fedora-devel-java-list/2006-April/msg00048.html
pushd plugins/org.eclipse.pde.build > /dev/null
# %patch53
epatch "${FEDORA}/eclipse-pde.build-add-package-build.patch"
sed -e "s:@eclipse_base@:${ECLIPSE_DIR}:g" \
-i templates/package-build/build.properties
popd > /dev/null
# Following adds an additional classpath when building JSPs
sed '/
-i plugins/org.eclipse.help.webapp/build.xml
# Following allows the doc USE flag to be honored
sed -e '/
-e '/
-i plugins/org.eclipse.platform.doc.isv/buildDoc.xml
# This allows to compile osgi.util and osgi.service, and fixes IPluginDescriptor.class which is present compiled
sed -e 's/
-e '/
}' \
-i plugins/org.eclipse.osgi.services/build.xml
sed -e 's/
-e '/
}' \
-i plugins/org.eclipse.osgi.util/build.xml
sed '/
-i plugins/org.eclipse.core.runtime.compatibility.registry/build.xml
# This removes the copying operation for bundled jars
sed -e "s/
-e "s/
-e "s/
-e "s/
-e "s/
-e "s/
-e "s/
-e "s/
-i package.org.eclipse.sdk.linux.gtk.${eclipsearch}.xml
}
remove-bundled-stuff() {
# Remove pre-built eclipse binaries
find "${S}" -type f -name eclipse | xargs rm
# ... .so librari