|
|
|
|
Re: Debian Packages of eclipse [message #59104 is a reply to message #58552] |
Mon, 02 June 2003 09:47   |
Eclipse User |
|
|
|
Originally posted by: muelleimer.usenet.katzien.de
* Michael R Head <burner@zclipse.org> wrote:
> I'd really like to build and provide debs (in an apt-gettable location) of
> the plugins at zclipse.org.
Great Idea!
> What do I need to do to make that work?
Do you know debian packages and how they work? If not, it will be
kind of hard to explain :)
This is how the eclipse-pde-junit debs were made:
mkdir <package>-<version>
geting the source via CVS (haven't tried yet with source builds, but
should work as well)
letting eclipse build a build.xml in a new workspace (at least no
plugins loaded)
-> classpath with lots of
.../../../../usr/share/eclipse/plugins/../*jars
Some sed fun to make this path absolute... I can give you the script
for this...
tar the 'orig.tar.gz' file...
call dh_make -> you get the debian subdir. You can also just copy
that from the eclipse-pde-junit deb
editing *install, control, changelog and so on in the debian subdir
debian/rules:
* calling ant with target 'zip.plugin' in the 'build' target
* unzipping this the created zip into the right dir in the 'install'
target (see *install file and man dh_install how to get it from
there into the packages)
* calling ant with clean in the clean target
fakeroot debian/rules build or binary to get it working...
go on debugging/changing things until lintian and linda doesn't
complain anymore :)
I'm pretty sure, that it should be possible to get all this done
via a script, but I'm not that good with scripts yet and another
problem is, that build.xml has to be generated from within eclipse.
BTW: is there a way to call the action from 'outside'. AFAIK think,
the logic behind this script just takes the plugin.xml and some
properties file...
I'm currently thinking of making a generic build.xml, which should
work for 'one jar, only default plugins as "required"', but that
will have to wait until I've packaged cdt...
To sum it up: If you have done some java packaging, it will be easy.
The hardest part is geting the source and building the 'build.xml'.
The rest should be easy, if you know what the files in debian subdir
are for... If not, have a look at the developer corner at
debian.org -> New maintainer guide (also available via apt-get as a
package)
Jan
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03020 seconds