Patchwork [meta-java,2/5] hsqldb: Add recipe

login
register
mail settings
Submitter Khem Raj
Date July 20, 2012, 5:18 a.m.
Message ID <1342761538-19890-2-git-send-email-raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/32675/
State Accepted
Headers show

Comments

Khem Raj - July 20, 2012, 5:18 a.m.
Fixes

ERROR: Nothing PROVIDES 'hsqldb' (but
meta-java/recipes-core/xml-commons/jaxme_0.5.2.bb
DEPENDS on or otherwise requires it)
ERROR: Required build target 'jaxme' has no buildable providers.
M

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 recipes-core/hsqldb/hsqldb_1.8.0.10.bb |   40 ++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 recipes-core/hsqldb/hsqldb_1.8.0.10.bb
Henning Heinold - July 21, 2012, 9:42 a.m.
On Thu, Jul 19, 2012 at 10:18:55PM -0700, Khem Raj wrote:
> Fixes
> 
> ERROR: Nothing PROVIDES 'hsqldb' (but
> meta-java/recipes-core/xml-commons/jaxme_0.5.2.bb
> DEPENDS on or otherwise requires it)
> ERROR: Required build target 'jaxme' has no buildable providers.
> M
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  recipes-core/hsqldb/hsqldb_1.8.0.10.bb |   40 ++++++++++++++++++++++++++++++++
>  1 file changed, 40 insertions(+)
>  create mode 100644 recipes-core/hsqldb/hsqldb_1.8.0.10.bb
> 
> diff --git a/recipes-core/hsqldb/hsqldb_1.8.0.10.bb b/recipes-core/hsqldb/hsqldb_1.8.0.10.bb
> new file mode 100644
> index 0000000..e886ae4
> --- /dev/null
> +++ b/recipes-core/hsqldb/hsqldb_1.8.0.10.bb
> @@ -0,0 +1,40 @@
> +DESCRIPTION = "Lightweight 100% Java SQL Database Engine"
> +# BSD-like
> +LICENSE = "HypersonicSQL"
> +
> +AUTHOR = "HSQLDB Development Group"
> +HOMEPAGE = "http://hsqldb.org"
> +
> +SRC_URI = "${SOURCEFORGE_MIRROR}/hsqldb/hsqldb_1_8_0_10.zip"
> +
> +S = "${WORKDIR}/${PN}"
> +
> +inherit java-library
> +
> +DEPENDS = "fastjar-native servlet2.4"
> +
> +do_compile() {
> +  # Build instructions according to build/buildJDK14.bat
> +        mkdir -p classes
> +
> +        oe_makeclasspath cp -s servlet-api-2.4
> +
> +        javac -sourcepath src -cp $cp -d build `find src -name "*.java" -and -not -wholename "*test*"`
> +
> +        mkdir -p classes/org/hsqldb/util
> +        mkdir -p classes/org/hsqldb/util/sqltool
> +        mkdir -p classes/org/hsqldb/resources
> +
> +        cp src/org/hsqldb/util/*.gif classes/org/hsqldb/util/
> +        cp src/org/hsqldb/util/*.png classes/org/hsqldb/util/
> +        cp src/org/hsqldb/util/*.properties classes/org/hsqldb/util/
> +        cp src/org/hsqldb/util/sqltool/*.text classes/org/hsqldb/util/sqltool/
> +
> +        cp src/org/hsqldb/resources/*.properties classes/org/hsqldb/resources
> +
> +  fastjar -C classes -c -f ${JARFILENAME} .
> +}
> +
> +SRC_URI[md5sum] = "17410483b5b5f267aa18b7e00b65e6e0"
> +SRC_URI[sha256sum] = "d30b13f4ba2e3b6a2d4f020c0dee0a9fb9fc6fbcc2d561f36b78da4bf3802370"
> +
> -- 
> 1.7.9.5
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Thanks,

patch is applied to master.

Bye Henning

Patch

diff --git a/recipes-core/hsqldb/hsqldb_1.8.0.10.bb b/recipes-core/hsqldb/hsqldb_1.8.0.10.bb
new file mode 100644
index 0000000..e886ae4
--- /dev/null
+++ b/recipes-core/hsqldb/hsqldb_1.8.0.10.bb
@@ -0,0 +1,40 @@ 
+DESCRIPTION = "Lightweight 100% Java SQL Database Engine"
+# BSD-like
+LICENSE = "HypersonicSQL"
+
+AUTHOR = "HSQLDB Development Group"
+HOMEPAGE = "http://hsqldb.org"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/hsqldb/hsqldb_1_8_0_10.zip"
+
+S = "${WORKDIR}/${PN}"
+
+inherit java-library
+
+DEPENDS = "fastjar-native servlet2.4"
+
+do_compile() {
+  # Build instructions according to build/buildJDK14.bat
+        mkdir -p classes
+
+        oe_makeclasspath cp -s servlet-api-2.4
+
+        javac -sourcepath src -cp $cp -d build `find src -name "*.java" -and -not -wholename "*test*"`
+
+        mkdir -p classes/org/hsqldb/util
+        mkdir -p classes/org/hsqldb/util/sqltool
+        mkdir -p classes/org/hsqldb/resources
+
+        cp src/org/hsqldb/util/*.gif classes/org/hsqldb/util/
+        cp src/org/hsqldb/util/*.png classes/org/hsqldb/util/
+        cp src/org/hsqldb/util/*.properties classes/org/hsqldb/util/
+        cp src/org/hsqldb/util/sqltool/*.text classes/org/hsqldb/util/sqltool/
+
+        cp src/org/hsqldb/resources/*.properties classes/org/hsqldb/resources
+
+  fastjar -C classes -c -f ${JARFILENAME} .
+}
+
+SRC_URI[md5sum] = "17410483b5b5f267aa18b7e00b65e6e0"
+SRC_URI[sha256sum] = "d30b13f4ba2e3b6a2d4f020c0dee0a9fb9fc6fbcc2d561f36b78da4bf3802370"
+