taskjuggler stable port information

#
# Fink Package Description
# TaskJuggler II version 2.4.1
# The flexible project management software
#
# Packages:
# + taskjuggler
# + taskjuggler-nox
#
# Package Maintainer: Rene Kuettner
#

# meta
Info2: <<
Package: taskjuggler%type_pkg[-nox]
Description: KDE - Flexible project management tool
Version: 2.4.1
Type: -nox (boolean)
Revision: 2

HomePage: http://www.taskjuggler.org
License: GPL
GCC: 4.0

Maintainer: Rene Kuettner

BuildDepends: <<
autoconf,
automake1.10,
gettext-tools,
qt3 (>= 3.3-1),
(%type_raw[-nox] = .) kdelibs3-unified-dev (>= 3.5-1),
(%type_raw[-nox] = .) kdepim3-dev (>= 3.5-1),
x11-dev,
fink (>= 0.28-1),
libjpeg8,
libpng15,
docbook-bundle (>= 4.1-1),
docbook-utils (>= 0.6.14-1),
openjade,
(%type_raw[-nox] = .) arts-dev
<<

Depends: <<
x11,
x11-shlibs,
(%type_raw[-nox] = .) kdepim3-base,
(%type_raw[-nox] = .) kdepim3-common,
(%type_raw[-nox] = .) kdelibs3-unified-shlibs,
libpng15-shlibs,
qt3-shlibs
<<

Conflicts: taskjuggler, taskjuggler-nox
Replaces: taskjuggler, taskjuggler-nox
Provides: taskjuggler-nox

PatchFile: %{ni}.patch
PatchFile-MD5: 749524114548813bae6b7711330c4df6

Source: http://www.taskjuggler.org/download/%{ni}-%v.tar.bz2
Source-MD5: 18e0cec8b2ec69220ae7c9a790c16819

# build
ConfigureParams: <<
(%type_raw[-nox] = -nox) --with-kde-support=no \
--with-extra-includes=%p/include --with-extra-libs=%p/lib \
--with-qt-dir="%p/lib/qt3" --disable-pch \
--disable-dependency-tracking \
--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
<<

# some part of the build process runs programs that need to dlopen or
# somehow else load things, not just dyld link against them
SetDYLD_LIBRARY_PATH: %b/taskjuggler/.libs

UseMaxBuildJobs: false
CompileScript: <<
#!/bin/sh -ev
export LDFLAGS=$LDFLAGS" -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
%{default_script}
<<

# install
DocFiles: COPYING README AUTHORS ChangeLog TODO
InstallScript: <<
install -d %i/share/man/man1
install -m 644 man/en/taskjuggler.1 %i/share/man/man1
install -d %i/lib
install -m 644 taskjuggler/.libs/libtaskjuggler.3.0.3.dylib %i/lib/
(cd %i/lib && ln -s libtaskjuggler.3.0.3.dylib libtaskjuggler.3.dylib)
make install \
DESTDIR=%d \
docprefix=%p/share/doc/%n \
kde_locale=%p/share/locale
<<

# sh-libs
Shlibs: !%p/lib/libtaskjuggler.3.dylib

# details
DescDetail: <<

TaskJuggler is a project management tool for Linux and UNIX-like
operating systems. Its new approach to project planning and tracking is
far superior to the commonly used Gantt chart editing tools. It has
already been successfully used in many projects and scales easily to
projects with hundreds of resources and thousands of tasks.

If you are about to build a skyscraper or just want to put together
your colleague's shift plan for the next month, TaskJuggler is the
right tool for you. If you just want to draw nice looking Gantt charts
to impress your boss or your investors, TaskJuggler might not be right
for you. It takes some effort to master its power, but it will become a
companion you don't want to miss anymore.

Authors:
--------
Chris Schlaeger ,
Klaas Freitag
Lukas Tinkl

Note: -nox refers to "no GUI", not "no X in the dependencies"
<<
DescPackaging: <<
Build failure due to implicit symbol resolution from .la files
(after package modified locally to avoid autotools complaint)
was reported by AKH on 28-04-2011.

No reply from maintainer.

AKH fixed the package on 09-05-2011.
<<
DescPort: <<
Eplicitly choose automake1.10 and autoconf so that build works on all
platforms.

LDFLAGS for the KDE-using variant needs to include a bunch of libs explictly,
since the package apparently had been relying on .la files to figure out what
to link.
<<
<<

taskjuggler stable port .patch

diff -urN a/Examples/FirstProject/AccountingSoftware.tjp b/Examples/FirstProject/AccountingSoftware.tjp
--- a/Examples/FirstProject/AccountingSoftware.tjp 2008-05-06 15:04:54.000000000 +0200
+++ b/Examples/FirstProject/AccountingSoftware.tjp 2008-06-02 19:20:25.000000000 +0200
@@ -308,4 +308,4 @@
scenarios plan, delayed
}

-icalreport "Calendar.ics"
+#icalreport "Calendar.ics"
diff -urN a/TaskJugglerUI/Makefile.am b/TaskJugglerUI/Makefile.am
--- a/TaskJugglerUI/Makefile.am 2008-05-06 09:04:54.000000000 -0400
+++ b/TaskJugglerUI/Makefile.am 2012-05-18 17:10:47.000000000 -0400
@@ -10,11 +10,10 @@
INCLUDES = -I$(top_srcdir)/taskjuggler $(all_includes)

# the library search path.
-LIBADD=-L../taskjuggler/libtaskjuggler.la
TaskJugglerUI_LDFLAGS = $(KDE_RPATH) $(all_libraries)

# the libraries to link against.
-TaskJugglerUI_LDADD = -lktexteditor $(top_builddir)/taskjuggler/libtaskjuggler.la $(LIB_KIO) $(LIB_KDEPRINT) $(LIB_KHTML)
+TaskJugglerUI_LDADD = -lktexteditor $(top_builddir)/taskjuggler/libtaskjuggler.la $(LIB_KIO) $(LIB_KDEPRINT) $(LIB_KHTML) $(LIB_KDEUI) $(LIB_KDECORE) -lDCOP

# which sources should be compiled for taskjuggler
TaskJugglerUI_SOURCES = main.cpp taskjuggler.cpp taskjugglerview.cpp pref.cpp \
diff -urN a/admin/libtool.m4.in b/admin/libtool.m4.in
--- a/admin/libtool.m4.in 2008-05-06 15:04:54.000000000 +0200
+++ b/admin/libtool.m4.in 2008-06-02 19:20:07.000000000 +0200
@@ -1248,7 +1248,7 @@
need_version=no
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
soname_spec='${libname}${release}${major}$shared_ext'
- shlibpath_overrides_runpath=yes
+ shlibpath_overrides_runpath=no
shlibpath_var=DYLD_LIBRARY_PATH
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
diff -urN a/man/en/taskjuggler.1 b/man/en/taskjuggler.1
--- a/man/en/taskjuggler.1 1970-01-01 01:00:00.000000000 +0100
+++ b/man/en/taskjuggler.1 2008-06-02 19:20:07.000000000 +0200
@@ -0,0 +1,66 @@
+.PU
+.TH TASKJUGGLER 1 local
+.SH NAME
+taskjuggler \- The taskjuggler project management software
+.SH SYNOPSIS
+.ll +8
+.B taskjuggler
+.RB [ " options " ]
+[
+.I "file \&..."
+]
+.ll -8
+.SH DESCRIPTION
+TaskJuggler is a modern and powerful, Open Source project management
+tool. Its new approach to project planning and tracking is more flexible
+and superior to the commonly used Gantt chart editing tools. It has
+already been successfully used in many projects and scales easily to
+projects with hundreds of resources and thousands of tasks.
+.SH OPTIONS
+.TP
+.B --help
+Print all command line options with a short description.
+.TP
+.B --version
+Print the version and copyright info.
+.TP
+.B \-v
+Same as '--version'.
+.TP
+.B \-s
+Stop TaskJuggler's run after syntax check. This option is for testing and debugging purposes only.
+.TP
+.B \-M
+Output fragment of a Makefile that lists the dependencies of the passed TaskJuggler files.
+.TP
+.B --makefile
+Similar to '-M' but write the dependency information into the specified file.
+.TP
+.B --maxerrors N
+Specifies the number of errors after which TaskJuggler stops checking the input files. If N is 0 all errors are displayed.
+.TP
+.B --nodepcheck
+Do not check for dependency loops. The loop detector uses an algorithm that needs exponentially more time the bigger the dependency network gets. So for large projects it can be desirable to skip the dependency loop detection. This does not affect the task scheduling but can lead to error messages that are difficult to associate with the dependency specification that is wrong.
+.TP
+.B --debug N
+Print debug output; N must be between 0 and 4, the higher N the more output is printed. This option is for testing and debugging purposes only.
+.TP
+.B --dbmode N
+Limit debug output to certain modules of the code; N is a bit mask. Each set bit activates output of a certain module. Currently the following modules are supported: Project File Reader (1), Project Scheduler (2), Task Scheduler (4), Resource Scheduler (8), Expression Tree Evaluator (16). This option is for testing and debugging purposes only.
+.TP
+.B --warnerror
+Warnings are treated as errors.
+.SH AUTHOR
+This manual is based on the taskjuggler manual which is written by
+the Taskjuggler Development Team (http://www.taskjuggler.org/)
+.PP
+The description is taken from the taskjuggler web site which
+is located at http://www.taskjuggler.org/
+.PP
+Taskjuggler is developed by the Taskjuggler Development Team.
+See http://www.taskjuggler.org/ for details.
+.PP
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU General Public License, Version 2 as published
+by the Free Software Foundation.
+

taskjuggler _unstable_ port .patch