summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>2018-08-01 13:01:51 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-08-11 12:35:10 +0200
commitc493dd04a50d5560fe11b40293451ed893796584 (patch)
treeb6bf03e3fc3a347cb326b698fe486e87331a9958 /app-misc/bottlerocket
parentlxqt-base/metadata.xml: tweaked formatting (diff)
downloadgentoo-c493dd04a50d5560fe11b40293451ed893796584.tar.gz
gentoo-c493dd04a50d5560fe11b40293451ed893796584.tar.bz2
gentoo-c493dd04a50d5560fe11b40293451ed893796584.zip
app-misc/bottlerocket: EAPI7, improve ebuild
Closes: https://github.com/gentoo/gentoo/pull/9407
Diffstat (limited to 'app-misc/bottlerocket')
-rw-r--r--app-misc/bottlerocket/bottlerocket-0.04c-r2.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/app-misc/bottlerocket/bottlerocket-0.04c-r2.ebuild b/app-misc/bottlerocket/bottlerocket-0.04c-r2.ebuild
new file mode 100644
index 000000000000..882443c5b5f2
--- /dev/null
+++ b/app-misc/bottlerocket/bottlerocket-0.04c-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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"
+IUSE=""
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+src_prepare() {
+ default
+ # 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)"
+}
+
+src_install() {
+ dodoc README
+ dobin br
+}
+
+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
+}