Re: Eclipse 3.1 port?

[ Available lists | Index of freebsd-java | Month of Jul 2005 | Week of 17 Jul 2005 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Andreas Kohn <andreas.kohn@gmx.net>
Date
17 Jul 2005 10:10:23
Subject
Re: Eclipse 3.1 port?
Message-ID
1121595018.959.21.camel@klamath.syndrom23.de

In reply to

[ Hide this part ]
On Sun, 2005-07-17 at 02:36 +0300, Panagiotis Astithas wrote:
> Georg-W. Koltermann wrote:
> > Hi,
> >
> > I'd like to ask if someone is working on an Eclipse 3.1 port.
> >
> > If not, I tried to compile Eclipse 3.1 myself from sources and I do get
> > it to start, but it somehow malfunctions severely. E.g. whenever a file
> > selection box is expected to open, e.g. during workspace selection when
> > you click "browse", nothing happens. Same when you select File->open.
> > Also some status dialogs that should show just a progress bar are opened
> > really large (default size?) when they really should just be bar-shaped.
> >
> > A .log file is not even created, strangely enough.
> >
> > Maybe someone has seen this problem in the past?
> >
> > --
> > Regards,
> > Georg.
> >
>
> I have a WIP here (a patch for the current port, or a shell archive with
> the full thing):
>
> http://www.netmode.ntua.gr/~past/freebsd/eclipse-devel.diff.gz
> http://www.netmode.ntua.gr/~past/freebsd/eclipse-devel.shar.gz

I'm getting a nice error when extracting the shar:
/tmp/eclipse-devel-3.1.shar: 519: Syntax error: Illegal eof marker for
<< redirection

--- line 519 ---
sed 's/^X//'
>eclipse-devel/files/patch-features-launchers-library-eclipseShm.c <<
'END-of-eclipse-devel/files/patch-features-launchers-library-eclipseShm.c'
---------------

The patch worked fine, though, and the build completed. There is one
problem I'm seeing: The PDE doesn't find any plugins
(Window>Preferences>Plug-in Development>Target Platform, the list is
empty), and therefore all plugin projects of mine are marked broken
because of missing dependent plugins.

It does not help to define my platform to -os linux, but I assume it
must be something along these lines, because clicking on reload in the
Target Platform preferences iterates through the plugins, it just
doesn't put them into the list, probably because some metadata is wrong.

I'm also using attached patch to allow me to install both eclipse and
eclipse-devel, but I tried without and the problem stays the same.
(Installing both eclipses is really good-thing-to-have if you need a
working eclipse and want to test the new 3.1 only)

Thanks for working on this!

Regards,
Andreas

--
<TalisA> was macht man eigentlich auf einer linux-gamer lan ? hl server
aufsetzen und freuen ? *duck* ^^


[ Hide this part ]
--- eclipse-devel.orig/Makefile	Sun Jul 17 12:06:01 2005
+++ eclipse-devel/Makefile Sun Jul 17 12:00:27 2005
@@ -12,6 +12,7 @@
MASTER_SITE_SUBDIR= R-${PORTVERSION}-200506271435
DISTNAME= ${PORTNAME}-sourceBuild-srcIncluded-${PORTVERSION}
DIST_SUBDIR= eclipse
+PKGNAMESUFFIX= -devel

MAINTAINER= freebsd-ports@varju.ca
COMMENT= An open extensible IDE for anything and nothing in particular
@@ -20,7 +21,7 @@
zip:${PORTSDIR}/archivers/zip
BUILD_DEPENDS+= ${EXTRACT_DEPENDS}

-CONFLICTS= eclipse-3.0*
+#CONFLICTS= eclipse-3.0*
LATEST_LINK= ${PORTNAME}-devel

ONLY_FOR_ARCHS= i386 amd64
@@ -35,7 +36,7 @@
USE_REINPLACE= yes
NO_WRKSUBDIR= yes

-PORTDESTDIR= ${PREFIX}/eclipse
+PORTDESTDIR= ${PREFIX}/eclipse-devel

ECLIPSE_OS= freebsd

@@ -89,7 +90,7 @@
MOTIF_HOME=${X11_HOME} \
QT_HOME=${X11_HOME}

-PLIST_FILES= bin/eclipse
+PLIST_FILES= bin/eclipse-devel

SWTGTK=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library
SWTMOTIF=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/motif/library
@@ -113,15 +114,15 @@

do-install:
@${MKDIR} ${PORTDESTDIR}
- @${TAR} -xzf ${WRKSRC}/result/*.tar.gz -C ${PREFIX}
+ @${TAR} -xzf ${WRKSRC}/result/*.tar.gz --strip-components 1 -C ${PORTDESTDIR}
@${SED} \
-e "s+%%ECLIPSE_HOME%%+${PORTDESTDIR}+g" \
-e "s+%%JAVA_HOME%%+${JAVA_HOME}+g" \
-e "s+%%X11BASE%%+${X11BASE}+g" \
-e "s+%%BROWSER%%+${BROWSER}+g" \
${FILESDIR}/eclipse.in > ${WRKSRC}/eclipse.tmp
- ${INSTALL_SCRIPT} ${WRKSRC}/eclipse.tmp ${PREFIX}/bin/eclipse
- ${INSTALL_PROGRAM} ${WRKSRC}/launchertmp/eclipse ${PREFIX}/eclipse/eclipse
+ ${INSTALL_SCRIPT} ${WRKSRC}/eclipse.tmp ${PREFIX}/bin/eclipse-devel
+ ${INSTALL_PROGRAM} ${WRKSRC}/launchertmp/eclipse ${PORTDESTDIR}/eclipse
@(cd ${WRKSRC}; ${FIND} -s eclipse -not -type d) >> ${TMPPLIST}
@(cd ${WRKSRC}; ${FIND} -s -d eclipse -type d) \
| ${SED} -ne 's,^,@dirrm ,p' >> ${TMPPLIST}

[ Show this part (application/pgp-signature) ]

Elapsed time: 0.107 seconds