diff options
author | Sandro Bonazzola <sanchan@gentoo.org> | 2006-02-12 17:00:32 +0000 |
---|---|---|
committer | Sandro Bonazzola <sanchan@gentoo.org> | 2006-02-12 17:00:32 +0000 |
commit | 1b5d8f027f7bbe1658b1cdb7e7d7c01152566a1f (patch) | |
tree | 09799ffc7f30ee9afb902ce529c8abd7a7c7ee4a /dev-tinyos/tos-getenv | |
parent | Enabling doc useflag that was blocked by bug #113024 and #98029. (diff) | |
download | gentoo-2-1b5d8f027f7bbe1658b1cdb7e7d7c01152566a1f.tar.gz gentoo-2-1b5d8f027f7bbe1658b1cdb7e7d7c01152566a1f.tar.bz2 gentoo-2-1b5d8f027f7bbe1658b1cdb7e7d7c01152566a1f.zip |
new ebuild, close bug #102904
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'dev-tinyos/tos-getenv')
-rw-r--r-- | dev-tinyos/tos-getenv/ChangeLog | 11 | ||||
-rw-r--r-- | dev-tinyos/tos-getenv/Manifest | 9 | ||||
-rw-r--r-- | dev-tinyos/tos-getenv/files/digest-tos-getenv-1.1.15 | 3 | ||||
-rw-r--r-- | dev-tinyos/tos-getenv/metadata.xml | 8 | ||||
-rw-r--r-- | dev-tinyos/tos-getenv/tos-getenv-1.1.15.ebuild | 56 |
5 files changed, 87 insertions, 0 deletions
diff --git a/dev-tinyos/tos-getenv/ChangeLog b/dev-tinyos/tos-getenv/ChangeLog new file mode 100644 index 000000000000..241b0b2beae3 --- /dev/null +++ b/dev-tinyos/tos-getenv/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-tinyos/tos-getenv +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tinyos/tos-getenv/ChangeLog,v 1.1 2006/02/12 17:00:32 sanchan Exp $ + +*tos-getenv-1.1.15 (12 Feb 2006) + + 12 Feb 2006; Sandro Bonazzola <sanchan@gentoo.org> +metadata.xml, + +tos-getenv-1.1.15.ebuild: + Initial import, close bug #102904. Many thanks to Aurélien Francillon, Josh + Nichols. + diff --git a/dev-tinyos/tos-getenv/Manifest b/dev-tinyos/tos-getenv/Manifest new file mode 100644 index 000000000000..f202e116be57 --- /dev/null +++ b/dev-tinyos/tos-getenv/Manifest @@ -0,0 +1,9 @@ +MD5 ee3e227f1140637c0a2902237487307a files/digest-tos-getenv-1.1.15 277 +RMD160 a1216e8d4d893cb0269dc46144906b0fcfd86148 files/digest-tos-getenv-1.1.15 277 +SHA256 283d09d9ff408b822f0e756457cbfe2c9c9bfaf6456e0c912375245ef978ac5b files/digest-tos-getenv-1.1.15 277 +MD5 3a58fa6647ba829aae8377165129480e metadata.xml 228 +RMD160 422142af30c07b83b0f15244a5b2cf2568c132a3 metadata.xml 228 +SHA256 730540c3fad44d91d51566db3eaa8e4de6291633c1a58831ae66a962ec272ed0 metadata.xml 228 +MD5 5d451935b9e78b62e14344fa979f1b96 tos-getenv-1.1.15.ebuild 1756 +RMD160 3ee819f13ff28d8db00e668ff9d87f8676584f11 tos-getenv-1.1.15.ebuild 1756 +SHA256 c2609a5d51ae49fd3fd65762e9cf44b1a7c67d872726ac6e1248db565113e8c3 tos-getenv-1.1.15.ebuild 1756 diff --git a/dev-tinyos/tos-getenv/files/digest-tos-getenv-1.1.15 b/dev-tinyos/tos-getenv/files/digest-tos-getenv-1.1.15 new file mode 100644 index 000000000000..a4d5cf882379 --- /dev/null +++ b/dev-tinyos/tos-getenv/files/digest-tos-getenv-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-getenv/metadata.xml b/dev-tinyos/tos-getenv/metadata.xml new file mode 100644 index 000000000000..e99a5ce24029 --- /dev/null +++ b/dev-tinyos/tos-getenv/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-getenv/tos-getenv-1.1.15.ebuild b/dev-tinyos/tos-getenv/tos-getenv-1.1.15.ebuild new file mode 100644 index 000000000000..93410a86ce87 --- /dev/null +++ b/dev-tinyos/tos-getenv/tos-getenv-1.1.15.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tinyos/tos-getenv/tos-getenv-1.1.15.ebuild,v 1.1 2006/02/12 17:00:32 sanchan Exp $ + +CVS_MONTH="Dec" +CVS_YEAR="2005" +MY_P="tinyos" + +inherit eutils java-utils toolchain-funcs + +DESCRIPTION="TinyOS JNI getenv support library" +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" +DEPEND=">=dev-java/ibm-jdk-bin-1.4.0 + dev-java/java-config" +RDEPEND=">=dev-java/ibm-jdk-bin-1.4.0" + +S="${WORKDIR}/${MY_P}-${PV}${CVS_MONTH}${CVS_YEAR}cvs/tools/java/jni" + +pkg_setup() { + 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() { + local JDK=$(java-config -O) + $(tc-getCC) ${CFLAGS} -I${JDK}/include -shared -fpic -Wl,-z,now -o libgetenv.so net_tinyos_util_Env.c || die "Failed compiling libgetenv.so" +} + +src_install() { + # Quoting the Makefile: + # The install rules assume that JNI libraries should be placed in .../jre/bin + # This seems to be true on Windows, and IBM's Linux Java + # It's not true for Sun's Linux Java (but we don't have javax.comm for that, so...) + local JNI="$(java-config -O)/jre" + into ${JNI} + dobin libgetenv.so +} |