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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Oct 15 01:46:10 2006 UTC (12 years, 1 month ago) by agriffis
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Trim old ebuilds
(Portage version: 2.1.1)
 (Unsigned Manifest commit)

1 # Copyright 1999-2006 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.4.2-r1.ebuild,v 1.2 2006/07/05 07:51:25 mr_bones_ Exp $
4
5 inherit eutils fdo-mime alternatives
6
7 S=${WORKDIR}/${P}/abi
8
9 DESCRIPTION="Fully featured yet light and fast cross platform word processor"
10 HOMEPAGE="http://www.abisource.com/"
11
12 SRC_URI="http://www.abisource.com/downloads/${PN}/${PV}/source/${P}.tar.bz2"
13
14 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
15 IUSE="debug gnome spell xml"
16
17 LICENSE="GPL-2"
18 SLOT="2"
19
20 RDEPEND="virtual/xft
21 >=dev-libs/glib-2
22 >=x11-libs/gtk+-2.4
23 >=x11-libs/pango-1.2
24 >=gnome-base/libglade-2
25 >=gnome-base/libgnomeprint-2.2
26 >=gnome-base/libgnomeprintui-2.2
27 sys-libs/zlib
28 >=media-libs/libpng-1.2
29 dev-libs/popt
30 >=media-libs/fontconfig-2.1
31 >=app-text/wv-1
32 >=dev-libs/fribidi-0.10.4
33 xml? ( >=dev-libs/libxml2-2.4.10 )
34 !xml? ( dev-libs/expat )
35 spell? ( >=app-text/enchant-1.1 )
36 gnome? (
37 >=gnome-base/libbonobo-2
38 >=gnome-base/libgnomeui-2.2
39 >=gnome-extra/gucharmap-1.4 )"
40
41 DEPEND="${RDEPEND}
42 >=dev-util/pkgconfig-0.9"
43
44 src_unpack() {
45 unpack ${A}
46 cd ${S}
47 epatch ${FILESDIR}/${P}-spell_crash_1.patch
48 epatch ${FILESDIR}/${P}-spell_crash_2.patch
49 }
50
51 src_compile() {
52 # this is a hack since I don't want to go hack in the gnome-vfs
53 # headerfiles. The issue is about gnome-vfs containing "long long"
54 # which makes gcc 3.3.1 balk
55 sed -i -e 's:-pedantic::g' configure
56
57 local myconf="$(use_enable gnome) \
58 $(use_enable gnome gucharmap) \
59 $(use_enable spell enchant) \
60 $(use_enable debug) \
61 $(use_with xml libxml2) \
62 --enable-threads \
63 --disable-scripting \
64 --with-sys-wv"
65
66 econf $myconf || die "./configure failed"
67
68 emake all-recursive || die "Compilation failed"
69 }
70
71 src_install() {
72 dodir /usr/{bin,lib}
73
74 make DESTDIR="${D}" install || die "Installation failed"
75
76 dosed "s:Exec=abiword:Exec=abiword-2.4:" /usr/share/applications/abiword.desktop
77
78 rm -f ${D}/usr/bin/abiword-2.4
79 rm -f ${D}/usr/bin/abiword
80 dosym AbiWord-2.4 /usr/bin/abiword-2.4
81
82 dodoc *.TXT docs/build/BUILD.TXT user/wp/readme.txt
83 }
84
85 pkg_postinst() {
86 fdo-mime_desktop_database_update
87
88 alternatives_auto_makesym "/usr/bin/abiword" "/usr/bin/abiword-[0-9].[0-9]"
89
90 einfo "As of version 2.4, all abiword plugins have been moved"
91 einfo "into a seperate abiword-plugins package"
92 einfo "You can install them by running emerge abiword-plugins"
93 }

  ViewVC Help
Powered by ViewVC 1.1.20