diff options
author | 2006-02-12 16:55:04 +0000 | |
---|---|---|
committer | 2006-02-12 16:55:04 +0000 | |
commit | 6d39b74663651363460343ec875299b167243281 (patch) | |
tree | 5dd5ababa78a4b8b08720bc04e2d13fa3f5ad099 /dev-tinyos/tos/tos-1.1.15-r1.ebuild | |
parent | 1.8.1 version bump. (diff) | |
download | historical-6d39b74663651363460343ec875299b167243281.tar.gz historical-6d39b74663651363460343ec875299b167243281.tar.bz2 historical-6d39b74663651363460343ec875299b167243281.zip |
Enabling doc useflag that was blocked by bug #113024 and #98029.
Package-Manager: portage-2.1_pre4-r1
Diffstat (limited to 'dev-tinyos/tos/tos-1.1.15-r1.ebuild')
-rw-r--r-- | dev-tinyos/tos/tos-1.1.15-r1.ebuild | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/dev-tinyos/tos/tos-1.1.15-r1.ebuild b/dev-tinyos/tos/tos-1.1.15-r1.ebuild new file mode 100644 index 000000000000..841cf67207fe --- /dev/null +++ b/dev-tinyos/tos/tos-1.1.15-r1.ebuild @@ -0,0 +1,71 @@ +# 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.1 2006/02/12 16:55:04 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: 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" +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() { + einfo "If you want to use TinyOS on real hardware you need a cross compiler." + einfo "You should emerge sys-devel/crossdev and compile any toolchain you need" + einfo "Example: for Mica2 and Mica2 Dot: crossdev --target avr" + ebeep 5 + epause 5 +} + |