commit:     032cd799907a4c3a067e5ebee3a9725ced55b127
Author:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Mon Apr  8 00:50:48 2024 +0000
Commit:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
CommitDate: Mon Apr  8 00:51:40 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=032cd799

gui-apps/azote: add 1.12.6, 9999

Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>

 gui-apps/azote/Manifest                           |  1 +
 gui-apps/azote/azote-1.12.6.ebuild                | 54 +++++++++++++
 gui-apps/azote/azote-9999.ebuild                  | 54 +++++++++++++
 gui-apps/azote/files/azote-1.12.6-pyproject.patch | 97 +++++++++++++++++++++++
 4 files changed, 206 insertions(+)

diff --git a/gui-apps/azote/Manifest b/gui-apps/azote/Manifest
index efb593b0f4..6e7d59e436 100644
--- a/gui-apps/azote/Manifest
+++ b/gui-apps/azote/Manifest
@@ -1 +1,2 @@
 DIST azote-1.12.3.tar.gz 7972106 BLAKE2B 
af99f181ef635f66b2727d2ddc880d9455462e952845713642b0069fb62ad8a96420c468c3ea791dba3f2e916d013ef2a0f638ad1dc9ec3fb05e4877426b6c3b
 SHA512 
f258bceefa58a193457295b360b05fcb65a9e114859f60ee7146e7024594e8dca38f134df92fbe6aeec058da159a320aaf212411db014fa7e8b428eb57b195ab
+DIST azote-1.12.6.tar.gz 7972892 BLAKE2B 
69c01a23c9fd6e74a816ef6141cd4ebd5039d656cdbbc8402c3b0cf909a8888658a4885f2f2e36b2c97999d69a94294cf476292b7812012280a283c0b1fbb42f
 SHA512 
8dd5b7b627f7b1f029fc30b719472044abd46a2516d626d9c8b5c48bd1af1f39fda990d09f9ba6f35186ddf0d0ae0860a59de235a1df6e4bc7626b2d3a071caa

diff --git a/gui-apps/azote/azote-1.12.6.ebuild 
b/gui-apps/azote/azote-1.12.6.ebuild
new file mode 100644
index 0000000000..89ca0930b1
--- /dev/null
+++ b/gui-apps/azote/azote-1.12.6.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2019-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..12} )
+DISTUTILS_USE_PEP517=setuptools
+inherit desktop distutils-r1 optfeature xdg-utils
+
+DESCRIPTION="wallpaper manager for wlroots compositors"
+HOMEPAGE="https://github.com/nwg-piotr/azote";
+
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/nwg-piotr/azote";
+else
+       SRC_URI="https://github.com/nwg-piotr/azote/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-3 BSD"
+SLOT="0"
+
+RDEPEND="
+       dev-cpp/gtkmm:3.0
+       dev-python/pillow[${PYTHON_USEDEP}]
+       dev-python/pygobject:3=[${PYTHON_USEDEP}]
+       dev-python/pyyaml[${PYTHON_USEDEP}]
+       dev-python/send2trash[${PYTHON_USEDEP}]
+"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.12.6-pyproject.patch
+)
+
+python_install_all() {
+       distutils-r1_python_install_all
+
+       cd "${S}"
+
+       domenu dist/azote.desktop
+
+       insinto /usr/share/azote
+       doins dist/azote.svg dist/indicator_{active,attention}.png
+       insinto /usr/share/licenses/azote
+       doins LICENSE-COLORTHIEF
+}
+
+pkg_postinst() {
+       xdg_desktop_database_update
+
+       optfeature "wayland support" gui-apps/grim gui-apps/slurp 
gui-apps/swaybg gui-apps/wlr-randr
+       optfeature "X support"       media-gfx/feh media-gfx/maim 
x11-apps/xrandr x11-misc/slop
+}

diff --git a/gui-apps/azote/azote-9999.ebuild b/gui-apps/azote/azote-9999.ebuild
new file mode 100644
index 0000000000..89ca0930b1
--- /dev/null
+++ b/gui-apps/azote/azote-9999.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2019-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..12} )
+DISTUTILS_USE_PEP517=setuptools
+inherit desktop distutils-r1 optfeature xdg-utils
+
+DESCRIPTION="wallpaper manager for wlroots compositors"
+HOMEPAGE="https://github.com/nwg-piotr/azote";
+
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/nwg-piotr/azote";
+else
+       SRC_URI="https://github.com/nwg-piotr/azote/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-3 BSD"
+SLOT="0"
+
+RDEPEND="
+       dev-cpp/gtkmm:3.0
+       dev-python/pillow[${PYTHON_USEDEP}]
+       dev-python/pygobject:3=[${PYTHON_USEDEP}]
+       dev-python/pyyaml[${PYTHON_USEDEP}]
+       dev-python/send2trash[${PYTHON_USEDEP}]
+"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.12.6-pyproject.patch
+)
+
+python_install_all() {
+       distutils-r1_python_install_all
+
+       cd "${S}"
+
+       domenu dist/azote.desktop
+
+       insinto /usr/share/azote
+       doins dist/azote.svg dist/indicator_{active,attention}.png
+       insinto /usr/share/licenses/azote
+       doins LICENSE-COLORTHIEF
+}
+
+pkg_postinst() {
+       xdg_desktop_database_update
+
+       optfeature "wayland support" gui-apps/grim gui-apps/slurp 
gui-apps/swaybg gui-apps/wlr-randr
+       optfeature "X support"       media-gfx/feh media-gfx/maim 
x11-apps/xrandr x11-misc/slop
+}

diff --git a/gui-apps/azote/files/azote-1.12.6-pyproject.patch 
b/gui-apps/azote/files/azote-1.12.6-pyproject.patch
new file mode 100644
index 0000000000..d8ca8be96f
--- /dev/null
+++ b/gui-apps/azote/files/azote-1.12.6-pyproject.patch
@@ -0,0 +1,97 @@
+From d3605d93627f0d756c2c570e7ef0ad6e751d8eb3 Mon Sep 17 00:00:00 2001
+From: Aisha Tammy <ai...@bsd.ac>
+Date: Sun, 7 Apr 2024 20:32:01 -0400
+Subject: [PATCH 1/2] feat: add pyproject.toml
+
+---
+ pyproject.toml | 27 +++++++++++++++++++++++++++
+ 1 file changed, 27 insertions(+)
+ create mode 100644 pyproject.toml
+
+diff --git a/pyproject.toml b/pyproject.toml
+new file mode 100644
+index 0000000..fec8478
+--- /dev/null
++++ b/pyproject.toml
+@@ -0,0 +1,27 @@
++[build-system]
++requires = ["setuptools >= 61.0"]
++build-backend = "setuptools.build_meta"
++
++[project]
++name = "azote"
++version = "1.12.6"
++description = "Wallpaper manager for sway and some other WMs"
++readme = "README.md"
++license = {text = "GPL3"}
++requires-python = ">= 3.8.0"
++authors = [
++  {name = "Piotr Miller", email = "nwg.pi...@gmail.com"},
++]
++dependencies = [
++  "pillow",
++  "PyGObject",
++  "PyYAML",
++  "Send2Trash",
++]
++
++[project.urls]
++Repository = "https://github.com/nwg-piotr/azote";
++License = "https://github.com/nwg-piotr/azote/blob/master/LICENSE";
++
++[project.scripts]
++azote = "azote.main:main"
+
+From 769d027dfa40c218075827ca50241a2395240bea Mon Sep 17 00:00:00 2001
+From: Aisha Tammy <ai...@bsd.ac>
+Date: Sun, 7 Apr 2024 20:33:21 -0400
+Subject: [PATCH 2/2] scratch
+
+---
+ dist/azote |  5 -----
+ setup.py   | 24 ------------------------
+ 2 files changed, 29 deletions(-)
+ delete mode 100755 dist/azote
+ delete mode 100644 setup.py
+
+diff --git a/dist/azote b/dist/azote
+deleted file mode 100755
+index 7684782..0000000
+--- a/dist/azote
++++ /dev/null
+@@ -1,5 +0,0 @@
+-#!/bin/sh
+-
+-LIB=$(python3 -Ic "from sysconfig import get_path; 
print(get_path('purelib'))")
+-cd $LIB/azote
+-exec /usr/bin/python3 main.py "$@"
+diff --git a/setup.py b/setup.py
+deleted file mode 100644
+index 86cfe6d..0000000
+--- a/setup.py
++++ /dev/null
+@@ -1,24 +0,0 @@
+-import os
+-from setuptools import setup, find_packages
+-
+-
+-def read(f_name):
+-    return open(os.path.join(os.path.dirname(__file__), f_name)).read()
+-
+-
+-setup(
+-    name='azote',
+-    version='1.12.6',
+-    description='Wallpaper manager for sway and some other WMs',
+-    packages=find_packages(),
+-    include_package_data=True,
+-    package_data={
+-        "": ["images/*", "langs/*"]
+-    },
+-    url='https://github.com/nwg-piotr/azote',
+-    license='GPL3',
+-    author='Piotr Miller',
+-    author_email='nwg.pi...@gmail.com',
+-    python_requires='>=3.8.0',
+-    install_requires=[],
+-)

Reply via email to