From: | "Daniel Black (dragonheart)" <dragonheart@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-embedded/avr-libc: avr-libc-1.4.8.ebuild avr-libc-1.4.5.ebuild |
Date: | Wed, 02 Apr 2008 08:26:34 |
Message-Id: | E1JgyIh-0005Zo-Nf@stork.gentoo.org |
1 | dragonheart 08/04/02 08:26:31 |
2 | |
3 | Added: avr-libc-1.4.8.ebuild |
4 | Removed: avr-libc-1.4.5.ebuild |
5 | Log: |
6 | version bump as per bug #208030 thanks to Aurelien |
7 | (Portage version: 2.1.4.4) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-embedded/avr-libc/avr-libc-1.4.8.ebuild |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-embedded/avr-libc/avr-libc-1.4.8.ebuild?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-embedded/avr-libc/avr-libc-1.4.8.ebuild?rev=1.1&content-type=text/plain |
14 | |
15 | Index: avr-libc-1.4.8.ebuild |
16 | =================================================================== |
17 | # Copyright 1999-2008 Gentoo Foundation |
18 | # Distributed under the terms of the GNU General Public License v2 |
19 | # $Header: /var/cvsroot/gentoo-x86/dev-embedded/avr-libc/avr-libc-1.4.8.ebuild,v 1.1 2008/04/02 08:26:31 dragonheart Exp $ |
20 | |
21 | CHOST="avr" |
22 | CTARGET="avr" |
23 | |
24 | inherit flag-o-matic |
25 | |
26 | DOCS_PV="1.4.7" |
27 | |
28 | DESCRIPTION="C library for Atmel AVR microcontrollers" |
29 | HOMEPAGE="http://www.nongnu.org/avr-libc/" |
30 | SRC_URI="http://savannah.nongnu.org/download/avr-libc/${P}.tar.bz2 |
31 | http://savannah.nongnu.org/download/avr-libc/${PN}-manpages-${DOCS_PV}.tar.bz2 |
32 | doc? ( http://savannah.nongnu.org/download/avr-libc/${PN}-user-manual-${DOCS_PV}.tar.bz2 )" |
33 | |
34 | LICENSE="BSD" |
35 | SLOT="0" |
36 | KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
37 | IUSE="doc nls" |
38 | |
39 | DEPEND=">=sys-devel/crossdev-0.9.1" |
40 | [[ ${CATEGORY/cross-} != ${CATEGORY} ]] \ |
41 | && RDEPEND="!dev-embedded/avr-libc" \ |
42 | || RDEPEND="" |
43 | |
44 | pkg_setup() { |
45 | # check for avr-gcc, bug #134738 |
46 | ebegin "Checking for avr-gcc" |
47 | if type -p avr-gcc > /dev/null ; then |
48 | eend 0 |
49 | else |
50 | eend 1 |
51 | |
52 | eerror |
53 | eerror "Failed to locate 'avr-gcc' in \$PATH. You can install an AVR toolchain using:" |
54 | eerror " $ crossdev -t avr" |
55 | eerror |
56 | die "AVR toolchain not found" |
57 | fi |
58 | } |
59 | |
60 | src_compile() { |
61 | strip-flags |
62 | strip-unsupported-flags |
63 | |
64 | mkdir obj-avr |
65 | cd "${S}"/obj-avr |
66 | |
67 | ECONF_SOURCE="${S}" \ |
68 | econf \ |
69 | $(use_enable nls) \ |
70 | || die "econf failed" |
71 | |
72 | emake || die "emake failed" |
73 | } |
74 | |
75 | src_install() { |
76 | cd "${S}"/obj-avr |
77 | make DESTDIR="${D}" install || die "make install failed" |
78 | |
79 | cd "${S}" |
80 | dodoc AUTHORS ChangeLog* NEWS README |
81 | |
82 | # man pages can not go into standard locations |
83 | # as they would then overwrite libc man pages |
84 | dosed "s:\$(VERSION):${PVR}:" /usr/bin/avr-man |
85 | insinto /usr/share/doc/${PF}/man/man3 |
86 | doins "${WORKDIR}"/man/man3/* |
87 | prepman /usr/share/doc/${PF} |
88 | |
89 | use doc && dohtml "${WORKDIR}"/${PN}-user-manual-${DOCS_PV}/* |
90 | } |
91 | |
92 | |
93 | |
94 | -- |
95 | gentoo-commits@l.g.o mailing list |