# 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/make" ECVS_BRANCH="tos-1-1-14Jul2005cvs-release" ECVS_USER="anonymous" ECVS_CVS_COMMAND="cvs -z9" ECVS_CVS_OPTIONS="-dP" inherit cvs DESCRIPTION="The TinyOS Make System" HOMEPAGE="http://www.tinyos.net/" SRC_URI="" LICENSE="Intel" SLOT="1" KEYWORDS="~x86" IUSE="" DEPEND=">=dev-embedded/tos-1.1.13" #hc08 RDEPEND unknown at this moment. hc08 unsupported. RDEPEND=">=sys-devel/make-3.80 \ >=dev-embedded/ncc-1.1.13 \ =dev-embedded/tos-scripts-1.1.14 avr? ( >=cross-avr/binutils-2.14 \ >=cross-avr/gcc-3.3-r1 \ >=cross-avr/avr-libc-1.0.2-r1 >=dev-embedded/tos-uisp-1.1.14 )" S="${WORKDIR}/tinyos-1.x/tools" 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 tos-make" if [ -z "${TOSROOT}" ] || [ ! -d "${TOSROOT}" ] then eerror "In order to compile nesc you have to set the" eerror "\$TOSROOT environment properly." eerror "" eerror "You can achieve this by emerging >=dev-embedded/tos-1.1.13" eerror "or by exporting TOSROOT=\"path to your tinyos dir\"" die "Couldn't find a valid TinyOS home" fi } src_compile() { einfo "Nothing to compile" } src_install() { cd ${S}/make dodoc README cd ${S} dodir ${TOSROOT}/tools mv make ${D}${TOSROOT}/tools }