[yocto] [meta-oracle-java][PATCH 5/5] oracle-jse-jre-x86-64: add custom fetch method

Maxin B. John maxin.john at enea.com
Fri Aug 8 09:39:51 PDT 2014


Provide a custom fetch method to avoid manual downloading of binaries.

Signed-off-by: Maxin B. John <maxin.john at enea.com>
---
 recipes-devtools/oracle-java/oracle-jse-jre-x86-64_1.7.0.bb | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/recipes-devtools/oracle-java/oracle-jse-jre-x86-64_1.7.0.bb b/recipes-devtools/oracle-java/oracle-jse-jre-x86-64_1.7.0.bb
index 4058d23..cdedaf1 100644
--- a/recipes-devtools/oracle-java/oracle-jse-jre-x86-64_1.7.0.bb
+++ b/recipes-devtools/oracle-java/oracle-jse-jre-x86-64_1.7.0.bb
@@ -1,4 +1,3 @@
-PR = "r0"
 PV_UPDATE = "25"
 
 require oracle-jse-jre.inc
@@ -7,3 +6,12 @@ SRC_URI = "http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jre-7u25-linux-x
 
 SRC_URI[md5sum] = "743ee0ebf73ce428c912866d84e374e0"
 SRC_URI[sha256sum] = "3c4496316fb413d5ab0590e9971676a521b9a600b3ceaac311f04c18c98a98c0"
+
+RDEPENDS_${PN} = "libxml2 libx11 glib-2.0 alsa-lib libxext libxtst libxrender \
+                  fontconfig libxxf86vm"
+
+do_fetch () {
+  wget  --header=Cookie:oraclelicense=a ${SRC_URI} -O ${DL_DIR}/jre-7u25-linux-x64.tar.gz
+}
+
+COMPATIBLE_HOST = '(x86_64.*)-(linux)'
-- 
1.9.1




More information about the yocto mailing list