summaryrefslogtreecommitdiff
path: root/dev-python/imgui
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-09-05 18:30:12 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-09-05 18:30:12 +0000
commitdc088cab21c37639ee2755c8c8e395c827286072 (patch)
treed7809bbb6ffb8c7de2620402a3a30aa7785e801e /dev-python/imgui
parent3fe88c0ae150b640311e8b728aeae46973a88d4a (diff)
downloadbaldeagleos-repo-dc088cab21c37639ee2755c8c8e395c827286072.tar.gz
baldeagleos-repo-dc088cab21c37639ee2755c8c8e395c827286072.tar.xz
baldeagleos-repo-dc088cab21c37639ee2755c8c8e395c827286072.zip
Adding metadata
Diffstat (limited to 'dev-python/imgui')
-rw-r--r--dev-python/imgui/Manifest2
-rw-r--r--dev-python/imgui/imgui-2.0.0.ebuild59
-rw-r--r--dev-python/imgui/metadata.xml20
3 files changed, 81 insertions, 0 deletions
diff --git a/dev-python/imgui/Manifest b/dev-python/imgui/Manifest
new file mode 100644
index 000000000000..76592741d96e
--- /dev/null
+++ b/dev-python/imgui/Manifest
@@ -0,0 +1,2 @@
+DIST imgui-1.82.gh.tar.gz 1433525 BLAKE2B 2bdb34b020390ee36a23dc674dabbb946e048099f47492fe9ebc1f142e40ceb58a0b89e49b70d2db4e2929c50f127fd8a70519171cd9007f91db23ccdb24375d SHA512 210076c2b04c09e63a4924e1f874bfe240668f4d2656511c96dd5499efe04d795ad01d5af8e2aa2543849d3ca5ef1a6c6555a9232d4d92f95bf98c41e8505b58
+DIST imgui-2.0.0.gh.tar.gz 230722 BLAKE2B 298b169e0ee8cb3f4eadad151475f13226203c77eea2f517ca1209fd39cac6880c5ba247253b37fd676c14b6706151ee14b3e5d384dcac581a44c4ef537eda4f SHA512 30d81462829daab8d760bdae18e470a0bb781a05086c9e93d3c891e38df1a8451800d3118266f6938ee838c081b192697b8669eac8a404ed9497b923ac52fe34
diff --git a/dev-python/imgui/imgui-2.0.0.ebuild b/dev-python/imgui/imgui-2.0.0.ebuild
new file mode 100644
index 000000000000..2f281a72dc0c
--- /dev/null
+++ b/dev-python/imgui/imgui-2.0.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8,9,10,11} )
+
+inherit distutils-r1
+
+IMGUI_VERSION="1.82" # The version of imgui that pyimgui is using
+
+DESCRIPTION="Cython-based Python bindings for dear imgui"
+HOMEPAGE="https://github.com/pyimgui/pyimgui https://pypi.org/project/imgui"
+SRC_URI="
+ https://github.com/pyimgui/pyimgui/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz
+ https://github.com/ocornut/imgui/archive/v${IMGUI_VERSION}.tar.gz -> imgui-${IMGUI_VERSION}.gh.tar.gz
+"
+S="${WORKDIR}/pyimgui-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="allegro glfw glut opengl sdl vulkan doc"
+
+RDEPEND="media-libs/imgui[bindings,allegro?,glfw?,glut?,opengl?,sdl?,vulkan?]"
+BDEPEND="
+ <dev-python/cython-3[${PYTHON_USEDEP}]
+ doc? (
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/pyopengl[${PYTHON_USEDEP}]
+ ~dev-python/pypandoc-1.4[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]
+ )
+"
+
+src_unpack() {
+ default
+ rm -r "${S}/imgui-cpp"
+ mv "${WORKDIR}/imgui-${IMGUI_VERSION}" "${S}/imgui-cpp"
+}
+
+distutils_enable_tests pytest
+
+python_compile_all() {
+ use doc && emake man -C "${S}/doc"
+ use test && rm -rf "${S}/${PN}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ use doc && doman "${S}/doc/build/man/pyimgui.1"
+}
+
+python_test() {
+ epytest "${S}/tests" || die "Tests failed with ${EPYTHON}"
+}
diff --git a/dev-python/imgui/metadata.xml b/dev-python/imgui/metadata.xml
new file mode 100644
index 000000000000..a25b6afecb7b
--- /dev/null
+++ b/dev-python/imgui/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>gasc@eurecom.fr</email>
+ <name>Gasc Henri</name>
+ </maintainer>
+ <upstream>
+ <doc>https://pyimgui.readthedocs.io</doc>
+ </upstream>
+ <use>
+ <flag name="allegro">Enable allegro backend and renderer</flag>
+ <flag name="glfw">Enable glfw backend</flag>
+ <flag name="glut">Enable glut backen</flag>
+ <flag name="opengl">Enable opengl renderer</flag>
+ <flag name="sdl">Enable sdl backend</flag>
+ <flag name="vulkan">Enable vulkan renderer</flag>
+ </use>
+ <origin>gentoo-guru-overlay</origin>
+</pkgmetadata> \ No newline at end of file