summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZero_Chaos <zerochaos@gentoo.org>2015-11-23 17:32:04 -0500
committerZero_Chaos <zerochaos@gentoo.org>2015-11-23 17:32:21 -0500
commitdfeae4e985a7a48c723c621f2640f24ec6e990b6 (patch)
tree79a1f97c7c819546cdea2689192a989e82be0ec2 /dev-embedded/avr-libc
parentdev-util/re2c: drop old (diff)
downloadgentoo-dfeae4e985a7a48c723c621f2640f24ec6e990b6.tar.gz
gentoo-dfeae4e985a7a48c723c621f2640f24ec6e990b6.tar.bz2
gentoo-dfeae4e985a7a48c723c621f2640f24ec6e990b6.zip
dev-embedded/avr-libc: proposed ebuild for bug #540922
Package-Manager: portage-2.2.25
Diffstat (limited to 'dev-embedded/avr-libc')
-rw-r--r--dev-embedded/avr-libc/Manifest3
-rw-r--r--dev-embedded/avr-libc/avr-libc-1.8.1.ebuild77
2 files changed, 80 insertions, 0 deletions
diff --git a/dev-embedded/avr-libc/Manifest b/dev-embedded/avr-libc/Manifest
index 5f7d27ddde1d..77f7b491b20d 100644
--- a/dev-embedded/avr-libc/Manifest
+++ b/dev-embedded/avr-libc/Manifest
@@ -4,11 +4,14 @@ DIST avr-libc-1.6.8.tar.bz2 1345899 SHA256 9c35ff8569703786a9b919e9a6e3a703e9977
DIST avr-libc-1.7.0.tar.bz2 1409160 SHA256 27499f59e7e2d8c1dedfabdd0a9ec9aa243ba3a2e72eee0fa21375e054938e9f SHA512 7343c16aaf9760fdba10f5f3319e1b8698c7b87b0d6de03d6a34b7cc69741aa6a89ef84b6c952254541cf3ed90a26e22364254d06f170a8b67dce1e8e1cb3095 WHIRLPOOL 2a68486dc5c65332fa45c718a2bd13740ad28c5af3ab452ee421625f70394f2d5babeb89baeb3034d33c3643613e0bc625b8fdb4f0d5166dcbae001daff450c8
DIST avr-libc-1.7.1.tar.bz2 1417545 SHA256 c6fe3f0fc0e7b1703e173ff265de1a7cac9fffdc9b249047a53f1e741c233aac SHA512 814e41b84b62213782ef886140d6aae99a76495ad3c06796038e3c58a138a3ef55076b7809dab8f4ce856b2b49a29d23952230a7784a914e20507ce06a6f99ed WHIRLPOOL dd61eb4038c3fb5cf58ce884156f30dcd4d5e6d8378c871addb2545010dcc3e4716f2326523bf12e4af1a4159d8a1a385f41ca3dabb18d9403870271da02fe81
DIST avr-libc-1.8.0.tar.bz2 1428776 SHA256 67a36bdb43a16f9b0512ba09584d4785f9bce6c057393f1020a5552e096e34ce SHA512 932cd41be062c5930cf4d2c555b1748a6916cf8e901e2bdb6d79fec3193d8b142c32e26b9b48c680fd909cd4bafb5ed74c346846f0a4200386db6ddc2651567a WHIRLPOOL bad84f40625371eca9c87a890edba2df20a7613c34e9826e370d7a96747690c79a6fd78f560f8864ebb5fa45edfd8515ef488e939820e739234d18c2e7fc4082
+DIST avr-libc-1.8.1.tar.bz2 3230418 SHA256 c3062a481b6b2c6959dc708571c00b0e26301897ba21171ed92acd0af7c4a969 SHA512 9827028117d63bab9071bc0af68ef87038ed1e6e6c5cfd6db2c77a8387ce5b9eb2825c651405ad2842d81bc0abe173b76340b56671b930fc42d2f05bb7f261f7 WHIRLPOOL 6dc7c8901184313a8bff73f7d7fca30e1ddc0578cedf1a42e19ec9de47f4bc508922d1d29992e359c05b305d4c90d7d93c437c5c9af770fa358c567455bc81af
DIST avr-libc-manpages-1.6.2.tar.bz2 133249 SHA256 1c2ab29c62e308ebbb906691d0197f4b3f45fb03439c6ed674babb171104943f SHA512 8eb4aa0aedb20613253e4f17424251752fd61c5095690e69b2a4a0d6072460a0015379c04b9f01946d1063942ec876b6c6f2c0689878bfd8473a5e1cd31a534b WHIRLPOOL 1da3e7ebdf640c33c42a2ca01e822ae5fe6a9c506c9d87887f239f30e8fe9ec2a3395645e14bd413d5841a6b3b82aa1591484db19773d0975568ff676bfd219a
DIST avr-libc-manpages-1.7.0.tar.bz2 143540 SHA256 d97ec03a075b331b957ffe968e7236cf79260ae22195036e644b1ba5279d7fcf SHA512 4422deb8778be3e617d6059ba9c40f7cd4069f3f3d8343944f8aa370fc88aa5934c6f5bb375c130ff59bb7450599bb13da4cf127a87f8057abb85eb68001d702 WHIRLPOOL cb5ec836aa3d29f11262c370aa50d2a343eafdbb21f4bef97de20315767c1630719169e00d83ef1579503d2875526bca58df08094028dfc49631ccf0b156aad6
DIST avr-libc-manpages-1.7.1.tar.bz2 143831 SHA256 13a17b8e7522045a88a49b972f8861e8350ba0403cf692087f86525f401fe404 SHA512 c77f60be472a26ec7a158dcbfc38960dcde7bc192518bf5a35d339c628cf39030f44c56785770a3e0c01ced568e6ca7fff0f655e4a396348464c9d23cc1ccd3e WHIRLPOOL ec58b4cf18f6dbd031d19b365b969b38198a88273e383b548a77d94bdc6657cad96f24cfd255a7945069e4435461e42f44763d6365e32cd76c488a143e46f82e
DIST avr-libc-manpages-1.8.0.tar.bz2 127217 SHA256 14589188581a7ecd9684b34d52326d8b5ff77b8ac4cdc21e316b293e90e24c12 SHA512 8b7d5734ded698f0f136b8a38785efc87d288ece7fbed943e7da0d1c6aa21ffd73707e63d54757df47da687d5e6d70d781bf9b4947624976921b5fb5c9cffc86 WHIRLPOOL f86f91a0d6987d419ff56d0a91c1e395e453acadd63563431daa9b92b8b3af0bd420bc4ba20b036658072b58e22034cf66e8bbf088487f0a642885285e0bc3a0
+DIST avr-libc-manpages-1.8.1.tar.bz2 158580 SHA256 93ee7ac6880048abd968873fa3f180a49ec7b141b39c1940b7c4afd6efc9ba6c SHA512 84f12c4b56b0c5e21edb0ad27a68c8b1d665a60b19bd2aee10714840d4153cb5aff65f90b0e815ddce9037ad06a4a3b54856cf81b0aea85a1d97a0cf3c672a80 WHIRLPOOL 0d4fe85c906af8ff687af6e5a0f55cf7cc4edf81623c34615bf86cbdf887bd988a423c6eb5546616117d893eab4561c35d005e2f8d51154734cf778fca9f44c7
DIST avr-libc-user-manual-1.6.2.tar.bz2 511408 SHA256 cc02a2a1a69870add0a69178e06f6ee1c972f139d39826aefbc0ed46febde4ee SHA512 09d531d612b72fff9dc3f0bbdf34866ed9f2b979d7d00adfd9e6d52557bb1500f18936c3b859ce7a477df6cf63bfbfab53871b6c4565f3127faa67ad912704e1 WHIRLPOOL ef001fdf58fa13389b7852087a81f45ca9ffdc90c5cfa918a66007ab66d2a2d8babe6e64cd0eef65790899267db195ad17c38af51b0525dbb4ad7589bb41fa9e
DIST avr-libc-user-manual-1.7.0.tar.bz2 690477 SHA256 85bc2d7f4fcacfc727a5c026705b7d7545fb8886e1333e18a3c358571344145f SHA512 d8fd5e9c35b840f094c06620836744982c2302a024499f4dcbfaa107a52dac3eaaaaa58ce49529d31a60cf6c1ecdfb9b2c9313febc7cb82c7577b7da22db65a4 WHIRLPOOL 4b5106c9242330ae7df80e045255570ad8264b7709615390b19e8a78b6e2527ae05baa104e44eb484f4365ec2acee2b3665d6ba10669b7a3f8deaf1f0a55315e
DIST avr-libc-user-manual-1.7.1.tar.bz2 692262 SHA256 25a47084f312b553f12e19d401dc63e26d36ce1821bfd38d168908f6f04a008a SHA512 9996ed97aac12a37c589beb32d761dc0740b321bb219d316091f9b3a763b8a96401c2de6cf99f89744d337a482e8be88104778deb6d8b9a76e96870526139d5e WHIRLPOOL e1a78eed29dd168a86ad32fcd9b4ae0648efacfe03b5b2b5460e9b7b63553b63548a417d06018a97aa3958a382bd55c4cc682b64137c587977c9a86e13b51c6f
DIST avr-libc-user-manual-1.8.0.tar.bz2 705087 SHA256 ecfb970067ce5a19bd5c93501f5480e6824834d449bd53dc61cf8597a4c0b601 SHA512 731fbc45e9184b70f28001a9427d72ab5385017f1d8f197b2c942e458a6542632420f11e57a81949586d6fd8d4f4cd401b5fc76595ab7d95ccad7b158ceef59b WHIRLPOOL eea3f807208ccf5e3ada13f327898098eaf70594f9c8bff073f7143a80380cc90af4619e476dc7b1b77e752f0568829d000b5f04b110616ae72fbe813a594b39
+DIST avr-libc-user-manual-1.8.1.tar.bz2 864405 SHA256 0966df5d624f6a24de86086d388914501904302bb60a0cfb0b17d024f2ba7ce9 SHA512 65da1b6f648bc8f2dc23dca15be45c960606c44703407fcdb60a924174cd9970d9d4f5a9c10eda827b91a5dbd0cd122daab92458626e67817c3ad8a864baedf4 WHIRLPOOL 7cc3edc8f2cd17ab2b25e875ec1766582a785deeacfebd9a6531d23e97f5db9db72f1f503e0ae1f76ba85e8f6059122de33148e3896bda02372b106fbc857486
diff --git a/dev-embedded/avr-libc/avr-libc-1.8.1.ebuild b/dev-embedded/avr-libc/avr-libc-1.8.1.ebuild
new file mode 100644
index 000000000000..2ca10b32610c
--- /dev/null
+++ b/dev-embedded/avr-libc/avr-libc-1.8.1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+CHOST="avr"
+CTARGET="avr"
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="C library for Atmel AVR microcontrollers"
+HOMEPAGE="http://www.nongnu.org/avr-libc/"
+SRC_URI="http://savannah.nongnu.org/download/avr-libc/${P}.tar.bz2
+ http://savannah.nongnu.org/download/avr-libc/${PN}-manpages-${PV}.tar.bz2
+ doc? ( http://savannah.nongnu.org/download/avr-libc/${PN}-user-manual-${PV}.tar.bz2 )"
+
+LICENSE="BSD"
+SLOT="0"
+#KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+KEYWORDS=""
+IUSE="doc crosscompile_opts_headers-only"
+
+DEPEND=">=sys-devel/crossdev-0.9.1"
+[[ ${CATEGORY/cross-} != ${CATEGORY} ]] \
+ && RDEPEND="!dev-embedded/avr-libc" \
+ || RDEPEND=""
+
+DOCS="AUTHORS ChangeLog* NEWS README"
+
+pkg_setup() {
+ # check for avr-gcc, bug #134738
+ ebegin "Checking for avr-gcc"
+ if type -p avr-gcc > /dev/null ; then
+ eend 0
+ else
+ eend 1
+
+ eerror
+ eerror "Failed to locate 'avr-gcc' in \$PATH. You can install an AVR toolchain using:"
+ eerror " $ crossdev -t avr"
+ eerror
+ die "AVR toolchain not found"
+ fi
+}
+
+src_prepare() {
+ epatch_user #455828
+
+ # work around broken gcc versions PR45261
+ local mcu
+ for mcu in $(sed -r -n '/CHECK_AVR_DEVICE/{s:.*[(](.*)[)]:\1:;p}' configure.ac) ; do
+ if avr-gcc -E - -mmcu=${mcu} <<<"" |& grep -q 'unknown MCU' ; then
+ sed -i "/HAS_${mcu}=yes/s:yes:no:" configure
+ fi
+ done
+
+ # Install docs in correct directory
+ sed -i -e "/DOC_INST_DIR/s:\$(VERSION):${PVR}:" configure || die
+
+ strip-flags
+ strip-unsupported-flags
+}
+
+src_install() {
+ default
+
+ # man pages can not go into standard locations
+ # as they would then overwrite libc man pages
+ insinto /usr/share/doc/${PF}/man/man3
+ doins "${WORKDIR}"/man/man3/*
+
+ use doc && dohtml "${WORKDIR}"/${PN}-user-manual-${PV}/*
+
+ # Make sure diff cross-compilers don't collide #414075
+ mv "${ED}"/usr/share/doc/{${PF},${CTARGET}-${PF}} || die
+}