mirror of
https://git.freebsd.org/ports.git
synced 2025-05-22 03:45:17 -04:00
This patch updates java/eclipse-cdt to the latest version 3.0.1. It also installs the native shared libraries that were previously missing. In order to do this the distfile of the cdt-sdk had to be used instead. A static pkg-plist is also used to help people searching through the ports files. PR: ports/89893 Submitted by: Panagiotis Astithas <past@ebs.gr> Approved by: maintainer timeout
43 lines
1 KiB
Bash
43 lines
1 KiB
Bash
#!/bin/sh
|
|
# $FreeBSD: /tmp/pcvs/ports/java/eclipse-cdt/scripts/pre-patch,v 1.1 2006-01-03 03:28:05 edwin Exp $
|
|
|
|
copy_dir()
|
|
{
|
|
srcdir="$1"
|
|
dstdir="$2"
|
|
|
|
rm -rf "$dstdir"
|
|
cp -r "$srcdir" "$dstdir" || exit 1
|
|
|
|
if [ -d "$dstdir" ]
|
|
then
|
|
find "$dstdir" -name \*.so -delete
|
|
fi
|
|
}
|
|
|
|
prepare_files()
|
|
{
|
|
# Copy the files and rename/change them appropriately
|
|
for src in $COPY_LIST
|
|
do
|
|
dst=`echo $src | sed 's/linux/freebsd/g; s/Linux/FreeBSD/g; s/x86_64/amd64/g'`
|
|
echo Copying $src into $dst
|
|
if [ -d ${WRKSRC}/$src ]
|
|
then
|
|
copy_dir ${WRKSRC}/$src ${WRKSRC}/$dst
|
|
fi
|
|
done
|
|
find ${WRKSRC} -type d -name linux | xargs rm -r
|
|
}
|
|
|
|
COPY_LIST="
|
|
eclipse/plugins/org.eclipse.cdt.core.linux.x86_3.0.1
|
|
eclipse/plugins/org.eclipse.cdt.core.linux.x86_3.0.1/os/linux
|
|
eclipse/plugins/org.eclipse.cdt.core.linux.x86_3.0.1/os/linux/x86
|
|
eclipse/plugins/org.eclipse.cdt.core.linux_3.0.1
|
|
eclipse/plugins/org.eclipse.cdt.source.linux.gtk.x86_3.0.1
|
|
eclipse/plugins/org.eclipse.cdt.source.linux.gtk.x86_3.0.1/src/org.eclipse.cdt.core.linux_3.0.1
|
|
"
|
|
|
|
prepare_files
|
|
exit 0
|