This commit is contained in:
Mario Fetka
2020-01-23 11:57:54 +01:00
parent b9d3a6e55f
commit f3987e65cf
42 changed files with 2315 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
AUX 10arduino-bin 69 SHA256 62271f362cd58856fee87363ef8c9c221b8ab32dd88a3b53c9d17fcc4303e387 SHA512 8bace112decfd895fdf45821dfd96fe868032a8da184dc383dce3a2173fba9fdee103f134b7a7dc8bd5364e598f6249455f0f3d624fceaff7dd7974378ce0192 WHIRLPOOL 78dc07b3283750710758724ccb58688de5d4b8aadd700af2f365b9ebce04d386f70b1c2ac9f19c8c72ad76c12ced8683cda89ec865643b7a288d39a89ce20a68
AUX arduino.1 15213 SHA256 e9d15b3ff3d67b28a1ee860b5368b8e277d8ba8b315b39188ff3b2ddd14a64e3 SHA512 837cae1a434152ac507a0e229e384077392024d01db4d7b9d9820bfbe8877c4822c3f52467a7c02756c04958af9e8464925a254703d2ed9ca75b51e5e917f88a WHIRLPOOL 20f96d08e7476946a216b25338697da7041498b56d057bb852cc3f613c920695d1046d4d5021ecbdbfbb2a07b4ceab811a0d2331e3714b908161c3ae936198ba
AUX arduino.desktop 274 SHA256 96599ca50f423ebb82d895b73a08dd0534f2ee9bf6293cb032d3a5dd2db81de9 SHA512 d9c4f65b720ad0b6a5874e4fb6cf4c4ebccaf3e97451984c6aec75b3c83630e209be0c045c6b731c582ec78e47240006678f182fa1d671fc0459382755d8ac8c WHIRLPOOL 39dfac5890aa3c7115b2c5ffdb4b14ee74a515ea9ab4d6f889e9d3d8ecfba8a949b78b898f992544fb13b8a78685b2220cd0fdfcce2b8ea6973530fdf21ddea3
DIST arduino-bin_amd64-1.6.13.tar.xz 98351984 SHA256 492b28d72b347227346592ceb0373af55558aab67acda343a8a15cc11ade154a SHA512 d71cb78bb09fdfbb22a6c120df3a7440eafd598652ac60eede9fa2c71a62c6897fb82ddba5f0cc1775100b0227871089ea87545bb373f37fe2abcbefdc2c3ef1 WHIRLPOOL b8a3d0c5186c1ad02d644c404ccb5ea216c5f5cee32f48f01eb56e48f56c556668ae36c590e9b6d5c1f0ea3f9f5e51c0a3a1c2803d5c7f877be531fa40a6d0be
DIST arduino-bin_amd64-1.8.1.tar.xz 101052952 SHA256 95d566ec3cedec90f08677134ea6df6ab48a55ff87e7c3339dcd71e931d75ebd SHA512 5cf68c8ab42eab76e1d24f6ec0b33c232f955ef9a2aef172bb45e23206910b56b1d592400a57520c8fd82a788bd86206a399418c2a5c244f176965e99a9ee717 WHIRLPOOL 5ff97eb9349408aa9e83a30c6d234196ee42d0b1a3f48fd29a321274d514cfb3b08d3e0f9cf263a783ba9416679973544308e87fe8029b7f98b562081767510e
DIST arduino-bin_i386-1.6.13.tar.xz 99797188 SHA256 8a1d601bc0dd655d3b00adb3dc8bf0fb9079afe22beebea71ff97c28cddadc81 SHA512 15c5664c270978fb163868fda8e94b70bc73b0626118b3d6b71a5a1a4531372690cc58a3ff5b7b7b68baa38c5e7e4906cf0127bfa53eccd5b96b625388f61bda WHIRLPOOL 2e6271e5e1cba6fe59231f59cec102b669a4e41a1da757ca2347ce7a2d187331a6ef2680be514c6012098429ba53b68dd53a4203147e47f25e4e7e011d703699
DIST arduino-bin_i386-1.8.1.tar.xz 102324992 SHA256 4ec56363796d41c9943e58b1633c6c0b6512386c242725261f6065a97c9bac3f SHA512 e3365c01bd4064071a4a2e99eb2a20f275a3b109409163113a4c495855fb192bc51495b6394b9ca978839c2ee4da5bbeddab46515e9358cb03513d8809c353da WHIRLPOOL 06d98e95d13f7f5833b7256b368bcffaf59c7518d97973430893a3a585597c9662f2df82daaf60ab7cbac727b07c2320277e4b1bf90310f77df6a6631cbf7356
EBUILD arduino-bin-1.6.13.ebuild 2134 SHA256 c76405f9248675610bcca11edbe922f426b9fb8de263e508f530c662888a6408 SHA512 b6c5361d4d682a5b4aa49933c21c07faca355b3a3643e86e6a413aeea5a9166cad537541d2c37294ff1c19ccccee7631d4b7144f8ff55545c8de7e95e0904b0e WHIRLPOOL a6fa0086356d051e15163bae3f081db40a29be0eb2dc1023c11c73464ff5d811aeeedb1849e87eff73a670920e054f99d0ab6a78c1422b1fd12cb50e80c04bc2
EBUILD arduino-bin-1.8.1.ebuild 2134 SHA256 c76405f9248675610bcca11edbe922f426b9fb8de263e508f530c662888a6408 SHA512 b6c5361d4d682a5b4aa49933c21c07faca355b3a3643e86e6a413aeea5a9166cad537541d2c37294ff1c19ccccee7631d4b7144f8ff55545c8de7e95e0904b0e WHIRLPOOL a6fa0086356d051e15163bae3f081db40a29be0eb2dc1023c11c73464ff5d811aeeedb1849e87eff73a670920e054f99d0ab6a78c1422b1fd12cb50e80c04bc2

View File

@@ -0,0 +1,89 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/firefox-bin-37.0.ebuild,v 1.1 2015/04/01 15:49:24 axs Exp $
EAPI="5"
inherit eutils gnome2-utils fdo-mime
KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="GPL-2 LGPL-2.1"
IUSE=""
ARD_PN="${PN/-bin}"
ARD_P="${ARD_PN}-${PV}"
ARD_PF="${ARD_PN}-${PVR}"
DESCRIPTION="Firefox Web Browser"
HOMEPAGE="http://arduino.cc/en/Main/Software"
SRC_URI="${SRC_URI}
amd64? ( http://www.arduino.cc/download.php?f=/arduino-${PV}-linux64.tar.xz -> ${PN}_amd64-${PV}.tar.xz )
x86? ( http://www.arduino.cc/download.php?f=/arduino-${PV}-linux32.tar.xz -> ${PN}_i386-${PV}.tar.xz )
"
RESTRICT="strip mirror test"
QA_PREBUILT="
opt/arduino/*
"
DEPEND="app-arch/xz-utils"
RDEPEND="${DEPEND}
sys-libs/ncurses:5/5[tinfo]
virtual/libusb:0
virtual/libusb:1
virtual/udev
"
S="${WORKDIR}/${ARD_P}"
src_compile() {
# do nothing
true
}
src_install() {
declare ARDUINO_HOME=/opt/${ARD_PN}
# install desktop file, manpage and icons
domenu "${FILESDIR}"/${ARD_PN}.desktop
doman "${FILESDIR}"/${ARD_PN}.1
#doicon "${FILESDIR}"/${ARD_PN}.png
pushd "${S}"/lib/icons &>/dev/null || die
for size in * ; do
if [ -f "${size}/apps/${ARD_PN}.png" ] ; then
insinto "/usr/share/icons/hicolor/${size}/apps"
doins "${size}/apps/${ARD_PN}.png"
fi
done
dodir /usr/share/pixmaps
doicon "32x32/apps/${ARD_PN}.png" || die
popd &>/dev/null || die
# copy directory to /opt
dodir ${ARDUINO_HOME%/*}
mv "${S}" "${D}"${ARDUINO_HOME} || die
# make binary symlink
dosym ${ARDUINO_HOME}/arduino /usr/bin/arduino
# revdep-rebuild entry
insinto /etc/revdep-rebuild
doins ${FILESDIR}/10${PN} || die
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
# Update mimedb for the new .desktop file
fdo-mime_desktop_database_update
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}

View File

@@ -0,0 +1,89 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/firefox-bin-37.0.ebuild,v 1.1 2015/04/01 15:49:24 axs Exp $
EAPI="5"
inherit eutils gnome2-utils fdo-mime
KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="GPL-2 LGPL-2.1"
IUSE=""
ARD_PN="${PN/-bin}"
ARD_P="${ARD_PN}-${PV}"
ARD_PF="${ARD_PN}-${PVR}"
DESCRIPTION="Firefox Web Browser"
HOMEPAGE="http://arduino.cc/en/Main/Software"
SRC_URI="${SRC_URI}
amd64? ( http://www.arduino.cc/download.php?f=/arduino-${PV}-linux64.tar.xz -> ${PN}_amd64-${PV}.tar.xz )
x86? ( http://www.arduino.cc/download.php?f=/arduino-${PV}-linux32.tar.xz -> ${PN}_i386-${PV}.tar.xz )
"
RESTRICT="strip mirror test"
QA_PREBUILT="
opt/arduino/*
"
DEPEND="app-arch/xz-utils"
RDEPEND="${DEPEND}
sys-libs/ncurses:5/5[tinfo]
virtual/libusb:0
virtual/libusb:1
virtual/udev
"
S="${WORKDIR}/${ARD_P}"
src_compile() {
# do nothing
true
}
src_install() {
declare ARDUINO_HOME=/opt/${ARD_PN}
# install desktop file, manpage and icons
domenu "${FILESDIR}"/${ARD_PN}.desktop
doman "${FILESDIR}"/${ARD_PN}.1
#doicon "${FILESDIR}"/${ARD_PN}.png
pushd "${S}"/lib/icons &>/dev/null || die
for size in * ; do
if [ -f "${size}/apps/${ARD_PN}.png" ] ; then
insinto "/usr/share/icons/hicolor/${size}/apps"
doins "${size}/apps/${ARD_PN}.png"
fi
done
dodir /usr/share/pixmaps
doicon "32x32/apps/${ARD_PN}.png" || die
popd &>/dev/null || die
# copy directory to /opt
dodir ${ARDUINO_HOME%/*}
mv "${S}" "${D}"${ARDUINO_HOME} || die
# make binary symlink
dosym ${ARDUINO_HOME}/arduino /usr/bin/arduino
# revdep-rebuild entry
insinto /etc/revdep-rebuild
doins ${FILESDIR}/10${PN} || die
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
# Update mimedb for the new .desktop file
fdo-mime_desktop_database_update
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}

View File

@@ -0,0 +1,3 @@
SEARCH_DIRS_MASK="/opt/arduino
/opt/arduino/hardware/tools/avr/bin
"

View File

@@ -0,0 +1,579 @@
'\" t
.\" Title: arduino
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.78.0 <http://docbook.sf.net/>
.\" Date: 10/18/2015
.\" Manual: \ \&
.\" Source: \ \&
.\" Language: English
.\"
.TH "ARDUINO" "1" "10/18/2015" "\ \&" "\ \&"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
arduino \- Integrated development environment for Arduino boards
.SH "SYNOPSIS"
.sp
\fBarduino\fR [\fIFILE\&.ino\fR\&...]
.sp
\fBarduino\fR [\fB\-\-verify\fR|\fB\-\-upload\fR] [\fB\-\-board\fR \fIpackage\fR:\fIarch\fR:\fIboard\fR[:\fIparameters\fR]] [\fB\-\-port\fR \fIportname\fR] [\fB\-\-pref\fR \fIname\fR=\fIvalue\fR] [\fB\-v\fR|\fB\-\-verbose\fR] [\fB\-\-preserve\-temp\-files\fR] [\fIFILE\&.ino\fR]
.sp
\fBarduino\fR [\fB\-\-get\-pref\fR [\fIpreference\fR]]
.sp
\fBarduino\fR [\fB\-\-install\-boards\fR \fIpackage name\fR:\fIplatform architecture\fR[:\fIversion\fR]]
.sp
\fBarduino\fR [\fB\-\-install\-library\fR \fIlibrary name\fR[:\fIversion\fR][,\fIlibrary name\fR[:\fIversion\fR],\fIlibrary name\fR[:\fIversion\fR]]
.SH "DESCRIPTION"
.sp
The \fIarduino\fR integrated development environment allows editing, compiling and uploading sketches (programs) for Arduino (and compatible) microcontroller boards\&.
.sp
Normally, running the arduino command starts the IDE, optionally loading any \&.ino files specified on the commandline\&.
.sp
Alternatively, if any of the following command line options is given, no graphical interface will be shown and instead a one\-off verify (compile) or upload will be done\&. A single \&.ino file should be given\&. If the sketch contains multiple \&.ino files, any one can be specified on the commandline, but the entire sketch will be compiled\&.
.sp
When running in a one\-off mode, it might be useful to set the \fBbuild\&.path\fR preference to allow keeping intermediate build results between multiple runs and only recompile the files that changed\&.
.sp
Note that on MacOS X, the main executable is \fIArduino\&.app/Contents/MacOS/Arduino\fR instead of \fIarduino\fR\&.
.sp
Note that on Windows, due to the diffence between GUI and console apps, that the \fIarduino_debug\&.exe\fR is the appropriate executable to use if you want to use the majority of these command line options\&. The \fIarduino\&.exe\fR GUI version of the launcher \fBmay\fR perform some of the functions described below, but will not output any messages to the console, meaning it is pretty useless if you want any feedback or to be able to keep log files for automated testing, etc\&.
.sp
ACTIONS
.PP
\fB\-\-verify\fR
.RS 4
Build the sketch\&.
.RE
.PP
\fB\-\-upload\fR
.RS 4
Build and upload the sketch\&.
.RE
.PP
\fB\-\-get\-pref\fR [\fIpreference\fR]
.RS 4
Prints the value of the given preference to the standard output stream\&. When the value does not exist, nothing is printed and the exit status is set (see EXIT STATUS below)\&. If no preference is given as parameter, it prints all preferences\&.
.RE
.PP
\fB\-\-install\-boards\fR \fIpackage name\fR:\fIplatform architecture\fR[:\fIversion\fR]
.RS 4
Fetches available board support (platform) list and install the specified one, along with its related tools\&. If
\fIversion\fR
is omitted, the latest is installed\&. If a platform with the same version is already installed, nothing is installed and program exits with exit code 1\&. If a platform with a different version is already installed, it\(cqs replaced\&.
.RE
.PP
\fB\-\-install\-library\fR \fIlibrary name\fR[:\fIversion\fR]
.RS 4
Fetches available libraries list and install the specified one\&. If
\fIversion\fR
is omitted, the latest is installed\&. If a library with the same version is already installed, nothing is installed and program exits with exit code 1\&. If a library with a different version is already installed, it\(cqs replaced\&. Multiple libraries can be specified, separated by a comma\&.
.RE
.SH "OPTIONS"
.PP
\fB\-\-board\fR \fIpackage\fR:\fIarch\fR:\fIboard\fR[:\fIparameters\fR]
.RS 4
Select the board to compile for\&.
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
\fIpackage\fR
is the identifier of the vendor (the first level folders inside the
\fIhardware\fR
directory)\&. Default arduino boards use
\fIarduino\fR\&.
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
\fIarchitecture\fR
is the architecture of the board (second level folders inside the
\fIhardware\fR
directory)\&. Default arduino boards use either
\fBarduino:avr\fR
for all AVR\-based boards (like Uno, Mega or Leonardo) or
\fBarduino:sam\fR
for 32bit SAM\-based boards (like Arduino Due)\&.
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
\fIboard\fR
is the actual board to use, as defined in
\fIboards\&.txt\fR
contained in the architecture folder selected\&. For example,
\fBarduino:avr:uno\fR
for the Arduino Uno,
\fBarduino:avr:diecimila\fR
for the Arduino Duemilanove or Diecimila, or
\fBarduino:avr:mega\fR
for the Arduino Mega\&.
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
\fIparameters\fR
is a comma\-separated list of boards specific parameters that are normally shown under submenus of the "Tools" menu\&. For example
\fBarduino:avr:nano:cpu=atmega168\fR
to Select the mega168 variant of the Arduino Nano board\&.
.RE
.RE
.PP
.RS 4
If this option is not passed, the value from the current preferences is used (e\&.g\&., the last board selected in the IDE)\&.
.RE
.PP
\fB\-\-port\fR \fIportname\fR
.RS 4
Select the serial port to perform upload of the sketch\&. On linux and MacOS X, this should be the path to a device file (e\&.g\&.,
\fB/dev/ttyACM0\fR)\&. On Windows, this should be the name of the serial port (e\&.g\&.,
\fBCOM3\fR)\&.
.RE
.PP
.RS 4
If this option is not passed, the value from the current preferences is used (e\&.g\&., the last port selected in the IDE)\&.
.RE
.PP
\fB\-\-verbose\-build\fR
.RS 4
Enable verbose mode during build\&. If this option is not given, verbose mode during build is
\fBdisabled\fR
regardless of the current preferences\&.
.RE
.PP
\fB\-\-preserve\-temp\-files\fR
.RS 4
Keep temporary files (preprocessed sketch, object files\&...) after termination\&. If omitted, temporary files are deleted\&.
.RE
.PP
.RS 4
This option is only valid together with
\fB\-\-verify\fR
or
\fB\-\-upload\fR\&.
.RE
.PP
\fB\-\-verbose\-upload\fR
.RS 4
Enable verbose mode during upload\&. If this option is not given, verbose mode during upload is
\fBdisabled\fR
regardless of the current preferences\&.
.RE
.PP
.RS 4
This option is only valid together with
\fB\-\-verify\fR
or
\fB\-\-upload\fR\&.
.RE
.PP
\fB\-v, \-\-verbose\fR
.RS 4
Enable verbose mode during build and upload\&. This option has the same effect of using both
\fB\-\-verbose\-build\fR
and
\fB\-\-verbose\-upload\fR\&.
.RE
.PP
.RS 4
This option is only valid together with
\fB\-\-verify\fR
or
\fB\-\-upload\fR\&.
.RE
.PP
\fB\-\-preferences\-file\fR \fIfilename\fR
.RS 4
Read and store preferences from the specified
\fIfilename\fR
instead of the default one\&.
.RE
.PP
\fB\-\-pref\fR \fIname\fR=\fIvalue\fR
.RS 4
Sets the preference
\fIname\fR
to the given
\fIvalue\fR\&.
.RE
.PP
.RS 4
Note that the preferences you set with this option are not validated: Invalid names will be set but never used, invalid values might lead to an error later on\&.
.RE
.PP
\fB\-\-save\-prefs\fR
.RS 4
Save any (changed) preferences to
\fBpreferences\&.txt\fR\&. In particular
\fB\-\-board\fR,
\fB\-\-port\fR,
\fB\-\-pref\fR,
\fB\-\-verbose\fR,
\fB\-\-verbose\-build\fR
and
\fB\-\-verbose\-upload\fR
may alter the current preferences\&.
.RE
.SH "PREFERENCES"
.sp
Arduino keeps a list of preferences, as simple name and value pairs\&. Below, a few of them are documented but a lot more are available\&.
.PP
\fBsketchbook\&.path\fR
.RS 4
The path where sketches are (usually) stored\&. This path can also contain some special subdirectories (see FILES below)\&.
.RE
.PP
\fBupdate\&.check\fR
.RS 4
When set to true, the IDE checks for a new version on startup\&.
.RE
.PP
\fBeditor\&.external\fR
.RS 4
When set to true, use an external editor (the IDE does not allow editing and reloads each file before verifying)\&.
.RE
.PP
\fBbuild\&.path\fR
.RS 4
The path to use for building\&. This is where things like the preprocessed \&.cpp file, compiled \&.o files and the final \&.hex file go\&.
.RE
.PP
.RS 4
If set, this directory should already exist before running the arduino command\&.
.RE
.PP
.RS 4
If this preference is not set (which is normally the case), a new temporary build folder is created on every run and deleted again when the application is closed\&.
.RE
.SH "EXIT STATUS"
.PP
\fB0\fR
.RS 4
Success
.RE
.PP
\fB1\fR
.RS 4
Build failed or upload failed
.RE
.PP
\fB2\fR
.RS 4
Sketch not found
.RE
.PP
\fB3\fR
.RS 4
Invalid (argument for) commandline option
.RE
.PP
\fB4\fR
.RS 4
Preference passed to
\fB\-\-get\-pref\fR
does not exist
.RE
.SH "FILES"
.PP
\fB~/\&.arduino15/preferences\&.txt\fR
.RS 4
This file stores the preferences used for the IDE, building and uploading sketches\&.
.RE
.PP
\fBMy Documents/Arduino/\fR (Windows), \fB~/Documents/Arduino/\fR (Mac OS X), \fB~/Arduino/\fR (Linux)
.RS 4
This directory is referred to as the "Sketchbook" and contains the user\(cqs sketches\&. The path can be changed through the
\fBsketchbook\&.path\fR
preference\&.
.RE
.PP
.RS 4
Apart from sketches, three special directories can be inside the sketchbook:
.PP
\fBlibraries\fR
.RS 4
Libraries can be put inside this directory, one library per subdirectory\&.
.RE
.PP
\fBhardware\fR
.RS 4
Support for third\-party hardware can be added through this directory\&.
.RE
.PP
\fBtools\fR
.RS 4
External code\-processing tools (that can be run through the Tools menu of the IDE) can be added here\&.
.RE
.RE
.SH "EXAMPLES"
.sp
Start the Arduino IDE, with two files open:
.sp
.if n \{\
.RS 4
.\}
.nf
arduino /path/to/sketch/sketch\&.ino /path/to/sketch/extra\&.ino
.fi
.if n \{\
.RE
.\}
.sp
Compile and upload a sketch using the last selected board and serial port
.sp
.if n \{\
.RS 4
.\}
.nf
arduino \-\-upload /path/to/sketch/sketch\&.ino
.fi
.if n \{\
.RE
.\}
.sp
Compile and upload a sketch to an Arduino Nano, with an Atmega168 CPU, connected on port \fI/dev/ttyACM0\fR:
.sp
.if n \{\
.RS 4
.\}
.nf
arduino \-\-board arduino:avr:nano:cpu=atmega168 \-\-port /dev/ttyACM0 \-\-upload /path/to/sketch/sketch\&.ino
.fi
.if n \{\
.RE
.\}
.sp
Compile a sketch, put the build results in the \fIbuild\fR directory an re\-use any previous build results in that directory\&.
.sp
.if n \{\
.RS 4
.\}
.nf
arduino \-\-pref build\&.path=/path/to/sketch/build \-\-verify /path/to/sketch/sketch\&.ino
.fi
.if n \{\
.RE
.\}
.sp
Change the selected board and build path and do nothing else\&.
.sp
.if n \{\
.RS 4
.\}
.nf
arduino \-\-pref build\&.path=/path/to/sketch/build \-\-board arduino:avr:uno \-\-save\-prefs
.fi
.if n \{\
.RE
.\}
.sp
Install latest SAM board support
.sp
.if n \{\
.RS 4
.\}
.nf
arduino \-\-install\-boards "arduino:sam"
.fi
.if n \{\
.RE
.\}
.sp
Install AVR board support, 1\&.6\&.2
.sp
.if n \{\
.RS 4
.\}
.nf
arduino \-\-install\-boards "arduino:avr:1\&.6\&.2"
.fi
.if n \{\
.RE
.\}
.sp
Install Bridge library version 1\&.0\&.0
.sp
.if n \{\
.RS 4
.\}
.nf
arduino \-\-install\-library "Bridge:1\&.0\&.0"
.fi
.if n \{\
.RE
.\}
.sp
Install Bridge and Servo libraries
.sp
.if n \{\
.RS 4
.\}
.nf
arduino \-\-install\-library "Bridge:1\&.0\&.0,Servo:1\&.2\&.0"
.fi
.if n \{\
.RE
.\}
.SH "BUGS"
.sp
Even in command line mode the Arduino IDE requires a graphical user interface to be present\&. This should usually be the case in Windows or Mac OS X\&. On Linux however you might want to compile and upload sketches when logged in via SSH or in batch mode\&. To accomplish this, install the Xvfb dummy X server and write a small wrapper script to create an instance of this Xserver, run the Arduino IDE in it and kill the Xserver afterwards:
.sp
.if n \{\
.RS 4
.\}
.nf
#!/bin/bash
Xvfb :1 \-nolisten tcp \-screen :1 1280x800x24 &
xvfb="$!"
DISPLAY=:1 arduino $@
kill \-9 $xvfb
.fi
.if n \{\
.RE
.\}
.sp
Save the script as \fBarduino\-headless\fR and run it with the options described above\&. If the script does not return to a shell prompt, the options you specified were wrong and the Arduino IDE actually opened a window, stop its execution with Ctrl+C\&.
.SH "HISTORY"
.PP
1\&.5\&.2
.RS 4
Added initial commandline support\&. This introduced
\fB\-\-verify\fR,
\fB\-\-upload\fR,
\fB\-\-board\fR,
\fB\-\-port\fR,
\fB\-\-verbose\fR
and
\fB\-v\fR\&.
.RE
.PP
1\&.5\&.5
.RS 4
Added support for board\-specific parameters to
\fB\-\-board\fR\&.
.RE
.PP
.RS 4
Sketch filenames are now interpreted relative to the current directory instead of the location of the arduino command itself\&.
.RE
.PP
1\&.5\&.6
.RS 4
Introduced
\fB\-\-pref\fR,
\fB\-\-preferences\-file\fR,
\fB\-\-verbose\-build\fR
and
\fB\-\-verbose\-upload\fR\&.
.RE
.PP
.RS 4
Preferences set through \-\-pref are remembered, preferences set through
\fB\-\-board\fR,
\fB\-\-port\fR
or the
\fB\-\-verbose\fR
options are not\&.
.RE
.PP
.RS 4
When running with
\fB\-\-verify\fR
or
\fB\-\-upload\fR, the full GUI is no longer shown\&. Error messages still use a graphical popup and on Windows, the splash screen is still shown\&.
.RE
.PP
1\&.5\&.8
.RS 4
Introduced
\fB\-\-save\-prefs\fR\&.
.RE
.PP
1\&.6\&.2
.RS 4
Main executable in MacOS X changed from
\fIArduino\&.app/Contents/MacOS/JavaApplicationStub\fR
to
\fIArduino\&.app/Contents/MacOS/Arduino\fR\&.
.RE
.PP
1\&.6\&.4
.RS 4
Introduced
\fB\-\-install\-boards\fR
and
\fB\-\-install\-library\fR\&.
.RE
.PP
.RS 4
\fB\-\-pref\fR
options are now not saved to the preferences file, just like
\fB\-\-board\fR
and
\fB\-\-port\fR, unless
\fB\-\-save\-prefs\fR
is specified\&.
.RE
.PP
.RS 4
A path passed to
\fB\-\-preferences\-file\fR, or set in the
\fBbuild\&.path\fR,
\fBpreferences\&.path\fR
or
\fBsettings\&.path\fR
is now interpreted relative to the current directory instead of the location of the arduino command itself\&.
.RE
.SH "RESOURCES"
.sp
Web site: http://www\&.arduino\&.cc/
.sp
Help on projects and programming: http://forum\&.arduino\&.cc/
.sp
Report bugs: http://github\&.com/arduino/Arduino/issues
.sp
IDE and framework development mailing list: https://groups\&.google\&.com/a/arduino\&.cc/forum/#!forum/developers

View File

@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Arduino
Comment=Open-source electronics prototyping platform
Comment[sk]=Otvorená elektronická prototypová platforma
TryExec=arduino
Exec=arduino
Icon=arduino
Terminal=false
Categories=Development;IDE;Electronics;
StartupNotify=true

View File

@@ -0,0 +1,82 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit eutils toolchain-funcs multilib
DESCRIPTION="It's a complete cross development package for 65(C)02 systems"
HOMEPAGE="http://www.cc65.org"
#SRC_URI="ftp://ftp.musoftware.de/pub/uz/cc65/snapshot/cc65-snapshot-sources-${PV}.tar.bz2"
#SRC_URI="ftp://ftp.musoftware.de/pub/uz/${PN}/${PN}-sources-${PV}.tar.bz2"
SRC_URI="https://github.com/${PN}/${PN}/archive/V${PV}.tar.gz -> ${PN}-sources-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="doc"
DEPEND="doc? ( app-text/linuxdoc-tools )"
RDEPEND=""
#S="${WORKDIR}"/${PN}-snapshot-${PV}
src_prepare() {
# uncomment to install sim65
#sed -i -e "s:od65:od65 sim65:g" src/make/gcc.mak
# correct paths for install (also in documentation)
sed -i -e "s:)/lib:)/$(get_libdir):g" make/gcc.mak
sed -e "s:/usr/lib/cc65:/usr/$(get_libdir)/cc65:g" \
-i src/ca65/make/gcc.mak -i doc/ca65.sgml \
-i src/cc65/make/gcc.mak -i doc/cc65.sgml \
-i src/ld65/make/gcc.mak -i doc/ld65.sgml
# solve conflict by renameing make.info to cc65make.info
sed -e "s:make.:cc65make.:g" -i doc/index.sgml -i doc/Makefile
mv doc/make.sgml doc/cc65make.sgml
# epatch "${FILESDIR}"/cc65-2.13.2-asneeded-1.patch
}
src_compile() {
# the build needs to be split otherwise we can't specify CC
# these makefiles are not parallel build aware
emake -j1 -C src -f make/gcc.mak CC="$(tc-getCC)" AR="$(tc-getAR)" \
CFLAGS="-g -O2 -Wall -W -std=c89 ${CFLAGS}" \
LDFLAGS="${LDFLAGS}" || die "src build fail"
emake -j1 -C libsrc || die "libsrc build fail"
use doc && emake -j1 -C doc html info
}
src_install() {
# can't trust the install target (sandbox violation) so do it by hand
dobin src/*65/*65 src/ca65html/ca65html src/grc/grc || die "dobin fail"
insinto /usr/$(get_libdir)/cc65/emd
doins libsrc/*.emd || die "install memory map fail"
insinto /usr/$(get_libdir)/cc65/joy
doins libsrc/*.joy || die "install joystick driver fail"
insinto /usr/$(get_libdir)/cc65/mou
doins libsrc/*.mou || die "install mouse driver fail"
insinto /usr/$(get_libdir)/cc65/ser
doins libsrc/*.ser || die "install UART driver fail"
insinto /usr/$(get_libdir)/cc65/tgi
doins libsrc/*.tgi || die "install graphic driver fail"
insinto /usr/$(get_libdir)/cc65/asminc
doins asminc/*.inc || die "install asm include fail"
insinto /usr/$(get_libdir)/cc65/include
doins -r include/* || die "install include fail"
insinto /usr/$(get_libdir)/cc65/lib
doins libsrc/*.lib || die "install lib definations fail"
doins libsrc/*.o || die "install lib fail"
insinto /usr/$(get_libdir)/cc65/cfg
doins src/ld65/cfg/*.cfg || die "cfg install fail"
use doc && dohtml doc/*.htm*
use doc && insinto /usr/share/doc/${PF}/html
use doc && doins doc/*.txt
doman packages/debian/*.1 || die "man install fail"
use doc && doinfo doc/*.info
dodoc src/ca65/macpack/*.mac doc/readme.1st \
doc/BUGS doc/CREDITS || die "macro & doc install fail"
}