summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandro Bonazzola <sanchan@gentoo.org>2006-02-12 17:00:32 +0000
committerSandro Bonazzola <sanchan@gentoo.org>2006-02-12 17:00:32 +0000
commit60b6a685f345fe02e49b6050fb023b8c03786040 (patch)
treee798899ede0e387ab78ae4a93bca9896a3b188e9 /dev-tinyos/tos-getenv
parentEnabling doc useflag that was blocked by bug #113024 and #98029. (diff)
downloadhistorical-60b6a685f345fe02e49b6050fb023b8c03786040.tar.gz
historical-60b6a685f345fe02e49b6050fb023b8c03786040.tar.bz2
historical-60b6a685f345fe02e49b6050fb023b8c03786040.zip
new ebuild, close bug #102904
Package-Manager: portage-2.1_pre4-r1
Diffstat (limited to 'dev-tinyos/tos-getenv')
-rw-r--r--dev-tinyos/tos-getenv/ChangeLog11
-rw-r--r--dev-tinyos/tos-getenv/Manifest22
-rw-r--r--dev-tinyos/tos-getenv/files/digest-tos-getenv-1.1.153
-rw-r--r--dev-tinyos/tos-getenv/metadata.xml8
-rw-r--r--dev-tinyos/tos-getenv/tos-getenv-1.1.15.ebuild56
5 files changed, 100 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..86050ccd36d2
--- /dev/null
+++ b/dev-tinyos/tos-getenv/Manifest
@@ -0,0 +1,22 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 ebe982992628a9e8fb3d99e06bf2a2ff ChangeLog 438
+RMD160 f41cbcf768e42aa8bf3d6de835eb5ba85152cb90 ChangeLog 438
+SHA256 18a9469dc54d139a429d1d5851758a7b8955dfddcd0e334775d103a8a732bcc6 ChangeLog 438
+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 31f309560c82414c21db61cca151a54a tos-getenv-1.1.15.ebuild 1865
+RMD160 5fc26df88dec253f38ef840695afd704b34c74af tos-getenv-1.1.15.ebuild 1865
+SHA256 da50e9b5315fb740f052cfebe026d8f9c94fee2f7d5edd4f3b0816446e2a8115 tos-getenv-1.1.15.ebuild 1865
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.2 (GNU/Linux)
+
+iD8DBQFD72lD1c24p4LpXH8RAsSlAJ9g+puC/4gZfAa4YazmscXwgq9aXwCeLJX7
+gPI3owUDqrmVD8zLqPxzzQA=
+=blbK
+-----END PGP SIGNATURE-----
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
+}