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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sun Aug 5 21:44:50 2012 UTC (23 months, 1 week ago) by blueness
Branch: MAIN
Changes since 1.10: +2 -2 lines
Keyword ~arm

(Portage version: 2.1.10.65/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20