xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/repo/repo_2.22.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: MIT
2*4882a593Smuzhiyun# Copyright (C) 2021 iris-GmbH infrared & intelligent sensors
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunSUMMARY = "Tool for managing many Git repositories"
5*4882a593SmuzhiyunDESCRIPTION = "Repo is a tool built on top of Git. Repo helps manage many Git repositories, does the uploads to revision control systems, and automates parts of the development workflow."
6*4882a593SmuzhiyunHOMEPAGE = "https://android.googlesource.com/tools/repo"
7*4882a593SmuzhiyunSECTION = "console/utils"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunLICENSE = "Apache-2.0"
10*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunSRC_URI = "git://gerrit.googlesource.com/git-repo.git;protocol=https;branch=main \
13*4882a593Smuzhiyun           file://0001-python3-shebang.patch \
14*4882a593Smuzhiyun           "
15*4882a593SmuzhiyunSRCREV = "cc879a97c3e2614d19b15b4661c3cab4d33139c9"
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunMIRRORS += "git://gerrit.googlesource.com/git-repo.git git://github.com/GerritCodeReview/git-repo.git"
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunS = "${WORKDIR}/git"
20*4882a593Smuzhiyun
21*4882a593Smuzhiyundo_configure:prepend() {
22*4882a593Smuzhiyun	sed -Ei "s/REPO_REV\s*=\s*('|\")stable('|\")/REPO_REV = '${SRCREV}'/g" ${S}/repo
23*4882a593Smuzhiyun}
24*4882a593Smuzhiyun
25*4882a593Smuzhiyundo_install() {
26*4882a593Smuzhiyun	install -D ${WORKDIR}/git/repo ${D}${bindir}/repo
27*4882a593Smuzhiyun}
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunRDEPENDS:${PN} = "python3 git"
30*4882a593Smuzhiyun
31*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk"
32