summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-09-12 14:10:01 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-09-12 14:10:01 +0000
commitd81abbdd1aceda41066aaa78bb48f2fcff91e946 (patch)
treeed439f0434a1dddf4d55b32e54e5a4bbf63743c1 /dev-embedded/avr-libc
parentMark 1.4.1 stable on alpha (diff)
downloadgentoo-2-d81abbdd1aceda41066aaa78bb48f2fcff91e946.tar.gz
gentoo-2-d81abbdd1aceda41066aaa78bb48f2fcff91e946.tar.bz2
gentoo-2-d81abbdd1aceda41066aaa78bb48f2fcff91e946.zip
Use econf instead of calling ./configure directly, install man pages and optionally user manual.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'dev-embedded/avr-libc')
-rw-r--r--dev-embedded/avr-libc/Manifest18
-rw-r--r--dev-embedded/avr-libc/avr-libc-1.2.5-r1.ebuild60
-rw-r--r--dev-embedded/avr-libc/files/digest-avr-libc-1.2.5-r13
-rw-r--r--dev-embedded/avr-libc/metadata.xml5
4 files changed, 73 insertions, 13 deletions
diff --git a/dev-embedded/avr-libc/Manifest b/dev-embedded/avr-libc/Manifest
index b0076a3d0079..d397c7bf780e 100644
--- a/dev-embedded/avr-libc/Manifest
+++ b/dev-embedded/avr-libc/Manifest
@@ -1,17 +1,9 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 08b590b8ab0701c144d40f77ab64ef39 avr-libc-1.2.5.ebuild 1106
-MD5 d05677e7bc0cae2e33f6a6736b9aca03 metadata.xml 486
+MD5 a0e61ee997ef82614871c92233471dd4 avr-libc-1.2.5-r1.ebuild 1502
MD5 4286f0a7edd4a06a4d296a3cd54fdda4 avr-libc-1.2.3.ebuild 1006
+MD5 08b590b8ab0701c144d40f77ab64ef39 avr-libc-1.2.5.ebuild 1106
MD5 73b858860a631c387d539022f06ad8f4 ChangeLog 1858
+MD5 344ed7ef46ebb29e928c6f475d8daca0 metadata.xml 585
+MD5 f7663133f4544fe22f702b8bce716c3e files/digest-avr-libc-1.2.5-r1 221
MD5 ee96360211c9e70e81677b740b1b139a files/digest-avr-libc-1.2.3 67
-MD5 a171e49ae4824538fe554c27b30d5fd0 files/avr-libc-macros.patch 497
MD5 d42ca83e3a453900cd76b5b9d500fd65 files/digest-avr-libc-1.2.5 67
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2 (GNU/Linux)
-
-iD8DBQFC+8eQgIKl8Uu19MoRAnkaAJ9oF7qYeOTXvfzQOB2HYkUuTQDOSACfSnbc
-D2bQ9MHfPcSIZu2u47HrKXs=
-=pmWN
------END PGP SIGNATURE-----
+MD5 a171e49ae4824538fe554c27b30d5fd0 files/avr-libc-macros.patch 497
diff --git a/dev-embedded/avr-libc/avr-libc-1.2.5-r1.ebuild b/dev-embedded/avr-libc/avr-libc-1.2.5-r1.ebuild
new file mode 100644
index 000000000000..ab31da270866
--- /dev/null
+++ b/dev-embedded/avr-libc/avr-libc-1.2.5-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/avr-libc/avr-libc-1.2.5-r1.ebuild,v 1.1 2005/09/12 14:10:01 brix Exp $
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="Libc for the AVR microcontroller architecture"
+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="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+
+IUSE="doc nls"
+DEPEND=">=sys-devel/crossdev-0.9.1"
+[[ ${CATEGORY/cross-} != ${CATEGORY} ]] \
+ && RDEPEND="!dev-embedded/avr-libc" \
+ || RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-macros.patch
+}
+
+src_compile() {
+ export AS=avr-as AR=avr-ar RANLIB=avr-ranlib CC=avr-gcc ABI=retarded
+
+ strip-flags
+ strip-unsupported-flags
+
+ mkdir obj-avr
+ cd "${S}"/obj-avr
+
+ ECONF_SOURCE="${S}" CHOST="avr" CTARGET="avr" econf \
+ $(use_enable nls) \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ dodoc AUTHORS ChangeLog* NEWS README
+
+ cd "${S}"/obj-avr
+ make DESTDIR="${D}" install || die "make install failed"
+
+ # 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}"/man3/*
+ prepman /usr/share/doc/${PF}
+
+ use doc && dohtml "${WORKDIR}"/${PN}-user-manual-${PV}/*
+}
diff --git a/dev-embedded/avr-libc/files/digest-avr-libc-1.2.5-r1 b/dev-embedded/avr-libc/files/digest-avr-libc-1.2.5-r1
new file mode 100644
index 000000000000..255950976f47
--- /dev/null
+++ b/dev-embedded/avr-libc/files/digest-avr-libc-1.2.5-r1
@@ -0,0 +1,3 @@
+MD5 b335df54d54ad47570f3e1e6794b4532 avr-libc-1.2.5.tar.bz2 319622
+MD5 09b6fda396ebe428787c9e037ea923a4 avr-libc-manpages-1.2.5.tar.bz2 81548
+MD5 f8cbe7fd5c86ff63a3abb8cc787fc3b1 avr-libc-user-manual-1.2.5.tar.bz2 110973
diff --git a/dev-embedded/avr-libc/metadata.xml b/dev-embedded/avr-libc/metadata.xml
index 5e5c878361bf..30bb01d590e8 100644
--- a/dev-embedded/avr-libc/metadata.xml
+++ b/dev-embedded/avr-libc/metadata.xml
@@ -9,6 +9,11 @@
<name>Daniel Black</name>
</maintainer>
+ <maintainer>
+ <email>brix@gentoo.org</email>
+ <name>Henrik Brix Andersen</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).