freebsd-ports/java/eclipse/scripts/pre-build
Kurt Jaeger 765525b60a java/eclipse: update 4.6 -> 4.11, submitter becomes maintainer
- port is rewritten from scratch
- Warning: UI widgets are oddly sized, currently under investigation

PR:		236792
Submitted by:	Jonathan Chen <jonc@chen.org.nz>
Reviewed by:	mizhka@gmail.com, Curtis Hamilton
Approved by:	ljboiler@gmail.com (maintainer timeout)
Relnotes:	https://www.eclipse.org/eclipseide/2019-03/noteworthy/
2019-04-14 09:14:32 +00:00

31 lines
636 B
Bash

#!/bin/sh
#
# Build quirks
#
cd ${WRKSRC}
ARCHS="amd64 powerpc64"
# Create dummy repo for jgit
if [ ! -d .git ]
then
echo 'in pre-build doing git-init'
mkdir ${WRKDIR}/githome
(
export HOME=${WRKDIR}/githome
echo "home:" $HOME
git config --global user.email "eclipse@freebsd.org"
git config --global user.name "Eclipse"
git init
git add .
git commit -q --message="java/eclipse" --author="Eclipse <eclipse@freebsd.org>"
)
fi
# Create dummy targets
GTK_EXE="rt.equinox.binaries/org.eclipse.equinox.executable/bin/gtk"
for A in ${ARCHS}
do
mkdir -p ${GTK_EXE}/freebsd/${A}
touch ${GTK_EXE}/freebsd/${A}/eclipse
done