summaryrefslogtreecommitdiff
blob: a9a27fd56d5366005f720769f0d9ed5777ad93ee (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

inherit mono multilib

DESCRIPTION="WebKit-gtk bindings for Mono"
HOMEPAGE="http://www.mono-project.com/"
SRC_URI="http://mono.ximian.com/monobuild/preview/sources/webkit-sharp/${P}.tar.bz2"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

DEPEND=">=dev-lang/mono-2
	net-libs/webkit-gtk
	>=dev-dotnet/gtk-sharp-2"

RDEPEND="${DEPEND}"

MAKEOPTS="${MAKEOPTS} -j1"

src_prepare() {
	if [[ -h /usr/$(get_libdir)/libwebkit-1.0.so.2 ]]
	then
		ebegin "Adjusting .dll.config to point to the right .so"
		sed -i \
			-e 's:@LIB_PREFIX@.1@LIB_SUFFIX@:@LIB_PREFIX@.2@LIB_SUFFIX@:' \
			sources/webkit-sharp.dll.config.in || die "Sed failed"
		eend $?
	fi
}

src_install() {
	emake DESTDIR="${D}" install || die "Install failed"
	dodoc README ChangeLog || die
	mono_multilib_comply
}