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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Apr 19 23:16:35 2010 UTC (8 years, 7 months ago) by eva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Major version bump, bug #272097. Drop usage of a couple of old libraries. Clean up old revisions.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.6.ebuild,v 1.1 2009/02/20 00:16:07 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="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
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 --enable-libabiword
68 --enable-printing"
69 }
70
71 src_install() {
72 # Install icon to pixmaps, bug #220097
73 sed 's:icondir = $(datadir)/icons:icondir = $(datadir)/pixmaps:' \
74 -i GNUmakefile || die "sed 1 failed"
75
76 gnome2_src_install
77
78 sed "s:Exec=abiword:Exec=abiword-${MY_MAJORV}:" \
79 -i "${D}"/usr/share/applications/abiword.desktop || die "sed 2 failed"
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