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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Sep 13 14:04:04 2003 UTC (15 years, 2 months ago) by foser
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
new version 'n cleanup

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/app-office/abiword/abiword-1.99.5.ebuild,v 1.4 2003/09/08 07:23:08 msterret Exp $
4
5 inherit eutils debug
6
7 IUSE="spell jpeg xml2 gnome"
8
9 S=${WORKDIR}/${P}/abi
10 # REMIND : usually -${PV} needs to be added
11 S_P=${WORKDIR}/${PN}-plugins
12
13 DESCRIPTION="Fully featured yet light and fast cross platform word processor"
14 HOMEPAGE="http://www.abisource.com"
15
16 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
17 mirror://sourceforge/${PN}/${PN}-plugins-${PV}.tar.bz2"
18
19 KEYWORDS="~x86 ~sparc ~alpha ~ppc"
20 LICENSE="GPL-2"
21 SLOT="2"
22
23 RDEPEND="virtual/x11
24 virtual/xft
25 >=media-libs/fontconfig-2.1
26 >=dev-libs/libunicode-0.4-r1
27 media-libs/libpng
28 >=x11-libs/gtk+-2
29 >=gnome-base/libglade-2
30 >=app-text/wv-0.7.6
31 >=dev-libs/fribidi-0.10.4
32 jpeg? ( >=media-libs/jpeg-6b-r2 )
33 ( xml2? >=dev-libs/libxml2-2.4.10 : dev-libs/expat )
34 spell? ( >=app-text/enchant-0.1 )
35 gnome? ( >=gnome-base/libgnomeui-2.2
36 >=gnome-base/libgnomeprintui-2.2.1
37 >=gnome-extra/gal-1.99 )"
38
39 DEPEND="${RDEPEND}
40 sys-devel/automake
41 dev-util/pkgconfig"
42
43 # >=dev-libs/libole2-0.2.4-r1
44 # perl? ( >=dev-lang/perl-5.6 )
45 # perl seems broken
46
47 src_unpack() {
48
49 unpack ${A}
50
51 epatch ${FILESDIR}/${P}-cast_fix.patch
52
53 }
54
55 src_compile() {
56 ./autogen.sh
57
58 # this is a hack since I don't want to go hack in the gnome-vfs headerfiles.
59 # The issue is about gnome-vfs containing "long long" which makes gcc 3.3.1 balk
60 cp configure configure.old
61 cat configure.old |sed s:-pedantic::g >configure
62 rm -f configure.old
63
64 econf \
65 `use_enable gnome` \
66 `use_with xml2 libxml2` \
67 `use_enable spell enchant` \
68 --enable-bidi \
69 --without-ImageMagick \
70 --disable-scripting \
71 --with-sys-wv || die
72
73 emake all-recursive || die
74
75 # Build plugins
76
77 cd ${S_P}
78
79 ./nextgen.sh
80 econf --enable-all --with-abiword=${S} || die
81 emake || die
82
83 }
84
85 src_install() {
86 dodir /usr/{bin,lib}
87
88 einstall PERLDEST=${D} || die
89
90 dosed "s:${D}::g" /usr/bin/AbiWord-2.0
91
92 rm -f ${D}/usr/bin/abiword-2.0
93 rm -f ${D}/usr/bin/abiword
94 dosym AbiWord-2.0 /usr/bin/abiword-2.0
95
96 dodoc COPYING *.TXT docs/build/BUILD.TXT user/wp/readme.txt
97
98 # install plugins
99
100 cd ${S_P}
101
102 make DESTDIR=${D} install || die
103
104 # Install icon and .desktop for menu entry
105 insinto /usr/share/pixmaps
106 newins ${WORKDIR}/${P}/abidistfiles/icons/abiword_48.png AbiWord.png
107 insinto /usr/share/applications/
108 doins ${FILESDIR}/AbiWord2.desktop
109
110 }

  ViewVC Help
Powered by ViewVC 1.1.20