diff options
Diffstat (limited to 'dev-tinyos/tos-apps/tos-apps-1.1.15-r1.ebuild')
-rw-r--r-- | dev-tinyos/tos-apps/tos-apps-1.1.15-r1.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/dev-tinyos/tos-apps/tos-apps-1.1.15-r1.ebuild b/dev-tinyos/tos-apps/tos-apps-1.1.15-r1.ebuild new file mode 100644 index 000000000000..77f1cb0f3a59 --- /dev/null +++ b/dev-tinyos/tos-apps/tos-apps-1.1.15-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tinyos/tos-apps/tos-apps-1.1.15-r1.ebuild,v 1.1 2006/09/06 19:57:30 sanchan Exp $ +inherit eutils + +CVS_MONTH="Dec" +CVS_YEAR="2005" +MY_PN="tinyos" +MY_P=${MY_PN}-${PV}${CVS_MONTH}${CVS_YEAR}cvs + +DESCRIPTION="TinyOS apps: TinyOS bundled applications." +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" +IUSE="" +DEPEND=">=dev-tinyos/tos-1.1.15" +RDEPEND=">=dev-tinyos/tos-make-1.1.15" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + if [ -z "${TOSROOT}" ] + then + export TOSROOT=/usr/src/tinyos-1.x + fi + + if [ ! -d "${TOSROOT}" ] + then + eerror "In order to emerge tos-apps 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-apps for ${TOSROOT}" + fi +} + +src_unpack(){ + unpack ${A} + cd ${S} + for i in `find . -name CVS`; do + rm -rf "${i}" + done + epatch ${FILESDIR}/tos-apps-1.1.15-TOSBase-types-conflict-fix.patch +} + +src_compile() { + einfo "Nothing to compile." +} + +src_install() { + insinto ${TOSROOT} + doins -r apps + chown -R root:0 "${D}" +} + +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 +} + |