diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-embedded/avr-libc | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-embedded/avr-libc')
-rw-r--r-- | dev-embedded/avr-libc/Manifest | 14 | ||||
-rw-r--r-- | dev-embedded/avr-libc/avr-libc-1.6.2.ebuild | 74 | ||||
-rw-r--r-- | dev-embedded/avr-libc/avr-libc-1.6.4.ebuild | 74 | ||||
-rw-r--r-- | dev-embedded/avr-libc/avr-libc-1.6.8.ebuild | 73 | ||||
-rw-r--r-- | dev-embedded/avr-libc/avr-libc-1.7.0.ebuild | 69 | ||||
-rw-r--r-- | dev-embedded/avr-libc/avr-libc-1.7.1.ebuild | 75 | ||||
-rw-r--r-- | dev-embedded/avr-libc/avr-libc-1.8.0.ebuild | 76 | ||||
-rw-r--r-- | dev-embedded/avr-libc/files/avr-libc-1.7.1-gcc46.patch | 25 | ||||
-rw-r--r-- | dev-embedded/avr-libc/metadata.xml | 9 |
9 files changed, 489 insertions, 0 deletions
diff --git a/dev-embedded/avr-libc/Manifest b/dev-embedded/avr-libc/Manifest new file mode 100644 index 000000000000..5f7d27ddde1d --- /dev/null +++ b/dev-embedded/avr-libc/Manifest @@ -0,0 +1,14 @@ +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-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-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 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..adfbe9b9e7a7 --- /dev/null +++ b/dev-embedded/avr-libc/avr-libc-1.6.2.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="http://savannah.nongnu.org/download/avr-libc/${P}.tar.bz2 + http://savannah.nongnu.org/download/avr-libc/${PN}-manpages-${DOCS_PV}.tar.bz2 + doc? ( http://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..7a8e1f2972c2 --- /dev/null +++ b/dev-embedded/avr-libc/avr-libc-1.6.4.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="http://savannah.nongnu.org/download/avr-libc/${P}.tar.bz2 + http://savannah.nongnu.org/download/avr-libc/${PN}-manpages-${DOCS_PV}.tar.bz2 + doc? ( http://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..619fedfa72f4 --- /dev/null +++ b/dev-embedded/avr-libc/avr-libc-1.6.8.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="http://savannah.nongnu.org/download/avr-libc/${P}.tar.bz2 + http://savannah.nongnu.org/download/avr-libc/${PN}-manpages-${DOCS_PV}.tar.bz2 + doc? ( http://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..85adec4b512d --- /dev/null +++ b/dev-embedded/avr-libc/avr-libc-1.7.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="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" +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..24f72b21a6bc --- /dev/null +++ b/dev-embedded/avr-libc/avr-libc-1.7.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="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" +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..86bdd5c0cea2 --- /dev/null +++ b/dev-embedded/avr-libc/avr-libc-1.8.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="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" +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..cc92317f8819 --- /dev/null +++ b/dev-embedded/avr-libc/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>dev-embedded</herd> + <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> |