mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
dev-python/clickgen: fix flags
Closes: https://bugs.gentoo.org/830153 Closes: https://bugs.gentoo.org/830152 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -1 +1 @@
|
||||
DIST clickgen-1.1.9.tar.gz 29614 BLAKE2B 12a5b0846388331c2a066f11033b523421ac7cd9ca2d882f49d7bdacd28af9d373511a9be9201756a0feca171541cd9dcc57a1c9372a2aa98e054fff0767ee74 SHA512 620a9b10897a0fbd5e70eb70ce0d6f6cb7f71f3e2523b50eb53014e837c3b426c690cf3941d105bc56a188b83ab52b6169932c2a01a85e3bd68a6f67b77a8024
|
||||
DIST clickgen-1.1.9.tar.gz 1616607 BLAKE2B f16dabff6ded51833b79de5441753959643e1542ae56b979f2a88532e29e3a37d1454d3317027e265774ac4140f957b56d7d8c373991485e27f546d208893e4f SHA512 6823733a73cc4f023641325d4b53ea54b579b8168906680d2e5b071a27974b63dac9828c13d14fc73ae8c16844f47f1ed477e8de76352522bfd9abe4de53ffd3
|
||||
|
||||
@@ -3,20 +3,38 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..10} pypy3 )
|
||||
inherit distutils-r1
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit distutils-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="X11 & Windows cursor building API"
|
||||
HOMEPAGE="https://github.com/ful1e5/clickgen"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
HOMEPAGE="https://github.com/ful1e5/clickgen https://pypi.org/project/clickgen"
|
||||
SRC_URI="https://github.com/ful1e5/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
DEPEND="
|
||||
media-libs/libpng
|
||||
x11-libs/libX11
|
||||
x11-libs/libXcursor
|
||||
"
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-flags.patch )
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme
|
||||
|
||||
src_configure() {
|
||||
distutils-r1_src_configure
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
emake -C xcursorgen
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
17
dev-python/clickgen/files/clickgen-flags.patch
Normal file
17
dev-python/clickgen/files/clickgen-flags.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
--- a/xcursorgen/makefile
|
||||
+++ b/xcursorgen/makefile
|
||||
@@ -1,12 +1,12 @@
|
||||
all: xcursorgen.so
|
||||
|
||||
-CC= gcc
|
||||
+CC ?= gcc
|
||||
LIBS= -lX11 -lXcursor -lpng -lz
|
||||
OUT_DIR= ../clickgen
|
||||
CP= cp -f
|
||||
|
||||
xcursorgen.so: xcursorgen.c
|
||||
- $(CC) -Wl,-zdefs -shared -o xcursorgen.so -fPIC xcursorgen.c $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -Wl,-zdefs -shared -o xcursorgen.so -fPIC xcursorgen.c $(LIBS)
|
||||
$(CP) xcursorgen.so $(OUT_DIR)/xcursorgen.so
|
||||
|
||||
clean:
|
||||
Reference in New Issue
Block a user