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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sat Mar 17 05:46:11 2012 UTC (6 years, 7 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.8.6-r1.ebuild,v 1.12 2011/09/23 12:46:50 pacho Exp $
4
5 EAPI="3"
6
7 inherit alternatives eutils gnome2 versionator autotools
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 ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
18 IUSE="collab cups gnome grammar latex math ots openxml plugins readline spell wordperfect wmf thesaurus" # svg
19
20 # libgsf raised to make sure it provides gio backend (ebuild)
21 # not enabling telepathy backend for collab, it depends on libempathy-gtk which
22 # has be removed from empathy-2.30 already
23 RDEPEND="
24 >=app-text/wv-1.2
25 >=dev-libs/fribidi-0.10.4
26 >=dev-libs/glib-2.16:2
27 >=gnome-base/librsvg-2.16:2
28 >=gnome-extra/libgsf-1.14.15
29 >=media-libs/libpng-1.2
30 virtual/jpeg
31 >=x11-libs/cairo-1.8[X]
32 >=x11-libs/gtk+-2.14:2[cups?]
33 gnome? (
34 >=gnome-extra/gucharmap-2
35 >=x11-libs/goffice-0.8:0.8 )
36 plugins? (
37 collab? (
38 >=dev-libs/boost-1.33.1
39 >=dev-libs/libxml2-2.4
40 >=net-libs/loudmouth-1
41 net-libs/libsoup:2.4
42 net-libs/gnutls )
43 grammar? ( >=dev-libs/link-grammar-4.2.1 )
44 latex? ( dev-libs/libxslt )
45 math? ( >=x11-libs/gtkmathview-0.7.5 )
46 openxml? ( dev-libs/boost )
47 ots? ( >=app-text/ots-0.5 )
48 readline? ( sys-libs/readline )
49 thesaurus? ( >=app-text/aiksaurus-1.2[gtk] )
50 wordperfect? (
51 app-text/libwpd:0.8
52 app-text/libwpg:0.1 )
53 wmf? ( >=media-libs/libwmf-0.2.8 )
54 )
55 spell? ( >=app-text/enchant-1.2 )
56 !<app-office/abiword-plugins-2.8"
57 # svg? ( >=gnome-base/librsvg-2 )
58
59 DEPEND="${RDEPEND}
60 >=dev-util/pkgconfig-0.9
61 collab? ( dev-cpp/asio )"
62
63 pkg_setup() {
64 # do not enable gnome-vfs
65 G2CONF="${G2CONF}
66 --enable-shave
67 --disable-static
68 --disable-maintainer-mode
69 --disable-default-plugins
70 --disable-builtin-plugins
71 --disable-collab-backend-telepathy
72 --enable-clipart
73 --enable-statusbar
74 --enable-templates
75 --with-gio
76 --without-gnomevfs
77 $(use_with gnome goffice)
78 $(use_enable cups print)
79 $(use_enable collab collab-backend-xmpp)
80 $(use_enable collab collab-backend-tcp)
81 $(use_enable collab collab-backend-service)
82 $(use_enable spell)"
83 }
84
85 src_configure() {
86 local plugins=""
87
88 if use plugins; then
89 # Plugins depending on libgsf
90 plugins="t602 docbook clarisworks wml kword hancom openwriter pdf
91 loadbindings mswrite garble pdb applix opendocument sdw xslfo"
92
93 # Plugins not depending on anything
94 plugins="${plugins} gimp bmp freetranslation iscii s5 babelfish opml eml
95 wikipedia gdict passepartout google presentation urldict hrtext mif"
96
97 # inter7eps: eps.h
98 # libtidy: gsf + tidy.h
99 # paint: windows only ?
100 use collab && plugins="${plugins} collab"
101 use gnome && plugins="${plugins} goffice"
102 use latex && plugins="${plugins} latex"
103 use math && plugins="${plugins} mathview"
104 use openxml && plugins="${plugins} openxml"
105 use ots && plugins="${plugins} ots"
106 # psion: >=psiconv-0.9.4
107 use readline && plugins="${plugins} command"
108 # plugin doesn't build
109 #use svg && plugins="${plugins} rsvg"
110 use thesaurus && plugins="${plugins} aiksaurus"
111 use wmf && plugins="${plugins} wmf"
112 # wordperfect: >=wpd-0.8 >=wps-0.1
113 use wordperfect && plugins="${plugins} wpg"
114 fi
115
116 gnome2_src_configure --enable-plugins="$(echo ${plugins})"
117 }
118
119 src_prepare() {
120 gnome2_src_prepare
121
122 epatch "${FILESDIR}"/${P}-libpng15.patch
123 epatch "${FILESDIR}"/${P}-gcc46.patch
124
125 # install icon to pixmaps (bug #220097)
126 sed 's:$(datadir)/icons:$(datadir)/pixmaps:' \
127 -i Makefile.am Makefile.in || die "sed 1 failed"
128 # readme.txt will be installed using dodoc
129 sed '/readme\.txt\|abw/d' \
130 -i user/wp/Makefile.am user/wp/Makefile.in || die "sed 2 failed"
131
132 eautoreconf
133 }
134
135 src_install() {
136 gnome2_src_install
137
138 sed "s:Exec=abiword:Exec=abiword-${MY_MAJORV}:" \
139 -i "${ED}"/usr/share/applications/abiword.desktop || die "sed 3 failed"
140
141 mv "${ED}/usr/bin/abiword" "${ED}/usr/bin/AbiWord-${MY_MAJORV}"
142 dosym AbiWord-${MY_MAJORV} /usr/bin/abiword-${MY_MAJORV}
143
144 dodoc AUTHORS user/wp/readme.txt || die "dodoc failed"
145
146 # Not needed
147 find "${D}" -name "*.la" -delete || die "failed *.la removal"
148 }
149
150 pkg_postinst() {
151 gnome2_pkg_postinst
152
153 alternatives_auto_makesym "/usr/bin/abiword" "/usr/bin/abiword-[0-9].[0-9]"
154 }
155
156 pkg_postrm() {
157 gnome2_pkg_postrm
158
159 alternatives_auto_makesym "/usr/bin/abiword" "/usr/bin/abiword-[0-9].[0-9]"
160 }

  ViewVC Help
Powered by ViewVC 1.1.20