summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbaldr333 <ra@afu.re>2023-12-24 19:49:33 -0500
committerbaldr333 <ra@afu.re>2023-12-24 19:49:33 -0500
commitb3d350b4efd52461275a48580d1df8b83643e504 (patch)
tree41232d59e90e19307bd8028cb98f9306b9e2ae3d
parent1d5d06bf57c442399bfc930c0d2118e355fb3f4a (diff)
Add cassowary ebuild
-rw-r--r--dev-python/cassowary/Manifest2
-rw-r--r--dev-python/cassowary/cassowary-0.6.ebuild53
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/cassowary/Manifest b/dev-python/cassowary/Manifest
new file mode 100644
index 0000000..9781315
--- /dev/null
+++ b/dev-python/cassowary/Manifest
@@ -0,0 +1,2 @@
+DIST cassowary-0.6.tar.gz 1045957 BLAKE2B 0144868db866dc744377812760285a5a64657478d3212ef5c969a2b48ac187a3efdbb4688b637a8fdd7fd648b75fcda28c99f90dba1945ee735173889b27744c SHA512 2e8b2841b203d2a13a399988d3e0d35d7cd70e765370dd31bfc998989bef0bbad99a94d794e8f96b25990f355850d2db4ce3543fa4aedce61d4d36a4d6e8ec3c
+EBUILD cassowary-0.6.ebuild 1391 BLAKE2B 1ccf904770423a398c404f190d0400ae51c0c8c366f77904eae0ef33f4df7f325379d96fdf8163c2bc49edef58dce32b32008a5111d0e7f52c8fcd5ced4b4713 SHA512 41c8735403a5be85f0d7d5a4fef1fe091ecaae296fdb2f3d25d3351d796286ad7b024b9c865ce5bf98f0dcbe51b9b2ccbf6a65627188c58c97caa4642e0498e2
diff --git a/dev-python/cassowary/cassowary-0.6.ebuild b/dev-python/cassowary/cassowary-0.6.ebuild
new file mode 100644
index 0000000..3467c79
--- /dev/null
+++ b/dev-python/cassowary/cassowary-0.6.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=no
+PYTHON_COMPAT=(python3_{9..12})
+
+inherit linux-mod-r1 distutils-r1 desktop
+
+SRC_URI="https://github.com/casualsnek/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="Run Windows Applications on Linux as if they are native (Using a VM and FreeRDP)"
+HOMEPAGE="https://github.com/casualsnek/cassowary"
+
+BDEPEND="dev-python/setuptools
+ dev-python/build
+ dev-python/installer
+"
+
+RDEPEND="net-misc/freerdp
+ dev-python/libvirt-python
+ dev-python/PyQt5
+"
+
+DEPEND="${RDEPEND}"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="X wayland"
+
+MODULES_KERNEL_MIN=5.10
+
+python_compile() {
+ cd "${S}/app-linux" || die
+ echo "See documenation of cassowary" >README.md || die # Dummy Readme file (solve qa error)
+ sed -i "s/version = 0.5/version = ${PV}/g" setup.cfg || die #version typo upstream
+ ${EPYTHON} -m build --wheel --no-isolation
+}
+
+python_install() {
+ cd "${S}/app-linux" || die
+ ${EPYTHON} -m installer --destdir="${D}" dist/cassowary-${PV}-py3-none-any.whl
+ domenu "${FILESDIR}/cassowary.desktop"
+ doicon "${S}/app-linux/src/cassowary/gui/extrares/cassowary.png"
+}
+
+pkg_postinst() {
+ ewarn "This application requires Pre-Configuration"
+ ewarn "Pls Follow the docs of the project:"
+ ewarn "https://github.com/casualsnek/cassowary/docs"
+}