diff options
Diffstat (limited to 'office')
-rw-r--r-- | office/openproj/README | 14 | ||||
-rw-r--r-- | office/openproj/doinst.sh | 8 | ||||
-rw-r--r-- | office/openproj/openproj.SlackBuild | 74 | ||||
-rw-r--r-- | office/openproj/openproj.diff | 11 | ||||
-rw-r--r-- | office/openproj/openproj.info | 8 | ||||
-rw-r--r-- | office/openproj/slack-desc | 19 |
6 files changed, 134 insertions, 0 deletions
diff --git a/office/openproj/README b/office/openproj/README new file mode 100644 index 0000000000..6d32ce2299 --- /dev/null +++ b/office/openproj/README @@ -0,0 +1,14 @@ +OpenProj - an open source project managing office application + +OpenProj is a desktop replacement for Microsoft Project. It is capable of +sharing files with Microsoft Project and has very similar functionality +(Gantt, PERT diagram, histogram, charts, reports, detailed usage), as well as +tree views which aren't in MS Project. + +OpenProj uses Sun Java Runtime Environment (jre) version 1.5 or later, though +at least 1.6 is preferred. Slackware does include jre. + +Dependencies to compile this SlackBuild: + +apache-ant available from www.slackbuilds.org +jdk available from Slackware's extra repository diff --git a/office/openproj/doinst.sh b/office/openproj/doinst.sh new file mode 100644 index 0000000000..e4e6459838 --- /dev/null +++ b/office/openproj/doinst.sh @@ -0,0 +1,8 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +fi + diff --git a/office/openproj/openproj.SlackBuild b/office/openproj/openproj.SlackBuild new file mode 100644 index 0000000000..0dcd414c39 --- /dev/null +++ b/office/openproj/openproj.SlackBuild @@ -0,0 +1,74 @@ +#!/bin/sh + +# Slackware build script for openproj + +# Written by Chris Abela <chris.abela@maltats.com> +# May 2009 + +PRGNAM=openproj +VERSION=${VERSION:-1.4} +ARCH=i686 # Leave this alone +BUILD=${BUILD:-2} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +OPENPROJ_BUILD=$TMP/$PRGNAM-$VERSION-src/openproj_build + +set -e # Exit on most errors + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION-src +tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz + +cd $PRGNAM-$VERSION-src +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# The following is adopted from $PRGNAM-$VERSION-src/open_build/make_deb.sh +cd openproj_contrib +ant build-contrib build-script build-exchange build-reports +JAVA_OPTS="-Xmx128m" +java $JAVA_OPTS -jar ant-lib/proguard.jar @openproj_contrib.conf +java $JAVA_OPTS -jar ant-lib/proguard.jar @openproj_script.conf +java $JAVA_OPTS -jar ant-lib/proguard.jar @openproj_exchange.conf +java $JAVA_OPTS -jar ant-lib/proguard.jar @openproj_exchange2.conf +java $JAVA_OPTS -jar ant-lib/proguard.jar @openproj_reports.conf +cd ../openproj_build +ant -Dbuild_contrib=false + +cd $PKG +mkdir -p usr/{bin,doc/$PRGNAM-$VERSION,share/{$PRGNAM,applications,pixmaps,mime/packages}} +install -m 755 $OPENPROJ_BUILD/resources/openproj.sh usr/bin/openproj +patch -d usr/bin -i $CWD/openproj.diff +cp $OPENPROJ_BUILD/resources/openproj.desktop usr/share/applications/ +cp $OPENPROJ_BUILD/resources/openproj.png usr/share/pixmaps/ +cp $OPENPROJ_BUILD/resources/openproj.xml usr/share/mime/packages/ +cp -r $OPENPROJ_BUILD/{license,resources/samples} usr/doc/$PRGNAM-$VERSION/ +cp -r $OPENPROJ_BUILD/dist/* usr/share/$PRGNAM/ + +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 700 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + + +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/office/openproj/openproj.diff b/office/openproj/openproj.diff new file mode 100644 index 0000000000..bd26d137be --- /dev/null +++ b/office/openproj/openproj.diff @@ -0,0 +1,11 @@ +--- openproj 2009-04-04 22:30:33.000000000 +0200 ++++ openproj.new 2009-04-04 22:38:13.000000000 +0200 +@@ -66,2 +66,2 @@ +-#OPENPROJ_HOME0="/usr/share/openproj" +-OPENPROJ_HOME0=`(dirname $0)` ++OPENPROJ_HOME0="/usr/share/openproj" ++#OPENPROJ_HOME0="." +@@ -82 +81,0 @@ +- +@@ -323 +321,0 @@ +- diff --git a/office/openproj/openproj.info b/office/openproj/openproj.info new file mode 100644 index 0000000000..32293df765 --- /dev/null +++ b/office/openproj/openproj.info @@ -0,0 +1,8 @@ +PRGNAM="openproj" +VERSION="1.4" +HOMEPAGE="http://openproj.org/" +DOWNLOAD="http://garr.dl.sourceforge.net/sourceforge/openproj/openproj-1.4-src.tar.gz" +MD5SUM="bf5d96951959c9a280cb5e5400a1105a" +MAINTAINER="Chris Abela" +EMAIL="chris.abela@maltats.com" +APPROVED="dsomero" diff --git a/office/openproj/slack-desc b/office/openproj/slack-desc new file mode 100644 index 0000000000..00762fca98 --- /dev/null +++ b/office/openproj/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |-----handy-ruler-----------------------------------------------------| +openproj: openproject - an open source project managing office application +openproj: +openproj: A desktop replacement for Microsoft Project. It is capable of sharing +openproj: files with Microsoft Project and has very similar functionality +openproj: (Gantt, PERT diagram, histogram, charts, reports, detailed usage), as +openproj: well as tree views which aren't in MS Project. +openproj: +openproj: +openproj: +openproj: +openproj: |