From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EE803158089 for ; Fri, 20 Oct 2023 07:35:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 02B212BC119; Fri, 20 Oct 2023 07:35:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DD79A2BC119 for ; Fri, 20 Oct 2023 07:35:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1E7BB335D12 for ; Fri, 20 Oct 2023 07:35:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4D0041293 for ; Fri, 20 Oct 2023 07:35:36 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1697786985.6fb8c321abb5af9f53eb29c66c4abe7c457fe4b2.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/hyfetch/, app-misc/hyfetch/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/hyfetch/Manifest app-misc/hyfetch/files/hyfetch-1.4.10-config_fix.patch app-misc/hyfetch/hyfetch-1.4.10.ebuild app-misc/hyfetch/hyfetch-9999.ebuild app-misc/hyfetch/metadata.xml X-VCS-Directories: app-misc/hyfetch/ app-misc/hyfetch/files/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 6fb8c321abb5af9f53eb29c66c4abe7c457fe4b2 X-VCS-Branch: master Date: Fri, 20 Oct 2023 07:35:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 26531270-b3a9-4228-b76e-944c7541924e X-Archives-Hash: 0bcb44cb5b6242d6c1bc085d2469b450 commit: 6fb8c321abb5af9f53eb29c66c4abe7c457fe4b2 Author: Bailey Kasin gmail com> AuthorDate: Fri Oct 20 07:11:04 2023 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Fri Oct 20 07:29:45 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fb8c321 app-misc/hyfetch: new package, add 1.4.10, 9999 Closes: https://github.com/gentoo/gentoo/pull/32681 Signed-off-by: Joonas Niilola gentoo.org> app-misc/hyfetch/Manifest | 1 + .../hyfetch/files/hyfetch-1.4.10-config_fix.patch | 15 ++++++++ app-misc/hyfetch/hyfetch-1.4.10.ebuild | 40 ++++++++++++++++++++++ app-misc/hyfetch/hyfetch-9999.ebuild | 36 +++++++++++++++++++ app-misc/hyfetch/metadata.xml | 19 ++++++++++ 5 files changed, 111 insertions(+) diff --git a/app-misc/hyfetch/Manifest b/app-misc/hyfetch/Manifest new file mode 100644 index 000000000000..3a5f627eff09 --- /dev/null +++ b/app-misc/hyfetch/Manifest @@ -0,0 +1 @@ +DIST hyfetch-1.4.10.tar.gz 266471 BLAKE2B 294002c2cd986055f6392aa61bb8de1d3d558712cd327243e7c2e756aa6e00ff23372fd0ffcc60db8f978110a3d8d1d78c6f683e304fc65b19d2f076e10347f2 SHA512 3f44bd9c0b030b435949db0c0cbd4913e7ec15e857df0dcf2fc3b7d10dca0a4c8ecb9862157f60eebd15b7a1c233c51a74f341b440892e0925871e42215c80e0 diff --git a/app-misc/hyfetch/files/hyfetch-1.4.10-config_fix.patch b/app-misc/hyfetch/files/hyfetch-1.4.10-config_fix.patch new file mode 100644 index 000000000000..955eaf60ca30 --- /dev/null +++ b/app-misc/hyfetch/files/hyfetch-1.4.10-config_fix.patch @@ -0,0 +1,15 @@ +check_config uses the global constant CONFIG_PATH instead +of the path that gets passed to it. + +--- a/hyfetch/main.py ++++ b/hyfetch/main.py +@@ -27,7 +27,7 @@ def check_config(path) -> Config: + """ + if path.is_file(): + try: +- return Config.from_dict(json.loads(CONFIG_PATH.read_text('utf-8'))) ++ return Config.from_dict(json.loads(path.read_text('utf-8'))) + except KeyError: + return create_config() + + diff --git a/app-misc/hyfetch/hyfetch-1.4.10.ebuild b/app-misc/hyfetch/hyfetch-1.4.10.ebuild new file mode 100644 index 000000000000..076daa812814 --- /dev/null +++ b/app-misc/hyfetch/hyfetch-1.4.10.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..12} ) +inherit optfeature distutils-r1 + +DESCRIPTION="Neofetch with LGBTQ+ pride flags!" +HOMEPAGE="https://github.com/hykilpikonna/hyfetch" +if [[ ${PV} == *9999 ]]; then + EGIT_REPO_URI="https://github.com/hykilpikonna/hyfetch.git" + inherit git-r3 +else + SRC_URI="https://github.com/hykilpikonna/${PN}/archive/${PV}/${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="MIT" +SLOT="0" + +RDEPEND=" + dev-python/typing-extensions[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}"/${PN}-1.4.10-config_fix.patch +) + +pkg_postinst() { + optfeature "displaying images" "media-libs/imlib2 www-client/w3m[imlib]" + optfeature "gpu detection" sys-apps/pciutils + optfeature "thumbnail creation" media-gfx/imagemagick + optfeature "wallpaper" media-gfx/feh x11-misc/nitrogen + optfeature "window size" x11-misc/xdotool "x11-apps/xwininfo x11-apps/xprop" "x11-apps/xwininfo x11-apps/xdpyinfo" + elog "The standard neofetch is installed as 'neowofetch', to avoid name conflicts." + elog "So if you do not wish to use the pride flag functionality, you can call the" + elog "tool that way instead." +} diff --git a/app-misc/hyfetch/hyfetch-9999.ebuild b/app-misc/hyfetch/hyfetch-9999.ebuild new file mode 100644 index 000000000000..c73d6a446e80 --- /dev/null +++ b/app-misc/hyfetch/hyfetch-9999.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..12} ) +inherit optfeature distutils-r1 + +DESCRIPTION="Neofetch with LGBTQ+ pride flags!" +HOMEPAGE="https://github.com/hykilpikonna/hyfetch" +if [[ ${PV} == *9999* ]]; then + EGIT_REPO_URI="https://github.com/hykilpikonna/hyfetch.git" + inherit git-r3 +else + SRC_URI="https://github.com/hykilpikonna/${PN}/archive/${PV}/${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="MIT" +SLOT="0" + +RDEPEND=" + dev-python/typing-extensions[${PYTHON_USEDEP}] +" + +pkg_postinst() { + optfeature "displaying images" "media-libs/imlib2 www-client/w3m[imlib]" + optfeature "gpu detection" sys-apps/pciutils + optfeature "thumbnail creation" media-gfx/imagemagick + optfeature "wallpaper" media-gfx/feh x11-misc/nitrogen + optfeature "window size" x11-misc/xdotool "x11-apps/xwininfo x11-apps/xprop" "x11-apps/xwininfo x11-apps/xdpyinfo" + elog "The standard neofetch is installed as 'neowofetch', to avoid name conflicts." + elog "So if you do not wish to use the pride flag functionality, you can call the" + elog "tool that way instead." +} diff --git a/app-misc/hyfetch/metadata.xml b/app-misc/hyfetch/metadata.xml new file mode 100644 index 000000000000..3a8c9e49c124 --- /dev/null +++ b/app-misc/hyfetch/metadata.xml @@ -0,0 +1,19 @@ + + + + + baileykasin@gmail.com + Bailey Kasin + + + proxy-maint@gentoo.org + Proxy Maintainers + + hyfetch builds upon neofetch to add pride flag coloration to the OS + logo, and also maintains the standard version of neofetch with bug fixes and new features, + as the original project is un-maintained. + + hykilpikonna/hyfetch + https://github.com/hykilpikonna/hyfetch/issues + +