Development Guide/ebuilding

From Funtoo
< Development Guide
Revision as of 10:55, December 21, 2020 by Pnoecker (talk | contribs) (add a follow along scaffold, generic ebuild digest command, and sub paged because more information can be added.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Ebuilding With Github

   ~/myoverlay/mygithub.ebuild - Github ebuild scaffolding
# Distributed under the terms of the GNU General Public License v2
EAPI=7

inherit git-r3

DESCRIPTION="My Ebuilds use"
HOMEPAGE=""

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="*"
IUSE=""

RDEPEND=""
DEPEND="${RDEPEND}"
GITHUB_REPO=""
GITHUB_USER=""
GITHUB_TAG=""
SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_REPO}/tarball/${GITHUB_TAG} -> ${PN}-${GITHUB_TAG}.tar.gz"
src_unpack() {
	unpack ${A}
	mv "${WORKDIR}/${GITHUB_USER}-${GITHUB_REPO}"-??????? "${S}" || die
	}
root # ebuild *.ebuild digest