--- /usr/portage/app-office/abiword/abiword-2.4.5.ebuild 2006-09-06 05:40:13.000000000 +0200 +++ abiword-2.4.5.ebuild 2006-10-01 16:23:24.000000000 +0200 @@ -4,7 +4,7 @@ inherit eutils fdo-mime alternatives -S=${WORKDIR}/${P}/abi +S=${WORKDIR}/${P} DESCRIPTION="Fully featured yet light and fast cross platform word processor" HOMEPAGE="http://www.abisource.com/" @@ -12,7 +12,7 @@ SRC_URI="http://www.abisource.com/downloads/${PN}/${PV}/source/${P}.tar.bz2" KEYWORDS="alpha amd64 hppa ~ia64 ppc ppc64 sparc x86" -IUSE="debug gnome spell xml" +IUSE="debug doc gnome spell xml" LICENSE="GPL-2" SLOT="2" @@ -42,6 +42,8 @@ >=dev-util/pkgconfig-0.9" src_compile() { + cd ${S}/abi + # 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 @@ -62,6 +64,8 @@ } src_install() { + cd ${S}/abi + dodir /usr/{bin,lib} make DESTDIR="${D}" install || die "Installation failed" @@ -73,6 +77,21 @@ dosym AbiWord-2.4 /usr/bin/abiword-2.4 dodoc *.TXT docs/build/BUILD.TXT user/wp/readme.txt + + cd ${S}/abiword-docs + if use doc; then + dodoc Manual/en/Abiword_Manual.abw + dodoc Tutorials/*/*/* + fi + doman man/abiword.1 + + cd ABW + HYPHENLINGUAS=$(echo $LINGUAS | sed -e 's/_/-/') + for dir in $HYPHENLINGUAS; do + if [[ -d $dir ]]; then + dodoc $dir/*/* + fi + done } pkg_postinst() {