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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu Jun 16 21:08:29 2005 UTC (13 years, 5 months ago) by foser
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
new release, mark 2.2.7 x86
(Portage version: 2.0.51.19)

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

  ViewVC Help
Powered by ViewVC 1.1.20