commit: db62a1f932615f75777f622c5d97e3d9c0919134 Author: Eetu Eloranta <eetu <AT> muffinpower <DOT> fi> AuthorDate: Tue Oct 21 09:26:48 2025 +0000 Commit: Eetu Eloranta <eetu <AT> muffinpower <DOT> fi> CommitDate: Tue Oct 21 09:26:48 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=db62a1f9
gui-apps/fyi: new package, add 1.0.4, 9999 Signed-off-by: Eetu Eloranta <eetu <AT> muffinpower.fi> gui-apps/fyi/Manifest | 1 + gui-apps/fyi/files/meson-doc-subdir.patch | 38 ++++++++++++++++++++++++++ gui-apps/fyi/fyi-1.0.4.ebuild | 44 +++++++++++++++++++++++++++++++ gui-apps/fyi/fyi-9999.ebuild | 44 +++++++++++++++++++++++++++++++ gui-apps/fyi/metadata.xml | 12 +++++++++ 5 files changed, 139 insertions(+) diff --git a/gui-apps/fyi/Manifest b/gui-apps/fyi/Manifest new file mode 100644 index 0000000000..20576d6619 --- /dev/null +++ b/gui-apps/fyi/Manifest @@ -0,0 +1 @@ +DIST fyi-1.0.4.tar.gz 13938 BLAKE2B 315431ccfb0cefabb02335daba26addc86aafab59616dd43ff591d60aab418ede43db305fb552daa63aff7a6a759d30157beaaff6c92da06fc8ad5d32e5fc564 SHA512 f6d22cdd8bdbbf6cac4fd00f831b110c98af3510864ffa1b473fa706403daf300405fcc4e582ef5c709e40c43cb359a3f38941e9229631a1c683054e829b96fd diff --git a/gui-apps/fyi/files/meson-doc-subdir.patch b/gui-apps/fyi/files/meson-doc-subdir.patch new file mode 100644 index 0000000000..571aa47752 --- /dev/null +++ b/gui-apps/fyi/files/meson-doc-subdir.patch @@ -0,0 +1,38 @@ +From 755ffdfb6c286535c14544e8564bd6169d7f1c7b Mon Sep 17 00:00:00 2001 +From: Eetu Eloranta <[email protected]> +Date: Tue, 21 Oct 2025 10:58:49 +0300 +Subject: [PATCH] meson: add option for documentation subdirectory under + datadir + +Signed-off-by: Eetu Eloranta <[email protected]> +--- + meson.build | 2 +- + meson_options.txt | 3 +++ + 2 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index f026b4e..18531bb 100644 +--- a/meson.build ++++ b/meson.build +@@ -22,7 +22,7 @@ if scdoc.found() + 'LICENSE', + 'README.md', + 'CHANGELOG.md', +- install_dir: join_paths(get_option('datadir'), 'doc', 'fyi')) ++ install_dir: join_paths(get_option('datadir'), get_option('docsdir'))) + subdir('doc') + endif + +diff --git a/meson_options.txt b/meson_options.txt +index 286ac5d..d2ca83a 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -1,2 +1,5 @@ + option('docs', type: 'feature', + description: 'Build and install documentation (man pages, example foot.ini, readme, changelog, license etc).') ++option('docsdir', type: 'string', ++ value: 'doc/fyi', ++ description: 'Documentation subdird under datadir') +-- +2.51.0 + diff --git a/gui-apps/fyi/fyi-1.0.4.ebuild b/gui-apps/fyi/fyi-1.0.4.ebuild new file mode 100644 index 0000000000..b07c735b9b --- /dev/null +++ b/gui-apps/fyi/fyi-1.0.4.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson flag-o-matic + +DESCRIPTION="A notify-send alternative" +HOMEPAGE="https://codeberg.org/dnkl/fyi" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + + EGIT_REPO_URI="https://codeberg.org/dnkl/fyi.git" +else + SRC_URI="https://codeberg.org/dnkl/fyi/archive/${PV}.tar.gz + -> ${P}.tar.gz" + + S="${WORKDIR}/fyi" + + KEYWORDS="~amd64 ~arm64" +fi + +LICENSE="MIT" +SLOT="0" + +RDEPEND="sys-apps/dbus" +BDEPEND=" + ${RDEPEND} + dev-build/meson + dev-build/ninja + app-text/scdoc +" + +PATCHES=("${FILESDIR}/meson-doc-subdir.patch") + +src_configure() { + append-flags -fno-exceptions + EMESON_BUILDTYPE="minsize" + local emesonargs=( + -Ddocsdir="doc/${P}" + ) + meson_src_configure +} diff --git a/gui-apps/fyi/fyi-9999.ebuild b/gui-apps/fyi/fyi-9999.ebuild new file mode 100644 index 0000000000..b07c735b9b --- /dev/null +++ b/gui-apps/fyi/fyi-9999.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson flag-o-matic + +DESCRIPTION="A notify-send alternative" +HOMEPAGE="https://codeberg.org/dnkl/fyi" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + + EGIT_REPO_URI="https://codeberg.org/dnkl/fyi.git" +else + SRC_URI="https://codeberg.org/dnkl/fyi/archive/${PV}.tar.gz + -> ${P}.tar.gz" + + S="${WORKDIR}/fyi" + + KEYWORDS="~amd64 ~arm64" +fi + +LICENSE="MIT" +SLOT="0" + +RDEPEND="sys-apps/dbus" +BDEPEND=" + ${RDEPEND} + dev-build/meson + dev-build/ninja + app-text/scdoc +" + +PATCHES=("${FILESDIR}/meson-doc-subdir.patch") + +src_configure() { + append-flags -fno-exceptions + EMESON_BUILDTYPE="minsize" + local emesonargs=( + -Ddocsdir="doc/${P}" + ) + meson_src_configure +} diff --git a/gui-apps/fyi/metadata.xml b/gui-apps/fyi/metadata.xml new file mode 100644 index 0000000000..fe82cbda35 --- /dev/null +++ b/gui-apps/fyi/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Eetu Eloranta</name> + </maintainer> + <upstream> + <bugs-to>https://codeberg.org/dnkl/fyi/issues</bugs-to> + <remote-id type="codeberg">dnkl/fyi</remote-id> + </upstream> +</pkgmetadata>
