summaryrefslogtreecommitdiff
blob: 657d930e7c3cf4a01c7a15692aa5108e00046585 (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-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmxres/wmxres-1.2.ebuild,v 1.4 2006/01/31 21:15:04 nelchael Exp $

inherit eutils

IUSE=""

DESCRIPTION="Dock application to select your display mode among those possible"
SRC_URI="http://yalla.free.fr/wn/${PN}-1.1-0.tar.gz"
HOMEPAGE="http://yalla.free.fr/wn/"

RDEPEND="|| ( (
		x11-libs/libX11
		x11-libs/libXext
		x11-libs/libXpm
		x11-libs/libXxf86vm )
	virtual/x11 )"
DEPEND="${RDEPEND}
	|| ( (
		x11-proto/xextproto
		x11-proto/xf86vidmodeproto
		x11-proto/xf86dgaproto )
	virtual/x11 )"

SLOT="0"
LICENSE="GPL-1"
KEYWORDS="x86 ~ppc"

S="${WORKDIR}/${PN}.app"

src_unpack() {

	unpack ${A}

	cd ${S}
	epatch ${FILESDIR}/${PN}-makefile.patch
	epatch ${FILESDIR}/${PN}-debian-1.1-1.2.patch

}

src_compile() {

	emake GCFLAGS="${CFLAGS}" || die "make failed"

}

src_install() {

	dobin ${PN}/${PN}
	doman ${PN}.1

	insinto /usr/share/applications
	doins ${FILESDIR}/${PN}.desktop

}