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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sun Jul 11 14:20:09 2010 UTC (8 years, 4 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Drop hppa keywords and old versions per bug 324511
(Portage version: 2.1.8.3/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.6.4.ebuild,v 1.11 2010/04/19 23:16:35 eva Exp $
4
5 EAPI="1"
6
7 inherit alternatives eutils gnome2 versionator
8
9 MY_MAJORV=$(get_version_component_range 1-2)
10
11 DESCRIPTION="Fully featured yet light and fast cross platform word processor"
12 HOMEPAGE="http://www.abisource.com/"
13 SRC_URI="http://www.abisource.com/downloads/${PN}/${PV}/source/${P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="2"
17 KEYWORDS="hppa"
18 IUSE="debug gnome spell xml"
19
20 # FIXME: gsf could probably be conditional
21
22 RDEPEND="dev-libs/popt
23 sys-libs/zlib
24 >=dev-libs/glib-2
25 >=x11-libs/gtk+-2.6
26 x11-libs/libXft
27 >=x11-libs/pango-1.2
28 >=gnome-base/libglade-2
29 >=gnome-base/libgnomeprint-2.2
30 >=gnome-base/libgnomeprintui-2.2
31 >=x11-libs/goffice-0.4:0.4
32 >=media-libs/libpng-1.2
33 >=media-libs/fontconfig-2.1
34 >=media-libs/freetype-2.1
35 >=app-text/wv-1.2
36 >=dev-libs/fribidi-0.10.4
37 xml? ( >=dev-libs/libxml2-2.4.10 )
38 !xml? ( dev-libs/expat )
39 spell? ( >=app-text/enchant-1.2 )
40 gnome? (
41 >=gnome-base/libbonobo-2
42 >=gnome-base/libgnomeui-2.2
43 >=gnome-extra/gucharmap-1.4
44 >=gnome-base/gnome-vfs-2.2 )
45 >=gnome-extra/libgsf-1.12.0"
46
47 DEPEND="${RDEPEND}
48 >=dev-util/pkgconfig-0.9"
49
50 # FIXME: --enable-libabiword fails to compile
51
52 pkg_setup() {
53 if ! built_with_use --missing true x11-libs/pango X; then
54 eerror "You must rebuild x11-libs/pango with USE='X'"
55 die "You must rebuild x11-libs/pango with USE='X'"
56 fi
57
58 G2CONF="${G2CONF}
59 $(use_enable debug)
60 $(use_enable debug symbols)
61 $(use_enable gnome gnomeui)
62 $(use_enable gnome gucharmap)
63 $(use_enable gnome gnomevfs)
64 $(use_enable spell spellcheck)
65 $(use_with xml libxml2)
66 $(use_with !xml expat)
67 --disable-libabiword
68 --enable-printing
69 --enable-threads
70 --disable-scripting"
71 }
72
73 src_install() {
74 # Install icon to pixmaps, bug #220097
75 sed -i 's:icondir = $(datadir)/icons:icondir = $(datadir)/pixmaps:' GNUmakefile
76
77 gnome2_src_install
78
79 sed -i "s:Exec=abiword:Exec=abiword-${MY_MAJORV}:" "${D}"/usr/share/applications/abiword.desktop
80
81 mv "${D}/usr/bin/abiword" "${D}/usr/bin/AbiWord-${MY_MAJORV}"
82 dosym AbiWord-${MY_MAJORV} /usr/bin/abiword-${MY_MAJORV}
83
84 dodoc *.TXT user/wp/readme.txt
85 }
86
87 pkg_postinst() {
88 gnome2_pkg_postinst
89
90 alternatives_auto_makesym "/usr/bin/abiword" "/usr/bin/abiword-[0-9].[0-9]"
91
92 elog "As of version 2.4, all abiword plugins have been moved"
93 elog "into a seperate app-office/abiword-plugins package"
94 elog "You can install them by running emerge abiword-plugins"
95 }

  ViewVC Help
Powered by ViewVC 1.1.20