How to obtain source code from GitHub? |
Gentoo Mono Handbook
see also git-2, git-r3, cvs-snapshot |
# vcs-snapshot.eclass will strip that first dir level and re-add /${P} , so default S works # eg instead of unpacking to $WORKDIR/foo-dc8s9ee1/ , it will unpack to $WORKDIR/foo-1.2.3/ as expected inherit vcs-snapshot REPO_OWNER=apache REPO_NAME=logging-log4net EGIT_COMMIT=dbad144815221ffe4ed85efa73134583253dc75b SRC_URI="https://api.github.com/repos/${REPO_OWNER}/${REPO_NAME}/tarball/${EGIT_COMMIT} -> ${P}.tar.gz"It should be ${P}.tar.gz, not ${CATEGORY}-${PN}-${PV}.tar.gz, to match the default value of ${S} variable
--2020-10-26 21:21:06-- https://api.github.com/repos/apache/logging-log4net/zipball/dbad144815221ffe4ed85efa73134583253dc75b Resolving api.github.com... 140.82.121.6 Connecting to api.github.com|140.82.121.6|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/apache/logging-log4net/legacy.zip/dbad144815221ffe4ed85efa73134583253dc75b [following] --2020-10-26 21:21:07-- https://codeload.github.com/apache/logging-log4net/legacy.zip/dbad144815221ffe4ed85efa73134583253dc75b Resolving codeload.github.com... 140.82.121.9 Connecting to codeload.github.com|140.82.121.9|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/zip] Saving to: ‘dbad144815221ffe4ed85efa73134583253dc75b’ dbad144815221ffe4ed85efa73134583253dc75b [ <=> ] 1,59M 3,29MB/s in 0,5s 2020-10-26 21:21:08 (3,29 MB/s) - ‘dbad144815221ffe4ed85efa73134583253dc75b’ saved [1670579]