Development Guide/ebuilding

From Funtoo
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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