diff options
Diffstat (limited to 'app-office/siag/siag-3.5.2-r2.ebuild')
-rw-r--r-- | app-office/siag/siag-3.5.2-r2.ebuild | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/app-office/siag/siag-3.5.2-r2.ebuild b/app-office/siag/siag-3.5.2-r2.ebuild index 0b1dbb06317b..20eb977733f7 100644 --- a/app-office/siag/siag-3.5.2-r2.ebuild +++ b/app-office/siag/siag-3.5.2-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/app-office/siag/siag-3.5.2-r2.ebuild,v 1.4 2002/08/01 13:09:06 seemant Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/siag/siag-3.5.2-r2.ebuild,v 1.5 2002/08/17 10:02:54 danarmak Exp $ S=${WORKDIR}/${P} DESCRIPTION="A free Office package for Linux" @@ -21,12 +21,14 @@ DEPEND="virtual/x11 RDEPEND="virtual/x11" # >=media-libs/t1lib-1.0.1" +if [ -n "`use kde`" ]; then inherit kde-functions; set-kdedir 3; fi + src_unpack() { unpack ${A} cd ${S} - if [ -z "`use kde`" ] || [ -z ${KDEDIR} ]; then + if [ -z "`use kde`" ]; then einfo "Not using KDE" for file in `find . -iname "Makefile.*"`; do grep -v "kdeinst" ${file} >${file}.hacked && \ @@ -34,7 +36,7 @@ src_unpack() { done else einfo "Using KDE" - sed -e "s:VERBOSE=no:VERBOSE=no\nKDEDIR=${D}${KDEDIR}:" common/kdeinst \ + sed -e "s:VERBOSE=no:VERBOSE=no\nKDEDIR=${D}/${PREFIX}:" common/kdeinst \ > common/kdeinst.hacked && \ mv common/kdeinst.hacked common/kdeinst || die "Hacking of kdeinst failed" fi @@ -65,9 +67,8 @@ src_compile() { src_install () { - if [ -n "`use kde`" ] && [ ! -z ${KDEDIR} ]; then - echo "Still using KDE" - dodir ${KDEDIR} + if [ -n "`use kde`" ]; then + dodir ${PREFIX} fi make DESTDIR=${D} install || die "Install failed" |