summaryrefslogtreecommitdiff
path: root/dev-embedded/avrdude
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-embedded/avrdude
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-embedded/avrdude')
-rw-r--r--dev-embedded/avrdude/Manifest6
-rw-r--r--dev-embedded/avrdude/avrdude-6.3.ebuild60
-rw-r--r--dev-embedded/avrdude/avrdude-9999.ebuild71
-rw-r--r--dev-embedded/avrdude/metadata.xml11
4 files changed, 148 insertions, 0 deletions
diff --git a/dev-embedded/avrdude/Manifest b/dev-embedded/avrdude/Manifest
new file mode 100644
index 000000000000..0ab501357962
--- /dev/null
+++ b/dev-embedded/avrdude/Manifest
@@ -0,0 +1,6 @@
+DIST avrdude-6.3.tar.gz 909744 BLAKE2B 3c253571a50c423989fc3fd9c5d6fe11b67fad9ca0d94f4bee0de7309fc22ccfe64102fff74fad47ffcb1874870c0aafd0c003df63285bd05c30efd384f5ef9e SHA512 b671008388d6a552e71066fec46429bc7f6639e8eac41113bcbba5a56212b78be31fcf04956b31e11c6b14888b0f6e825f7458395b9ff4fc28406074c7ded2b2
+DIST avrdude-doc-6.3.pdf 255521 BLAKE2B 3b6a3485b996f0923c00c54970e86c3ab9f40e8a5bd962f5d3e4f87c23c90b61f002b46af9766cc0f117583a54d519c5d8739cb5f8bca0776320243679989716 SHA512 f33b15f6a9247f6646ba8a861f1e86f5d43b1b44438fb95bd53764a73f0c450f669dcb43b6b587390ddbc22dafa02758ddc330a7aab1651ccca7c8da8e00b755
+DIST avrdude-doc-6.3.tar.gz 39823 BLAKE2B 170ad1eab743435eb414a2d6547be6c86e4d75aed83836eb29285a8d11a43f7eb878104b3b7a70b528522a415a96a841686d07e82b151fc6f726c1f56d54e801 SHA512 b7abd9d0068d2933a1907655832930c455093b4ffbdc2b6fb2405a821cad0ba1c4de3aa5fa0ea7c9b53d06cfa6d5b5658d30a18a4f5c3884d0e15c171a097b29
+EBUILD avrdude-6.3.ebuild 1447 BLAKE2B 295afaa6a6650266c424a9652d13dd6eb1c8e460ce46d89bf79ff1fb78ee09f8340761d7f4373dfb84548d1b1144cc5509c101716a37c06b69fb996e4e611319 SHA512 8fd1981079062fa9957824c0e0febda16b10f5bb3bd17c9201481166d868e3c7ac5350f0311564f121a8dc4b2b71f45bc664562c2fed6e190730b08c0dd4d3f8
+EBUILD avrdude-9999.ebuild 1602 BLAKE2B 9f3edd94e606006a93fd5786337f267e51b421cba2cba402a8236710dd60a8ad1359e0fc1e6940236180f01132cf95798df1eeac7262d1776b1b7b3fc58c5a65 SHA512 955868059d4ff1ceaa8fdf57b6128e48928f75cf6af869fdabd5d0b6bb67cb86282b4a42953fbea16cb073074011459bdaa067eeca96340b2e79ba446ecf8dcf
+MISC metadata.xml 363 BLAKE2B 8dcaa301200627a2ca9309e8dc1422ace35ba98257564f017a44b82ea7ada42a6d00b21f98b4e414236022b89c58246b702b92164a18ae552655e63c8c803a64 SHA512 db0dcf46afc6e800dfff22c7d25489a4e34e92589229c4246f843b6369a81d10aba4d206a2325547ba5821d0a0ee732a8c6f3ae0c61e6818f1c23315676322fc
diff --git a/dev-embedded/avrdude/avrdude-6.3.ebuild b/dev-embedded/avrdude/avrdude-6.3.ebuild
new file mode 100644
index 000000000000..8038f454685b
--- /dev/null
+++ b/dev-embedded/avrdude/avrdude-6.3.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="AVR Downloader/UploaDEr"
+HOMEPAGE="https://savannah.nongnu.org/projects/avrdude"
+SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz
+ doc? (
+ mirror://nongnu/${PN}/${PN}-doc-${PV}.tar.gz
+ mirror://nongnu/${PN}/${PN}-doc-${PV}.pdf
+ )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm ppc ppc64 x86"
+IUSE="doc ftdi ncurses readline"
+
+RDEPEND="virtual/libusb:1
+ virtual/libusb:0
+ ftdi? ( dev-embedded/libftdi:= )
+ ncurses? ( sys-libs/ncurses:0= )
+ readline? ( sys-libs/readline:0= )"
+DEPEND="${RDEPEND}"
+
+DOCS="AUTHORS ChangeLog* NEWS README"
+
+src_prepare() {
+ default
+
+ # let the build system re-generate these, bug #120194
+ rm -f lexer.c config_gram.c config_gram.h || die
+}
+
+src_configure() {
+ # somehow this doesnt get set when cross-compiling and breaks build
+ tc-export AR
+ export ac_cv_lib_ftdi_ftdi_usb_get_strings=$(usex ftdi)
+ export ac_cv_lib_ncurses_tputs=$(usex ncurses)
+ export ac_cv_lib_readline_readline=$(usex readline)
+ default
+}
+
+src_compile() {
+ # The automake target for these files does not use tempfiles or create
+ # these atomically, confusing a parallel build. So we force them first.
+ emake lexer.c config_gram.c config_gram.h
+ emake
+}
+
+src_install() {
+ default
+
+ if use doc ; then
+ newdoc "${DISTDIR}/${PN}-doc-${PV}.pdf" avrdude.pdf
+ dodoc -r "${WORKDIR}/avrdude-html/"
+ fi
+}
diff --git a/dev-embedded/avrdude/avrdude-9999.ebuild b/dev-embedded/avrdude/avrdude-9999.ebuild
new file mode 100644
index 000000000000..f483079be8f7
--- /dev/null
+++ b/dev-embedded/avrdude/avrdude-9999.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools subversion toolchain-funcs
+
+DESCRIPTION="AVR Downloader/UploaDEr"
+HOMEPAGE="https://savannah.nongnu.org/projects/avrdude"
+ESVN_REPO_URI="svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude"
+MY_DOC_PV=6.3
+SRC_URI="
+ doc? (
+ mirror://nongnu/${PN}/${PN}-doc-${MY_DOC_PV}.tar.gz
+ mirror://nongnu/${PN}/${PN}-doc-${MY_DOC_PV}.pdf
+ )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="doc ftdi ncurses readline"
+
+RDEPEND="virtual/libusb:1
+ virtual/libusb:0
+ ftdi? ( dev-embedded/libftdi:= )
+ ncurses? ( sys-libs/ncurses:0= )
+ readline? ( sys-libs/readline:0= )"
+DEPEND="${RDEPEND}"
+
+DOCS="AUTHORS ChangeLog* NEWS README"
+
+src_unpack() {
+ default
+ subversion_src_unpack
+}
+
+src_prepare() {
+ default
+
+ # let the build system re-generate these, bug #120194
+ rm -f lexer.c config_gram.c config_gram.h || die
+
+ eautoreconf
+}
+
+src_configure() {
+ # somehow this doesnt get set when cross-compiling and breaks build
+ tc-export AR
+ export ac_cv_lib_ftdi_ftdi_usb_get_strings=$(usex ftdi)
+ export ac_cv_lib_ncurses_tputs=$(usex ncurses)
+ export ac_cv_lib_readline_readline=$(usex readline)
+ default
+}
+
+src_compile() {
+ # The automake target for these files does not use tempfiles or create
+ # these atomically, confusing a parallel build. So we force them first.
+ emake lexer.c config_gram.c config_gram.h
+ emake
+}
+
+src_install() {
+ default
+
+ if use doc ; then
+ newdoc "${DISTDIR}/${PN}-doc-${MY_DOC_PV}.pdf" avrdude.pdf
+ dodoc -r "${WORKDIR}/avrdude-html/"
+
+ dodoc -r atmel-docs
+ fi
+}
diff --git a/dev-embedded/avrdude/metadata.xml b/dev-embedded/avrdude/metadata.xml
new file mode 100644
index 000000000000..499cad808fd7
--- /dev/null
+++ b/dev-embedded/avrdude/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="project">
+ <email>embedded@gentoo.org</email>
+ <name>Embedded Gentoo</name>
+ </maintainer>
+ <use>
+ <flag name="ftdi">Enable support for USB FTDI chips via <pkg>dev-embedded/libftdi</pkg></flag>
+ </use>
+</pkgmetadata>