diff options
Diffstat (limited to 'dev-tinyos')
-rw-r--r-- | dev-tinyos/tos-scripts/ChangeLog | 10 | ||||
-rw-r--r-- | dev-tinyos/tos-scripts/Manifest | 9 | ||||
-rw-r--r-- | dev-tinyos/tos-scripts/files/digest-tos-scripts-1.1.15 | 3 | ||||
-rw-r--r-- | dev-tinyos/tos-scripts/metadata.xml | 8 | ||||
-rw-r--r-- | dev-tinyos/tos-scripts/tos-scripts-1.1.15.ebuild | 106 |
5 files changed, 136 insertions, 0 deletions
diff --git a/dev-tinyos/tos-scripts/ChangeLog b/dev-tinyos/tos-scripts/ChangeLog new file mode 100644 index 000000000000..1d2cf38d748e --- /dev/null +++ b/dev-tinyos/tos-scripts/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-tinyos/tos-scripts +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tinyos/tos-scripts/ChangeLog,v 1.1 2006/02/12 17:52:21 sanchan Exp $ + +*tos-scripts-1.1.15 (12 Feb 2006) + + 12 Feb 2006; Sandro Bonazzola <sanchan@gentoo.org> +metadata.xml, + +tos-scripts-1.1.15.ebuild: + New ebuild, close bug #101663. Thanks to Aurélien Francillon. + diff --git a/dev-tinyos/tos-scripts/Manifest b/dev-tinyos/tos-scripts/Manifest new file mode 100644 index 000000000000..5be7a6a6f491 --- /dev/null +++ b/dev-tinyos/tos-scripts/Manifest @@ -0,0 +1,9 @@ +MD5 ee3e227f1140637c0a2902237487307a files/digest-tos-scripts-1.1.15 277 +RMD160 a1216e8d4d893cb0269dc46144906b0fcfd86148 files/digest-tos-scripts-1.1.15 277 +SHA256 283d09d9ff408b822f0e756457cbfe2c9c9bfaf6456e0c912375245ef978ac5b files/digest-tos-scripts-1.1.15 277 +MD5 3a58fa6647ba829aae8377165129480e metadata.xml 228 +RMD160 422142af30c07b83b0f15244a5b2cf2568c132a3 metadata.xml 228 +SHA256 730540c3fad44d91d51566db3eaa8e4de6291633c1a58831ae66a962ec272ed0 metadata.xml 228 +MD5 05b1e2c8ec059b0b71fcf8b222c8e174 tos-scripts-1.1.15.ebuild 3139 +RMD160 7fa88adb5e2c64a1a15790c4bfc64b73ce604e01 tos-scripts-1.1.15.ebuild 3139 +SHA256 2e966ac3210ed678287f1d37c1a350afd6c3a6d5869cafc5714dcffb040f9b86 tos-scripts-1.1.15.ebuild 3139 diff --git a/dev-tinyos/tos-scripts/files/digest-tos-scripts-1.1.15 b/dev-tinyos/tos-scripts/files/digest-tos-scripts-1.1.15 new file mode 100644 index 000000000000..a4d5cf882379 --- /dev/null +++ b/dev-tinyos/tos-scripts/files/digest-tos-scripts-1.1.15 @@ -0,0 +1,3 @@ +MD5 4e9535229eab02ee1f198b244c04bcd6 tinyos-1.1.15Dec2005cvs.tar.gz 10273122 +RMD160 cddbcf32e53352d04be2eda49852540650e73088 tinyos-1.1.15Dec2005cvs.tar.gz 10273122 +SHA256 78f985eb83293cf10f23013f771c7f5d130f9a240a4dcda02321e10c3b5a341f tinyos-1.1.15Dec2005cvs.tar.gz 10273122 diff --git a/dev-tinyos/tos-scripts/metadata.xml b/dev-tinyos/tos-scripts/metadata.xml new file mode 100644 index 000000000000..e99a5ce24029 --- /dev/null +++ b/dev-tinyos/tos-scripts/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>dev-embedded</herd> +<maintainer> + <email>sanchan@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/dev-tinyos/tos-scripts/tos-scripts-1.1.15.ebuild b/dev-tinyos/tos-scripts/tos-scripts-1.1.15.ebuild new file mode 100644 index 000000000000..3910bcc3c7c2 --- /dev/null +++ b/dev-tinyos/tos-scripts/tos-scripts-1.1.15.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tinyos/tos-scripts/tos-scripts-1.1.15.ebuild,v 1.1 2006/02/12 17:52:21 sanchan Exp $ + +inherit eutils java-utils + +CVS_MONTH="Dec" +CVS_YEAR="2005" +MY_P="tinyos" + +DESCRIPTION="The TinyOS Make System" +HOMEPAGE="http://www.tinyos.net/" +SRC_URI="http://www.tinyos.net/dist-1.1.0/tinyos/source/${MY_P}-${PV}${CVS_MONTH}${CVS_YEAR}cvs.tar.gz" +LICENSE="Intel" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +DEPEND=">=dev-tinyos/tos-1.1.15" +RDEPEND=">=dev-tinyos/ncc-1.1.15 + >=dev-java/ibm-jdk-bin-1.4.0" + +S=${WORKDIR}/${MY_P}-${PV}${CVS_MONTH}${CVS_YEAR}cvs/tools + +RESTRICT=stricter + +pkg_setup() { + if [ -z "${TOSROOT}" ] + then + # best to make an assumption + export TOSDIR=/usr/src/tinyos-1.x/tos + fi + + if [ ! -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-tinyos/tos-1.1.15" + eerror "or by exporting TOSDIR=\"path to your tinyos dir\"" + die "Couldn't find a valid TinyOS home" + else + einfo "Building tos-scripts for ${TOSROOT}" + fi + + if ! built_with_use dev-java/ibm-jdk-bin javacomm ; then + eerror "javacomm is required! Add javacomm to your use flag then re-emerge ibm-jdk-bin." + eerror "Then re-emerge this package." + die "setup failed due to missing prerequisite: javacomm" + fi + + java-utils_setup-vm + java-utils_ensure-vm-version-ge 1 4 0 + local vendor=`java-utils_get-vm-vendor` + einfo "${vendor} vm detected." + if ! [[ ${vendor} = "ibm-jdk-bin" ]]; then + eerror "ibm-jdk-bin is required!" + eerror "Please use java-config -S to set your system vm to a ibm-jdk." + die "setup failed due to missing prerequisite: ibm-jdk-bin" + fi +} + +src_compile() { + einfo "Nothing to compile" +} + +src_install() { + local EXES="mote-key toscheck tinyos-serial-configure set-mote-id locate-jre" + local TSCRIPT=${TOSROOT}/tools/scripts + local PTOSSIM=${TSCRIPT}/PowerTOSSIM + local CODEGEN=${TSCRIPT}/codeGeneration + insinto ${TOSROOT}/tools + doins -r scripts + for i in bb2asm.pl bb2cycle.pl cilly.asm.exe compile.pl counter.ml cpuprof.py fixnames.pl mypp.pl postprocess.py + do + fperms 755 ${PTOSSIM}/${i} + done + for i in generateHood.pl generateNescDecls.pl generateRegistry.pl generateRpc.pl + do + fperms 755 ${CODEGEN}/${i} + done + for i in ${EXES} write_tos_image taskCount.pl prepare-ChangeLog.pl ident_flags + do + fperms 755 ${TSCRIPT}/${i} + done + cd scripts + into /usr + dobin ${EXES} + newdoc PowerTOSSIM/README README.PowerTOSSIM + newdoc codeGeneration/README README.codeGeneration +} + +pkg_postinst() { + einfo "In order to automatically use codeGeneration emerge tos-make," + einfo "add in your Makefile something like:" + einfo "TOSMAKE_PATH += \${TOSROOT}/tools/scripts/codeGeneration" + einfo "and add registy, hood or rpc to your make target eg.: make pc hood" + + ewarn "If you want to use TinyOS on real hardware you need a cross compiler." + ewarn "You should emerge sys-devel/crossdev and compile any toolchain you need" + ewarn "Example: for Mica2 and Mica2 Dot: crossdev --target avr" + ewarn "You also need >=dev-tinyos/tos-uisp-1.1.14 in order to flash your mote." + + ebeep 5 + epause 5 +} + |