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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Oct 28 15:35:38 2005 UTC (13 years ago) by leonardop
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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.7-r1.ebuild,v 1.2 2005/07/14 16:34:03 gmsoft 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="alpha ~amd64 hppa ~ia64 ppc ppc64 sparc x86"
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 # fix for security, see #96991
51 epatch ${FILESDIR}/${PN}-security-fix.patch
52
53 econf \
54 `use_enable gnome` \
55 `use_enable gnome gucharmap` \
56 `use_with xml2 libxml2` \
57 `use_enable spell enchant` \
58 `use_enable debug` \
59 --enable-bidi \
60 --enable-threads \
61 --without-ImageMagick \
62 --disable-scripting \
63 --with-sys-wv || die
64
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 alternatives_auto_makesym "/usr/bin/abiword" "/usr/bin/abiword-[0-9].[0-9]"
108
109 }

  ViewVC Help
Powered by ViewVC 1.1.20