Install this version:
emerge -a =net-libs/freaklabs-chibiarduino-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =net-libs/freaklabs-chibiarduino-9999
Or alternatively:
emerge --autounmask-write -a =net-libs/freaklabs-chibiarduino-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 7 | ~amd64 | 0 |
# Copyright 2019-2023 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"
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"
}
Manage flags for this package:
euse -i <flag> -p net-libs/freaklabs-chibiarduino |
euse -E <flag> -p net-libs/freaklabs-chibiarduino |
euse -D <flag> -p net-libs/freaklabs-chibiarduino