diff options
author | Jesse Gilles <jgilles@multitech.com> | 2014-11-04 11:51:34 -0600 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2014-11-04 11:51:34 -0600 |
commit | e243c30f04c18722dc65effe6d4f275a3f35de46 (patch) | |
tree | 807610ce8af0ead02681d6c3cc89d902ec941652 /recipes-ruby | |
download | meta-mlinux-e243c30f04c18722dc65effe6d4f275a3f35de46.tar.gz meta-mlinux-e243c30f04c18722dc65effe6d4f275a3f35de46.tar.bz2 meta-mlinux-e243c30f04c18722dc65effe6d4f275a3f35de46.zip |
initial commit of mLinux layer
Diffstat (limited to 'recipes-ruby')
-rw-r--r-- | recipes-ruby/ruby-serialport/ruby-serialport_1.1.0.bb | 31 | ||||
-rw-r--r-- | recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.7.bb | 28 | ||||
-rw-r--r-- | recipes-ruby/ruby/ruby_1.9.3-p429.bbappend | 4 |
3 files changed, 63 insertions, 0 deletions
diff --git a/recipes-ruby/ruby-serialport/ruby-serialport_1.1.0.bb b/recipes-ruby/ruby-serialport/ruby-serialport_1.1.0.bb new file mode 100644 index 0000000..a020f90 --- /dev/null +++ b/recipes-ruby/ruby-serialport/ruby-serialport_1.1.0.bb @@ -0,0 +1,31 @@ +DESCRIPTION = "A Ruby library that provides a class for using RS-232 serial ports" +HOMEPAGE = "https://github.com/hparra/ruby-serialport" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe" +SECTION = "console/utils" +PRIORITY = "optional" + +DEPENDS = "ruby" + +PR = "r2" + +# tag v1.1.0 +SRCREV = "709e385f6d20aaadc7f3252af59250336d27e607" + +SRC_URI = "git://github.com/hparra/ruby-serialport.git;protocol=git" + +S = "${WORKDIR}/git" + +do_compile() { + ${CC} ${CFLAGS} ${LDFLAGS} -Iext/native -I${STAGING_INCDIR}/ruby-1.9.1 -I${STAGING_INCDIR}/ruby-1.9.1/arm-linux-eabi -c ext/native/*.c + ${CC} ${CFLAGS} ${LDFLAGS} --shared -o ext/native/serialport.so serialport.o posix_serialport_impl.o +} + +do_install() { + install -d ${D}${libdir}/ruby/serialport + install lib/serialport.rb ${D}${libdir}/ruby/serialport.rb + install ext/native/serialport.so -t ${D}${libdir}/ruby +} + +FILES_${PN} = "${libdir}/ruby/serialport*" +FILES_${PN}-dbg += "${libdir}/ruby/.debug" diff --git a/recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.7.bb b/recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.7.bb new file mode 100644 index 0000000..b3210e6 --- /dev/null +++ b/recipes-ruby/ruby-sqlite3/ruby-sqlite3_1.3.7.bb @@ -0,0 +1,28 @@ +DESCRIPTION = "Ruby bindings for the SQLite3 embedded database" +HOMEPAGE = "https://github.com/luislavena/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/luislavena/sqlite3-ruby.git;tag=v${PV};protocol=git" + +S = "${WORKDIR}/git" + +do_compile() { + ${CC} ${CFLAGS} ${LDFLAGS} -Iext/sqlite3 -Iext/native -I${STAGING_INCDIR}/ruby-1.9.1 -I${STAGING_INCDIR}/ruby-1.9.1/arm-linux-eabi -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*" diff --git a/recipes-ruby/ruby/ruby_1.9.3-p429.bbappend b/recipes-ruby/ruby/ruby_1.9.3-p429.bbappend new file mode 100644 index 0000000..b31d44c --- /dev/null +++ b/recipes-ruby/ruby/ruby_1.9.3-p429.bbappend @@ -0,0 +1,4 @@ +# remove /usr/share/ri from main ruby package +# using FILES_${PN}_remove doesn't work... +FILES_ruby_remove = "${datadir}/ri" +FILES_${PN}-doc += "${datadir}/ri" |