# 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/scripts" 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.14" #hc08 RDEPEND unknown at this moment. hc08 unsupported. RDEPEND="" 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-scripts" 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() { cd ${S}/scripts emake || die "emake failed" } src_install() { cd ${S}/scripts einstall||die "einstall failed" cd ${S} dodir ${TOSROOT}/tools mv scripts ${D}${TOSROOT}/tools }