blob: 5c0c3595c1b1798b7e29374c72876e0a6ee0a8e1 [file] [log] [blame]
Patrick Williamsd849ec72016-08-17 14:59:38 -05001DESCRIPTION = "A golang registry for global request variables."
2HOMEPAGE = "https://github.com/Sirupsen/logrus"
3SECTION = "devel/go"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=8dadfef729c08ec4e631c4f6fc5d43a0"
6
7SRCNAME = "logrus"
8
9PKG_NAME = "github.com/Sirupsen/${SRCNAME}"
10SRC_URI = "git://${PKG_NAME}.git"
11
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012SRCREV = "d26492970760ca5d33129d2d799e34be5c4782eb"
13PV = "0.11.0+git${SRCREV}"
Patrick Williamsd849ec72016-08-17 14:59:38 -050014
15S = "${WORKDIR}/git"
16
17do_install() {
18 install -d ${D}${prefix}/local/go/src/${PKG_NAME}
19 cp -r ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
20}
21
22SYSROOT_PREPROCESS_FUNCS += "go_logrus_sysroot_preprocess"
23
24go_logrus_sysroot_preprocess () {
25 install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
26 cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
27}
28
29FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"