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 | |
| 16 | do_unpackpost() { |
| 17 | rm -rf ${S}/[A-KM-Za-ce-z]* ${S}/doc* |
| 18 | } |
| 19 | |
| 20 | addtask unpackpost after do_unpack before do_patch |
| 21 | |
| 22 | do_install() { |
| 23 | install -d ${D}${prefix}/local/go/src/${PKG_NAME} |
| 24 | cp -r ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/ |
| 25 | } |
| 26 | |
| 27 | SYSROOT_PREPROCESS_FUNCS += "go_distribution_digeset_sysroot_preprocess" |
| 28 | |
| 29 | go_distribution_digeset_sysroot_preprocess () { |
| 30 | install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME} |
| 31 | cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME}) |
| 32 | } |
| 33 | |
| 34 | FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*" |