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

Contents of /app-office/abiword/abiword-2.0.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Apr 20 19:54:52 2004 UTC (14 years, 7 months ago) by foser
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
disable debug by default

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/app-office/abiword/abiword-2.0.3-r1.ebuild,v 1.3 2004/03/25 08:21:27 mr_bones_ Exp $
4
5 inherit eutils
6
7 IUSE="spell jpeg xml2 gnome debug doc"
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"
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
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 # Abiword is not 64-bit safe. This is a patch for AMD64.
45 if [ $ARCH = "amd64" ] ; then
46 epatch ${FILESDIR}/abiword-2.0.3-amd64.patch || die
47 fi
48
49 # this is a hack since I don't want to go hack in the gnome-vfs headerfiles.
50 # The issue is about gnome-vfs containing "long long" which makes gcc 3.3.1 balk
51 cp configure configure.old
52 cat configure.old |sed s:-pedantic::g >configure
53 rm -f configure.old
54
55 econf \
56 `use_enable gnome` \
57 `use_with xml2 libxml2` \
58 `use_enable spell enchant` \
59 `use_enable debug` \
60 --enable-bidi \
61 --enable-threads \
62 --without-ImageMagick \
63 --disable-scripting \
64 --with-sys-wv || die
65
66 emake all-recursive || die
67
68 # Build plugins
69
70 cd ${S_P}
71
72 econf \
73 `use_enable debug` \
74 --enable-all \
75 --with-abiword=${S} \
76 --without-ImageMagick || die
77
78 emake || die
79
80 }
81
82 src_install() {
83
84 dodir /usr/{bin,lib}
85
86 einstall PERLDEST=${D} || die
87
88 dosed "s:Exec=abiword:Exec=abiword-2.0:" /usr/share/applications/abiword.desktop
89
90 rm -f ${D}/usr/bin/abiword-2.0
91 rm -f ${D}/usr/bin/abiword
92 dosym AbiWord-2.0 /usr/bin/abiword-2.0
93
94 dodoc COPYING *.TXT docs/build/BUILD.TXT user/wp/readme.txt
95
96 # install plugins
97
98 cd ${S_P}
99
100 make DESTDIR=${D} install || die
101
102 # install documentation
103
104 use doc && (
105 cd ${WORKDIR}/${P}/abiword-docs
106 sed -e 's:prefix = /usr/local:prefix = /usr:g' Makefile > Makefile.new
107 mv Makefile.new Makefile
108 make DESTDIR=${D} || die
109 )
110
111 }
112
113 USE_DESTDIR="1"

  ViewVC Help
Powered by ViewVC 1.1.20