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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Sep 5 16:16:02 2002 UTC (16 years, 2 months ago) by drobbins
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
repoman fixes (mostly cleanups of old ebuilds with pspell stuff in them)
and linphone relocation to net-im.

1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # $Header: /home/cvsroot/gentoo-x86/app-office/abiword/abiword-1.0.2.ebuild,v 1.4 2002/08/06 17:39:41 gerk Exp $
4
5 S=${WORKDIR}/${P}/abi
6 DESCRIPTION="Text processor"
7 SRC_URI="http://download.sourceforge.net/abiword/abiword-${PV}.tar.gz"
8 HOMEPAGE="http://www.abisource.com"
9 KEYWORDS="x86 ppc"
10 LICENSE="GPL-2"
11 SLOT="0"
12 DEPEND="virtual/x11
13 media-libs/libpng
14 >=dev-libs/libunicode-0.4-r1
15 =x11-libs/gtk+-1.2*
16 jpeg? ( >=media-libs/jpeg-6b-r2 )
17 perl? ( >=sys-devel/perl-5.6 )
18 xml2? ( >=dev-libs/libxml2-2.4.10 )
19 spell? ( >=app-text/pspell-ispell-0.12-r1 )
20 gnome? ( >=gnome-base/gnome-libs-1.4.1.2-r1
21 >=gnome-extra/gal-0.13-r1
22 >=gnome-base/bonobo-1.0.9-r1 )"
23
24
25 fix_perl_env() {
26 # new configure scripts is a bit broken
27 export PERL_ARCHLIB="`(perl -V:installarchlib | sed -e "s/\(.*=\|'\|;\)//g\")`"
28 export PERL_LIB="`(perl -V:installprivlib | sed -e "s/\(.*=\|'\|;\)//g\")`"
29 export POD2MAN_EXE="`which pod2man`"
30 export SITE_LIB="`(perl -V:sitelib | sed -e "s/\(.*=\|'\|;\)//g\")`"
31 export SITE_ARCHLIB="`(perl -V:sitearch | sed -e "s/\(.*=\|'\|;\)//g\")`"
32 }
33
34 src_unpack() {
35
36 unpack ${A}
37
38 use perl && ( \
39 fix_perl_env
40
41 # Fix perl stuff install outside sandbox, as well as a bug in
42 # Abiword's build system (Abiword.3pm did not install, and
43 # the '.packlist' was not generated properly) -- Azarah (25/02/2002).
44 cd ${S}/src/bindings/perl
45 cp GNUmakefile.am GNUmakefile.am.orig
46 sed -e "s:PERL_ARCHLIB = @PERL_ARCHLIB@:PERL_ARCHLIB = ${PERL_ARCHLIB}:" \
47 -e "s:PERL_LIB = @PERL_LIB@:PERL_LIB = ${PERL_LIB}:" \
48 -e "s:POD2MAN_EXE = @POD2MAN_EXE@:POD2MAN_EXE = ${POD2MAN_EXE}:" \
49 -e "s:SITE_LIB = @SITE_LIB@:SITE_LIB = ${SITE_LIB}:" \
50 -e "s:SITE_ARCHLIB = @SITE_ARCHLIB@:SITE_ARCHLIB = ${SITE_ARCHLIB}:" \
51 -e 's:write $(SITE_ARCHLIB)/auto:write $(PERLDEST)/$(SITE_ARCHLIB)/auto:g' \
52 -e 's:blib/lib $(SITE_LIB):blib/lib $(PERLDEST)/$(SITE_LIB):g' \
53 -e 's:blib/arch $(SITE_ARCHLIB):blib/arch $(PERLDEST)/$(SITE_ARCHLIB):g' \
54 -e 's:blib/bin /usr/bin:blib/bin $(PERLDEST)/usr/bin:g' \
55 -e 's:blib/script /usr/bin:blib/script $(PERLDEST)/usr/bin:g' \
56 -e 's:blib/man1 /usr/share/man/man1:blib/man1 $(PERLDEST)/usr/share/man/man1:g' \
57 -e 's:blib/man3 /usr/share/man/man3:blib/man3 $(PERLDEST)/usr/share/man/man3:g' \
58 -e 's:mkpath $(PERL_ARCHLIB):mkpath $(PERLDEST)/$(PERL_ARCHLIB):g' \
59 -e 's:$(PERL_ARCHLIB)/perllocal.pod:$(PERLDEST)/$(PERL_ARCHLIB)/perllocal.pod.new:' \
60 GNUmakefile.am.orig >GNUmakefile.am || die
61 mkdir -p blib/{arch,bin,lib,man1,man3,script}
62 cd ${S}
63 )
64
65 # clear invalid symlinks
66 rm -f ac-helpers/{install-sh,mkinstalldirs,missing}
67 }
68
69 src_compile() {
70
71 local myconf
72
73 use gnome \
74 && myconf="${myconf} --with-gnome --enable-gnome" \
75 && export ABI_OPT_BONOBO=1
76
77 use perl \
78 && myconf="${myconf} --enable-scripting"
79
80 use spell \
81 && myconf="${myconf} --with-pspell"
82
83 use xml2 \
84 && myconf="${myconf} --with-libxml2"
85
86 use jpeg \
87 && myconf="${myconf} --with-libjpeg"
88
89 use nls \
90 && myconf="${myconf} --enable-bidi"
91
92 ./autogen.sh
93
94 echo
95 echo "*************************************************"
96 echo "* Ignore above ERROR as it does not cause build *"
97 echo "* to fail. *"
98 echo "*************************************************"
99 echo
100
101 CFLAGS="${CFLAGS} `gdk-pixbuf-config --cflags`"
102
103 ./configure \
104 --prefix=/usr \
105 --mandir=/usr/share/man \
106 --infodir=/usr/share/info \
107 --sysconfdir=/etc \
108 --localstatedir=/var/lib \
109 --enable-extra-optimization \
110 ${myconf} || die
111
112 # Doesn't work with -j 4 (hallski)
113 make UNIX_CAN_BUILD_STATIC=0 \
114 OPTIMIZER="${CFLAGS}" || die
115 }
116
117 src_install() {
118
119 dodir /usr/{bin,lib}
120
121 make prefix=${D}/usr \
122 mandir=${D}/usr/share/man \
123 infodir=${D}/usr/share/info \
124 sysconfdir=${D}/etc \
125 localstatedir=${D}/var/lib \
126 PERLDEST=${D} \
127 install || die
128
129 dosed "s:${D}::g" /usr/bin/AbiWord
130
131 rm -f ${D}/usr/bin/abiword
132 dosym /usr/bin/AbiWord /usr/bin/abiword
133
134 dodoc BUILD COPYING *.txt, *.TXT
135
136 # Install icon and .desktop for menu entry
137 use gnome && ( \
138 insinto /usr/share/pixmaps
139 newins ${WORKDIR}/${P}/abidistfiles/icons/abiword_48.png AbiWord.png
140 insinto /usr/share/gnome/apps/Applications
141 doins ${FILESDIR}/AbiWord.desktop
142 )
143 }
144
145 pkg_postinst() {
146
147 # Appending installation info
148 local perlver="`perl -v | grep -e "This is perl" | cut -d ' ' -f 4`"
149 perlver=${perlver/v/}
150 local perlarch="`perl -V | grep -e " archname" | cut -d '=' -f 4`"
151 if [ -f /usr/lib/perl5/${perlver}/${perlarch}/perllocal.pod.new ] ; then
152 sed -e "s:5.6.0:${perlver}:g" \
153 /usr/lib/perl5/${perlver}/${perlarch}/perllocal.pod.new \
154 >> /usr/lib/perl5/${perlver}/${perlarch}/perllocal.pod
155 rm -rf /usr/lib/perl5/${perlver}/${perlarch}/perllocal.pod.new
156 fi
157 }
158

  ViewVC Help
Powered by ViewVC 1.1.20