|
Lines 4-11
Link Here
|
| 4 |
|
4 |
|
| 5 |
inherit eutils java-pkg |
5 |
inherit eutils java-pkg |
| 6 |
|
6 |
|
| 7 |
MY_DMF="S-3.2M1-200508111530" |
7 |
MY_DMF="S-3.2M5-200602171115" |
| 8 |
MY_VERSION="3.2M1" |
8 |
MY_VERSION="3.2M5" |
| 9 |
|
9 |
|
| 10 |
DESCRIPTION="GTK based SWT Library" |
10 |
DESCRIPTION="GTK based SWT Library" |
| 11 |
HOMEPAGE="http://www.eclipse.org/" |
11 |
HOMEPAGE="http://www.eclipse.org/" |
|
Lines 54-81
Link Here
|
| 54 |
# Extract based on architecture |
54 |
# Extract based on architecture |
| 55 |
unpack ${A} || die "Unable to unpack sources" |
55 |
unpack ${A} || die "Unable to unpack sources" |
| 56 |
|
56 |
|
| 57 |
# Clean up the directory structure |
|
|
| 58 |
for f in $(ls); do |
| 59 |
if [[ "${f}" != "src.zip" ]] ; then |
| 60 |
rm -rf ${f} |
| 61 |
fi |
| 62 |
done |
| 63 |
|
| 64 |
# Unpack the sources |
57 |
# Unpack the sources |
| 65 |
echo "Unpacking src.zip to ${S}" |
58 |
echo "Unpacking src.zip to ${S}" |
| 66 |
unzip src.zip &> /dev/null || die "Unable to extract sources" |
59 |
unzip swt-I20060217-1115-gtk-linux-x86/src.zip &> /dev/null || die "Unable to extract sources" |
| 67 |
|
60 |
|
| 68 |
# Cleanup the redirtied directory structure |
61 |
# Cleanup the redirtied directory structure |
| 69 |
rm -rf about_files/ |
62 |
rm -rf about_files/ |
| 70 |
rm -f .classpath .project |
63 |
rm -f .classpath .project |
| 71 |
|
64 |
|
| 72 |
# CARIO 0.9.2 API Patch |
|
|
| 73 |
if [[ ${ARCH} == 'amd64' ]] ; then |
| 74 |
epatch ${FILESDIR}/swt-cairo-0.9.2-amd64.patch |
| 75 |
else |
| 76 |
epatch ${FILESDIR}/swt-cairo-0.9.2.patch |
| 77 |
fi |
| 78 |
|
| 79 |
# Replace the build.xml to allow compilation without Eclipse tasks |
65 |
# Replace the build.xml to allow compilation without Eclipse tasks |
| 80 |
cp ${FILESDIR}/build.xml ${S}/build.xml || die "Unable to update build.xml" |
66 |
cp ${FILESDIR}/build.xml ${S}/build.xml || die "Unable to update build.xml" |
| 81 |
mkdir ${S}/src && mv ${S}/org ${S}/src || die "Unable to restructure SWT sources" |
67 |
mkdir ${S}/src && mv ${S}/org ${S}/src || die "Unable to restructure SWT sources" |