From 0f2dca7de250ebb262e4d6e305b15008cc354281 Mon Sep 17 00:00:00 2001 From: John Klug Date: Mon, 3 Apr 2017 14:54:24 -0500 Subject: make ruby-sqlite3 compatible with new ruby/sqlite3 --- recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb (limited to 'recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb') diff --git a/recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb b/recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb new file mode 100644 index 0000000..fa1ff9e --- /dev/null +++ b/recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb @@ -0,0 +1,32 @@ +DESCRIPTION = "Ruby bindings for the SQLite3 embedded database" +HOMEPAGE = "https://github.com/sparklemotion/sqlite3-ruby" +LICENSE = "custom-freely-distributable" +LIC_FILES_CHKSUM = "file://LICENSE;md5=f24ce0d57c8f8576a36e2803d35bcfec" +SECTION = "console/utils" +PRIORITY = "optional" +DEPENDS = "ruby sqlite3" + +PR = "r0" + +SRC_URI = "git://github.com/sparklemotion/sqlite3-ruby.git;tag=v${PV};branch=1-3-stable;protocol=git" + +S = "${WORKDIR}/git" +B = "${S}" + +# RUBY_VERSION +do_compile() { + fn=$(ls ${STAGING_INCDIR}/ruby-*/ruby.h | head -1) + pn=$(dirname $fn) + pn2=$(ls -d ${STAGING_INCDIR}/ruby-*/arm-linux-*) + ${CC} ${CFLAGS} ${LDFLAGS} -Iext/sqlite3 -Iext/native -I${pn} -I${pn2} -c ext/sqlite3/*.c + ${CC} ${CFLAGS} ${LDFLAGS} --shared -o ext/sqlite3/sqlite3_native.so *.o -lsqlite3 +} + +do_install() { + install -d ${D}${libdir}/ruby ${D}${libdir}/ruby/sqlite3 + install lib/sqlite3.rb ${D}${libdir}/ruby/sqlite3.rb + install lib/sqlite3/* ext/sqlite3/sqlite3_native.so -t ${D}${libdir}/ruby/sqlite3 +} + +FILES_${PN} = "${libdir}/ruby/sqlite3*" +FILES_${PN}-dbg += "${libdir}/ruby/sqlite3/.debug*" -- cgit v1.2.3 From 0641240a3fe5f3dd0856c9a24aa1b13e98c56e59 Mon Sep 17 00:00:00 2001 From: John Klug Date: Wed, 19 Apr 2017 14:19:26 -0500 Subject: logrotate and openjdk-8 --- recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb') diff --git a/recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb b/recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb index fa1ff9e..35e473c 100644 --- a/recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb +++ b/recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb @@ -1,32 +1,17 @@ DESCRIPTION = "Ruby bindings for the SQLite3 embedded database" HOMEPAGE = "https://github.com/sparklemotion/sqlite3-ruby" -LICENSE = "custom-freely-distributable" +LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=f24ce0d57c8f8576a36e2803d35bcfec" SECTION = "console/utils" PRIORITY = "optional" DEPENDS = "ruby sqlite3" +inherit ruby PR = "r0" SRC_URI = "git://github.com/sparklemotion/sqlite3-ruby.git;tag=v${PV};branch=1-3-stable;protocol=git" S = "${WORKDIR}/git" -B = "${S}" - -# RUBY_VERSION -do_compile() { - fn=$(ls ${STAGING_INCDIR}/ruby-*/ruby.h | head -1) - pn=$(dirname $fn) - pn2=$(ls -d ${STAGING_INCDIR}/ruby-*/arm-linux-*) - ${CC} ${CFLAGS} ${LDFLAGS} -Iext/sqlite3 -Iext/native -I${pn} -I${pn2} -c ext/sqlite3/*.c - ${CC} ${CFLAGS} ${LDFLAGS} --shared -o ext/sqlite3/sqlite3_native.so *.o -lsqlite3 -} - -do_install() { - install -d ${D}${libdir}/ruby ${D}${libdir}/ruby/sqlite3 - install lib/sqlite3.rb ${D}${libdir}/ruby/sqlite3.rb - install lib/sqlite3/* ext/sqlite3/sqlite3_native.so -t ${D}${libdir}/ruby/sqlite3 -} FILES_${PN} = "${libdir}/ruby/sqlite3*" FILES_${PN}-dbg += "${libdir}/ruby/sqlite3/.debug*" -- cgit v1.2.3 From cb8fd323883b74500f70f139befba6a4f7c70d49 Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 1 Jun 2017 17:18:00 -0500 Subject: Add ruby-sqlite3 and monit to the factory image --- recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb') diff --git a/recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb b/recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb index 35e473c..82998bc 100644 --- a/recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb +++ b/recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb @@ -1,17 +1,28 @@ DESCRIPTION = "Ruby bindings for the SQLite3 embedded database" HOMEPAGE = "https://github.com/sparklemotion/sqlite3-ruby" -LICENSE = "MIT" +LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=f24ce0d57c8f8576a36e2803d35bcfec" SECTION = "console/utils" PRIORITY = "optional" + DEPENDS = "ruby sqlite3" -inherit ruby -PR = "r0" +SRC_URI = "git://github.com/sparklemotion/sqlite3-ruby.git;branch=1-3-stable;tag=v${PV}" +S = "${WORKDIR}/git" + +# Position independent code for shared lib +CFLAGS += "-fPIC" -SRC_URI = "git://github.com/sparklemotion/sqlite3-ruby.git;tag=v${PV};branch=1-3-stable;protocol=git" +do_compile() { + ${CC} ${CFLAGS} ${LDFLAGS} -Iext/sqlite3 -Iext/native -I${STAGING_INCDIR}/ruby-2.2.0 -I${STAGING_INCDIR}/ruby-2.2.0/arm-linux-gnueabi -c ext/sqlite3/*.c -DHAVE_RB_INTEGER_PACK + ${CC} ${CFLAGS} ${LDFLAGS} --shared -o ext/sqlite3/sqlite3_native.so *.o -lsqlite3 +} -S = "${WORKDIR}/git" +do_install() { + install -d ${D}${libdir}/ruby ${D}${libdir}/ruby/sqlite3 + install lib/sqlite3.rb ${D}${libdir}/ruby/sqlite3.rb + install lib/sqlite3/* ext/sqlite3/sqlite3_native.so -t ${D}${libdir}/ruby/sqlite3 +} FILES_${PN} = "${libdir}/ruby/sqlite3*" FILES_${PN}-dbg += "${libdir}/ruby/sqlite3/.debug*" -- cgit v1.2.3