# 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/CC1000" ECVS_BRANCH="tos-1-1-14Jul2005cvs-release" ECVS_USER="anonymous" ECVS_CVS_COMMAND="cvs -z9" ECVS_CVS_OPTIONS="-dP" inherit cvs DESCRIPTION="Channelgen verify the channel for CC1000Control, and generate \ a C-code preset-table entry for a given frequency" HOMEPAGE="http://www.tinyos.net/" SRC_URI="" LICENSE="Intel" SLOT="1" KEYWORDS="~x86" IUSE="doc" DEPEND="sys-devel/make \ sys-devel/gcc" #This is a source only library. It has no runtime. RDEPEND="" S=${WORKDIR}/tinyos-1.x/tools/src/CC1000 pkg_setup() { einfo "If you have already downloaded this package from the cvs" einfo "You can save a lot of time using the following command:" einfo "ECVS_SERVER=\"offline\" emerge channelgen" } src_compile() { cd ${S} emake || die "emake failed" } src_install() { cd ${S} dodir /usr/bin make prefix=${D}/usr install || die "install failed" }