blob: 4ca953664df45bef654f9d5c23c81c5c36002ed1 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="An easy to use binding system for Squirrel"
HOMEPAGE="http://wiki.squirrel-lang.org/default.aspx/SquirrelWiki/SqPlus.html"
SRC_URI="http://www.brightland.com/sq/SQUIRREL2_1_1_${P/-/_}.zip"
LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"
RDEPEND=">=dev-lang/squirrel-2.1.1"
DEPEND="${RDEPEND}
app-arch/unzip"
S="${WORKDIR}/SQUIRREL2_1_0_sqplus_${PV}"
src_unpack() {
unpack ${A}
cd "${S}"
rm minimalSqPlus/{*.vcproj,*.sln,*.cbp}
rm testSqPlus/{*.vcproj,*.sln,*.cbp}
rm testSqPlus2/{*.vcproj,*.sln,*.cbp}
}
src_compile() {
cd sqplus
emake || die "emake failed"
}
src_install() {
insinto /usr/include/squirrel
doins sqplus/{SqPlusConst.h,sqplus.h,SquirrelBindingsUtils.h,SquirrelObject.h,SquirrelVM.h} || die "copying header files failed"
dolib lib/libsqplus.a || die "copying library file failed"
dodoc README_SQPLUS.txt || die "copying documentation failed"
if use examples ; then
insinto /usr/share/doc/${PF}/samples
doins -r minimalSqPlus testSqPlus testSqPlus2 || die "copying examples failed"
fi
}
|