mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
x11-apps/variety: bug fix
Bug: https://bugs.gentoo.org/977444 Bug: https://bugs.gentoo.org/977443 Closes: https://bugs.gentoo.org/977444 Signed-off-by: tooknox <yt+gentoo@sysv.in>
This commit is contained in:
1 file changed
+6
-3
@@ -23,6 +23,7 @@ KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
PROPERTIES="test_network"
|
||||
|
||||
DEPEND="
|
||||
test? (
|
||||
@@ -58,6 +59,8 @@ BDEPEND="
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
python_setup
|
||||
|
||||
# Remove upstream documentation to avoid incorrect installation paths
|
||||
rm -f README.md CONTRIBUTING.md AUTHORS || die
|
||||
rm -f data/ui/changes.txt || die
|
||||
@@ -69,7 +72,7 @@ EOF
|
||||
|
||||
# Patch setup.py robustly so setuptools does not try to package
|
||||
# variety/data and trigger namespace/package QA warnings.
|
||||
python3 - <<'PY' || die
|
||||
"${EPYTHON}" - <<'PY' || die
|
||||
from pathlib import Path
|
||||
p = Path("setup.py")
|
||||
text = p.read_text()
|
||||
@@ -90,7 +93,7 @@ p.write_text(text)
|
||||
PY
|
||||
|
||||
# Silence deprecated PEP621 license table warning
|
||||
python3 - <<'PY' || die
|
||||
"${EPYTHON}" - <<'PY' || die
|
||||
from pathlib import Path
|
||||
p = Path("pyproject.toml")
|
||||
text = p.read_text()
|
||||
@@ -102,7 +105,7 @@ p.write_text(text)
|
||||
PY
|
||||
|
||||
# Patch varietyconfig.py to make runtime data lookup use /usr/share/variety instead of package resources
|
||||
python3 - <<'PY' || die "Failed to patch varietyconfig.py"
|
||||
"${EPYTHON}" - <<'PY' || die "Failed to patch varietyconfig.py"
|
||||
import re
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
Reference in new issue
Block a user