Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34528 - abiword-2.0.1.ebuild (Update)
Summary: abiword-2.0.1.ebuild (Update)
Status: RESOLVED DUPLICATE of bug 24527
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://www.gentoo.org/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-27 10:58 UTC by cypher
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cypher 2003-11-27 10:58:10 UTC
Attached is a patched ebuild which replaces the -Os CFLAG with -O2 in AbiWord 2.0.1. Compiling with -Os causes AbiWord to crash without notice when saving a document or copying/cutting text. This fixes bug #34527.


# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/app-office/abiword/abiword-2.0.1.ebuild,v 1.2 2003/11/17 21:14:45 spider Exp $

inherit eutils
# AbiWord will crash on save and copy/cut if compiled with -Os
replace-flags "-Os" "-O2"

IUSE="spell jpeg xml2 gnome"

S=${WORKDIR}/${P}/abi
S_P=${WORKDIR}/${PN}-plugins

DESCRIPTION="Fully featured yet light and fast cross platform word processor"
HOMEPAGE="http://www.abisource.com"

SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
	mirror://sourceforge/${PN}/${PN}-plugins-${PV}.tar.bz2"

KEYWORDS="x86 ~sparc ~alpha ~ppc"
LICENSE="GPL-2"
SLOT="2"

RDEPEND="virtual/x11
	virtual/xft
	>=media-libs/fontconfig-2.1
	media-libs/libpng
	>=x11-libs/gtk+-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 : dev-libs/expat )
	spell? ( >=app-text/enchant-1 )
	gnome? ( >=gnome-base/libgnomeui-2.2
		>=gnome-base/libgnomeprintui-2.2.1 )"

DEPEND="${RDEPEND}
	sys-devel/automake
	dev-util/pkgconfig"

#	>=dev-libs/libole2-0.2.4-r1
#	perl?  ( >=dev-lang/perl-5.6 )
# perl seems broken

src_compile() {

	./autogen.sh

	# 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` \
		--enable-bidi \
		--without-ImageMagick \
		--disable-scripting \
		--with-sys-wv || die

	emake all-recursive || die

	# Build plugins

	cd ${S_P}

	./nextgen.sh
	econf \
		--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

}
Comment 1 foser (RETIRED) gentoo-dev 2003-11-27 14:18:29 UTC
please attach ebuilds, etc.

*** This bug has been marked as a duplicate of 24527 ***