diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2012-11-15 12:20:19 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2012-11-15 12:20:19 +0000 |
commit | 0ed807c1030d2a737ae145dfe552c5ad236ee081 (patch) | |
tree | e88105593379881b483b8765bc4778d64d59c2dc /dev-embedded | |
parent | Adding php 5.5 alpha1 (diff) | |
download | gentoo-2-0ed807c1030d2a737ae145dfe552c5ad236ee081.tar.gz gentoo-2-0ed807c1030d2a737ae145dfe552c5ad236ee081.tar.bz2 gentoo-2-0ed807c1030d2a737ae145dfe552c5ad236ee081.zip |
Initial commit. Ebuild & patches were developed by Håvard Wall, Michael Mathurin & Mark James in bug #233806. Some minor tweaks by me.
(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0xB5058F9A)
Diffstat (limited to 'dev-embedded')
-rw-r--r-- | dev-embedded/dfu-programmer/ChangeLog | 11 | ||||
-rw-r--r-- | dev-embedded/dfu-programmer/Manifest | 5 | ||||
-rw-r--r-- | dev-embedded/dfu-programmer/dfu-programmer-0.5.4.ebuild | 40 | ||||
-rw-r--r-- | dev-embedded/dfu-programmer/files/0.5.4-as-needed.patch | 12 | ||||
-rw-r--r-- | dev-embedded/dfu-programmer/metadata.xml | 9 |
5 files changed, 77 insertions, 0 deletions
diff --git a/dev-embedded/dfu-programmer/ChangeLog b/dev-embedded/dfu-programmer/ChangeLog new file mode 100644 index 000000000000..2c4ae3d29b45 --- /dev/null +++ b/dev-embedded/dfu-programmer/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-embedded/dfu-programmer +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/dfu-programmer/ChangeLog,v 1.1 2012/11/15 12:20:19 chainsaw Exp $ + +*dfu-programmer-0.5.4 (15 Nov 2012) + + 15 Nov 2012; Tony Vroon <chainsaw@gentoo.org> +files/0.5.4-as-needed.patch, + +dfu-programmer-0.5.4.ebuild, +metadata.xml: + Initial commit. Ebuild & patches were developed by Håvard Wall, Michael + Mathurin & Mark James in bug #233806. Some minor tweaks by me. + diff --git a/dev-embedded/dfu-programmer/Manifest b/dev-embedded/dfu-programmer/Manifest new file mode 100644 index 000000000000..80f1f6249265 --- /dev/null +++ b/dev-embedded/dfu-programmer/Manifest @@ -0,0 +1,5 @@ +AUX 0.5.4-as-needed.patch 540 SHA256 863c51799d26e9dc784ff92e3b88bf69e1b19a5e6ddd22375e27782b25c9c4b1 SHA512 17bcb1fae69ec109ad94eed79a8b981b3f6753856a9c5a25843f7d5fb3420774434f30a2db37326a85be575d019cf652e4a7d726635dd48e0617240b2c79aa55 WHIRLPOOL 2087d7f90b7f8422761ee5f42a201c9ba757ab2da5c3b0a282398924b8cf3fb654d3b84d63798686ded64433d05718fb6cfbf94224b2ee5b875bbb66794a0d73 +DIST dfu-programmer-0.5.4.tar.gz 126700 SHA256 c0fb08fead3d4379368d0e4af5a5aa99c7acee32fa8696cd3e27d2f7856a20de SHA512 c6e0000e7d849144ff4d9191b09540f6a7c7414221952b26898421622079c1fd300e1a4d0f35db6f867e539f59c129850c6a9c745bc0f9916723e8e89fe2fd63 WHIRLPOOL bd8f7c6831544209e4513bd4231e4e1f6f43fadff05d319c22551d8cc99e1b0b5b0b98515175baaf3cf8e6baf79ff140b714f314f39063a80583dcce6dec7404 +EBUILD dfu-programmer-0.5.4.ebuild 1115 SHA256 f4dc594ac5891c5a6d2fdb6a3c0c53ce8f4bfa8c792cd62f1fc6ed5ca3e9b54c SHA512 d2a408e6eb21cff3ef105312778507b8be6e0da259334eaa1b0aec46aa348276ec90959fed61222ed2712a19a134db787e5411617cbbdb3ecd143e54337074e6 WHIRLPOOL bddf53ee1187cce628968b3c642108601a06ac3ee20cee580594f4d7ac50c04bd3fb51801e64c6edc3a35f0161b658aab06b1632883c37861ad64fb807283e52 +MISC ChangeLog 431 SHA256 22b1b4c77654d2539e594281d3e7902ff7badd3351458e1b68ce3a69d8576a41 SHA512 438c4d592bab59c00c5abcf39117f58d0f8f12c294bffcb14cd22706376d26a277623f64cf91c6a36aa097625da69c317cac90cc17992dff9ac67e8ef4074439 WHIRLPOOL 1204eab0484ff478a6369f9f5fd7d020e91498abf476bf0d1a86e7c941bf792e36031ae99495bbfffbc84f6e82d9f0c6b558e3c9f2b025a87a3dcc5358bb9219 +MISC metadata.xml 261 SHA256 9c0eae44725911a5c650cf6391e799c23c5398ab6117c76c39d7cf13dcf000fd SHA512 a00584b13ef67640b01375f1ebefc0f0604b206d90d759105eaaa2da600883d65e80724df5921635f27c8b10252fdd0412c1760137211aec1e4f1f997c4acece WHIRLPOOL 777ebc104c88ea399a68d128a03db87570f37d09a6ace615cb1463f85b999f15de05371e9440a06f914f0c0339da7224fe0219165dd4c4b90663df93573b201b diff --git a/dev-embedded/dfu-programmer/dfu-programmer-0.5.4.ebuild b/dev-embedded/dfu-programmer/dfu-programmer-0.5.4.ebuild new file mode 100644 index 000000000000..864f56aa45ec --- /dev/null +++ b/dev-embedded/dfu-programmer/dfu-programmer-0.5.4.ebuild @@ -0,0 +1,40 @@ +# Copyright 2012-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/dfu-programmer/dfu-programmer-0.5.4.ebuild,v 1.1 2012/11/15 12:20:19 chainsaw Exp $ + +EAPI=4 +inherit autotools base + +DESCRIPTION="A Device Firmware Update based USB programmer for Atmel chips" +HOMEPAGE="http://dfu-programmer.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="virtual/libusb + sys-fs/udev" +RDEPEND="${DEPEND}" +PATCHES=( "${FILESDIR}/${PV}-as-needed.patch" ) + +src_prepare() { + base_src_prepare + eautoreconf +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + ebegin "Generating UDEV rules..." + UDEV_RULES="$(get_libdir)/udev/rules.d/70-dfu-programmer.rules" + mkdir -p "${D}"/${UDEV_RULES%/*} + echo -e "#\n# do not edit this file, it will be overwritten on update\n#" \ + > "${D}"/${UDEV_RULES} + for prodid in "2ffa" "2ffb" "2ff9" "2ff7" "2ff4" "2ff3" ; + do + echo "SUBSYSTEM==\"usb\", ACTION==\"add\", ATTRS{idVendor}==\"03eb\", \ + ATTRS{idProduct}==\"${prodid}\", MODE=\"660\", GROUP=\"plugdev\", \ + SYMLINK+=\"dfu-%n\"" >> "${D}"${UDEV_RULES} + done + eend $? +} diff --git a/dev-embedded/dfu-programmer/files/0.5.4-as-needed.patch b/dev-embedded/dfu-programmer/files/0.5.4-as-needed.patch new file mode 100644 index 000000000000..6b9bd5afa4fa --- /dev/null +++ b/dev-embedded/dfu-programmer/files/0.5.4-as-needed.patch @@ -0,0 +1,12 @@ +diff -u dfu-programmer-0.5.4.ORIG/configure.ac dfu-programmer-0.5.4/configure.ac +--- dfu-programmer-0.5.4.ORIG/configure.ac 2012-11-15 11:54:24.938577990 +0000 ++++ dfu-programmer-0.5.4/configure.ac 2012-11-15 11:55:47.730575031 +0000 +@@ -27,7 +27,7 @@ + PKG_CHECK_MODULES(LIBUSB_1_0, [ libusb-1.0 >= 1.0.0 ], have_libusb_1_0=yes, have_libusb_1_0=no) + if test "$have_libusb_1_0" = "yes"; then + CFLAGS="$CFLAGS $LIBUSB_1_0_CFLAGS" +- LDFLAGS="$LDFLAGS $LIBUSB_1_0_LIBS" ++ LIBS="$LIBS $LIBUSB_1_0_LIBS" + HAVE_USB=yes + fi + fi diff --git a/dev-embedded/dfu-programmer/metadata.xml b/dev-embedded/dfu-programmer/metadata.xml new file mode 100644 index 000000000000..4c33c37c58bb --- /dev/null +++ b/dev-embedded/dfu-programmer/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>embedded</herd> + <maintainer> + <email>chainsaw@gentoo.org</email> + <name>Tony Vroon</name> + </maintainer> +</pkgmetadata> |