summaryrefslogtreecommitdiff
blob: e3266378e79a3c6d225d23aa4cff669050c80197 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils multilib

IUSE=""

DESCRIPTION="A Library of Bullet Markup Language for D-Lang"
SRC_URI="http://my.vector.co.jp/servlet/System.FileDownload/download/http/0/301119/pack/win95/game/tool/bulletss.zip"
HOMEPAGE="http://shinh.skr.jp/bulletss/"

SLOT="0"
LICENSE="BSD"
KEYWORDS="ppc x86 ~alpha"
IUSE=""

DEPEND="<=sys-devel/gcc-4.1.2[d]
	dev-lang/perl
	sys-devel/bison
	app-arch/unzip"

RDEPEND=""

S="${WORKDIR}"/bulletss

src_unpack() {
	unpack ${A}
	cd "${WORKDIR}"/bulletss/

	epatch "${FILESDIR}"/fix.diff
}

src_compile() {
	emake -C bulletml || die
}

src_install() {
	dodoc README*

	cd "${S}"/bulletml
	dolib.a libbulletml_d.a

	insinto /usr/include/bulletml-d
	doins *.h

	dodir /usr/lib/dmd/phobos
	insinto /usr/lib/dmd/phobos
	doins bulletml.d
	dosed "s:\(alias bit bool\)://\1:" /usr/lib/dmd/phobos/bulletml.d
}