diff options
author | John Klug <john.klug@multitech.com> | 2017-06-01 17:18:00 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2017-06-01 17:18:00 -0500 |
commit | cb8fd323883b74500f70f139befba6a4f7c70d49 (patch) | |
tree | 5f0593119d839eb392721f1a1dc9a71c8c8aa0f2 /recipes-ruby | |
parent | cf37d12755e21c2d2ff74452900861427cfad433 (diff) | |
download | meta-mlinux-cb8fd323883b74500f70f139befba6a4f7c70d49.tar.gz meta-mlinux-cb8fd323883b74500f70f139befba6a4f7c70d49.tar.bz2 meta-mlinux-cb8fd323883b74500f70f139befba6a4f7c70d49.zip |
Add ruby-sqlite3 and monit to the factory image
Diffstat (limited to 'recipes-ruby')
-rw-r--r-- | recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.13.bb | 21 |
1 files changed, 16 insertions, 5 deletions
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*" |