Browse Source

office/ganttproject: Updated for version 2.8.3 + new maintainer.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
pull/47/head
Ekin Akoglu 9 years ago
committed by David Spencer
parent
commit
99cb09e77a
  1. 11
      office/ganttproject/biz.ganttproject.core.patch
  2. 11
      office/ganttproject/biz.ganttproject.impex.msproject2.patch
  3. 503
      office/ganttproject/build.xml.patch
  4. 19
      office/ganttproject/ganttproject.SlackBuild
  5. 10
      office/ganttproject/ganttproject.info
  6. 11
      office/ganttproject/org.ganttproject.chart.pert.patch
  7. 11
      office/ganttproject/org.ganttproject.impex.htmlpdf.patch

11
office/ganttproject/biz.ganttproject.core.patch

@ -0,0 +1,11 @@
--- biz.ganttproject.core/plugin.xml 2017-03-06 17:21:28.000000000 +0300
+++ plugin-new.xml 2017-03-10 00:56:58.687956019 +0300
@@ -6,7 +6,7 @@
provider-name="">
<runtime>
- <library name="biz.ganttproject.core.jar">
+ <library name="ganttproject-core.jar">
<export name="*"/>
</library>
<library name="lib/ganttproject-guava.jar">

11
office/ganttproject/biz.ganttproject.impex.msproject2.patch

@ -0,0 +1,11 @@
--- biz.ganttproject.impex.msproject2/plugin.xml 2017-03-06 17:21:28.000000000 +0300
+++ plugin-new.xml 2017-03-10 00:58:56.703949491 +0300
@@ -7,7 +7,7 @@
provider-name="">
<runtime>
- <library name="biz.ganttproject.impex.msproject2.jar">
+ <library name="ganttproject-msproject2.jar">
<export name="*"/>
</library>
<library name="lib/">

503
office/ganttproject/build.xml.patch

@ -0,0 +1,503 @@
--- ganttproject-builder/build.xml 2017-03-06 17:21:28.000000000 +0300
+++ build.xml 2016-07-26 14:21:14.000000000 +0300
@@ -1,130 +1,370 @@
-<project name="GanttProject builder">
- <property file="build-deb.properties"/>
- <path id="class.path">
- <pathelement location="build-deb/classes"/>
- <fileset dir="lib" includes="*.jar"/>
- </path>
- <target name="compile-deb-tasks" description="Compile helper code">
- <mkdir dir="build-deb/classes"/>
- <javac
- srcdir="src"
- destdir="build-deb/classes"
- classpathref="class.path"
- target="1.4"
- source="1.4"
- debug="yes"
- includeantruntime="true"
- />
- <copy todir="build-deb/classes">
- <fileset dir="src" includes="**/*.properties"/>
- <fileset dir="src" includes="**/*.xml"/>
- </copy>
- <jar basedir="build-deb/classes" jarfile="lib/ganttproject-build-deb.jar" includes="**/*.class">
- </jar>
- </target>
-
- <taskdef name="desktopEntry" classname="com.googlecode.ant_deb_task.DesktopEntry" classpathref="class.path"/>
- <taskdef name="deb" classname="com.googlecode.ant_deb_task.Deb" classpathref="class.path"/>
-
- <target name="distDeb" description="Builds DEB package" depends="distBin,distDebPre">
- <description>Create a complete GanttProject deb package. Everything included.</description>
- <desktopEntry
- toFile="${distDebWork}/usr/share/applications/ganttproject.desktop"
- name="GanttProject"
- icon="/usr/share/icons/gnome/scalable/mimetypes/application-x-ganttproject.svg"
- exec="/usr/bin/ganttproject %U"
- mimetype="application/x-ganttproject;"
- categories="Office;"
- onlyshowin="GNOME;KDE;Unity;LXDE;MATE;Cinnamon;"
- >
- <genericname value="GanttProject"/>
- </desktopEntry>
- <copy file="ganttproject.svg" tofile="${distDebWork}/usr/share/icons/gnome/scalable/mimetypes/application-x-ganttproject.svg">
- </copy>
- <!-- Some docs go into /usr/share/doc/ganttproject -->
- <mkdir dir="${distDebWork}/usr/share/doc/${package.name}"/>
- <copy todir="${distDebWork}/usr/share/doc/${package.name}">
- <fileset dir=".">
- <include name="LICENSE"/>
- <include name="README"/>
- <include name="AUTHORS"/>
- </fileset>
- </copy>
- <deb todir="${distDebPackage}"
- package="${package.name}"
- version="${version}"
- homepage="http://ganttproject.biz/"
- section="editors"
- priority="optional"
- depends="openjdk-7-jre | openjdk-8-jre | oracle-java7-jre | oracle-java8-jre | oracle-java8-installer"
- conflicts="ganttproject-praha"
- replaces="ganttproject-praha"
- postrm="${distDebWork}/postrm"
- postinst="${distDebWork}/postinst">
- <version upstream="${version}"/>
- <maintainer name="GanttProject Team" email="contact@ganttproject.biz"/>
- <description synopsis="${package.synopsis}">
- ${package.description}
- </description>
- <!-- GanttProject distro goes into /usr/share/ganttproject -->
- <tarfileset dir="${distBin}" prefix="usr/share/${package.name}">
- <include name="plugins-${version}/**/"/>
- <include name="*.jar"/>
- <include name="*.gan"/>
- <include name="logging.properties"/>
- </tarfileset>
- <tarfileset dir="${distBin}" filemode="755" prefix="usr/share/${package.name}">
- <include name="ganttproject"/>
- </tarfileset>
-
- <!-- Icons, mime types, docs and other stuff -->
- <tarfileset dir="${distDebWork}/usr" prefix="usr"/>
- </deb>
- <rename src="${distDebPackage}/${package.name}_${version}-1_all.deb"
- dest="${distDebPackage}/${package.name}_${version_build}-1_all.deb"/>
- </target>
-
- <taskdef name="bundleapp"
- classname="com.oracle.appbundler.AppBundlerTask"
- classpath="lib/appbundler-1.0.jar"/>
-
- <target name="distMac" depends="distBin">
- <mkdir dir="${distMacWork}"/>
- <bundleapp outputdirectory="${distMacWork}"
- name="GanttProject"
- displayname="GanttProject"
- identifier="net.sourceforge.ganttproject"
- shortversion="${version}"
- icon="ganttproject.icns"
- copyright="Copyright 2017 BarD Software s.r.o. Distributed under GPL3"
- applicationCategory="public.app-category.productivity"
- mainclassname="org.bardsoftware.eclipsito.Boot">
-
- <classpath file="eclipsito.jar"/>
- <argument value="-app"/>
- <argument value="net.sourceforge.ganttproject.GanttProject"/>
- <argument value="-plugins-dir"/>
- <argument value="$APP_ROOT/Contents/Java/plugins-${version}"/>
- <argument value="-log"/>
- <argument value="true"/>
- <option value="-Dapple.laf.useScreenMenuBar=true"/>
- <option value="-Dcom.apple.mrj.application.apple.menu.about.name=GanttProject"/>
- <option value="-Xdock:name=GanttProject"/>
- <option value="-Xmx512m"/>
- <option value="-ea"/>
- </bundleapp>
- <copy todir="${distMacWork}/GanttProject.app/Contents/Java">
- <fileset dir="${distBin}">
- <include name="eclipsito.jar"/>
- <include name="plugins-${version}/**"/>
- <include name="logging.properties"/>
- </fileset>
- </copy>
- <patch patchfile="Info.plist.patch" originalfile="${distMacWork}/GanttProject.app/Contents/Info.plist"/>
- <chmod perm="a+rx" file="${distMacWork}/GanttProject.app/Contents/MacOS/JavaAppLauncher"></chmod>
- <zip destfile="${distMacZip}">
- <zipfileset dir="${distMacWork}" includes="GanttProject.app/**">
- </zipfileset>
- </zip>
- </target>
-</project>
+<project name="GanttProject builder" default="build">
+ <property file="build.public.properties"/>
+ <property file="build.private.properties"/>
+
+ <target name="build_biz.ganttproject.core">
+ <ant antfile="../biz.ganttproject.core/build.xml" target="install" inheritall="false">
+ <property name="install.dir" value="${install.dir}"></property>
+ <property name="debug" value="${debug}"></property>
+ </ant>
+ </target>
+ <target name="build_net.sourceforge.ganttproject">
+ <ant antfile="../ganttproject/build.xml" target="install" inheritall="false">
+ <property name="install.dir" value="${install.dir}"></property>
+ <property name="debug" value="${debug}"></property>
+ </ant>
+ </target>
+ <target name="build_biz.ganttproject.impex.ical">
+ <ant antfile="../biz.ganttproject.impex.ical/build.xml" target="install" inheritall="false">
+ <property name="install.dir" value="${install.dir}"></property>
+ <property name="debug" value="${debug}"></property>
+ </ant>
+ </target>
+ <target name="build_org.ganttproject.impex.htmlpdf">
+ <ant antfile="../org.ganttproject.impex.htmlpdf/build.xml" target="install" inheritall="false">
+ <property name="install.dir" value="${install.dir}"></property>
+ <property name="debug" value="${debug}"></property>
+ </ant>
+ </target>
+ <target name="build_biz.ganttproject.impex.msproject2">
+ <ant antfile="../biz.ganttproject.impex.msproject2/build.xml" target="install" inheritall="false">
+ <property name="install.dir" value="${install.dir}"></property>
+ <property name="debug" value="${debug}"></property>
+ </ant>
+ </target>
+ <target name="build_org.ganttproject.chart.pert">
+ <ant antfile="../org.ganttproject.chart.pert/build.xml" target="install" inheritall="false">
+ <property name="install.dir" value="${install.dir}"></property>
+ <property name="debug" value="${debug}"></property>
+ </ant>
+ </target>
+
+ <target name="clean_biz.ganttproject.core">
+ <ant antfile="../biz.ganttproject.core/build.xml" target="clean" inheritall="false">
+ <property name="install.dir" value="${install.dir}"></property>
+ </ant>
+ </target>
+ <target name="clean_net.sourceforge.ganttproject">
+ <ant antfile="../ganttproject/build.xml" target="clean" inheritall="false">
+ <property name="install.dir" value="${install.dir}"></property>
+ </ant>
+ </target>
+ <target name="clean_biz.ganttproject.impex.ical">
+ <ant antfile="../biz.ganttproject.impex.ical/build.xml" target="clean" inheritall="false">
+ <property name="install.dir" value="${install.dir}"></property>
+ </ant>
+ </target>
+ <target name="clean_org.ganttproject.impex.htmlpdf">
+ <ant antfile="../org.ganttproject.impex.htmlpdf/build.xml" target="clean" inheritall="false">
+ <property name="install.dir" value="${install.dir}"></property>
+ </ant>
+ </target>
+ <target name="clean_biz.ganttproject.impex.msproject2">
+ <ant antfile="../biz.ganttproject.impex.msproject2/build.xml" target="clean" inheritall="false">
+ <property name="install.dir" value="${install.dir}"></property>
+ </ant>
+ </target>
+ <target name="clean_org.ganttproject.chart.pert">
+ <ant antfile="../org.ganttproject.chart.pert/build.xml" target="clean" inheritall="false">
+ <property name="install.dir" value="${install.dir}"></property>
+ </ant>
+ </target>
+
+ <target name="welcome-message">
+ <echo>
+=======================================================
+ Compiling GanttProject 2.7
+=======================================================
+ </echo>
+ </target>
+
+ <target name="init">
+ <mkdir dir="${install.dir}"/>
+ <mkdir dir="${install.dir}/jre_ext"/>
+ </target>
+
+ <target name="copy-launchers">
+ <copy todir="${install.dir}">
+ <fileset dir=".">
+ <include name="ganttproject"/>
+ <include name="README-install.txt"/>
+ <include name="LICENSE"/>
+ <include name="ganttproject.bat"/>
+ <include name="ganttproject.command"/>
+ <include name="ganttproject.exe"/>
+ <include name="ganttproject_16.ico"/>
+ <include name="ganttproject_32_2.ico"/>
+ <include name="GanttProject.app/**"/>
+ <include name="HouseBuildingSample.gan"/>
+ <include name="lib/javagalician.jar"/>
+ <include name="logging.properties"/>
+ </fileset>
+ </copy>
+ <jar destfile="${install.dir}/eclipsito.jar" update="true">
+ <fileset dir="." includes="ganttproject-eclipsito-config.xml"/>
+ </jar>
+ </target>
+ <target name="build" depends="welcome-message,
+ build_biz.ganttproject.core,
+ build_net.sourceforge.ganttproject,
+ build_org.ganttproject.impex.htmlpdf,
+ build_biz.ganttproject.impex.ical,
+ build_biz.ganttproject.impex.msproject2,
+ build_org.ganttproject.chart.pert,
+ copy-launchers">
+ </target>
+
+ <target name="make-package-name">
+ <exec dir="${basedir}" executable="./hg-tip-rev.sh" outputproperty="hg.tip.rev">
+ </exec>
+
+ <property name="package.name.suffix" value="${package.name.version}-r${hg.tip.rev}"/>
+ <property name="package.dir" value="${package.name.prefix}-${package.name.suffix}"/>
+ <echo message="${package.dir}" file="VERSION"/>
+ </target>
+
+ <target name="dist-bin" depends="build, make-package-name">
+ <chmod perm="ugo+rx" file="${install.dir}/ganttproject"></chmod>
+ <chmod perm="ugo+rx" file="${install.dir}/ganttproject.command"></chmod>
+
+ <move file="${install.dir}" tofile="${package.dir}"></move>
+ <zip destfile="${package.dir}.zip" basedir="." includes="/**">
+ <zipfileset dir="${package.dir}" excludes="ganttproject" prefix="${package.dir}">
+ </zipfileset>
+ <zipfileset dir="${package.dir}" includes="ganttproject" prefix="${package.dir}" filemode="755">
+ </zipfileset>
+ </zip>
+ <copy file="${package.dir}.zip" tofile="ganttproject-latest.zip"/>
+ </target>
+
+ <target name="dist-src">
+ <property name="src.dir" value="${basedir}/dist-src"/>
+ <ant antfile="../ganttproject/build.xml" target="copy-src" inheritall="false">
+ <property name="install.dir" value="${src.dir}"></property>
+ </ant>
+ <ant antfile="../org.ganttproject.chart.pert/build.xml" target="copy-src" inheritall="false">
+ <property name="install.dir" value="${src.dir}"></property>
+ </ant>
+ <ant antfile="../org.ganttproject.impex.htmlpdf/build.xml" target="copy-src" inheritall="false">
+ <property name="install.dir" value="${src.dir}"></property>
+ </ant>
+ <ant antfile="../biz.ganttproject.impex.msproject2/build.xml" target="copy-src" inheritall="false">
+ <property name="install.dir" value="${src.dir}"></property>
+ </ant>
+ <mkdir dir="${src.dir}/ganttproject-builder"/>
+ <copy todir="${src.dir}/ganttproject-builder">
+ <fileset dir=".">
+ <include name="deb/**"/>
+ <include name="lib/**"/>
+ <include name="src/**"/>
+ <include name="build-deb.xml"/>
+ <include name="build-deb.properties"/>
+ <include name="build.xml"/>
+ <include name="build.public.properties"/>
+ <include name="build.private.properties"/>
+ <include name="formatter.xml"/>
+ <include name="ganttproject_16.ico"/>
+ <include name="ganttproject_32_2.ico"/>
+ <include name="ganttproject"/>
+ <include name="ganttproject.bat"/>
+ <include name="ganttproject.command"/>
+ <include name="ganttproject.desktop"/>
+ <include name="ganttproject-eclipsito-config.xml"/>
+ <include name="ganttproject.exe"/>
+ <include name="ganttproject.jnlp"/>
+ <include name="ganttproject.nsi"/>
+ <include name="ganttproject-webstart-config.xml"/>
+ <include name="HouseBuildingSample.gan"/>
+ <include name="LICENSE"/>
+ <include name=".project"/>
+ </fileset>
+ </copy>
+ </target>
+
+
+ <target name="webstart_net.sourceforge.ganttproject">
+ <fail message="Please set properties keystore and storepass in build.private.properties">
+ <condition>
+ <not>
+ <and>
+ <isset property="keystore"/>
+ <isset property="storepass"/>
+ </and>
+ </not>
+ </condition>
+ </fail>
+ <ant antfile="../ganttproject/build.xml" target="webstart" inheritall="false">
+ <property name="install.dir" value="${install.dir}"></property>
+ <property name="webstart.dir" value="${webstart.dir}"></property>
+ <property name="keystore" value="${keystore}"/>
+ <property name="storepass" value="${storepass}"/>
+ <property name="alias" value="${alias}"/>
+ </ant>
+ </target>
+
+ <target name="webstart_org.ganttproject.impex.htmlpdf">
+ <fail message="Please set properties keystore and storepass in build.private.properties">
+ <condition>
+ <not>
+ <and>
+ <isset property="keystore"/>
+ <isset property="storepass"/>
+ </and>
+ </not>
+ </condition>
+ </fail>
+ <ant antfile="../org.ganttproject.impex.htmlpdf/build.xml" target="webstart" inheritall="false">
+ <property name="install.dir" value="${install.dir}"></property>
+ <property name="webstart.dir" value="${webstart.dir}"></property>
+ <property name="keystore" value="${keystore}"/>
+ <property name="storepass" value="${storepass}"/>
+ <property name="alias" value="${alias}"/>
+ </ant>
+ </target>
+
+ <target name="webstart_biz.ganttproject.impex.msproject2">
+ <fail message="Please set properties keystore and storepass in build.private.properties">
+ <condition>
+ <not>
+ <and>
+ <isset property="keystore"/>
+ <isset property="storepass"/>
+ </and>
+ </not>
+ </condition>
+ </fail>
+ <ant antfile="../biz.ganttproject.impex.msproject2/build.xml" target="webstart" inheritall="false">
+ <property name="install.dir" value="${install.dir}"></property>
+ <property name="webstart.dir" value="${webstart.dir}"></property>
+ <property name="keystore" value="${keystore}"/>
+ <property name="storepass" value="${storepass}"/>
+ <property name="alias" value="${alias}"/>
+ </ant>
+ </target>
+
+ <target name="webstart_org.ganttproject.chart.pert">
+ <fail message="Please set properties keystore and storepass in build.private.properties">
+ <condition>
+ <not>
+ <and>
+ <isset property="keystore"/>
+ <isset property="storepass"/>
+ </and>
+ </not>
+ </condition>
+ </fail>
+ <ant antfile="../org.ganttproject.chart.pert/build.xml" target="webstart" inheritall="false">
+ <property name="install.dir" value="${install.dir}"></property>
+ <property name="webstart.dir" value="${webstart.dir}"></property>
+ <property name="keystore" value="${keystore}"/>
+ <property name="storepass" value="${storepass}"/>
+ <property name="alias" value="${alias}"/>
+ </ant>
+ </target>
+
+
+ <target name="init-webstart">
+ <fail message="Please set properties keystore and storepass in build.private.properties">
+ <condition>
+ <not>
+ <and>
+ <isset property="keystore"/>
+ <isset property="storepass"/>
+ </and>
+ </not>
+ </condition>
+ </fail>
+ <mkdir dir="${webstart.dir}"/>
+ <mkdir dir="${webstart.dir}/configuration"/>
+ </target>
+ <!--
+ <target name="dist-webstart" depends="init-webstart, build, webstart_net.sourceforge.ganttproject, webstart_org.ganttproject.impex.htmlpdf, webstart_biz.ganttproject.impex.msproject2, webstart_org.ganttproject.chart.pert">
+ -->
+ <target name="dist-webstart" depends="init-webstart, build, webstart_net.sourceforge.ganttproject">
+ <copy todir="${webstart.dir}" file="ganttproject.jnlp"/>
+ <copy todir="${webstart.dir}/configuration" file="ganttproject-webstart-config.xml"/>
+ <jar destfile="${webstart.dir}/configuration.jar">
+ <fileset dir="${webstart.dir}/configuration" includes="**/*"/>
+ </jar>
+ <signjar jar="${webstart.dir}/configuration.jar" alias="${alias}" keystore="${keystore}" storepass="${storepass}"/>
+ <delete dir="${webstart.dir}/configuration"/>
+ </target>
+
+ <target name="clean" description="Removes all intermediate building files" depends="clean_biz.ganttproject.core,
+ clean_net.sourceforge.ganttproject,
+ clean_org.ganttproject.impex.htmlpdf,
+ clean_biz.ganttproject.impex.ical,
+ clean_biz.ganttproject.impex.msproject2,
+ clean_org.ganttproject.chart.pert">
+ <delete dir="bin"/>
+ <delete dir="dist-bin"/>
+ <delete dir="build-deb"/>
+ </target>
+
+ <target name="dist-win" description="Builds Windows installer" depends="dist-bin">
+ <copy todir="${package.dir}" file="ganttproject.nsi"/>
+ <exec executable="makensis" dir="${package.dir}">
+ <arg value="ganttproject.nsi"/>
+ </exec>
+ <copy todir="." file="${package.dir}/${package.dir}.exe"/>
+ </target>
+
+ <target name="dist-deb" description="Builds DEB package" depends="make-package-name">
+ <ant antfile="build-deb.xml" inheritall="false">
+ <property name="package-version" value="${package.name.suffix}"></property>
+ </ant>
+ <copy todir="." file="${deb.dir}/${package.name.prefix}_${package.name.suffix}-1_all.deb"></copy>
+ </target>
+
+ <taskdef name="bundleapp"
+ classname="com.oracle.appbundler.AppBundlerTask"
+ classpath="lib/appbundler-1.0.jar" />
+
+ <target name="dist-mac" depends="init,make-package-name">
+ <property name="package.osx.dir" value="ganttproject.app-${package.name.suffix}"/>
+ <mkdir dir="${package.osx.dir}"/>
+ <bundleapp outputdirectory="${package.osx.dir}"
+ name="GanttProject"
+ displayname="GanttProject"
+ identifier="net.sourceforge.ganttproject"
+ shortversion="${package.name.version}"
+ icon="ganttproject.icns"
+ copyright="Copyright 2016 BarD Software s.r.o. Distributed under GPL3"
+ applicationCategory="public.app-category.productivity"
+ mainclassname="org.bardsoftware.eclipsito.Boot">
+
+ <classpath file="eclipsito.jar"/>
+ <argument value="-app"/>
+ <argument value="net.sourceforge.ganttproject.GanttProject"/>
+ <argument value="-plugins-dir"/>
+ <argument value="$APP_ROOT/Contents/Java/plugins"/>
+ <argument value="-log"/>
+ <argument value="true"/>
+ <option value="-Dapple.laf.useScreenMenuBar=true"/>
+ <option value="-Dcom.apple.mrj.application.apple.menu.about.name=GanttProject"/>
+ <option value="-Xdock:name=GanttProject"/>
+ <option value="-Xmx512m"/>
+ <option value="-ea"/>
+ </bundleapp>
+ <copy todir="${package.osx.dir}/GanttProject.app/Contents/Java">
+ <fileset dir="${package.dir}">
+ <include name="eclipsito.jar"/>
+ <include name="plugins/**"/>
+ </fileset>
+ </copy>
+ <patch patchfile="Info.plist.patch" originalfile="${package.osx.dir}/GanttProject.app/Contents/Info.plist"/>
+ <chmod perm="ugo+rx" file="${package.osx.dir}/GanttProject.app/Contents/MacOS/JavaAppLauncher"></chmod>
+ <zip destfile="${package.osx.dir}.zip">
+ <zipfileset dir="${package.osx.dir}" includes="GanttProject.app/**">
+ </zipfileset>
+ </zip>
+ </target>
+
+ <target name="dist-all" depends="dist-bin,dist-win,dist-deb,dist-mac">
+ <echo>
+=======================================================
+ All packages build completed
+=======================================================
+ </echo>
+ </target>
+</project>

19
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

10
office/ganttproject/ganttproject.info

@ -1,10 +1,10 @@
PRGNAM="ganttproject"
VERSION="2.7.1"
VERSION="2.8.3"
HOMEPAGE="http://www.ganttproject.biz"
DOWNLOAD="https://github.com/bardsoftware/ganttproject/archive/ganttproject-2.7.1.tar.gz"
MD5SUM="74d24dc87a56b207c76a9501f9395007"
DOWNLOAD="https://codeload.github.com/bardsoftware/ganttproject/tar.gz/ganttproject-2.8.3"
MD5SUM="1ff9c8aae756ba99de4512c0e32474e9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="apache-ant jdk"
MAINTAINER="Ryan P.C. McQuen"
EMAIL="ryanpcmcquen@member.fsf.org"
MAINTAINER="Ekin Akoglu"
EMAIL="ekinakoglu@gmail.com"

11
office/ganttproject/org.ganttproject.chart.pert.patch

@ -0,0 +1,11 @@
--- org.ganttproject.chart.pert/plugin.xml 2017-03-06 17:21:28.000000000 +0300
+++ plugin-new.xml 2017-03-10 00:59:47.875946661 +0300
@@ -7,7 +7,7 @@
provider-name="">
<runtime>
- <library name="org.ganttproject.chart.pert.jar"/>
+ <library name="pert.jar"/>
<library name="resources/">
<export name="*"/>
</library>

11
office/ganttproject/org.ganttproject.impex.htmlpdf.patch

@ -0,0 +1,11 @@
--- org.ganttproject.impex.htmlpdf/plugin.xml 2017-03-06 17:21:28.000000000 +0300
+++ plugin-new.xml 2017-03-10 01:02:20.842938200 +0300
@@ -7,7 +7,7 @@
provider-name="ganttproject.org team">
<runtime>
- <library name="org.ganttproject.impex.htmlpdf.jar">
+ <library name="ganttproject-htmlpdf.jar">
<export name="*"/>
</library>
<library name="lib/itextpdf-5.3.1.jar">
Loading…
Cancel
Save