daemonblade / freebsd-eclipse

Tools to build Eclipse port for FreeBSD
3 stars 3 forks source link
eclipse eclipse-ide freebsd-ports

FreeBSD Eclipse Port Builder

This project contains tools to build the port files for FreeBSD's /usr/ports/java/eclipse.

Layout

Prerequisite Ports

Workflow

Setup

  1. bin/fetch-distfiles [additional fetch(1) flags]
  2. bin/unpack-distfiles
  3. bin/apply-patches [directory ...]

Unpacked distfiles + up-to-date patches => eclipse.platform.releng.aggregator

Development

  1. Work on eclipse.platform.releng.aggregator
  2. bin/build-eclipse [additional maven flags]

The challenge is to get a working build. Changes to eclipse.platform.releng.aggregator should be committed and pushed to the repo as required.

On a successful build, org.eclipse.sdk.ide-freebsd.gtk.${ARCH}.tar.gz is generated. This can be unpacked to test the generated executable:

  1. tar xf org.eclipse.sdk.ide-freebsd.gtk.${ARCH}.tar.gz
  2. eclipse/eclipse

java/eclipse port

When a usable executable has been generated the java/eclipse port can be updated:

  1. bin/generate-patches
  2. Update the eclipse-maven-repo project with the contents of maven-repo.${TAG}.
  3. Update java-eclipse Makefile, distinfo, etc
  4. Verify port build and installation
  5. Submit port

Notes

The porting-strategy is based on using the Linux port as the base and converting it to FreeBSD. The pre-patch stage renames Linux specific directories, and most of the work devolves to changing the following lines of text:

The following modules have been disabled as they involve maven repository updates or are uncompilable tests.