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

(-)bsd-games-2.17-r4.ebuild (-8 / +11 lines)
Lines 2-15 Link Here
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/games-misc/bsd-games/bsd-games-2.17-r4.ebuild,v 1.12 2010/10/19 15:55:33 mr_bones_ Exp $
3
# $Header: /var/cvsroot/gentoo-x86/games-misc/bsd-games/bsd-games-2.17-r4.ebuild,v 1.12 2010/10/19 15:55:33 mr_bones_ Exp $
4
4
5
EAPI=2
5
EAPI=5
6
inherit eutils games
6
inherit eutils games toolchain-funcs
7
7
8
DEB_PATCH_VER=16
8
DEB_PATCH_VER=21
9
DESCRIPTION="collection of games from NetBSD"
9
DESCRIPTION="collection of games from NetBSD"
10
HOMEPAGE="http://www.advogato.org/proj/bsd-games/"
10
HOMEPAGE="http://www.advogato.org/proj/bsd-games/"
11
SRC_URI="ftp://metalab.unc.edu/pub/Linux/games/${P}.tar.gz
11
SRC_URI="ftp://metalab.unc.edu/pub/Linux/games/${P}.tar.gz
12
	mirror://debian/pool/main/b/bsdgames/bsdgames_${PV}-${DEB_PATCH_VER}.diff.gz"
12
	mirror://debian/pool/main/b/bsdgames/bsdgames_${PV}-${DEB_PATCH_VER}.debian.tar.gz"
13
13
14
LICENSE="BSD"
14
LICENSE="BSD"
15
SLOT="0"
15
SLOT="0"
Lines 23-28 Link Here
23
	sys-libs/ncurses
23
	sys-libs/ncurses
24
	sys-apps/miscfiles"
24
	sys-apps/miscfiles"
25
DEPEND="${RDEPEND}
25
DEPEND="${RDEPEND}
26
	virtual/pkgconfig
26
	sys-devel/flex
27
	sys-devel/flex
27
	sys-devel/bison"
28
	sys-devel/bison"
28
29
Lines 34-46 Link Here
34
tetris trek wargames worm worms wtf}
35
tetris trek wargames worm worms wtf}
35
36
36
src_prepare() {
37
src_prepare() {
38
	local debpatch
39
	for debpatch in $(cat "${WORKDIR}/debian/patches/series"); do
40
		epatch "${WORKDIR}/debian/patches/${debpatch}"
41
	done
37
	epatch \
42
	epatch \
38
		"${WORKDIR}"/bsdgames_${PV}-${DEB_PATCH_VER}.diff \
39
		"${FILESDIR}"/${P}-64bitutmp.patch \
43
		"${FILESDIR}"/${P}-64bitutmp.patch \
40
		"${FILESDIR}"/${P}-headers.patch \
44
		"${FILESDIR}"/${P}-headers.patch \
41
		"${FILESDIR}"/${P}-bg.patch \
45
		"${FILESDIR}"/${P}-bg.patch \
42
		"${FILESDIR}"/${P}-gcc4.patch \
46
		"${FILESDIR}"/${P}-gcc4.patch
43
		"${FILESDIR}"/${P}-glibc2.10.patch
44
47
45
	sed -i \
48
	sed -i \
46
		-e "s:/usr/games:${GAMES_BINDIR}:" \
49
		-e "s:/usr/games:${GAMES_BINDIR}:" \
Lines 60-65 Link Here
60
	echo bsd_games_cfg_usrlibdir=\"$(games_get_libdir)\" >> ./config.params
63
	echo bsd_games_cfg_usrlibdir=\"$(games_get_libdir)\" >> ./config.params
61
	echo bsd_games_cfg_build_dirs=\"${GAMES_TO_BUILD}\" >> ./config.params
64
	echo bsd_games_cfg_build_dirs=\"${GAMES_TO_BUILD}\" >> ./config.params
62
	echo bsd_games_cfg_docdir=\"/usr/share/doc/${PF}\" >> ./config.params
65
	echo bsd_games_cfg_docdir=\"/usr/share/doc/${PF}\" >> ./config.params
66
	echo bsd_games_cfg_ncurses_lib=\"$($(tc-getPKG_CONFIG) --libs ncurses)\" >> ./config.params
63
}
67
}
64
68
65
src_test() {
69
src_test() {
Lines 119-125 Link Here
119
		newman factor/factor.6 primes.6
123
		newman factor/factor.6 primes.6
120
	fi
124
	fi
121
125
122
	prepalldocs
123
	prepgamesdirs
126
	prepgamesdirs
124
127
125
	# state dirs
128
	# state dirs

Return to bug 459652