blob: 4695d63eda9a870108ca2d1122956a815490e4bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/abiword/abiword-2.0.5.ebuild,v 1.6 2004/04/21 22:09:55 foser Exp $
inherit eutils
IUSE="spell jpeg xml2 gnome doc"
S_P=${S}/${PN}-plugins
S_D=${S}/${PN}-docs
S=${WORKDIR}/${P}/abi
DESCRIPTION="Fully featured yet light and fast cross platform word processor"
HOMEPAGE="http://www.abisource.com"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
KEYWORDS="x86 ~sparc ~alpha ~ppc ~amd64 hppa"
LICENSE="GPL-2"
SLOT="2"
RDEPEND="virtual/x11
virtual/xft
>=media-libs/fontconfig-2.1
media-libs/libpng
>=x11-libs/gtk+-2.2
>=gnome-base/libglade-2
>=app-text/wv-1
>=dev-libs/fribidi-0.10.4
jpeg? ( >=media-libs/jpeg-6b-r2 )
xml2? ( >=dev-libs/libxml2-2.4.10 )
!xml2? ( dev-libs/expat )
spell? ( >=app-text/enchant-1 )
gnome? ( >=gnome-base/libgnomeui-2.2
>=gnome-base/libgnomeprint-2.2.1
>=gnome-base/libgnomeprintui-2.2.1
>=gnome-base/libbonobo-2 )"
DEPEND="${RDEPEND}
sys-devel/automake
dev-util/pkgconfig"
src_compile() {
# Abiword is not 64-bit safe. This is a patch for AMD64.
if [ $ARCH = "amd64" ] ; then
epatch ${FILESDIR}/${PN}-2.0.3-amd64.patch || die
fi
# this is a hack since I don't want to go hack in the gnome-vfs headerfiles.
# The issue is about gnome-vfs containing "long long" which makes gcc 3.3.1 balk
cp configure configure.old
cat configure.old |sed s:-pedantic::g >configure
rm -f configure.old
econf \
`use_enable gnome` \
`use_with xml2 libxml2` \
`use_enable spell enchant` \
--disable-debug \
--enable-bidi \
--enable-threads \
--without-ImageMagick \
--disable-scripting \
--disable-gucharmap \
--with-sys-wv || die
emake all-recursive || die
# Build plugins
cd ${S_P}
econf \
--disable-debug \
--enable-all \
--with-abiword=${S} \
--without-ImageMagick || die
emake || die
}
src_install() {
dodir /usr/{bin,lib}
einstall PERLDEST=${D} || die
dosed "s:Exec=abiword:Exec=abiword-2.0:" /usr/share/applications/abiword.desktop
rm -f ${D}/usr/bin/abiword-2.0
rm -f ${D}/usr/bin/abiword
dosym AbiWord-2.0 /usr/bin/abiword-2.0
dodoc COPYING *.TXT docs/build/BUILD.TXT user/wp/readme.txt
# install plugins
cd ${S_P}
make DESTDIR=${D} install || die
# install documentation
cd ${WORKDIR}/${P}/abiword-docs
sed -e 's:prefix = /usr/local:prefix = /usr:g' Makefile > Makefile.new
mv Makefile.new Makefile
make DESTDIR=${D} || die
}
USE_DESTDIR="1"
|