Date: Friday, May 1, 2020 @ 19:09:47
Author: demize
Revision: 624195
db-move: moved anki from [community-testing] to [community] (x86_64)
Added:
anki/repos/community-x86_64/
anki/repos/community-x86_64/0001-Move-aqt_data-to-sys.prefix-share.patch
(from rev 624194,
anki/repos/community-testing-x86_64/0001-Move-aqt_data-to-sys.prefix-share.patch)
anki/repos/community-x86_64/0001-Unfuck-make-build-targets.patch
(from rev 624194,
anki/repos/community-testing-x86_64/0001-Unfuck-make-build-targets.patch)
anki/repos/community-x86_64/PKGBUILD
(from rev 624194, anki/repos/community-testing-x86_64/PKGBUILD)
Deleted:
anki/repos/community-testing-x86_64/
--+
0001-Move-aqt_data-to-sys.prefix-share.patch | 45 ++
0001-Unfuck-make-build-targets.patch | 93 +
PKGBUILD | 106 +
3 files changed, 244 insertions(+)
Copied:
anki/repos/community-x86_64/0001-Move-aqt_data-to-sys.prefix-share.patch (from
rev 624194,
anki/repos/community-testing-x86_64/0001-Move-aqt_data-to-sys.prefix-share.patch)
===
--- community-x86_64/0001-Move-aqt_data-to-sys.prefix-share.patch
(rev 0)
+++ community-x86_64/0001-Move-aqt_data-to-sys.prefix-share.patch
2020-05-01 19:09:47 UTC (rev 624195)
@@ -0,0 +1,45 @@
+From d7ecae49a8a46e5ad5f25726044a25006fd1f006 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Johannes=20L=C3=B6thberg?=
+Date: Sun, 29 Mar 2020 06:24:43 +0200
+Subject: [PATCH] Move aqt_data to sys.prefix/share
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+These files do _not_ belong right under sys.prefix.
+
+Signed-off-by: Johannes Löthberg
+---
+ qt/aqt/utils.py | 2 +-
+ qt/setup.py | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/qt/aqt/utils.py b/qt/aqt/utils.py
+index a0e12362..4d8c8c34 100644
+--- a/qt/aqt/utils.py
b/qt/aqt/utils.py
+@@ -21,7 +21,7 @@ from aqt.theme import theme_manager
+
+ def aqt_data_folder() -> str:
+ # wheel install?
+-dir = os.path.join(sys.prefix, "aqt_data")
++dir = os.path.join(sys.prefix,"share", "aqt_data")
+ if not os.path.exists(dir) or not os.listdir(dir):
+ # running in place?
+ dir = os.path.join(os.path.dirname(__file__), "..", "aqt_data")
+diff --git a/qt/setup.py b/qt/setup.py
+index 6d498994..d67a8791 100644
+--- a/qt/setup.py
b/qt/setup.py
+@@ -9,7 +9,7 @@ with open("../meta/version") as fh:
+ def package_files(directory):
+ entries = []
+ for (path, directories, filenames) in os.walk(directory):
+-entries.append((path, [os.path.join(path, f) for f in filenames]))
++entries.append((os.path.join("share", path), [os.path.join(path, f)
for f in filenames]))
+ return entries
+
+
+--
+2.26.0
+
Copied: anki/repos/community-x86_64/0001-Unfuck-make-build-targets.patch (from
rev 624194,
anki/repos/community-testing-x86_64/0001-Unfuck-make-build-targets.patch)
===
--- community-x86_64/0001-Unfuck-make-build-targets.patch
(rev 0)
+++ community-x86_64/0001-Unfuck-make-build-targets.patch 2020-05-01
19:09:47 UTC (rev 624195)
@@ -0,0 +1,93 @@
+From 3dc54977a9cc86175bf47b3586178c3d86ad53d5 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Johannes=20L=C3=B6thberg?=
+Date: Sun, 29 Mar 2020 05:54:00 +0200
+Subject: [PATCH] Unfuck make build targets
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Johannes Löthberg
+---
+ pylib/Makefile | 12 ++--
+ qt/Makefile| 10 +-
+ rspy/Makefile | 4
+ 3 files changed, 3 insertions(+), 23 deletions(-)
+
+diff --git a/pylib/Makefile b/pylib/Makefile
+index 9727fc92..1d86144e 100644
+--- a/pylib/Makefile
b/pylib/Makefile
+@@ -31,17 +31,9 @@ $(shell mkdir -p .build ../dist)
+ PHONY: all
+ all: check
+
+-.build/run-deps: setup.py
+- python -m pip install -e .
+- @touch $@
+-
+-.build/dev-deps: requirements.dev
+- python -m pip install -r requirements.dev
+- @touch $@
+-
+ PROTODEPS := $(wildcard ../proto/*.proto)
+
+-.build/py-proto: .build/dev-deps $(PROTODEPS)
++.build/py-proto: $(PROTODEPS)
+ protoc --proto_path=../proto --python_out=anki --mypy_out=anki
$(PROTODEPS)
+ perl -i'' -pe 's/from fluent_pb2/from anki.fluent_pb2/'
anki/backend_pb2.pyi
+ perl -i'' -pe 's/import fluent_pb2/import anki.fluent_pb2/'
anki/backend_pb2.py
+@@ -52,7 +44,7 @@ PROTODEPS := $(wildcard ../proto/*.proto)
+ python -m black anki/hooks.py
+ @touch $@
+
+-BUILD_STEPS := .build/run-deps .build/dev-deps .build/py-proto
anki/buildinfo.py .build/hooks
++BUILD_STEPS := .build/py-proto anki/buildinfo.py
+
+ # Checking
+