commit:     506cd6cfcb944858b4229b03f77f4a1e6f52e6ee
Author:     Mason Rocha <turret <AT> turret <DOT> cyou>
AuthorDate: Wed Sep 27 23:11:48 2023 +0000
Commit:     Mason Rocha <turret <AT> turret <DOT> cyou>
CommitDate: Wed Sep 27 23:11:48 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=506cd6cf

games-util/grapejuice: new package

Signed-off-by: Mason Rocha <turret <AT> turret.cyou>

 games-util/grapejuice/Manifest                  |  1 +
 games-util/grapejuice/grapejuice-7.20.11.ebuild | 77 +++++++++++++++++++++++++
 games-util/grapejuice/grapejuice-9999.ebuild    | 77 +++++++++++++++++++++++++
 games-util/grapejuice/metadata.xml              | 11 ++++
 4 files changed, 166 insertions(+)

diff --git a/games-util/grapejuice/Manifest b/games-util/grapejuice/Manifest
new file mode 100644
index 0000000000..ff95a76326
--- /dev/null
+++ b/games-util/grapejuice/Manifest
@@ -0,0 +1 @@
+DIST grapejuice-v7.20.11.tar.bz2 957454 BLAKE2B 
1553082da9d17f1c22b39ec9d8a1a1f034c1ea64362295edc5a4e0131b0063e2b01aafbe5b1959703c293baabdbdd5c8a385368ef4917cd1b5c25d87b50b6a53
 SHA512 
f708898961202a7926353cc2163f0c74da0cd32a25f60285e31508aa9087be79c03b88c727e4bca02a6befac4d6875c04269c520719bc026f05045b0c2474897

diff --git a/games-util/grapejuice/grapejuice-7.20.11.ebuild 
b/games-util/grapejuice/grapejuice-7.20.11.ebuild
new file mode 100644
index 0000000000..147b21f2a6
--- /dev/null
+++ b/games-util/grapejuice/grapejuice-7.20.11.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit xdg
+
+DESCRIPTION="A Wine+Roblox management application"
+HOMEPAGE="https://gitlab.com/brinkervii/grapejuice";
+
+if [[ ${PV} == *9999* ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://gitlab.com/brinkervii/grapejuice.git";
+       EGIT_BRANCH="staging"
+else
+       
SRC_URI="https://gitlab.com/brinkervii/grapejuice/-/archive/v${PV}/grapejuice-v${PV}.tar.bz2";
+       KEYWORDS="-* ~amd64"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+
+DEPEND="dev-libs/gobject-introspection
+               dev-python/click
+               dev-python/packaging
+               dev-python/pip
+               dev-python/psutil
+               dev-python/pydantic
+               dev-python/pygobject
+               dev-python/requests
+               dev-python/setuptools
+               dev-python/unidecode
+               dev-python/wheel
+               dev-util/desktop-file-utils
+               dev-util/gtk-update-icon-cache
+               dev-vcs/git
+               sys-devel/gettext
+               x11-apps/mesa-progs
+               x11-libs/cairo
+               x11-libs/gtk+
+               x11-misc/shared-mime-info
+               x11-misc/xdg-user-dirs
+               x11-misc/xdg-utils"
+
+RDEPEND="
+               ${DEPEND}
+               virtual/wine"
+
+src_unpack() {
+       default
+       if [[ ${PV} == *9999* ]]; then
+               git-r3_src_unpack
+       else
+               mv "${WORKDIR}/grapejuice-v${PV}" "${S}" || die
+       fi
+}
+
+src_prepare() {
+       default
+       sed -i \
+               -e 's/"--target"/"--no-build-isolation",\n\t\t"--target"/' \
+               src/grapejuice_packaging/builders/linux_package_builder.py || 
die
+}
+
+src_compile() {
+       cd "${S}"
+       export PYTHONPATH="${S}/src"
+       python3 -m grapejuice_packaging linux_package || die
+}
+
+src_install() {
+       export PYTHON_VERSION=$(python3 -c 'import sys; 
print(f"{sys.version_info.major}.{sys.version_info.minor}")')
+       tar -xf "${S}/dist/linux_package"/*.tar.gz -C "${D}" || die
+       mv "${D}/usr/lib/python3/dist-packages" 
"${D}/usr/lib/python${PYTHON_VERSION}" || die
+       rm -r "${D}/usr/lib/python3" || die
+       default
+}

diff --git a/games-util/grapejuice/grapejuice-9999.ebuild 
b/games-util/grapejuice/grapejuice-9999.ebuild
new file mode 100644
index 0000000000..147b21f2a6
--- /dev/null
+++ b/games-util/grapejuice/grapejuice-9999.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit xdg
+
+DESCRIPTION="A Wine+Roblox management application"
+HOMEPAGE="https://gitlab.com/brinkervii/grapejuice";
+
+if [[ ${PV} == *9999* ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://gitlab.com/brinkervii/grapejuice.git";
+       EGIT_BRANCH="staging"
+else
+       
SRC_URI="https://gitlab.com/brinkervii/grapejuice/-/archive/v${PV}/grapejuice-v${PV}.tar.bz2";
+       KEYWORDS="-* ~amd64"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+
+DEPEND="dev-libs/gobject-introspection
+               dev-python/click
+               dev-python/packaging
+               dev-python/pip
+               dev-python/psutil
+               dev-python/pydantic
+               dev-python/pygobject
+               dev-python/requests
+               dev-python/setuptools
+               dev-python/unidecode
+               dev-python/wheel
+               dev-util/desktop-file-utils
+               dev-util/gtk-update-icon-cache
+               dev-vcs/git
+               sys-devel/gettext
+               x11-apps/mesa-progs
+               x11-libs/cairo
+               x11-libs/gtk+
+               x11-misc/shared-mime-info
+               x11-misc/xdg-user-dirs
+               x11-misc/xdg-utils"
+
+RDEPEND="
+               ${DEPEND}
+               virtual/wine"
+
+src_unpack() {
+       default
+       if [[ ${PV} == *9999* ]]; then
+               git-r3_src_unpack
+       else
+               mv "${WORKDIR}/grapejuice-v${PV}" "${S}" || die
+       fi
+}
+
+src_prepare() {
+       default
+       sed -i \
+               -e 's/"--target"/"--no-build-isolation",\n\t\t"--target"/' \
+               src/grapejuice_packaging/builders/linux_package_builder.py || 
die
+}
+
+src_compile() {
+       cd "${S}"
+       export PYTHONPATH="${S}/src"
+       python3 -m grapejuice_packaging linux_package || die
+}
+
+src_install() {
+       export PYTHON_VERSION=$(python3 -c 'import sys; 
print(f"{sys.version_info.major}.{sys.version_info.minor}")')
+       tar -xf "${S}/dist/linux_package"/*.tar.gz -C "${D}" || die
+       mv "${D}/usr/lib/python3/dist-packages" 
"${D}/usr/lib/python${PYTHON_VERSION}" || die
+       rm -r "${D}/usr/lib/python3" || die
+       default
+}

diff --git a/games-util/grapejuice/metadata.xml 
b/games-util/grapejuice/metadata.xml
new file mode 100644
index 0000000000..f1a0728922
--- /dev/null
+++ b/games-util/grapejuice/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+    <maintainer type="person">
+        <email>tur...@turret.cyou</email>
+        <name>turret</name>
+    </maintainer>
+    <upstream>
+        <remote-id type="gitlab">brinkervii/grapejuice.git</remote-id>
+    </upstream>
+</pkgmetadata>

Reply via email to