summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2017-08-02 12:08:01 +0200
committerMichael Weber <xmw@gentoo.org>2017-08-02 12:08:01 +0200
commit4af0440bc97d37ee297e07e851912c15f7c37474 (patch)
treedb0e96481e788edd9c7a4da4c4d55e73dd8a2345 /dev-embedded
parentdev-embedded/avrdude: Remove old versions. (diff)
downloadgentoo-4af0440bc97d37ee297e07e851912c15f7c37474.tar.gz
gentoo-4af0440bc97d37ee297e07e851912c15f7c37474.tar.bz2
gentoo-4af0440bc97d37ee297e07e851912c15f7c37474.zip
dev-embedded/avrdude: Add live ebuild as requested (bug 453426).
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/avrdude/avrdude-9999.ebuild71
-rw-r--r--dev-embedded/avrdude/metadata.xml10
2 files changed, 76 insertions, 5 deletions
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
index 45b33eaf46cd..499cad808fd7 100644
--- a/dev-embedded/avrdude/metadata.xml
+++ b/dev-embedded/avrdude/metadata.xml
@@ -2,10 +2,10 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
- <email>embedded@gentoo.org</email>
- <name>Embedded Gentoo</name>
+ <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>
+ <use>
+ <flag name="ftdi">Enable support for USB FTDI chips via <pkg>dev-embedded/libftdi</pkg></flag>
+ </use>
</pkgmetadata>