# 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/uisp" ECVS_BRANCH="tos-1-1-14Jul2005cvs-release" ECVS_USER="anonymous" ECVS_CVS_COMMAND="cvs -z9" ECVS_CVS_OPTIONS="-dP" inherit cvs DESCRIPTION="The TinyOS uisp, a tool for AVR which can interface to in-system programmers" HOMEPAGE="http://www.tinyos.net/" SRC_URI="" LICENSE="Intel" SLOT="1" KEYWORDS="~x86" IUSE="" DEPEND="sys-apps/gawk sys-devel/gcc !dev-embedded/uisp" RDEPEND="" S="${WORKDIR}/tinyos-1.x/tools/src/uisp" 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-uisp" 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() { econf || die "configure failed" emake || die "make failed" } src_install() { emake DESTDIR=${D} install || die "install failed" dodoc doc/* prepalldocs }