summaryrefslogtreecommitdiff
blob: 9e7c7fb1f5bfab3f8b3898f37a384a6cb8faa0e7 (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
57
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/winesetuptk/winesetuptk-0.6.0b-r3.ebuild,v 1.12 2005/01/01 14:20:14 eradicator Exp $

MY_P1=tcltk-${P}
MY_P=${P/-/_}-1.1

DESCRIPTION="Setup tool for WiNE adapted from Codeweavers by Debian"
HOMEPAGE="http://packages.debian.org/unstable/otherosfs/winesetuptk.html"
SRC_URI="mirror://debian/pool/main/w/winesetuptk/${MY_P}.tar.gz"

LICENSE="as-is"
SLOT="0"
KEYWORDS="-* x86"
IUSE=""

DEPEND="virtual/x11"

src_unpack() {
	unpack ${MY_P}.tar.gz
	cd ${S}

	tar zxf ${MY_P1}.tar.gz || die
	tar zxf ${P}.tar.gz || die
}

src_compile() {
	cd ${S}/${MY_P1}
	./build.sh

	cd ${S}/${P}

	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var/lib \
		--sysconfdir=/etc/wine \
		--enable-curses \
		--with-tcltk=${S}/${MY_P1} \
		--with-launcher=/usr/bin \
		--with-exe=/usr/bin \
		--with-doc=/usr/share/doc/${P} || die "configure failed"

	make || die "make failed"
}

src_install() {
	cd ${S}/${P}
	make \
		PREFIX_LAUNCHER=${D}/usr/bin \
		PREFIX_EXE=${D}/usr/bin \
		PREFIX_DOC=${D}/usr/share/doc/${P} \
		install || die

	dodoc doc/*
}