summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2019-03-29 16:59:14 -0400
committerRick Farina <zerochaos@gentoo.org>2019-03-29 17:00:07 -0400
commit2d60b4b9a2878b993d6062668c9e6bb2c7696abe (patch)
tree351b5055e1df0ecca910dcbc9da9cbbcccab857f /net-libs/freaklabs-chibiarduino
parentnet-libs/freaklabs-chibiarduino: initial commit (diff)
downloadgentoo-2d60b4b9a2878b993d6062668c9e6bb2c7696abe.tar.gz
gentoo-2d60b4b9a2878b993d6062668c9e6bb2c7696abe.tar.bz2
gentoo-2d60b4b9a2878b993d6062668c9e6bb2c7696abe.zip
net-libs/freaklabs-chibiarduino: add stable
Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'net-libs/freaklabs-chibiarduino')
-rw-r--r--net-libs/freaklabs-chibiarduino/Manifest1
-rw-r--r--net-libs/freaklabs-chibiarduino/freaklabs-chibiarduino-1.0.8_p20190329.ebuild45
-rw-r--r--net-libs/freaklabs-chibiarduino/freaklabs-chibiarduino-9999.ebuild16
3 files changed, 57 insertions, 5 deletions
diff --git a/net-libs/freaklabs-chibiarduino/Manifest b/net-libs/freaklabs-chibiarduino/Manifest
new file mode 100644
index 000000000000..a28e6671ec66
--- /dev/null
+++ b/net-libs/freaklabs-chibiarduino/Manifest
@@ -0,0 +1 @@
+DIST freaklabs-chibiarduino-1.0.8_p20190329.tar.gz 242125 BLAKE2B d2d19c55409da9fc360180df13260ee374521e9765c81b3b17c227a07d3d2376ce5d8f915a55659e520cc2b1999efb75cde690a7264d659f23728b3b8e1ac8bb SHA512 913964a8ec9091835746ee13a0316210b4e914f07e15f1837290334219d10d983f32246cefc25bfef95a1adf2e20cd665f52eaa5801ce19da064d7fc72e069ad
diff --git a/net-libs/freaklabs-chibiarduino/freaklabs-chibiarduino-1.0.8_p20190329.ebuild b/net-libs/freaklabs-chibiarduino/freaklabs-chibiarduino-1.0.8_p20190329.ebuild
new file mode 100644
index 000000000000..847ff1116f8b
--- /dev/null
+++ b/net-libs/freaklabs-chibiarduino/freaklabs-chibiarduino-1.0.8_p20190329.ebuild
@@ -0,0 +1,45 @@
+# 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/"
+
+if [ "${PV}" = "9999" ]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/freaklabs/chibiArduino.git"
+else
+ GIT_COMMIT="547ec8155c48b7eaa9aa8f1bd88a55c7ffd55868"
+ SRC_URI="https://github.com/freaklabs/chibiArduino/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/chibiArduino-${GIT_COMMIT}"
+ KEYWORDS="~amd64"
+fi
+
+
+LICENSE="BSD"
+SLOT="0"
+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/chibiarduino
+ 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/freaklabs-chibiarduino-9999.ebuild b/net-libs/freaklabs-chibiarduino/freaklabs-chibiarduino-9999.ebuild
index c94d1dc490a0..847ff1116f8b 100644
--- a/net-libs/freaklabs-chibiarduino/freaklabs-chibiarduino-9999.ebuild
+++ b/net-libs/freaklabs-chibiarduino/freaklabs-chibiarduino-9999.ebuild
@@ -5,14 +5,20 @@ 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"
+if [ "${PV}" = "9999" ]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/freaklabs/chibiArduino.git"
+else
+ GIT_COMMIT="547ec8155c48b7eaa9aa8f1bd88a55c7ffd55868"
+ SRC_URI="https://github.com/freaklabs/chibiArduino/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/chibiArduino-${GIT_COMMIT}"
+ KEYWORDS="~amd64"
+fi
+
LICENSE="BSD"
SLOT="0"
-KEYWORDS=""
IUSE="+promisc"
DEPEND=""
@@ -29,7 +35,7 @@ src_prepare() {
}
src_install() {
- insinto /usr/share/arduino/hardware/arduino/avr/libraries/chibi
+ insinto /usr/share/arduino/hardware/arduino/avr/libraries/chibiarduino
doins -r *
}