Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 312431
Collapse All | Expand All

(-)libjsw-1.5.8.ebuild.orig (-8 / +9 lines)
Lines 1-11 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/media-libs/libjsw/libjsw-1.5.8.ebuild,v 1.1 2010/03/22 16:17:05 tupone Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-libs/libjsw/libjsw-1.5.8.ebuild,v 1.1 2010/03/22 16:17:05 tupone Exp $
4
4
EAPI=2
5
EAPI=2
5
6
6
inherit eutils multilib
7
inherit eutils multilib
7
8
8
DESCRIPTION="provide a uniform API and user configuration for joysticks and game controllers"
9
DESCRIPTION="Provide a uniform API and user configuration for joysticks and game controllers"
9
HOMEPAGE="http://freshmeat.net/projects/libjsw/"
10
HOMEPAGE="http://freshmeat.net/projects/libjsw/"
10
SRC_URI="http://wolfsinger.com/~wolfpack/packages/${P}.tar.bz2"
11
SRC_URI="http://wolfsinger.com/~wolfpack/packages/${P}.tar.bz2"
11
12
Lines 14-20 Link Here
14
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
15
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
15
IUSE="gtk"
16
IUSE="gtk"
16
17
17
DEPEND="gtk? ( =x11-libs/gtk+-1.2* )"
18
DEPEND="gtk? ( x11-libs/gtk+ )"
18
19
19
src_prepare() {
20
src_prepare() {
20
	cp include/jsw.h libjsw/
21
	cp include/jsw.h libjsw/
Lines 37-56 Link Here
37
	insinto /usr/include
38
	insinto /usr/include
38
	doins include/jsw.h || die "doins jsw.h failed"
39
	doins include/jsw.h || die "doins jsw.h failed"
39
40
40
	dodoc AUTHORS README
41
	dodoc INSTALL README || die
41
	docinto jswdemos
42
	docinto jswdemos
42
	dodoc jswdemos/*
43
	dodoc jswdemos/* || die
43
44
44
	cd "${S}"/libjsw
45
	cd "${S}"/libjsw
45
	dolib.so libjsw.so.${PV} || die "dolib.so"
46
	dolib.so libjsw.so.${PV} || die "dolib.so"
46
	dosym libjsw.so.${PV} /usr/$(get_libdir)/libjsw.so
47
	dosym libjsw.so.${PV} /usr/$(get_libdir)/libjsw.so || die
47
	doman man/*
48
	doman man/* || die
48
49
49
	if use gtk ; then
50
	if use gtk ; then
50
		cd "${S}"/jscalibrator
51
		cd "${S}"/jscalibrator
51
		dobin jscalibrator || die
52
		dobin jscalibrator || die
52
		doman jscalibrator.1
53
		doman jscalibrator.1 || die
53
		insinto /usr/share/${PN}
54
		insinto /usr/share/${PN}
54
		doins -r data/help
55
		doins -r data/help || die
55
	fi
56
	fi
56
}
57
}

Return to bug 312431