sci-electronics/amaranth: patchfile eliminated

https://aur.archlinux.org/packages/python-amaranth#comment-977415
This commit is contained in:
2024-06-11 10:05:21 -07:00
parent 9c7113bbf2
commit f413bbab80
3 changed files with 7 additions and 24 deletions

View File

@@ -12,4 +12,4 @@ RDEPEND=dev-python/jinja dev-python/markupsafe dev-python/six sci-electronics/py
REQUIRED_USE=|| ( python_targets_pypy3 python_targets_python3_10 python_targets_python3_11 python_targets_python3_12 python_targets_python3_13 )
SLOT=0
_eclasses_=distutils-r1 5400d21736d8621562bf93be4fa98eec flag-o-matic d309b9713dfc18e754cba88d3ba69653 git-r3 fbb2889c81f3a05910c1524db69425c1 multibuild d67e78a235f541871c7dfe4cf7931489 multilib c19072c3cd7ac5cb21de013f7e9832e0 multiprocessing 30ead54fa2e2b5f9cd4e612ffc34d0fe ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 out-of-source-utils 1a9007554652a6e627edbccb3c25a439 python-r1 8a28fa6d3e3bc96ff8a7eff2badbe71f python-utils-r1 8b220bbce5c119fb1d4d5c2f5588f3ea toolchain-funcs e56c7649b804f051623c8bc1a1c44084
_md5_=2655e5309b27b6dda35bb443da487f64
_md5_=aa38c1f6325265dd12f0f0b53143367e

View File

@@ -9,7 +9,6 @@ HOMEPAGE="https://github.com/amaranth-lang/amaranth"
EGIT_COMMIT=4d1c4fc20dc44398c09d334b7f34096b0185d43d
EGIT_REPO_URI=https://github.com/amaranth-lang/$PN
EGIT_BRANCH=v0.4.x
PATCHES="$FILESDIR/$PN-versioning.patch"
PDM_BUILD_SCM_VERSION=$PV
LICENSE="BSD-2"
@@ -22,3 +21,9 @@ RDEPEND="dev-python/jinja
sci-electronics/pyvcd
sci-electronics/yosys"
src_prepare()
{
cd $S
default
sed -i -e "s/pdm\\.backend\\._vendor\\.//" pdm_build.py
}

View File

@@ -1,22 +0,0 @@
--- a/pdm_build.py 2023-12-13 01:29:50.000000000 -0800
+++ a/pdm_build.py 2023-12-15 23:07:54.051989617 -0800
@@ -1,13 +1,13 @@
-from pdm.backend._vendor.packaging.version import Version
+#from pdm.backend._vendor.packaging.version import Version
# This is done in a PDM build hook without specifying `dynamic = [..., "version"]` to put all
# of the static metadata into pyproject.toml. Tools other than PDM will not execute this script
# and will use the generic version of the documentation URL (which redirects to /latest).
def pdm_build_initialize(context):
- version = Version(context.config.metadata["version"])
- if version.is_prerelease:
- url_version = "latest"
- else:
- url_version = f"v{version}"
+ #version = Version(context.config.metadata["version"])
+ #if version.is_prerelease:
+ # url_version = "latest"
+ #else:
+ url_version = f"v0.4.5"
context.config.metadata["urls"]["Documentation"] += url_version