diff --git a/games-util/leshade/Manifest b/games-util/leshade/Manifest new file mode 100644 index 0000000000..c362a33a69 --- /dev/null +++ b/games-util/leshade/Manifest @@ -0,0 +1 @@ +DIST leshade-2.4.0.tar.gz 4092897 BLAKE2B d0537b22a564b5690d1b50edb3c12b86bed15554bb20402b350167e85382752b3fc1a03a4dbec4b15768a237f590ccb4d325b58effb58e7c9dd0d6d1ac26abf1 SHA512 a8cb97f8bc4ef53f4086af74fb5c1e9f16da64bdcebb500f01dbe34ebda3cc38d4c2f54980cb1a5bd648c605526ef4fa5bd03a7e39dafb9a8eef548d07ed933f diff --git a/games-util/leshade/leshade-2.4.0.ebuild b/games-util/leshade/leshade-2.4.0.ebuild new file mode 100644 index 0000000000..87000a15c6 --- /dev/null +++ b/games-util/leshade/leshade-2.4.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{12..14} ) + +inherit meson python-single-r1 + +MY_PN="LeShade" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="A ReShade manager for Linux" +HOMEPAGE="https://github.com/Ishidawg/LeShade" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Ishidawg/LeShade.git" +else + SRC_URI="https://github.com/Ishidawg/LeShade/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/${MY_P}" +fi + +LICENSE="MIT" +SLOT="0" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/pyside:6[${PYTHON_USEDEP}] + ') +" + +src_prepare() { + default + + python_fix_shebang . + + #sed -i "s/^app_version: str = .*/app_version: str = \"${PV}\"/" main.py || die + + if [[ ${PV} == *9999 ]] ; then + sed -i "s/^build_type: str = .*/build_type: str = \"Nightly\"/" main.py || die + fi +} diff --git a/games-util/leshade/leshade-9999.ebuild b/games-util/leshade/leshade-9999.ebuild new file mode 100644 index 0000000000..87000a15c6 --- /dev/null +++ b/games-util/leshade/leshade-9999.ebuild @@ -0,0 +1,46 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{12..14} ) + +inherit meson python-single-r1 + +MY_PN="LeShade" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="A ReShade manager for Linux" +HOMEPAGE="https://github.com/Ishidawg/LeShade" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Ishidawg/LeShade.git" +else + SRC_URI="https://github.com/Ishidawg/LeShade/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/${MY_P}" +fi + +LICENSE="MIT" +SLOT="0" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/pyside:6[${PYTHON_USEDEP}] + ') +" + +src_prepare() { + default + + python_fix_shebang . + + #sed -i "s/^app_version: str = .*/app_version: str = \"${PV}\"/" main.py || die + + if [[ ${PV} == *9999 ]] ; then + sed -i "s/^build_type: str = .*/build_type: str = \"Nightly\"/" main.py || die + fi +} diff --git a/games-util/leshade/metadata.xml b/games-util/leshade/metadata.xml new file mode 100644 index 0000000000..f3bb206cb1 --- /dev/null +++ b/games-util/leshade/metadata.xml @@ -0,0 +1,11 @@ + + + + + ghostyn678+git@gmail.com + dsaf + + + Ishidawg/LeShade + + \ No newline at end of file