# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="The Evolved OpenOffice tools" HOMEPAGE="http://evolvedoo.sourceforge.net/" SRC_URI="mirror://sourceforge//evolvedoo/evolvedoo-1-RC4.tar.gz" LICENSE="GPL" SLOT="0" KEYWORDS="x86" DEPEND=">app-office/openoffice-bin-1.0 dev-libs/popt net-ftp/curl" # >=sys-devel/gcc-3.0.4-r6 # Run-time dependencies (libcurl is statically linked) RDEPEND=">app-office/openoffice-bin-1.0 dev-libs/popt" # Source directory; the dir where the sources can be found (automatically # unpacked) inside ${WORKDIR}. S will get a default setting of ${WORKDIR}/${P} # if you omit this line. S=${WORKDIR}/evolvedoo-1 src_compile() { location=`./findoo.pl main` echo -n $location > location # should actually check for gnome version use gnome && echo "/usr/share/applications/"> gnomemenus if [ `use kde` ]; then if [ -d /usr/kde/3/share/applnk ]; then echo "/usr/kde/3/share/applnk" >kdemenus else if [ -d /usr/kde/2/share/applnk]; then echo "/usr/kde/2/share/applnk" >kdemenus fi fi fi cd evolved-ooqstart* make cd .. cd evolved-OOodi* ./configure --prefix=/usr make cd .. } src_install () { RPM_BUILD_ROOT=${D} KDEMENUS=`cat kdemenus` GNOMEMENUS=`cat gnomemenus` CP=cp LN=ln MKDIR=mkdir CHMOD=chmod rm -rf ${D} mkdir -p ${D}/usr/bin mkdir -p ${D}/usr/share use kde && mkdir -p ${D}`cat kdemenus` use gnome && mkdir -p ${D}`cat gnomemenus` # ./install-evolvedoo # install evolved-menus cd evolved-menus cp -r -f usr/share/* ${D}/usr/share cp -r -f usr/bin/* ${D}/usr/bin # cp -r -f etc/menu/evolvedoo ${D}/etc/menu/ cp -r -f ${D}/usr/share/evolvedoo/menu/EvolvedOpenOffice ${D}$GNOMEMENUS cp -r -f ${D}/usr/share/evolvedoo/menu/EvolvedOpenOffice ${D}$KDEMENUS chmod 777 ${D}/usr/share/evolvedoo/browser cd .. cd evolved-ooqstart* make install-gnome ROOT=${D} cd .. cd evolved-OOodi* rm docs/Makefile echo -n -e "install:\n\n" >docs/Makefile make DESTDIR=${D} install cd .. cp -f version ${D}/usr/share/evolvedoo 2> /dev/null cp -f location ${D}/usr/share/evolvedoo chmod 777 ${D}/usr/share/evolvedoo/location chmod 777 ${D}/usr/share/evolvedoo/browser # uncomment if you want to remove the logo # cp -f sofficerc ${D}$location/program }