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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Dec 21 14:02:31 2004 UTC (13 years, 11 months ago) by foser
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
disable building of wmf plugin

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-office/abiword/abiword-2.0.11.ebuild,v 1.2 2004/09/08 03:12:00 tgall Exp $
4
5 inherit eutils
6
7 IUSE="gnome jpeg spell xml2"
8
9 S_P=${S}/${PN}-plugins
10 S_D=${S}/${PN}-docs
11 S=${WORKDIR}/${P}/abi
12
13 DESCRIPTION="Fully featured yet light and fast cross platform word processor"
14 HOMEPAGE="http://www.abisource.com"
15
16 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
17
18 KEYWORDS="~x86 ~sparc ~alpha ~ppc ~amd64 ~hppa ~ppc64"
19 LICENSE="GPL-2"
20 SLOT="2"
21
22 RDEPEND="virtual/x11
23 virtual/xft
24 >=media-libs/fontconfig-2.1
25 media-libs/libpng
26 >=x11-libs/gtk+-2.2
27 >=gnome-base/libglade-2
28 >=app-text/wv-1
29 >=dev-libs/fribidi-0.10.4
30 jpeg? ( >=media-libs/jpeg-6b-r2 )
31 xml2? ( >=dev-libs/libxml2-2.4.10 )
32 !xml2? ( dev-libs/expat )
33 spell? ( >=app-text/enchant-1 )
34 gnome? ( >=gnome-base/libgnomeui-2.2
35 >=gnome-base/libgnomeprint-2.2.1
36 >=gnome-base/libgnomeprintui-2.2.1
37 >=gnome-base/libbonobo-2 )"
38
39 DEPEND="${RDEPEND}
40 sys-devel/automake
41 dev-util/pkgconfig"
42
43 src_compile() {
44
45 # this is a hack since I don't want to go hack in the gnome-vfs headerfiles.
46 # The issue is about gnome-vfs containing "long long" which makes gcc 3.3.1 balk
47 cp configure configure.old
48 cat configure.old |sed s:-pedantic::g >configure
49 rm -f configure.old
50
51 econf \
52 `use_enable gnome` \
53 `use_with xml2 libxml2` \
54 `use_enable spell enchant` \
55 --disable-debug \
56 --enable-bidi \
57 --enable-threads \
58 --without-ImageMagick \
59 --disable-scripting \
60 --disable-gucharmap \
61 --with-sys-wv || die
62
63 emake all-recursive || die
64
65 # Build plugins
66
67 cd ${S_P}
68
69 econf \
70 --disable-debug \
71 --enable-all \
72 --with-abiword=${S} \
73 --without-ImageMagick || die
74
75 emake || die
76
77 }
78
79 src_install() {
80
81 dodir /usr/{bin,lib}
82
83 # einstall PERLDEST=${D} || die
84 make DESTDIR=${D} install || die
85
86 dosed "s:Exec=abiword:Exec=abiword-2.0:" /usr/share/applications/abiword.desktop
87
88 rm -f ${D}/usr/bin/abiword-2.0
89 rm -f ${D}/usr/bin/abiword
90 dosym AbiWord-2.0 /usr/bin/abiword-2.0
91
92 dodoc COPYING *.TXT docs/build/BUILD.TXT user/wp/readme.txt
93
94 # install plugins
95
96 cd ${S_P}
97
98 make DESTDIR=${D} install || die
99
100 # install documentation
101
102 cd ${WORKDIR}/${P}/abiword-docs
103 sed -e 's:prefix = /usr/local:prefix = /usr:g' Makefile > Makefile.new
104 mv Makefile.new Makefile
105 make DESTDIR=${D} || die
106
107 }
108
109 USE_DESTDIR="1"

  ViewVC Help
Powered by ViewVC 1.1.20