Theoretically I the ebuild should pull the tilesets from https://github.com/I-am-Erk/CDDA-Tilesets and the then run tools/gfx_tools/compose.py from https://github.com/CleverRaven/Cataclysm-DDA on every single tileset set in the USE flags. The script requires pyvips (not packaged in either ::gentoo or ::guru) and media-libs/vips[introspection,png].
For development I installed pyvips in a Python venv.
When I manually run compose.py on a tileset, the following error happens:
Code: Select all
(testvenv) user@a5b4e8eedb6e ~/test $ ./Cataclysm-DDA/tools/gfx_tools/compose.py ./CDDA-Tilesets/gfx/UltimateCataclysm
Traceback (most recent call last):
File "/home/user/test/testvenv/lib/python3.13/site-packages/pyvips/vimage.py", line 1316, in __getattr__
Introspect.get(name)
~~~~~~~~~~~~~~^^^^^^
File "/home/user/test/testvenv/lib/python3.13/site-packages/pyvips/voperation.py", line 151, in get
cls._introspect_cache[operation_name] = Introspect(operation_name)
~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/home/user/test/testvenv/lib/python3.13/site-packages/pyvips/voperation.py", line 37, in __init__
op = Operation.new_from_name(operation_name)
File "/home/user/test/testvenv/lib/python3.13/site-packages/pyvips/voperation.py", line 191, in new_from_name
raise Error(f'no such operation {operation_name}')
pyvips.error.Error: no such operation icc_transform
VipsOperation: class "icc_transform" not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/test/./Cataclysm-DDA/tools/gfx_tools/compose.py", line 1012, in <module>
sys.exit(main())
~~~~^^
File "/home/user/test/./Cataclysm-DDA/tools/gfx_tools/compose.py", line 1001, in main
tileset_worker.compose()
~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/user/test/./Cataclysm-DDA/tools/gfx_tools/compose.py", line 346, in compose
sheet.walk_dirs()
~~~~~~~~~~~~~~~^^
File "/home/user/test/./Cataclysm-DDA/tools/gfx_tools/compose.py", line 608, in walk_dirs
self.process_png(filepath)
~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/home/user/test/./Cataclysm-DDA/tools/gfx_tools/compose.py", line 635, in process_png
self.sprites.append(self.load_image(filepath))
~~~~~~~~~~~~~~~^^^^^^^^^^
File "/home/user/test/./Cataclysm-DDA/tools/gfx_tools/compose.py", line 668, in load_image
image = image.icc_transform('srgb')
^^^^^^^^^^^^^^^^^^^
File "/home/user/test/testvenv/lib/python3.13/site-packages/pyvips/vimage.py", line 1320, in __getattr__
raise AttributeError
AttributeError
