summaryrefslogtreecommitdiff
path: root/dev-go
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-10-15 16:36:31 +0100
committerSam James <sam@gentoo.org>2022-10-16 00:26:18 +0100
commit692b02d5241002f5a2cabb48042e6714c7a39d4f (patch)
tree9da6bca5019aed249c24f148cf3152842ef9a95f /dev-go
parentsci-chemistry/vmd: drop 1.9.4_alpha55 (diff)
downloadgentoo-692b02d5241002f5a2cabb48042e6714c7a39d4f.tar.gz
gentoo-692b02d5241002f5a2cabb48042e6714c7a39d4f.tar.bz2
gentoo-692b02d5241002f5a2cabb48042e6714c7a39d4f.zip
dev-go/licenseclassifier: fix VariableScope
Closes: https://bugs.gentoo.org/836047 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-go')
-rw-r--r--dev-go/licenseclassifier/licenseclassifier-0_pre20200402.ebuild4
-rw-r--r--dev-go/licenseclassifier/licenseclassifier-9999.ebuild4
2 files changed, 4 insertions, 4 deletions
diff --git a/dev-go/licenseclassifier/licenseclassifier-0_pre20200402.ebuild b/dev-go/licenseclassifier/licenseclassifier-0_pre20200402.ebuild
index c666a32af4c5..5152bafd8068 100644
--- a/dev-go/licenseclassifier/licenseclassifier-0_pre20200402.ebuild
+++ b/dev-go/licenseclassifier/licenseclassifier-0_pre20200402.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -59,7 +59,7 @@ src_compile() {
# Make a binary that will use fixed path for the db
cp -v file_system_resources.go{,.bak} || die
- local share="${EROOT}/usr/share/licenseclassifier"
+ local share="${EPREFIX}/usr/share/licenseclassifier"
sed -i "s@= lcRoot()@= \"${share}\", error(nil)@" file_system_resources.go || die
go build -o build ./... || die
diff --git a/dev-go/licenseclassifier/licenseclassifier-9999.ebuild b/dev-go/licenseclassifier/licenseclassifier-9999.ebuild
index 84b9056372d5..a2b6303b1b93 100644
--- a/dev-go/licenseclassifier/licenseclassifier-9999.ebuild
+++ b/dev-go/licenseclassifier/licenseclassifier-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -59,7 +59,7 @@ src_compile() {
# Make a binary that will use fixed path for the db
cp -v file_system_resources.go{,.bak} || die
- local share="${EROOT}/usr/share/licenseclassifier"
+ local share="${EPREFIX}/usr/share/licenseclassifier"
sed -i "s@= lcRoot()@= \"${share}\", error(nil)@" file_system_resources.go || die
go build -o build ./... || die