diff options
author | Michael Fiore <mfiore@multitech.com> | 2013-04-10 09:36:34 -0500 |
---|---|---|
committer | Michael Fiore <mfiore@multitech.com> | 2013-04-10 09:36:34 -0500 |
commit | 61e189c7e94696c32f82a564e2172dcd155e760f (patch) | |
tree | e66c88e001dda4f4ab3228ceb83581952a0e58c8 | |
parent | 34196678b5515fdd7079b119033c5b086b8c2c24 (diff) |
ruby-sqlite3: init
-rw-r--r-- | multitech/recipes/ruby-sqlite3/ruby-sqlite3_v1.3.7.bb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/multitech/recipes/ruby-sqlite3/ruby-sqlite3_v1.3.7.bb b/multitech/recipes/ruby-sqlite3/ruby-sqlite3_v1.3.7.bb new file mode 100644 index 0000000..c2d57dd --- /dev/null +++ b/multitech/recipes/ruby-sqlite3/ruby-sqlite3_v1.3.7.bb @@ -0,0 +1,29 @@ +DESCRIPTION = "Ruby bindings for the SQLite3 embedded database" +HOMEPAGE = "https://github.com/luislavena/sqlite3-ruby" +LICENSE = "GPL" +SECTION = "console/utils" +PRIORITY = "optional" + +DEPENDS = "ruby sqlite3" +# RDEPENDS = "ruby sqlite3" + +PR = "r19" +PACKAGES = "${PN}-dbg ${PN}" + +SRC_URI = "git://github.com/luislavena/sqlite3-ruby.git;tag=v1.3.7;protocol=git" + +S = "${WORKDIR}/git" + +do_compile() { + ${CC} ${CFLAGS} ${LDFLAGS} -I${WORKDIR}/git/ext/sqlite3 -I${WORKDIR}/git/ext/native -I${STAGING_INCDIR}/ruby-1.9.1 -I${STAGING_INCDIR}/ruby-1.9.1/arm-linux-eabi -c ${WORKDIR}/git/ext/sqlite3/*.c + ${CC} ${CFLAGS} ${LDFLAGS} --shared -o ${WORKDIR}/git/ext/sqlite3/sqlite3_native.so ${WORKDIR}/git/*.o -lsqlite3 +} + +do_install() { + install -d ${D}/usr/lib/ruby ${D}/usr/lib/ruby/sqlite3 + install ${S}/lib/sqlite3.rb ${D}/usr/lib/ruby/sqlite3.rb + install ${S}/lib/sqlite3/* ${S}/ext/sqlite3/sqlite3_native.so -t ${D}/usr/lib/ruby/sqlite3 +} + +FILES_${PN} = "/usr/lib/ruby/sqlite3*" +FILES_${PN}-dbg = "/usr/lib/ruby/sqlite3/.debug*"
\ No newline at end of file |