ChangeLog

# ChangeLog for dev-tinyos/tos
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-tinyos/tos/ChangeLog,v 1.5 2007/03/05 22:38:04 sanchan Exp $

05 Mar 2007; Sandro Bonazzola ChangeLog:
Removing myself from metadata.xml as I'm stepping back.

14 Nov 2006; Sandro Bonazzola metadata.xml,
tos-1.1.15-r1.ebuild:
Keywording ~amd64.

09 Aug 2006; Sandro Bonazzola -tos-1.1.15.ebuild,
tos-1.1.15-r1.ebuild:
Removing old ebuilds, moving important messages from einfo to elog.

*tos-1.1.15-r1 (12 Feb 2006)

12 Feb 2006; Sandro Bonazzola +tos-1.1.15-r1.ebuild:
Enabling doc useflag that was blocked by bug #113024 and #98029.
Many thanks to Alexandre Buisse, Raimondo Giammarco, Martin Ehmsen.

*tos-1.1.15 (22 Jan 2006)

22 Jan 2006; Sandro Bonazzola +files/99tinyos,
+files/tos-1.1.15-system-AMStandard-Control.patch, +metadata.xml,
+tos-1.1.15.ebuild:
New ebuild, thanks to Johannes Ballé, Daniel Black, MT, Wouter Horré,
Aurélien Francillon. See bug# 78908 for their contribution.

Manifest

AUX 99tinyos 63 RMD160 8a25f71d7240dc8c5384b6dfa28b5fda2a9105d5 SHA1 97548db2ef5d12c584e0caa9fce34bbb31c2a60c SHA256 57500651175ca472b245e441db770aa29b226391fef19dac4d087492de306009
AUX tos-1.1.15-system-AMStandard-Control.patch 866 RMD160 7c515c0e5ec274dd4721f8035b77cc31c568eb77 SHA1 85c61b91c07eff70ff220d6b0a5937ac1c8b9eb7 SHA256 95469f61a6b80b9153530be33c2275851a33bfbc5e8202473221d71fe6072788
DIST tinyos-1.1.15Dec2005cvs.tar.gz 10273122 RMD160 cddbcf32e53352d04be2eda49852540650e73088 SHA1 98b63826ff85272e43e10fa88db71ba46f0bdbe0 SHA256 78f985eb83293cf10f23013f771c7f5d130f9a240a4dcda02321e10c3b5a341f
EBUILD tos-1.1.15-r1.ebuild 1978 RMD160 42dabc1578fed884be86e07328082f7c9de74c12 SHA1 a1b1feb1259b13ddd156dbf3610a07fd29a60ca2 SHA256 e01e8c986b523501da3b3bde355cc6b3e3844767d224b4c1c689a766b63585f4
MISC ChangeLog 1175 RMD160 35d15a286ec87bfc664004f7b6e7385a3378484b SHA1 400a5e4402f26ecd402ec77959f2017f8a77fd47 SHA256 12c2f6d1a878a2452e0f5069f287981d25140a5e7bf3a61ebe9286b234b9a747
MISC metadata.xml 475 RMD160 6304136f67b8917f6acffbb4a89be076067e7edf SHA1 9ed533e4413b5095b64492c4ba0d14f5666b38da SHA256 b5e0b954ce1d47929a3c138fbcbc21f952febbf009cb1b53dd2fa282489e56bd

files

metadata.xml




dev-embedded

TinyOS is a small operating system written in NesC language for embedded system like wireless sensor.
This package provides the sources of the tos directory of the TinyOS distribution, which contains the core
system, and the doc directory with the TinyOS documentation.

tos-1.1.15-r1.ebuild

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tinyos/tos/tos-1.1.15-r1.ebuild,v 1.4 2007/07/15 02:46:39 mr_bones_ Exp $
inherit eutils

CVS_MONTH="Dec"
CVS_YEAR="2005"
MY_PN="tinyos"
MY_P=${MY_PN}-${PV}${CVS_MONTH}${CVS_YEAR}cvs

DESCRIPTION="TinyOS: an open-source OS designed for wireless embedded sensor networks"
HOMEPAGE="http://www.tinyos.net/"
SRC_URI="http://www.tinyos.net/dist-1.1.0/tinyos/source/${MY_P}.tar.gz"
LICENSE="Intel"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="doc"
DEPEND="doc? ( sys-devel/m4
>=virtual/tetex-3.0_p1-r2
dev-tex/latex2html )"
RDEPEND=""

#Required to do anything useful. Could not be a RDEPEND since portage try to emerge nesc before tos.
PDEPEND="dev-tinyos/nesc"

S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/tos-1.1.15-system-AMStandard-Control.patch
sed -i -e "s:psfig:epsfig:" ${S}/doc/schemadocsrc/tinyschema.tex \
|| die "Error while updating tex sources."
einfo "removing CVS dirs"
for i in `find . -name CVS`; do
rm -rf "${i}"
done
}

src_compile() {
if use doc
then
make -C doc && make -C doc install-snapshots.html || die "Make error in tinyos-1.x/doc"
make -C doc/tex || die "Unable to make docs from tex sources"
make -C doc/schemadocsrc || die "Unable to make docs from tex sources"
make -C doc/schemadocsrc tinyschema.html || die "Unable to make docs from tex sources"
else
einfo "Nothing to compile."
fi
}

src_install() {
insinto /usr/src/tinyos-1.x
doins -r tos
chown -R root:0 "${D}"
dodoc ChangeLog
if use doc
then
dohtml -A pdf,gif,html -r doc/*
dodoc doc/*.txt
fi
doenvd ${FILESDIR}/99tinyos
}

pkg_postinst() {
elog "If you want to use TinyOS on real hardware you need a cross compiler."
elog "You should emerge sys-devel/crossdev and compile any toolchain you need"
elog "Example: for Mica2 and Mica2 Dot: crossdev --target avr"
ebeep 5
epause 5
}