summaryrefslogtreecommitdiff
path: root/dev-embedded/avr-libc
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded/avr-libc')
-rw-r--r--dev-embedded/avr-libc/Manifest32
-rw-r--r--dev-embedded/avr-libc/avr-libc-1.6.2.ebuild73
-rw-r--r--dev-embedded/avr-libc/avr-libc-1.6.4.ebuild73
-rw-r--r--dev-embedded/avr-libc/avr-libc-1.6.8.ebuild72
-rw-r--r--dev-embedded/avr-libc/avr-libc-1.7.0.ebuild68
-rw-r--r--dev-embedded/avr-libc/avr-libc-1.7.1.ebuild74
-rw-r--r--dev-embedded/avr-libc/avr-libc-1.8.0.ebuild75
-rw-r--r--dev-embedded/avr-libc/avr-libc-1.8.1.ebuild75
-rw-r--r--dev-embedded/avr-libc/avr-libc-2.0.0.ebuild75
-rw-r--r--dev-embedded/avr-libc/files/avr-libc-1.7.1-gcc46.patch25
-rw-r--r--dev-embedded/avr-libc/metadata.xml12
11 files changed, 654 insertions, 0 deletions
diff --git a/dev-embedded/avr-libc/Manifest b/dev-embedded/avr-libc/Manifest
new file mode 100644
index 000000000000..f8e372c1ef36
--- /dev/null
+++ b/dev-embedded/avr-libc/Manifest
@@ -0,0 +1,32 @@
+AUX avr-libc-1.7.1-gcc46.patch 979 SHA256 f5afdc16c242c0d943037b51fe2754b68d4bf094e45c7af4275221374040a4f1 SHA512 f69cd81e28681d765ab9b829e23f02d2cba14d2ee7e3b3c7d0eb5a8cfd37a98ac58670c0f9643271088374f63a524b98e7eba244ca2081d85f465d21bb0e83b6 WHIRLPOOL 69f064a214ef4b72549317c869a467354b02258e1757d0a1fe88a1a46915d2023862c0ff6c69e70181e5ed5ea09f5fdd552031d39fa524f246b018fc4521f7ad
+DIST avr-libc-1.6.2.tar.bz2 1044977 SHA256 b70112efb9e66def5789ea9cfaad8d050a6af284b2f503fc81b479cec15cbbd7 SHA512 9c79450c87b6a74b88dc9628984388c0d0e0a78639bdafae29fb84bf19daae250f8e21f65e269de25ed935bdfe0edf0671e025c81870909dfaff4ec6e68b370e WHIRLPOOL 62fbc8c30ac51eecd4cdf91cd788f7043f73fccb5dfc48357f5dd7f390f6f200e22a0d2a956112e4bf19a5c1bfd7b1bdcc180b2d58eb11a1a29e83400d11e895
+DIST avr-libc-1.6.4.tar.bz2 1137818 SHA256 965fbe12bc882836c419f8c5c7b8261b04c7bbb463ad9fd0899c8165eed5477c SHA512 eef74396040990a930f504c05dfb9ab319ee5815411cdc48bdc389cf8e8bf33b8936cc52b1437f9a41fa965d9aa9503cf062bb9246b62af51d11abd84b2fbb53 WHIRLPOOL d3fc5fb263edb55068cbee4f6786a2461c971587d2f44a3f05a1163acd612dd741ff65e8601d9c798abe4e66df1ee1cf0c6199f1ff2edf74a63632232a88975e
+DIST avr-libc-1.6.8.tar.bz2 1345899 SHA256 9c35ff8569703786a9b919e9a6e3a703e9977223853691b17d8333242a9bc12b SHA512 31ca1969bdbb0725aa19de8e84cfa5a2868403a454a828c915dd754d53965feed7a6441564a8b5c6e54e5879771d4e03dce086b2e699a088474c7e71968b9159 WHIRLPOOL 440863f5d58897c8708b488c00aecec6cf70ef9848290329e88ef3fad50b252f5750be0bf13ac1c5be67fa7bf4389072437241a9ce0b797653d1795b80b41bef
+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-2.0.0.tar.bz2 3590893 SHA256 b2dd7fd2eefd8d8646ef6a325f6f0665537e2f604ed02828ced748d49dc85b97 SHA512 fc8d062043d633350dbe05978935dcb8028257a4f1013f246af9658aef0671def19ac11577d1ee9302df68df1b8cf030b22441d96852e185db212263aacabea6 WHIRLPOOL 18f149bdda6cadb2e29d42e16a15fbe2d2331aa044a3c668a984bbf95ef2b5cad93b907bb4cadcac4f5002c6d62dd0928e74592cd453e21afe70618176a88231
+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-manpages-2.0.0.tar.bz2 151137 SHA256 f1086ff15cbe341eda0286a7191c563a10127343573e01aad66a97924d7b41b5 SHA512 8b4aaa6ae176076171e90e629e0e6142c4c56f9cc4f1640432384276df2f7b457f5137739535b07b9cede9b5b2e564db7fe200203faa4e2d0cd9874432507823 WHIRLPOOL 2fd740cb4345c43d0789b12edc5d34eae5cf16c13ae1ad3f5984f13960c710255988f54bb576cd89a0a99685aa3883b29f0fabef4079002af0f2018857492e4b
+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
+DIST avr-libc-user-manual-2.0.0.tar.bz2 932920 SHA256 3bb4dbfafe32595f035d3373afb622b68ae8c7a3d4bb2a8ed89ca69edc42e5b0 SHA512 246180be1f793b46335a49f33028ff59bd7cc06ca3d8627309521801e405e0e1305663a2c0760521467e75732ad513749bf707732b59fb17744e51acda9bb2c6 WHIRLPOOL 59090a877ab58f2fa208c15ad629e879c93f61513e3168fff34cee28555f40fb7870d8a16cc2daeb94fc69c2bc4ee1ceb046ffa5514a2277486465f84c81152f
+EBUILD avr-libc-1.6.2.ebuild 1724 SHA256 c25375219c0aa452d914e9aede1d950a45ac51aaa0ac515538d909c9db61cb38 SHA512 0da166231e40bcb3d7db92e267007634587eb5b15009e6925498fc43f5c299a7b8afa4439c7c2cf73fd63ca1ae22efcf2b4416d3a5197ae40a0e8a354e5d93f9 WHIRLPOOL 332245c39874c9d4914f31791f2a1a937398f62b72522811b6c2ccfb44ad4a081ad7a94f2d3b887b7371e873937150c1e69ee4189ca0c35e9e73e504eda081b3
+EBUILD avr-libc-1.6.4.ebuild 1729 SHA256 4071dfdc42c73411d755b0d176a15ff2c1d21ec056df7ca1a20bd05fec918ff1 SHA512 6c5a22b21ad54b0cea9eb533aa452898cfb8c19e8b7ae68e61b13287184ef4979b558ae08660c6ecf37e265d35d6676ad04616ede61e88aaf3cbc9bb289a7d30 WHIRLPOOL 1f5a9c5f0cf75684e65a884dec4c6c36bef7f40ceeea58de5438600a0b8fefd07bb86ae1a230a0957278c71a56936875dad941852c23536517c1e5de92b0916e
+EBUILD avr-libc-1.6.8.ebuild 1703 SHA256 43acf6d2cd69068e52e4f24dc6a79e08eee17c8a5fcbba9be6d9c684bc47c7a4 SHA512 a6cfcbaba2bc96cf3c8967cf381f204558031ecf9b648b718785287ee94bf7c1bc42f065a0651f65783c90572da4fb3dbf0cf02bfc60e3a5eddedfdeb4de34a0 WHIRLPOOL ab17d9594d35a3fb71026e48308d12ce3e61bf426f6e20f2c794c70074eb3077bbe84a78f8a2a4dfcd356ecb55c0aa7a9301dafad64816f7b8d2ee2ee79b6fe7
+EBUILD avr-libc-1.7.0.ebuild 1775 SHA256 0bf4d4a4a4169fd34ac82174c52a47325b9765ba76cf169f1d4537e7320002f1 SHA512 4fd87b7c010d72e43bf72fa0f774f4de6c1ff454f31618a8acb6e7618a1f47d93240d7b2db67433fb5ba84a086fe4dd45fd6cd9f09282a880510e8c6fd6b2ee7 WHIRLPOOL cb5e78be0a484483545e1440e65f6ace6b9ea6f0edba4cf6b2068fcecd5770414f04af82c1281cb80750c4461e594828e7a38518eeddc31a70e289856dcc79e1
+EBUILD avr-libc-1.7.1.ebuild 1908 SHA256 af770c06a546414eecd46cd83dd4862e483f65c70803df9a1ffcd9a6fb34a0aa SHA512 b281747340293026858d66caaca718ef40065732c54ea96f700af53f1b9acf5efed0b46fe0a7afbeb0d3a4089457f07ec35d5da2d45fa184259fb3c309cdff59 WHIRLPOOL 4775df4071bf7506831cd4505b5d245171de4a12935590eebf0f9066defb8e46389799e1346688de3ba5805812b433c8017d68c91ca24437ef7040d1f22710ba
+EBUILD avr-libc-1.8.0.ebuild 1914 SHA256 00f29d5bc236948a071883bae64ab88482c06b4690af82916dbc3395f10b4a5e SHA512 6b948ae411eba4118ea444e4eac4d4169e6c99cbe22203daa5e9796ab81a2b6168682a6708bf30c8f089545696946a1ed52d87fa3a64e8e4836e625b2dda5462 WHIRLPOOL 331234b94d6a2236fb6c5260fb7e5e4a2e5b79701794499f96f04447a47400992c6fe836e0eb5c83a62a483f0e8fa83b53a4f9a01b19c411fbac688150b118c2
+EBUILD avr-libc-1.8.1.ebuild 1918 SHA256 1c930ac5af827389e560b5d30d5c987e270e75c5e8d55bc3b9212c0f63a9d302 SHA512 e486b282f6d0e0b42be7b23c6a48746ade65526f9bcf0e6d78cbf5413a983fb6b6afa3ab27c226429be66a517a4715ba7541223cba5746916a5617a6c6687fd3 WHIRLPOOL f25f254f174e14bf76cd63e8892a023c717fcfe6fdcf31eb832c8372102c2fee1decdb9c89caabc9a99e365eaef908cc1d8a7f8dc3222c225026fbda3fe29f93
+EBUILD avr-libc-2.0.0.ebuild 1918 SHA256 1c930ac5af827389e560b5d30d5c987e270e75c5e8d55bc3b9212c0f63a9d302 SHA512 e486b282f6d0e0b42be7b23c6a48746ade65526f9bcf0e6d78cbf5413a983fb6b6afa3ab27c226429be66a517a4715ba7541223cba5746916a5617a6c6687fd3 WHIRLPOOL f25f254f174e14bf76cd63e8892a023c717fcfe6fdcf31eb832c8372102c2fee1decdb9c89caabc9a99e365eaef908cc1d8a7f8dc3222c225026fbda3fe29f93
+MISC ChangeLog 3469 SHA256 be0a5cb820556ef5fb05ace4aa1b5352f0a65fbb675b0e159b006f51ebf3a110 SHA512 42f74b1f4c6576c79f2a1dbd94fc9f40bc58fe8619df216cb629921551fa0a5037fbd22683057d7b6c4b1a05c1764884495176c5c0c567f1bc63cb2027302230 WHIRLPOOL 64cf8f36f1c82c21f736091f7a55464ed83c1997e5c3c79ca90cb433b8994ff787f00b6c3f5640c65dab70f30f168617cd0d6cd5f5b8d8e361a56591981f8257
+MISC ChangeLog-2015 7346 SHA256 96eb39ce6ee633ef414877e2034bc20995030cee307856685d48c1e327106d8f SHA512 b6db13f5dbab6afc83dde44db94f8e0672e87138778cbffe8393802660ec703b8c00b9a0b301174f3b5c327f11ab652336119a7c84ffc1c21ce94d8988b515ea WHIRLPOOL 620695c1fe78680588e16ae2639ced6c8f659ded34ead0f3daabedd17854515bad6752dbd7ed4d1092b720ea8af8b344b06d51618bca87ca08826960cc3f1380
+MISC metadata.xml 470 SHA256 7cf932a070e783a07987d294d5212f831a4ce99bd95030dbfce21895886f0208 SHA512 0a09da72e78c945fa53ee056913bc563897dcb65c33e8cba04dfd15d57a1578a502f18071b0a3cd5feecdbc7e570bfddfde05deda12746e70962b841d90d566a WHIRLPOOL 3550bf83513ff00fa48af706aa9655fcc611dbe5a518aa03f65373eb70cbd791802451cbc13a480c67b8a2c8b5d605478f9c2d8dc31db9e246f71fa17e585dc4
diff --git a/dev-embedded/avr-libc/avr-libc-1.6.2.ebuild b/dev-embedded/avr-libc/avr-libc-1.6.2.ebuild
new file mode 100644
index 000000000000..35110ac3d409
--- /dev/null
+++ b/dev-embedded/avr-libc/avr-libc-1.6.2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="avr"
+CTARGET="avr"
+
+inherit flag-o-matic
+
+DOCS_PV="1.6.2"
+
+DESCRIPTION="C library for Atmel AVR microcontrollers"
+HOMEPAGE="http://www.nongnu.org/avr-libc/"
+SRC_URI="https://savannah.nongnu.org/download/avr-libc/${P}.tar.bz2
+ https://savannah.nongnu.org/download/avr-libc/${PN}-manpages-${DOCS_PV}.tar.bz2
+ doc? ( https://savannah.nongnu.org/download/avr-libc/${PN}-user-manual-${DOCS_PV}.tar.bz2 )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="doc nls crosscompile_opts_headers-only"
+
+DEPEND=">=sys-devel/crossdev-0.9.1"
+[[ ${CATEGORY/cross-} != ${CATEGORY} ]] \
+ && RDEPEND="!dev-embedded/avr-libc" \
+ || RDEPEND=""
+
+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_compile() {
+ strip-flags
+ strip-unsupported-flags
+
+ mkdir obj-avr
+ cd "${S}"/obj-avr
+
+ ECONF_SOURCE="${S}" \
+ econf \
+ $(use_enable nls) \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ cd "${S}"/obj-avr
+ make DESTDIR="${D}" install || die "make install failed"
+
+ cd "${S}"
+ dodoc AUTHORS ChangeLog* NEWS README
+
+ # man pages can not go into standard locations
+ # as they would then overwrite libc man pages
+ dosed "s:\$(VERSION):${PVR}:" /usr/bin/avr-man
+ insinto /usr/share/doc/${PF}/man/man3
+ doins "${WORKDIR}"/man/man3/*
+ prepman /usr/share/doc/${PF}
+
+ use doc && dohtml "${WORKDIR}"/${PN}-user-manual-${DOCS_PV}/*
+}
diff --git a/dev-embedded/avr-libc/avr-libc-1.6.4.ebuild b/dev-embedded/avr-libc/avr-libc-1.6.4.ebuild
new file mode 100644
index 000000000000..e289f5f96637
--- /dev/null
+++ b/dev-embedded/avr-libc/avr-libc-1.6.4.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="avr"
+CTARGET="avr"
+
+inherit flag-o-matic
+
+DOCS_PV="1.6.2"
+
+DESCRIPTION="C library for Atmel AVR microcontrollers"
+HOMEPAGE="http://www.nongnu.org/avr-libc/"
+SRC_URI="https://savannah.nongnu.org/download/avr-libc/${P}.tar.bz2
+ https://savannah.nongnu.org/download/avr-libc/${PN}-manpages-${DOCS_PV}.tar.bz2
+ doc? ( https://savannah.nongnu.org/download/avr-libc/${PN}-user-manual-${DOCS_PV}.tar.bz2 )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="doc nls crosscompile_opts_headers-only"
+
+DEPEND=">=sys-devel/crossdev-0.9.1"
+[[ ${CATEGORY/cross-} != ${CATEGORY} ]] \
+ && RDEPEND="!dev-embedded/avr-libc" \
+ || RDEPEND=""
+
+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_compile() {
+ strip-flags
+ strip-unsupported-flags
+
+ mkdir obj-avr
+ cd "${S}"/obj-avr
+
+ ECONF_SOURCE="${S}" \
+ econf \
+ $(use_enable nls) \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ cd "${S}"/obj-avr
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ cd "${S}"
+ dodoc AUTHORS ChangeLog* NEWS README
+
+ # man pages can not go into standard locations
+ # as they would then overwrite libc man pages
+ dosed "s:\$(VERSION):${PVR}:" /usr/bin/avr-man
+ insinto /usr/share/doc/${PF}/man/man3
+ doins "${WORKDIR}"/man/man3/*
+ prepman /usr/share/doc/${PF}
+
+ use doc && dohtml "${WORKDIR}"/${PN}-user-manual-${DOCS_PV}/*
+}
diff --git a/dev-embedded/avr-libc/avr-libc-1.6.8.ebuild b/dev-embedded/avr-libc/avr-libc-1.6.8.ebuild
new file mode 100644
index 000000000000..73bedaf38044
--- /dev/null
+++ b/dev-embedded/avr-libc/avr-libc-1.6.8.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="avr"
+CTARGET="avr"
+
+inherit flag-o-matic
+
+DOCS_PV="1.6.2"
+
+DESCRIPTION="C library for Atmel AVR microcontrollers"
+HOMEPAGE="http://www.nongnu.org/avr-libc/"
+SRC_URI="https://savannah.nongnu.org/download/avr-libc/${P}.tar.bz2
+ https://savannah.nongnu.org/download/avr-libc/${PN}-manpages-${DOCS_PV}.tar.bz2
+ doc? ( https://savannah.nongnu.org/download/avr-libc/${PN}-user-manual-${DOCS_PV}.tar.bz2 )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="doc crosscompile_opts_headers-only"
+
+DEPEND=">=sys-devel/crossdev-0.9.1"
+[[ ${CATEGORY/cross-} != ${CATEGORY} ]] \
+ && RDEPEND="!dev-embedded/avr-libc" \
+ || RDEPEND=""
+
+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_compile() {
+ strip-flags
+ strip-unsupported-flags
+
+ mkdir obj-avr
+ cd "${S}"/obj-avr
+
+ ECONF_SOURCE="${S}" \
+ econf \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ cd "${S}"/obj-avr
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ cd "${S}"
+ dodoc AUTHORS ChangeLog* NEWS README
+
+ # man pages can not go into standard locations
+ # as they would then overwrite libc man pages
+ dosed "s:\$(VERSION):${PVR}:" /usr/bin/avr-man
+ insinto /usr/share/doc/${PF}/man/man3
+ doins "${WORKDIR}"/man/man3/*
+ prepman /usr/share/doc/${PF}
+
+ use doc && dohtml "${WORKDIR}"/${PN}-user-manual-${DOCS_PV}/*
+}
diff --git a/dev-embedded/avr-libc/avr-libc-1.7.0.ebuild b/dev-embedded/avr-libc/avr-libc-1.7.0.ebuild
new file mode 100644
index 000000000000..e238218a08ef
--- /dev/null
+++ b/dev-embedded/avr-libc/avr-libc-1.7.0.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+CHOST="avr"
+CTARGET="avr"
+
+inherit flag-o-matic
+
+DESCRIPTION="C library for Atmel AVR microcontrollers"
+HOMEPAGE="http://www.nongnu.org/avr-libc/"
+SRC_URI="https://savannah.nongnu.org/download/avr-libc/${P}.tar.bz2
+ https://savannah.nongnu.org/download/avr-libc/${PN}-manpages-${PV}.tar.bz2
+ doc? ( https://savannah.nongnu.org/download/avr-libc/${PN}-user-manual-${PV}.tar.bz2 )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="doc crosscompile_opts_headers-only"
+
+DEPEND=">=sys-devel/crossdev-0.9.1"
+[[ ${CATEGORY/cross-} != ${CATEGORY} ]] \
+ && RDEPEND="!dev-embedded/avr-libc" \
+ || RDEPEND=""
+
+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() {
+ # 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
+
+ strip-flags
+ strip-unsupported-flags
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog* NEWS README
+
+ # man pages can not go into standard locations
+ # as they would then overwrite libc man pages
+ dosed "s:\$(VERSION):${PVR}:" /usr/bin/avr-man
+ insinto /usr/share/doc/${PF}/man/man3
+ doins "${WORKDIR}"/man/man3/*
+ prepman /usr/share/doc/${PF}
+
+ use doc && dohtml "${WORKDIR}"/${PN}-user-manual-${PV}/*
+}
diff --git a/dev-embedded/avr-libc/avr-libc-1.7.1.ebuild b/dev-embedded/avr-libc/avr-libc-1.7.1.ebuild
new file mode 100644
index 000000000000..c0077d5bffac
--- /dev/null
+++ b/dev-embedded/avr-libc/avr-libc-1.7.1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+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="https://savannah.nongnu.org/download/avr-libc/${P}.tar.bz2
+ https://savannah.nongnu.org/download/avr-libc/${PN}-manpages-${PV}.tar.bz2
+ doc? ( https://savannah.nongnu.org/download/avr-libc/${PN}-user-manual-${PV}.tar.bz2 )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+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() {
+ # Fix avr-libc bug #32988 causing an ICE with gcc-4.6.0
+ epatch "${FILESDIR}/${P}-gcc46.patch"
+
+ # 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/*
+ prepman /usr/share/doc/${PF}
+
+ use doc && dohtml "${WORKDIR}"/${PN}-user-manual-${PV}/*
+}
diff --git a/dev-embedded/avr-libc/avr-libc-1.8.0.ebuild b/dev-embedded/avr-libc/avr-libc-1.8.0.ebuild
new file mode 100644
index 000000000000..917d548177bc
--- /dev/null
+++ b/dev-embedded/avr-libc/avr-libc-1.8.0.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+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="https://savannah.nongnu.org/download/avr-libc/${P}.tar.bz2
+ https://savannah.nongnu.org/download/avr-libc/${PN}-manpages-${PV}.tar.bz2
+ doc? ( https://savannah.nongnu.org/download/avr-libc/${PN}-user-manual-${PV}.tar.bz2 )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+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
+}
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..a3448102b642
--- /dev/null
+++ b/dev-embedded/avr-libc/avr-libc-1.8.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="https://savannah.nongnu.org/download/avr-libc/${P}.tar.bz2
+ https://savannah.nongnu.org/download/avr-libc/${PN}-manpages-${PV}.tar.bz2
+ doc? ( https://savannah.nongnu.org/download/avr-libc/${PN}-user-manual-${PV}.tar.bz2 )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+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
+}
diff --git a/dev-embedded/avr-libc/avr-libc-2.0.0.ebuild b/dev-embedded/avr-libc/avr-libc-2.0.0.ebuild
new file mode 100644
index 000000000000..a3448102b642
--- /dev/null
+++ b/dev-embedded/avr-libc/avr-libc-2.0.0.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="https://savannah.nongnu.org/download/avr-libc/${P}.tar.bz2
+ https://savannah.nongnu.org/download/avr-libc/${PN}-manpages-${PV}.tar.bz2
+ doc? ( https://savannah.nongnu.org/download/avr-libc/${PN}-user-manual-${PV}.tar.bz2 )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+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
+}
diff --git a/dev-embedded/avr-libc/files/avr-libc-1.7.1-gcc46.patch b/dev-embedded/avr-libc/files/avr-libc-1.7.1-gcc46.patch
new file mode 100644
index 000000000000..1f0922196c36
--- /dev/null
+++ b/dev-embedded/avr-libc/files/avr-libc-1.7.1-gcc46.patch
@@ -0,0 +1,25 @@
+--- avr-libc-1.7.1.orig/include/avr/pgmspace.h
++++ avr-libc-1.7.1/include/avr/pgmspace.h
+@@ -252,7 +252,7 @@
+ # define PSTR(s) ((const PROGMEM char *)(s))
+ #else /* !DOXYGEN */
+ /* The real thing. */
+-# define PSTR(s) (__extension__({static char __c[] PROGMEM = (s); &__c[0];}))
++# define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))
+ #endif /* DOXYGEN */
+
+ #define __LPM_classic__(addr) \
+--- avr-libc-1.7.1.orig/libc/stdlib/dtostre.c
++++ avr-libc-1.7.1/libc/stdlib/dtostre.c
+@@ -37,9 +37,9 @@
+ char *
+ dtostre (double val, char *sbeg, unsigned char prec, unsigned char flags)
+ {
+- __attribute__((progmem)) static char str_nan[2][4] =
++ __attribute__((progmem)) static const char str_nan[2][4] =
+ {"nan", "NAN"};
+- __attribute__((progmem)) static char str_inf[2][sizeof(str_nan[0])] =
++ __attribute__((progmem)) static const char str_inf[2][sizeof(str_nan[0])] =
+ {"inf", "INF"};
+ char *d; /* dst */
+ char *s; /* src */
diff --git a/dev-embedded/avr-libc/metadata.xml b/dev-embedded/avr-libc/metadata.xml
new file mode 100644
index 000000000000..2f1e470713ee
--- /dev/null
+++ b/dev-embedded/avr-libc/metadata.xml
@@ -0,0 +1,12 @@
+<?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>
+ <longdescription>
+ This package is part of the avr- binutils, -gcc, -lib toolchain for the Atmel microcontrollers.
+ These ebuilds have been created and submitted by Scott L. Price (dflytech.com).
+ </longdescription>
+</pkgmetadata>