From: kkga <kkga@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] wlsunset: generate man page
Date: Sat, 01 May 2021 10:22:45 +0200 [thread overview]
Message-ID: <20210501082245.0ehQPH8rpSdV9-VuveT46xCBYRD0vLmQ_9DTtvT_k8Y@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-30566@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1599 bytes --]
There is an updated pull request by kkga against master on the void-packages repository
https://github.com/kkga/void-packages wlsunset-manpage
https://github.com/void-linux/void-packages/pull/30566
wlsunset: generate man page
<!-- Mark items with [x] where applicable -->
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/30566.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-wlsunset-manpage-30566.patch --]
[-- Type: text/x-diff, Size: 3232 bytes --]
From 4d4c50e9b4e60109d85bc807b2a48d629221ca18 Mon Sep 17 00:00:00 2001
From: Gadzhi Kharkharov <me@kkga.me>
Date: Wed, 28 Apr 2021 23:55:10 +0300
Subject: [PATCH] wlsunset: generate man page
---
.../patches/fix-scdoc-cross-compiling.patch | 55 +++++++++++++++++++
srcpkgs/wlsunset/template | 5 +-
2 files changed, 58 insertions(+), 2 deletions(-)
create mode 100644 srcpkgs/wlsunset/patches/fix-scdoc-cross-compiling.patch
diff --git a/srcpkgs/wlsunset/patches/fix-scdoc-cross-compiling.patch b/srcpkgs/wlsunset/patches/fix-scdoc-cross-compiling.patch
new file mode 100644
index 000000000000..f9189f0e700d
--- /dev/null
+++ b/srcpkgs/wlsunset/patches/fix-scdoc-cross-compiling.patch
@@ -0,0 +1,55 @@
+From 7be432057f268fff6e68928f3c3f3b4b70d67368 Mon Sep 17 00:00:00 2001
+From: Kenny Levinsen <kl@kl.wtf>
+Date: Fri, 30 Apr 2021 20:02:02 +0200
+Subject: [PATCH] meson: Copy seatd's scdoc handling
+
+This fixes cross-compiling, and avoids unnecessary search for a shell.
+---
+ meson.build | 13 +++++--------
+ 1 file changed, 5 insertions(+), 8 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index 23d24c5..9a02caf 100644
+--- a/meson.build
++++ b/meson.build
+@@ -3,7 +3,7 @@ project(
+ 'c',
+ version: '0.2.0',
+ license: 'MIT',
+- meson_version: '>=0.53.0',
++ meson_version: '>=0.56.0',
+ default_options: [
+ 'c_std=c11',
+ 'warning_level=3',
+@@ -56,16 +56,13 @@ executable(
+ install: true,
+ )
+
+-scdoc = dependency('scdoc', required: get_option('man-pages'), version: '>= 1.9.7')
++scdoc = dependency('scdoc', required: get_option('man-pages'), version: '>= 1.9.7', native: true)
+
+ if scdoc.found()
+- sh = find_program('sh')
+-
+- man_pages = ['wlsunset.1.scd']
+-
++ scdoc_prog = find_program(scdoc.get_variable(pkgconfig: 'scdoc'), native: true)
+ mandir = get_option('mandir')
+
+- foreach src : man_pages
++ foreach src : ['wlsunset.1.scd']
+ topic = src.split('.')[0]
+ section = src.split('.')[1]
+ output = '@0@.@1@'.format(topic, section)
+@@ -75,7 +72,7 @@ if scdoc.found()
+ input: src,
+ output: output,
+ command: [
+- sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc.get_pkgconfig_variable('scdoc'), output)
++ 'sh', '-c', '@0@ < @INPUT@ > @1@'.format(scdoc_prog.full_path(), output)
+ ],
+ install: true,
+ install_dir: '@0@/man@1@'.format(mandir, section)
+--
+2.30.2
+
diff --git a/srcpkgs/wlsunset/template b/srcpkgs/wlsunset/template
index 3c5cc4170a20..5ec0aa3d8c45 100644
--- a/srcpkgs/wlsunset/template
+++ b/srcpkgs/wlsunset/template
@@ -1,9 +1,9 @@
# Template file for 'wlsunset'
pkgname=wlsunset
version=0.2.0
-revision=1
+revision=2
build_style=meson
-hostmakedepends="pkg-config wayland-devel"
+hostmakedepends="scdoc pkg-config wayland-devel"
makedepends="pkg-config wayland-devel wayland-protocols"
short_desc="Day/night gamma adjustments for Wayland compositors"
maintainer="Duncaen <duncaen@voidlinux.org>"
@@ -11,6 +11,7 @@ license="MIT"
homepage="https://sr.ht/~kennylevinsen/wlsunset/"
distfiles="https://git.sr.ht/~kennylevinsen/wlsunset/archive/${version}.tar.gz"
checksum=88bce695722a09d79545f14d404cc0659f7176bb08d5db5f4f23228b6ba8bb03
+patch_args=-Np1
post_install() {
vlicense LICENSE
next prev parent reply other threads:[~2021-05-01 8:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-28 20:55 [PR PATCH] " kkga
2021-04-28 21:07 ` ericonr
2021-04-28 21:24 ` [PR PATCH] [Updated] " kkga
2021-04-28 21:26 ` ericonr
2021-04-30 18:08 ` ericonr
2021-04-30 20:17 ` [PR PATCH] [Updated] " kkga
2021-04-30 20:19 ` kkga
2021-04-30 20:23 ` kkga
2021-04-30 21:22 ` ericonr
2021-05-01 8:22 ` kkga [this message]
2021-05-01 8:26 ` kkga
2021-05-01 12:19 ` [PR PATCH] [Merged]: " ericonr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210501082245.0ehQPH8rpSdV9-VuveT46xCBYRD0vLmQ_9DTtvT_k8Y@z \
--to=kkga@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).