public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Manuel Rüger" <mrueg@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/mrueg:master commit in: eclass/
Date: Thu, 25 Jun 2015 16:55:39 +0000 (UTC)	[thread overview]
Message-ID: <1435250147.bce9e5d6475b8aebbdd5cdf8add8fab29e9d4316.mrueg@gentoo> (raw)

commit:     bce9e5d6475b8aebbdd5cdf8add8fab29e9d4316
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 25 16:35:47 2015 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Thu Jun 25 16:35:47 2015 +0000
URL:        https://gitweb.gentoo.org/dev/mrueg.git/commit/?id=bce9e5d6

[eclass] Drop live ebuild detection.

 eclass/github.eclass | 28 +++++++---------------------
 1 file changed, 7 insertions(+), 21 deletions(-)

diff --git a/eclass/github.eclass b/eclass/github.eclass
index ab5a66f..bb6ff35 100644
--- a/eclass/github.eclass
+++ b/eclass/github.eclass
@@ -34,7 +34,7 @@ esac
 # @DEFAULT-UNSET
 # @DESCRIPTION:
 # Defines if fetched from git ("live") or tarball ("release")
-# Use if autodetection via PV fails.
+: ${GH_BUILD_TYPE:=release}
 
 # @ECLASS-VARIABLE: GH_PATCHES
 # @DEFAULT_UNSET
@@ -57,25 +57,11 @@ esac
 
 inherit eutils
 
-if [[ ${PV} != *9999 && ${GH_BUILD_TYPE} == live ]]; then
-    eqawarn "Uncommon package version for a live ebuild."
-fi 
-
-if [[ -z ${GH_BUILD_TYPE}  ]]; then
-	if [[ ${PV} == *9999 ]]; then
-		_GH_BUILD_TYPE=live
-	else
-		_GH_BUILD_TYPE=release
-	fi
-else 
-	_GH_BUILD_TYPE=$GH_BUILD_TYPE
-fi
-
-if [[ ${_GH_BUILD_TYPE} = live ]]; then
+if [[ ${GH_BUILD_TYPE} = live ]]; then
 	inherit git-r3
 fi
 
-if [[ ${_GH_BUILD_TYPE} = release ]]; then
+if [[ ${GH_BUILD_TYPE} = release ]]; then
 	inherit vcs-snapshot
 fi
 
@@ -83,7 +69,7 @@ HOMEPAGE="https://github.com/${GH_USER}/${GH_REPO}"
 
 EXPORT_FUNCTIONS src_prepare src_unpack
 
-_patch_calc_commit() {
+_patch_calc_filesdir() {
 	debug-print-function ${FUNCNAME} "$@"
 
 	local gh_filepatch="$1"
@@ -131,7 +117,7 @@ _calculate_patches_uri() {
 				;;
 				c) _patch_calc_commit "${gh_commit:2}"
 				;;
-				p) _patch_calc-pull_request "${gh_commit:2}"
+				p) _patch_calc_pull-request "${gh_commit:2}"
 				;;
 				*) die "Wrong patch pattern: ${gh_commit}"
 				;;
@@ -163,7 +149,7 @@ _calculate_live_repo() {
 }
 
 
-case ${_GH_BUILD_TYPE} in
+case ${GH_BUILD_TYPE} in
 	live) _calculate_live_repo ;;
 	release) _calculate_src_uri ;;
 esac
@@ -177,7 +163,7 @@ debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: SRC_URI is ${SRC_URI}"
 github_src_unpack() {
 	debug-print-function ${FUNCNAME} "$@"
 
-	if [[ ${_GH_BUILD_TYPE} = live ]]; then
+	if [[ ${GH_BUILD_TYPE} = live ]]; then
 		git-r3_src_unpack
 	else
 		vcs-snapshot_src_unpack


             reply	other threads:[~2015-06-25 16:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-25 16:55 Manuel Rüger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-12-31 11:42 [gentoo-commits] dev/mrueg:master commit in: eclass/ Manuel Rüger
2015-06-25 15:39 Manuel Rüger
2015-06-25 11:50 Manuel Rüger
2015-06-25 11:47 Manuel Rüger
2015-06-25 11:46 Manuel Rüger
2015-06-25 11:45 Manuel Rüger
2015-06-25 11:45 Manuel Rüger
2015-06-25 11:38 Manuel Rüger
2015-06-25 11:18 Manuel Rüger
2015-06-25 11:11 Manuel Rüger
2015-06-25 11:09 Manuel Rüger
2015-06-25 11:07 Manuel Rüger
2015-06-25 11:03 Manuel Rüger
2015-06-25 10:47 Manuel Rüger
2015-06-25 10:45 Manuel Rüger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1435250147.bce9e5d6475b8aebbdd5cdf8add8fab29e9d4316.mrueg@gentoo \
    --to=mrueg@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox