blob: a39a72b5714734738d679202db444bf39a57488a (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/bottlerocket/bottlerocket-0.04c-r1.ebuild,v 1.3 2011/11/28 11:48:02 phajdan.jr Exp $
EAPI="2"
inherit toolchain-funcs
DESCRIPTION="CLI interface to the X-10 Firecracker Kit"
HOMEPAGE="http://www.linuxha.com/bottlerocket/"
SRC_URI="http://www.linuxha.com/${PN}/${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc ~sparc x86"
IUSE=""
src_prepare() {
# inset LDFLAGS
sed -i Makefile.in \
-e 's| -O2 ||g' \
-e '/ -o br /s|${CFLAGS}|& $(LDFLAGS)|g' \
|| die "sed Makefile.in"
}
src_configure() {
econf --with-x10port=/dev/firecracker
}
src_compile() {
emake CC="$(tc-getCC)" || die "emake failed"
}
src_install() {
einstall || die "einstall"
dodoc README
}
pkg_postinst() {
elog
elog "Be sure to create a /dev/firecracker symlink to the"
elog "serial port that has the Firecracker serial interface"
elog "installed on it."
elog
}
|