summaryrefslogtreecommitdiff
path: root/office/ganttproject/ganttproject.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/ganttproject/ganttproject.SlackBuild')
-rw-r--r--office/ganttproject/ganttproject.SlackBuild19
1 files changed, 15 insertions, 4 deletions
diff --git a/office/ganttproject/ganttproject.SlackBuild b/office/ganttproject/ganttproject.SlackBuild
index 703a91a178..e298b8d7a4 100644
--- a/office/ganttproject/ganttproject.SlackBuild
+++ b/office/ganttproject/ganttproject.SlackBuild
@@ -2,8 +2,8 @@
# Slackware build script for ganttproject
+# Copyright 2017 Ekin Akoglu, Erdemli, Mersin, Turkey | ekinakoglu@gmail.com
# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org
-
# Copyright 2013 Chris Abela, Malta
# All rights reserved.
#
@@ -25,7 +25,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ganttproject
-VERSION=${VERSION:-2.7.1}
+VERSION=${VERSION:-2.8.3}
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -57,11 +57,22 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# build.xml in version 2.8.3 is truncated and does not build with apache-ant
+# revert it to the build.xml in version 2.7.1
+patch -p0 < $CWD/build.xml.patch
+
+# Fix wrong jar names in plugins XML files
+patch -p0 < $CWD/biz.ganttproject.core.patch
+patch -p0 < $CWD/biz.ganttproject.impex.msproject2.patch
+patch -p0 < $CWD/org.ganttproject.chart.pert.patch
+patch -p0 < $CWD/org.ganttproject.impex.htmlpdf.patch
+
cd ganttproject-builder
ant
cd dist-bin
cp -a eclipsito.jar ganttproject plugins $PKG/opt/ganttproject
+mv $PKG/opt/ganttproject/plugins $PKG/opt/ganttproject/plugins-$VERSION
chmod 755 $PKG/opt/ganttproject/ganttproject
# This is for CLI users:
@@ -98,9 +109,9 @@ EOF
# Standard stuff:
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cd ../../ganttproject
+cd ..
cp -a \
- AUTHORS LICENSE README ../ganttproject-builder/HouseBuildingSample.gan \
+ AUTHORS LICENSE README HouseBuildingSample.gan \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild