# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ #This allow you to do: ECVS_SERVER="offline" emerge tos if [ -z "${ECVS_SERVER}" ] then ECVS_SERVER="cvs.sourceforge.net:/cvsroot/tinyos" fi ECVS_MODULE="tinyos-1.x/tools/src/ncc" ECVS_BRANCH="tos-1-1-13May2005cvs-release" ECVS_USER="anonymous" ECVS_CVS_COMMAND="cvs -z9" ECVS_CVS_OPTIONS="-dP" inherit cvs DESCRIPTION="A nesC compiler for TinyOS" HOMEPAGE="http://www.tinyos.net/" SRC_URI="" LICENSE="Intel" SLOT="1" KEYWORDS="~x86" IUSE="avr" DEPEND=">=dev-lang/perl-5.8.5-r2 \ >=sys-devel/autoconf-2.53 \ >=sys-devel/automake-1.5 \ >=dev-embedded/nesc-1.2_alpha5" RDEPEND=">=dev-embedded/nesc-1.2_alpha5 \ >=dev-lang/perl-5.8.5-r2 avr? ( >=cross-avr/binutils-2.14 \ >=cross-avr/gcc-3.3-r1 \ >=cross-avr/avr-libc-1.0.2-r1 )" S="${WORKDIR}/tinyos-1.x/tools/src/ncc" pkg_setup() { einfo "If you have already downloaded this package from the cvs" einfo "or if you have just emerged tos, you can save a lot of time" einfo "using the following command:" einfo "ECVS_SERVER=\"offline\" emerge ncc" } src_compile() { cd ${S} ./Bootstrap || die "Bootstrap failed" econf || die "econf failed" emake || die "emake failed" } src_install() { cd ${S} einstall || die "einstall failed" }