summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2015-08-09 12:04:36 -0500
committerWilliam Hubbs <williamh@gentoo.org>2015-08-11 15:12:35 -0500
commit6ff408b16ab3618f55579d56c78c550f0d8da3ed (patch)
tree78972b81cb57b7b8bf3e18e57f1e15213c68ba59 /eclass/golang-vcs.eclass
parentsys-apps/pcsc-tools: version bump (diff)
downloadgentoo-6ff408b16ab3618f55579d56c78c550f0d8da3ed.tar.gz
gentoo-6ff408b16ab3618f55579d56c78c550f0d8da3ed.tar.bz2
gentoo-6ff408b16ab3618f55579d56c78c550f0d8da3ed.zip
golang-vcs.eclass: remove EGO_SRC variable
This is not needed because it can be referred to as ${EGO_PN%/...}.
Diffstat (limited to 'eclass/golang-vcs.eclass')
-rw-r--r--eclass/golang-vcs.eclass24
1 files changed, 3 insertions, 21 deletions
diff --git a/eclass/golang-vcs.eclass b/eclass/golang-vcs.eclass
index 2fe3a848b25..baf3adf51a6 100644
--- a/eclass/golang-vcs.eclass
+++ b/eclass/golang-vcs.eclass
@@ -38,20 +38,6 @@ _GOLANG_VCS=1
# EGO_PN="github.com/user1/package1 github.com/user2/package2"
# @CODE
-# @ECLASS-VARIABLE: EGO_SRC
-# @DESCRIPTION:
-# This is the Go upstream repository which will be copied to
-# ${WORKDIR}/${P}.
-# If it isn't set, it defaults to the first word of ${EGO_PN}.
-# This should be set if you are retrieving a repository that includes
-# multiple packages, e.g. golang.org/x/tools.
-#
-# Example:
-# @CODE
-# EGO_PN="github.com/user/repository/..."
-# EGO_SRC="github.com/user/repository"
-# @CODE
-
# @ECLASS-VARIABLE: EGO_STORE_DIR
# @DESCRIPTION:
# Storage directory for Go sources.
@@ -98,10 +84,6 @@ _golang-vcs_env_setup() {
[[ -n ${EVCS_UMASK} ]] && eumask_pop
mkdir -p "${WORKDIR}/${P}/src" ||
die "${ECLASS}: unable to create ${WORKDIR}/${P}"
- if [ -z "${EGO_SRC}" ]; then
- set -- ${EGO_PN}
- EGO_SRC="$1"
- fi
return 0
}
@@ -127,11 +109,11 @@ _golang-vcs_fetch() {
[[ -n ${EVCS_UMASK} ]] && eumask_pop
fi
- set -- mkdir -p "${WORKDIR}/${P}/src/${EGO_SRC%/*}"
+ set -- mkdir -p "${WORKDIR}/${P}/src/${EGO_PN%/...}"
echo "$@"
"$@" || die "Unable to create ${WORKDIR}/${P}/src"
- set -- cp -r "${EGO_STORE_DIR}/src/${EGO_SRC}" \
- "${WORKDIR}/${P}/src/${EGO_SRC%/*}"
+ set -- cp -r "${EGO_STORE_DIR}/src/${EGO_PN%/...}" \
+ "${WORKDIR}/${P}/src/${EGO_PN%/...}"
echo "$@"
"$@" || die "Unable to copy sources to ${WORKDIR}/${P}"
return 0