summaryrefslogtreecommitdiff
blob: 808e86840c20544eac2300e6d0958b0cacfc2ed0 (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
48
49
50
51
52
53
54
55
56
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/winelib/winelib-0.3-r1.ebuild,v 1.3 2005/03/11 03:16:48 latexer Exp $

DESCRIPTION="Library for using Windows.Forms with Mono"
HOMEPAGE="http://www.go-mono.com/"
SRC_URI="http://www.go-mono.com/archive/1.0/${P}.tar.gz"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

RDEPEND=">=dev-lang/mono-1.0
		>=app-emulation/wine-20040121
		>=dev-dotnet/libgdiplus-0.9"
DEPEND="${RDEPEND}"

src_unpack() {
	unpack ${A}

	# Tries to make a bunch of nasty symlinks. We do it ourselves
	# in src_install
	cd ${S}
	sed -i "s:^\t(cd\(.*\):\t#(cd\1:" winelib/Makefile.in
}

src_compile() {
	econf --with-wine=${ROOT}/usr/lib/wine || die
	emake || die
}

src_install() {
	dodir /usr/lib
	einstall || die

	for lib in ${ROOT}/usr/lib/wine/lib/wine/*dll.so
	do
		dosym "${lib}" "/usr/lib/lib`basename ${lib}`"
	done

	dosym ${ROOT}/usr/lib/wine/lib/wine/user32.dll.so /usr/lib/user32.so
	dosym ${ROOT}/usr/lib/wine/lib/libwine.so.1 /usr/lib
	dosym ${ROOT}/usr/lib/wine/lib/libwine_unicode.so.1 /usr/lib

	dodoc ChangeLog
	docinto winelib/
	dodoc winelib/ChangeLog
}

pkg_postinst() {
	ewarn
	ewarn "Applications using winelib need ~/.wine to exist to function."
	ewarn "To get this created run 'wine' as the user in question."
	ewarn
}