2008-05-29 20:12:53 +01:00
|
|
|
{stdenv, fetchurl,
|
2012-01-07 17:06:49 +00:00
|
|
|
zlib, libpng, libjpeg, perl, expat, qt3,
|
2008-05-29 20:12:53 +01:00
|
|
|
libX11, libXext, libSM, libICE,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-03-29 09:34:12 +01:00
|
|
|
name = "taskjuggler-2.4.3";
|
2008-05-29 20:12:53 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.taskjuggler.org/download/${name}.tar.bz2";
|
2011-03-29 09:34:12 +01:00
|
|
|
sha256 = "14gkxa2vwfih5z7fffbavps7m44z5bq950qndigw2icam5ks83jl";
|
2008-05-29 20:12:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs =
|
2011-03-30 23:08:25 +01:00
|
|
|
[zlib libpng libX11 libXext libSM libICE perl expat libjpeg]
|
2008-05-29 20:12:53 +01:00
|
|
|
;
|
|
|
|
|
2011-03-29 09:34:12 +01:00
|
|
|
patches = [ ./timezone-glibc.patch ];
|
|
|
|
|
2008-05-29 20:12:53 +01:00
|
|
|
preConfigure = ''
|
|
|
|
for i in $(grep -R "/bin/bash" . | sed 's/:.*//'); do
|
|
|
|
substituteInPlace $i --replace /bin/bash $(type -Pp bash)
|
|
|
|
done
|
|
|
|
for i in $(grep -R "/usr/bin/perl" . | sed 's/:.*//'); do
|
|
|
|
substituteInPlace $i --replace /usr/bin/perl ${perl}/bin/perl
|
|
|
|
done
|
|
|
|
|
|
|
|
# Fix install
|
|
|
|
for i in docs/en/Makefile.in Examples/BigProject/Common/Makefile.in Examples/BigProject/Makefile.in Examples/BigProject/Project1/Makefile.in Examples/BigProject/Project2/Makefile.in Examples/FirstProject/Makefile.in Examples/ShiftSchedule/Makefile.in; do
|
|
|
|
# Do not use variable substitution because there is some text after the last '@'
|
|
|
|
substituteInPlace $i --replace 'docprefix = @PACKAGES_DIR@' 'docprefix = $(docdir)/'
|
|
|
|
done
|
|
|
|
|
|
|
|
# Comment because the ical export need the KDE support.
|
|
|
|
for i in Examples/FirstProject/AccountingSoftware.tjp; do
|
|
|
|
substituteInPlace $i --replace "icalreport" "# icalreport"
|
|
|
|
done
|
2011-03-29 09:34:12 +01:00
|
|
|
|
|
|
|
for i in TestSuite/testdir TestSuite/createrefs \
|
|
|
|
TestSuite/Scheduler/Correct/Expression.sh; do
|
|
|
|
substituteInPlace $i --replace '/bin/rm' 'rm'
|
|
|
|
done
|
|
|
|
|
|
|
|
# Some tests require writing at $HOME
|
|
|
|
HOME=$TMPDIR
|
2008-05-29 20:12:53 +01:00
|
|
|
'';
|
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--without-arts" "--disable-docs"
|
|
|
|
"--x-includes=${libX11.dev}/include"
|
|
|
|
"--x-libraries=${libX11.out}/lib"
|
|
|
|
"--with-qt-dir=${qt3}"
|
|
|
|
];
|
2008-05-29 20:12:53 +01:00
|
|
|
|
2008-06-01 17:06:09 +01:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/share/emacs/site-lisp/
|
|
|
|
cp Contrib/emacs/taskjug.el $out/share/emacs/site-lisp/
|
|
|
|
'';
|
|
|
|
|
2008-05-29 20:12:53 +01:00
|
|
|
installFlags =
|
|
|
|
# kde_locale is not defined when installing without kde.
|
2013-01-29 11:23:34 +00:00
|
|
|
"kde_locale=\${out}/share/locale";
|
2008-05-29 20:12:53 +01:00
|
|
|
|
|
|
|
meta = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://www.taskjuggler.org;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Project management tool";
|
2008-05-29 20:12:53 +01:00
|
|
|
longDescription = ''
|
|
|
|
TaskJuggler is a modern and powerful, Open Source project management
|
|
|
|
tool. Its new approach to project planing 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.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|