summaryrefslogtreecommitdiff
path: root/multitech/recipes/ruby-sqlite3/ruby-sqlite3_v1.3.7.bb
blob: c2d57dd2f2d013893fbcbbf06ecde85f9226779e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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*"