summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/go/go-patricia_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/go/go-patricia_git.bb')
-rw-r--r--recipes-devtools/go/go-patricia_git.bb30
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-devtools/go/go-patricia_git.bb b/recipes-devtools/go/go-patricia_git.bb
new file mode 100644
index 00000000..687677f7
--- /dev/null
+++ b/recipes-devtools/go/go-patricia_git.bb
@@ -0,0 +1,30 @@
1DESCRIPTION = "A generic patricia trie (also called radix tree) implemented in Go (Golang)"
2HOMEPAGE = "https://github.com/gorilla/context"
3SECTION = "devel/go"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=9949b99212edd6b1e24ce702376c3baf"
6
7PR = "r0"
8SRCNAME = "go-patricia"
9
10PKG_NAME = "github.com/tchap/${SRCNAME}"
11SRC_URI = "git://${PKG_NAME}.git"
12
13SRCREV = "f64d0a63cd3363481c898faa9339de04d12213f9"
14PV = "1.0.1+git${SRCPV}"
15
16S = "${WORKDIR}/git"
17
18do_install() {
19 install -d ${D}${prefix}/local/go/src/${PKG_NAME}
20 cp -r ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
21}
22
23SYSROOT_PREPROCESS_FUNCS += "go_patricia_sysroot_preprocess"
24
25go_patricia_sysroot_preprocess () {
26 install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
27 cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
28}
29
30FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"