# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-office/taskjuggler/taskjuggler-2.2.0.ebuild,v 1.1 2005/12/28 23:49:12 tantive Exp $ inherit eutils qt3 DESCRIPTION="project management tool for Linux and UNIX system-based operating systems" SRC_URI="http://www.taskjuggler.org/download/${P}.tar.bz2" HOMEPAGE="http://taskjuggler.org" LICENSE="GPL-2" KEYWORDS="~x86 ~amd64" IUSE="arts kde doc" SLOT="0" # MBR 2.2.0-r1: building the docs requires various packages and # depends on docbook-xml-dtd version 4.3, set USE="-doc" if you # don't want all this packages. # TaskJugglerUI requires kdepim's kcal lib, >= V3.4 is recommended DEPEND=">=x11-libs/qt-3.3 kde? ( >=kde-base/kdepim-3.4 ) doc? ( =app-text/docbook-xml-dtd-4.3* app-text/docbook-sgml-utils app-text/openjade app-text/jadetex dev-libs/libxslt ) >=dev-perl/Class-MethodMaker-2.02 dev-perl/Date-Calc dev-perl/PostScript-Simple dev-perl/XML-Parser net-print/poster" src_unpack() { unpack ${A} cd ${S} # MBR 2.2.0-r1: fix docprefix and docbook-xml-dtd path epatch ${FILESDIR}/${P}-docprefix-localdtd-4.3.diff # MBR 2.2.0-r1: gentoo'ish doc path # not a patch, note the ${PF} sed -i -e "s,/share/doc/packages/taskjuggler,/share/doc/${PF},g" docs/en/Makefile.* find ./Examples -type f -name "Makefile.*" -exec sed -i -e "s,/share/doc/packages/taskjuggler,/share/doc/${PF},g" \{\} \; # MBR 2.2.0-r1: minor issue, fix .desktop Categorie to include Office epatch ${FILESDIR}/${P}-kde-categories.diff } src_compile() { # MBR 2.2.0-r1: no longer needed, configure was fixed for 2.2.0 ## 'db2html' does not know '--xencoding utf8' and is called 'docbook2html' in gentoo ## also 'db2ps --pdf' should be 'docbook2pdf' and 'db2ps' should be 'docbook2ps' ## see http://lists.suse.com/archive/taskjuggler-devel/2005-Mar/0011.html #sed -i -e 's/--xencoding utf-8//g' docs/en/Makefile.* #sed -i -e 's/db2ps --pdf/docbook2pdf/g' docs/en/Makefile.* #sed -i -e 's/db2ps/docbook2ps/g' docs/en/Makefile.* # Need to fake out QT or we'll get sandbox probles # from http://www.gentoo.org/cgi-bin/viewcvs.cgi/dev-db/tora/tora-1.3.13.ebuild?r1=1.2&r2=1.3 REALHOME="$HOME" mkdir -p $T/fakehome/.kde mkdir -p $T/fakehome/.qt export HOME="$T/fakehome" addwrite "${QTDIR}/etc/settings" local myconf myconf="--with-kde-support" use kde \ && myconf="${myconf}=yes" \ || myconf="${myconf}=no" myconf="${myconf} `use_with arts`" # MBR 2.2.0-r1: ebuild will not build documentation unless USE="doc" is set. # Building the docs seems to be very error prone, not really # nice but some kind of last resort if make fails in docs subdir. use doc || myconf="${myconf} --disable-docs" econf \ ${myconf} \ || die "configure failed" # MBR 2.2.0-r1: 2.2.0 configure accepts --disable-docs, see above # depends now on USE="doc" ## don't build docs, fails in docbook2html and docbook2pdf... #sed -i -e 's/ docs / /g' Makefile emake || die "emake failed" } src_install() { make install DESTDIR=${D} || die "install failed" use kde && \ cd Contrib/kate && \ make install DESTDIR=${D} || die "install kate-addons failed" }