/[gentoo-x86]/app-office/abiword/abiword-0.9.3.ebuild
Gentoo

Contents of /app-office/abiword/abiword-0.9.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Oct 6 20:15:36 2001 UTC (17 years, 1 month ago) by hallski
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
gnome-office almost finished, need to look at gnome-extra/gnome-db

1 # Copyright 1999-2001 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # Author Karl Trygve Kalleberg <karltk@gentoo.org>
4 # $Header: /home/cvsroot/gentoo-x86/app-office/abiword/abiword-0.9.3.ebuild,v 1.3 2001/10/03 21:43:56 hallski Exp $
5
6 S=${WORKDIR}/${P}/abi
7 DESCRIPTION="Text processor"
8 SRC_URI="http://prdownloads.sourceforge.net/abiword/abiword-0.9.3.tar.gz"
9
10 HOMEPAGE="http://www.abisource.com"
11
12 DEPEND="virtual/glibc
13 >=sys-devel/gcc-2.95.2
14 =media-libs/freetype-1.3.1-r2
15 >=media-libs/libpng-1.0.7
16 >=x11-libs/gtk+-1.2.8
17 gnome? ( >=gnome-base/gnome-libs-1.2.10
18 >=gnome-base/libunicode-0.4
19 >=gnome-base/bonobo-1.0.4
20 >=gnome-base/gal-0.8 )
21 spell? ( >=app-text/pspell-0.11.2 )
22 virtual/x11"
23
24
25 if [ "`use gnome`" ] ; then
26 myconf="ABI_OPT_GNOME=1 ABI_OPT_BONOBO=1 "
27 fi
28 if [ "`use spell`" ] ; then
29 myconf="$myconf ABI_OPT_PSPELL=1"
30 fi
31
32 src_compile() {
33
34 if [ "`use spell`" ] ; then
35 cd ${S}/src/config
36 cp abi_defs.mk abi_defs.orig
37 sed -e "s:-lltdl::" abi_defs.orig > abi_defs.mk
38 fi
39 cd ${S}
40
41 # Doesn't work with -j 4 (hallski)
42 try make prefix=/opt/gnome/ UNIX_CAN_BUILD_STATIC=0 $myconf OPTIMIZER="$CFLAGS"
43
44 }
45
46 src_install() {
47 #do you really need the OPTIMIZER var below? -- DR
48 try make prefix=${D}/opt/gnome UNIX_CAN_BUILD_STATIC=0 $myconf OPTIMIZER="$CFLAGS" install
49 cp ${D}/opt/gnome/AbiSuite/bin/AbiWord AbiWord.orig
50 sed -e "s:${D}::" AbiWord.orig > ${D}/opt/gnome/AbiSuite/bin/AbiWord
51 cd ${D}/opt/gnome/bin
52 rm -f abiword
53 rm -f AbiWord
54 ln -s ../AbiSuite/bin/AbiWord AbiWord
55 ln -s ../AbiSuite/bin/AbiWord abiword
56
57 # Install icon and .desktop for menu entry
58 if [ "`use gnome`" ] ; then
59 insinto ${GNOME_PATH}/share/pixmaps
60 newins ${WORKDIR}/${P}/abidistfiles/icons/abiword_48.png AbiWord.png
61 insinto ${GNOME_PATH}/share/gnome/apps/Applications
62 doins ${FILESDIR}/AbiWord.desktop
63 fi
64
65 }
66
67
68
69

  ViewVC Help
Powered by ViewVC 1.1.20