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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Oct 28 15:35:38 2005 UTC (13 years ago) by leonardop
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Added missing popt dependency (bug #109736). Pruning old ebuilds/patches.
(Portage version: 2.0.53_rc6)

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.9.ebuild,v 1.1 2005/08/01 16:09:24 foser Exp $
4
5 inherit eutils fdo-mime alternatives
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="http://www.abisource.com/downloads/${PN}/${PV}/source/${P}.tar.bz2"
16
17 KEYWORDS="~x86 ~sparc ~alpha ~ppc ~amd64 ~hppa ~ppc64 ~ia64"
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-extra/gucharmap-1.4 )"
37
38 DEPEND="${RDEPEND}
39 dev-util/pkgconfig"
40
41 src_compile() {
42
43 # this is a hack since I don't want to go hack in the gnome-vfs headerfiles.
44 # The issue is about gnome-vfs containing "long long" which makes gcc 3.3.1 balk
45 cp configure configure.old
46 cat configure.old |sed s:-pedantic::g >configure
47 rm -f configure.old
48
49 econf \
50 `use_enable gnome` \
51 `use_enable gnome gucharmap` \
52 `use_with xml2 libxml2` \
53 `use_enable spell enchant` \
54 `use_enable debug` \
55 --enable-threads \
56 --without-ImageMagick \
57 --disable-scripting \
58 --with-sys-wv || die
59
60 emake all-recursive || die
61
62 # Build plugins
63
64 cd ${S_P}
65
66 econf \
67 `use_enable debug` \
68 --enable-all \
69 --with-abiword=${S} \
70 --without-ImageMagick || die
71
72 emake || die
73
74 }
75
76 src_install() {
77
78 dodir /usr/{bin,lib}
79
80 make DESTDIR=${D} install || die
81
82 dosed "s:Exec=abiword:Exec=abiword-2.2:" /usr/share/applications/abiword.desktop
83
84 rm -f ${D}/usr/bin/abiword-2.2
85 rm -f ${D}/usr/bin/abiword
86 dosym AbiWord-2.2 /usr/bin/abiword-2.2
87
88 dodoc COPYING *.TXT docs/build/BUILD.TXT user/wp/readme.txt
89
90 # install plugins
91 cd ${S_P}
92
93 make DESTDIR=${D} install || die
94
95 }
96
97 pkg_postinst() {
98
99 fdo-mime_desktop_database_update
100
101 alternatives_auto_makesym "/usr/bin/abiword" "/usr/bin/abiword-[0-9].[0-9]"
102
103 }

  ViewVC Help
Powered by ViewVC 1.1.20