Patrick Williams | d849ec7 | 2016-08-17 14:59:38 -0500 | [diff] [blame] | 1 | DESCRIPTION = "The Docker toolset to pack, ship, store, and deliver content" |
| 2 | HOMEPAGE = "https://github.com/docker/distribution" |
| 3 | SECTION = "devel/go" |
| 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=d2794c0df5b907fdace235a619d80314" |
| 6 | |
| 7 | SRCNAME = "distribution" |
| 8 | |
| 9 | PKG_NAME = "github.com/docker/${SRCNAME}" |
| 10 | SRC_URI = "git://${PKG_NAME}.git" |
| 11 | |
| 12 | SRCREV = "d957768537c5af40e4f4cd96871f7b2bde9e2923" |
| 13 | |
| 14 | S = "${WORKDIR}/git" |
| 15 | |
Patrick Williams | e69d235 | 2017-02-23 20:56:04 -0600 | [diff] [blame^] | 16 | # NO-OP the do compile rule because this recipe is source only. |
| 17 | do_compile() { |
Patrick Williams | d849ec7 | 2016-08-17 14:59:38 -0500 | [diff] [blame] | 18 | } |
| 19 | |
Patrick Williams | d849ec7 | 2016-08-17 14:59:38 -0500 | [diff] [blame] | 20 | do_install() { |
| 21 | install -d ${D}${prefix}/local/go/src/${PKG_NAME} |
Patrick Williams | e69d235 | 2017-02-23 20:56:04 -0600 | [diff] [blame^] | 22 | cp -r ${S}/LICENSE ${S}/digest ${D}${prefix}/local/go/src/${PKG_NAME}/ |
Patrick Williams | d849ec7 | 2016-08-17 14:59:38 -0500 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | SYSROOT_PREPROCESS_FUNCS += "go_distribution_digeset_sysroot_preprocess" |
| 26 | |
| 27 | go_distribution_digeset_sysroot_preprocess () { |
| 28 | install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME} |
| 29 | cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME}) |
| 30 | } |
| 31 | |
| 32 | FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*" |