Skip to content

Commit

Permalink
Update xcffib
Browse files Browse the repository at this point in the history
  • Loading branch information
flacjacket committed Nov 5, 2023
1 parent 084fa93 commit f656238
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dev-python/xcffib/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DIST xcffib-1.2.0.tar.gz 52023 BLAKE2B 197f4554776fb3d37bed14634beb29a9a2357d2450337e24a0eb921506858c589b0d0c2d729b0211984dc5e0f093533d62d5f809b233268779fce8182656604b SHA512 342eb05092b329ead28d22ba791323b76bd6f68830f2622f0b2d3324465cfefa8fb8815317f0fe8e08d544644be5ef67697246c7c3c0b6263eea1cd53038b6b9
DIST xcffib-full-1.5.0.tar.gz 52834 BLAKE2B 299ffcd125177d008559fbd6486275d1545d65fa5053ce3f4ec224198344933e5ae63425c7e49dd24fe637a66d57f8fcf125e0da2ade3b5866eb872b632994c0 SHA512 7d057b4ada9f96a6011637f13db497502f40af7ea284ef24e192171406cc7127802eb3c48c7fb16a4b28fe6d3dfd6e0e793139c51014d94445dd6ef5d6d785a4
7 changes: 3 additions & 4 deletions dev-python/xcffib/files/xcffib-nocabal.patch
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
diff --git a/Makefile b/Makefile
index d1d62f6..7712b32 100644
index 62b9dfd..ced3b62 100644
--- a/Makefile
+++ b/Makefile
@@ -12,12 +12,16 @@ CABAL=cabal --config-file=./cabal.config
GEN=$(CABAL) new-run -j$(NCPUS) exe:xcffibgen --
@@ -12,11 +12,15 @@ CABAL=cabal --config-file=./cabal.config
GEN=$(CABAL) new-run --minimize-conflict-set -j$(NCPUS) exe:xcffibgen --

# you should have xcb-proto installed to run this
-xcffib: module/*.py xcffib.cabal $(shell find . -path ./test -prune -false -o -name \*.hs)
Expand All @@ -13,7 +13,6 @@ index d1d62f6..7712b32 100644
cp ./module/*py ./xcffib/
touch ./xcffib/py.typed
sed -i "s/__xcb_proto_version__ = .*/__xcb_proto_version__ = \"${XCBVER}\"/" xcffib/__init__.py
@if [ "$(TRAVIS)" = true ]; then python xcffib/ffi_build.py; else python xcffib/ffi_build.py > /dev/null 2>&1 || python3 xcffib/ffi_build.py; fi
+ sed -i "s/version = .*/version = \"${ver}\"/" setup.py
+ sed -i "s/__version__ = .*/__version__ = \"${ver}\"/" xcffib/__init__.py
+ sed -r -i -e "s/(^version = \s*)[\"0-9\.]*/\1\"${ver}\"/" setup.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ inherit haskell-cabal distutils-r1

DESCRIPTION="A drop-in replacement for xpyb based on cffi"
HOMEPAGE="https://github.com/tych0/xcffib"
SRC_URI="https://github.com/tych0/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI="https://github.com/tych0/${PN}/archive/v${PV}.tar.gz -> ${PN}-full-${PV}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0/${PV}"
Expand Down

0 comments on commit f656238

Please sign in to comment.