commit:     a8ca21b0b08169c061080b7127533db758a64455
Author:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 29 20:50:25 2019 +0000
Commit:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Fri Mar 29 21:00:06 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8ca21b0

net-libs/freaklabs-chibiarduino: initial commit

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org>

 .../freaklabs-chibiarduino-9999.ebuild             | 39 ++++++++++++++++++++++
 net-libs/freaklabs-chibiarduino/metadata.xml       | 11 ++++++
 2 files changed, 50 insertions(+)

diff --git a/net-libs/freaklabs-chibiarduino/freaklabs-chibiarduino-9999.ebuild 
b/net-libs/freaklabs-chibiarduino/freaklabs-chibiarduino-9999.ebuild
new file mode 100644
index 00000000000..c94d1dc490a
--- /dev/null
+++ b/net-libs/freaklabs-chibiarduino/freaklabs-chibiarduino-9999.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="freaklabs fork of the lightweight wireless sensor library for 
Arduino"
+HOMEPAGE="https://freaklabs.org/chibiarduino/";
+SRC_URI=""
+
+inherit git-r3
+EGIT_REPO_URI="https://github.com/freaklabs/chibiArduino.git";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS=""
+IUSE="+promisc"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+BDEPEND=""
+PDEPEND="dev-embedded/arduino
+               dev-embedded/freaklabs-boards"
+
+src_prepare() {
+       if use promisc; then
+               sed -i 's#CHIBI_PROMISCUOUS 0#CHIBI_PROMISCUOUS 1#' 
chibiUsrCfg.h || die
+       fi
+       default
+}
+
+src_install() {
+       insinto /usr/share/arduino/hardware/arduino/avr/libraries/chibi
+       doins -r *
+}
+
+pkg_postinst() {
+       ewarn "For this to work you need to install cross-avr/gcc[-ssp,-pie]"
+       ewarn "Something like USE='-pie -ssp' crossdev -S -s4 avr"
+}

diff --git a/net-libs/freaklabs-chibiarduino/metadata.xml 
b/net-libs/freaklabs-chibiarduino/metadata.xml
new file mode 100644
index 00000000000..97112fb0602
--- /dev/null
+++ b/net-libs/freaklabs-chibiarduino/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>zeroch...@gentoo.org</email>
+               <name>Rick Farina</name>
+       </maintainer>
+       <use>
+               <flag name="promisc">Enable promisc in the config file for 
packet sniffing</flag>
+       </use>
+</pkgmetadata>

Reply via email to