summaryrefslogtreecommitdiff
blob: 8819da3b5202871799289eb39352b93a48dcd2ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libole2/libole2-0.2.4-r1.ebuild,v 1.6 2004/03/05 13:20:48 gustavoz Exp $

inherit gnome.org

S=${WORKDIR}/${P}
DESCRIPTION="Library to manipulate OLE2 Structured Storage files"
HOMEPAGE="http://www.gnome.org/"

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

DEPEND="=dev-libs/glib-1.2*
	dev-util/gtk-doc"

src_unpack() {
	unpack ${A}

	# fix header include, needed for abiword
	cd ${S}/libole2
	mv ms-ole.h ms-ole.h.old
	sed -e "s:glib.h:glib-1.2/glib.h:" ms-ole.h.old > ms-ole.h
}

src_compile() {
	econf || die
	emake || die
}

src_install() {
	# prevent executing gtkdoc-fixxref - sandbox violations
	cd ${S}/doc
	mv Makefile Makefile.orig
	sed 's/gtkdoc-fixxref.*/\\/' Makefile.orig > Makefile

	cd ${S}
	make DESTDIR=${D} install || die
	dodoc AUTHORS COPYING ChangeLog NEWS README* TODO
}

pkg_postinst() {
	einfo "Fixing libole2's documentation cross references"
	gtkdoc-fixxref --module=libole2 --html-dir=/usr/share/libole2/html
}