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

Contents of /app-office/abiword/abiword-2.4.2.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.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
45 src_compile() {
46 # this is a hack since I don't want to go hack in the gnome-vfs
47 # headerfiles. The issue is about gnome-vfs containing "long long"
48 # which makes gcc 3.3.1 balk
49 sed -i -e 's:-pedantic::g' configure
50
51 local myconf="$(use_enable gnome) \
52 $(use_enable gnome gucharmap) \
53 $(use_enable spell enchant) \
54 $(use_enable debug) \
55 $(use_with xml libxml2) \
56 --enable-threads \
57 --disable-scripting \
58 --with-sys-wv"
59
60 econf $myconf || die "./configure failed"
61
62 emake all-recursive || die "Compilation failed"
63 }
64
65 src_install() {
66 dodir /usr/{bin,lib}
67
68 make DESTDIR="${D}" install || die "Installation failed"
69
70 dosed "s:Exec=abiword:Exec=abiword-2.4:" /usr/share/applications/abiword.desktop
71
72 rm -f ${D}/usr/bin/abiword-2.4
73 rm -f ${D}/usr/bin/abiword
74 dosym AbiWord-2.4 /usr/bin/abiword-2.4
75
76 dodoc *.TXT docs/build/BUILD.TXT user/wp/readme.txt
77 }
78
79 pkg_postinst() {
80 fdo-mime_desktop_database_update
81
82 alternatives_auto_makesym "/usr/bin/abiword" "/usr/bin/abiword-[0-9].[0-9]"
83
84 einfo "As of version 2.4, all abiword plugins have been moved"
85 einfo "into a seperate abiword-plugins package"
86 einfo "You can install them by running emerge abiword-plugins"
87 }

  ViewVC Help
Powered by ViewVC 1.1.20