gui-apps/fyi: new package, add 1.0.4, 9999

Signed-off-by: Eetu Eloranta <eetu@muffinpower.fi>
This commit is contained in:
Eetu Eloranta
2025-10-21 12:26:48 +03:00
parent d804d799d5
commit db62a1f932
5 changed files with 139 additions and 0 deletions

1
gui-apps/fyi/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST fyi-1.0.4.tar.gz 13938 BLAKE2B 315431ccfb0cefabb02335daba26addc86aafab59616dd43ff591d60aab418ede43db305fb552daa63aff7a6a759d30157beaaff6c92da06fc8ad5d32e5fc564 SHA512 f6d22cdd8bdbbf6cac4fd00f831b110c98af3510864ffa1b473fa706403daf300405fcc4e582ef5c709e40c43cb359a3f38941e9229631a1c683054e829b96fd

View File

@@ -0,0 +1,38 @@
From 755ffdfb6c286535c14544e8564bd6169d7f1c7b Mon Sep 17 00:00:00 2001
From: Eetu Eloranta <eetu@muffinpower.fi>
Date: Tue, 21 Oct 2025 10:58:49 +0300
Subject: [PATCH] meson: add option for documentation subdirectory under
datadir
Signed-off-by: Eetu Eloranta <eetu@muffinpower.fi>
---
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

View File

@@ -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
}

View File

@@ -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
}

12
gui-apps/fyi/metadata.xml Normal file
View File

@@ -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>eetu@muffinpower.fi</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>