From: simvux <simvux@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] terminus-font: bundled patches as build options
Date: Wed, 10 Jan 2024 21:10:12 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48157@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 892 bytes --]
There is a new pull request by simvux against master on the void-packages repository
https://github.com/simvux/void-packages terminus-font-build-options
https://github.com/void-linux/void-packages/pull/48157
terminus-font: bundled patches as build options
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc
The source for terminus includes a couple of patches that can be applied.
This PR also defaults to applying the centered `~` patch, instead of it being aligned to the top. This is something the creators of terminus themselves say maybe should've been the default. Since most other fonts use center-aligned tilde I took the liberty of applying this patch by default.
A patch file from https://github.com/void-linux/void-packages/pull/48157.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-terminus-font-build-options-48157.patch --]
[-- Type: text/x-diff, Size: 1492 bytes --]
From f1e5e9b3b5815ffc19f4f5292c6479fdef918672 Mon Sep 17 00:00:00 2001
From: Simon Larsson <simon.larsson-general@protonmail.com>
Date: Wed, 10 Jan 2024 20:55:36 +0100
Subject: [PATCH] terminus-font: bundled patches as build options
---
srcpkgs/terminus-font/template | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/srcpkgs/terminus-font/template b/srcpkgs/terminus-font/template
index f597fab66bef4..516e4d738eb8b 100644
--- a/srcpkgs/terminus-font/template
+++ b/srcpkgs/terminus-font/template
@@ -1,7 +1,7 @@
# Template file for 'terminus-font'
pkgname=terminus-font
version=4.49.1
-revision=1
+revision=2
build_style=gnu-configure
configure_args="--x11dir=/usr/share/fonts/X11/misc
--psfdir=/usr/share/kbd/consolefonts"
@@ -15,6 +15,21 @@ homepage="http://terminus-font.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=d961c1b781627bf417f9b340693d64fc219e0113ad3a3af1a3424c7aa373ef79
font_dirs="/usr/share/fonts/X11/misc"
+build_options="ao2 br1 dv1 ge2 gq2 hi2 ij1 ll2 td1"
+build_options_default="td1"
+desc_option_ao2="variation of ascii a"
+desc_option_td1="center aligned tilde ~"
+desc_option_ll1="variation of ascii l"
+desc_option_hi1="higher upper case letters and digits"
+
+do_patch() {
+ for p in $build_options; do
+ if [ $(vopt_if $p true false) = true ]; then
+ echo "applying $p"
+ patch < "alt/$p.diff"
+ fi
+ done
+}
post_install() {
vlicense OFL.TXT OFL.txt
next reply other threads:[~2024-01-10 20:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-10 20:10 simvux [this message]
2024-01-10 20:14 ` ahesford
2024-01-10 20:15 ` ahesford
2024-01-10 21:52 ` simvux
2024-01-10 22:18 ` ahesford
2024-01-10 23:22 ` simvux
2024-01-31 15:52 ` [PR PATCH] [Closed]: " ahesford
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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48157@inbox.vuxu.org \
--to=simvux@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).