diff options
author | Sandro Bonazzola <sanchan@gentoo.org> | 2006-09-11 20:16:36 +0000 |
---|---|---|
committer | Sandro Bonazzola <sanchan@gentoo.org> | 2006-09-11 20:16:36 +0000 |
commit | b57fdc3d33466231667e084c7ab68ff2b65ffdbd (patch) | |
tree | 17607ae1d0104233320f61fc08d8c6a4a6151428 /dev-tinyos | |
parent | new version, add doc and examples use flags. (diff) | |
download | historical-b57fdc3d33466231667e084c7ab68ff2b65ffdbd.tar.gz historical-b57fdc3d33466231667e084c7ab68ff2b65ffdbd.tar.bz2 historical-b57fdc3d33466231667e084c7ab68ff2b65ffdbd.zip |
Ebuild bump, moving to java generation 2.
Package-Manager: portage-2.1.1
Diffstat (limited to 'dev-tinyos')
-rw-r--r-- | dev-tinyos/tos-scripts/ChangeLog | 8 | ||||
-rw-r--r-- | dev-tinyos/tos-scripts/files/digest-tos-scripts-1.1.15-r1 | 3 | ||||
-rw-r--r-- | dev-tinyos/tos-scripts/tos-scripts-1.1.15-r1.ebuild | 104 |
3 files changed, 114 insertions, 1 deletions
diff --git a/dev-tinyos/tos-scripts/ChangeLog b/dev-tinyos/tos-scripts/ChangeLog index 6c0bdaee57f5..07731f20d4bb 100644 --- a/dev-tinyos/tos-scripts/ChangeLog +++ b/dev-tinyos/tos-scripts/ChangeLog @@ -1,6 +1,12 @@ # 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.3 2006/08/09 19:46:17 sanchan Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-tinyos/tos-scripts/ChangeLog,v 1.4 2006/09/11 20:16:36 sanchan Exp $ + +*tos-scripts-1.1.15-r1 (11 Sep 2006) + + 11 Sep 2006; Sandro Bonazzola <sanchan@gentoo.org> + -tos-scripts-1.1.15.ebuild, +tos-scripts-1.1.15-r1.ebuild: + Ebuild bump, moving to java generation 2. 09 Aug 2006; Sandro Bonazzola <sanchan@gentoo.org> tos-scripts-1.1.15.ebuild: diff --git a/dev-tinyos/tos-scripts/files/digest-tos-scripts-1.1.15-r1 b/dev-tinyos/tos-scripts/files/digest-tos-scripts-1.1.15-r1 new file mode 100644 index 000000000000..a4d5cf882379 --- /dev/null +++ b/dev-tinyos/tos-scripts/files/digest-tos-scripts-1.1.15-r1 @@ -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/tos-scripts-1.1.15-r1.ebuild b/dev-tinyos/tos-scripts/tos-scripts-1.1.15-r1.ebuild new file mode 100644 index 000000000000..9f990489f518 --- /dev/null +++ b/dev-tinyos/tos-scripts/tos-scripts-1.1.15-r1.ebuild @@ -0,0 +1,104 @@ +# 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-r1.ebuild,v 1.1 2006/09/11 20:16:36 sanchan Exp $ + +inherit eutils java-pkg-2 + +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 + +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-pkg-2_pkg_setup + java-pkg_ensure-vm-version-ge 1 4 0 + local vendor=`java-pkg_get-vm-vendor` + einfo "${vendor} vm detected." + if ! [[ ${vendor} = "ibm" ]]; 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() { + elog "In order to automatically use codeGeneration emerge tos-make," + elog "add in your Makefile something like:" + elog "TOSMAKE_PATH += \${TOSROOT}/tools/scripts/codeGeneration" + elog "and add registy, hood or rpc to your make target eg.: make pc hood" + + 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" + elog "You also need >=dev-tinyos/tos-uisp-1.1.14 in order to flash your mote." + + ebeep 5 + epause 5 +} + |