# ChangeLog for app-office/abiword
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/abiword/ChangeLog,v 1.247 2011/09/23 09:08:02 polynomial-c Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/abiword/ChangeLog,v 1.248 2011/09/23 12:46:50 pacho Exp $
+
+ 23 Sep 2011; Pacho Ramos <pacho@gentoo.org> abiword-2.8.6-r1.ebuild,
+ +files/abiword-2.8.6-gcc46.patch:
+ Use Arch patch to fix compilation with gcc-4.6 (bug #367865).
23 Sep 2011; Lars Wendler <polynomial-c@gentoo.org>
files/abiword-2.8.6-libpng15.patch:
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/abiword/abiword-2.8.6-r1.ebuild,v 1.11 2011/08/07 08:59:48 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/abiword/abiword-2.8.6-r1.ebuild,v 1.12 2011/09/23 12:46:50 pacho Exp $
EAPI="3"
-inherit alternatives eutils gnome2 versionator
+inherit alternatives eutils gnome2 versionator autotools
MY_MAJORV=$(get_version_component_range 1-2)
}
src_prepare() {
- epatch "${FILESDIR}"/${P}-libpng15.patch
-
gnome2_src_prepare
+ epatch "${FILESDIR}"/${P}-libpng15.patch
+ epatch "${FILESDIR}"/${P}-gcc46.patch
+
# install icon to pixmaps (bug #220097)
sed 's:$(datadir)/icons:$(datadir)/pixmaps:' \
-i Makefile.am Makefile.in || die "sed 1 failed"
# readme.txt will be installed using dodoc
sed '/readme\.txt\|abw/d' \
-i user/wp/Makefile.am user/wp/Makefile.in || die "sed 2 failed"
+
+ eautoreconf
}
src_install() {
--- /dev/null
+diff -u -r abiword-2.8.6.orig/src/Makefile.am abiword-2.8.6/src/Makefile.am
+--- abiword-2.8.6.orig/src/Makefile.am 2009-09-09 15:11:01.000000000 +0200
++++ abiword-2.8.6/src/Makefile.am 2011-08-02 23:35:51.904761961 +0200
+@@ -107,7 +107,7 @@
+
+ AbiWord_LDFLAGS = \
+ $(DEPS_LIBS) \
+- --no-undefined \
++ -Wl,--no-undefined \
+ -avoid-version \
+ -export-dynamic \
+ -headerpad_max_install_names
+@@ -129,7 +129,7 @@
+
+ abiword_LDFLAGS = \
+ $(platform_ldflags) \
+- --no-undefined \
++ -Wl,--no-undefined \
+ -avoid-version \
+ -export-dynamic
+