diff options
author | John Klug <john.klug@multitech.com> | 2017-04-11 11:12:26 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2017-05-23 15:21:54 -0500 |
commit | 6160f537666c4c6ab443e70856f72898db0ed031 (patch) | |
tree | 1fb59e0e1584c9a90c35b85a0fd70cbf9db2c4cf /recipes-ruby/ruby-serialport/ruby-serialport_1.3.0.bb | |
parent | 0f2dca7de250ebb262e4d6e305b15008cc354281 (diff) | |
download | meta-mlinux-6160f537666c4c6ab443e70856f72898db0ed031.tar.gz meta-mlinux-6160f537666c4c6ab443e70856f72898db0ed031.tar.bz2 meta-mlinux-6160f537666c4c6ab443e70856f72898db0ed031.zip |
Fix FILESEXTRAPATHS_prepend
Diffstat (limited to 'recipes-ruby/ruby-serialport/ruby-serialport_1.3.0.bb')
-rw-r--r-- | recipes-ruby/ruby-serialport/ruby-serialport_1.3.0.bb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-ruby/ruby-serialport/ruby-serialport_1.3.0.bb b/recipes-ruby/ruby-serialport/ruby-serialport_1.3.0.bb new file mode 100644 index 0000000..f00c45c --- /dev/null +++ b/recipes-ruby/ruby-serialport/ruby-serialport_1.3.0.bb @@ -0,0 +1,32 @@ +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" +B = "${S}" + +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" |