Github messages for voidlinux
 help / color / mirror / Atom feed
From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] nerd-fonts: split symbols font
Date: Thu, 28 Sep 2023 23:42:51 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46319@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 783 bytes --]

There is a new pull request by classabbyamp against master on the void-packages repository

https://github.com/classabbyamp/void-packages nerd-fonts-symbols
https://github.com/void-linux/void-packages/pull/46319

nerd-fonts: split symbols font
cc maintainer @cinerea0, interested party @chrysos349

- "gets rid of the bloat", if the user desires to only have the symbol font
- doesn't break existing installs (`-ttf` depends on `-symbols-ttf` to preserve continuity best, doesn't enable the fontconfig conf by default, doesn't remove other patched nerd-fonts)
- doesn't create more maintainer burden by having 2 templates

#### Testing the changes
- I tested the changes in this PR: **YES**


A patch file from https://github.com/void-linux/void-packages/pull/46319.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-nerd-fonts-symbols-46319.patch --]
[-- Type: text/x-diff, Size: 2124 bytes --]

From 7cb8f3c2a52e5d848712ad341ff8a98e76bffa92 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 28 Sep 2023 17:37:33 -0400
Subject: [PATCH] nerd-fonts: split symbols font

---
 srcpkgs/nerd-fonts-symbols-ttf |  1 +
 srcpkgs/nerd-fonts/template    | 20 ++++++++++++++++----
 2 files changed, 17 insertions(+), 4 deletions(-)
 create mode 120000 srcpkgs/nerd-fonts-symbols-ttf

diff --git a/srcpkgs/nerd-fonts-symbols-ttf b/srcpkgs/nerd-fonts-symbols-ttf
new file mode 120000
index 0000000000000..e5a8856321374
--- /dev/null
+++ b/srcpkgs/nerd-fonts-symbols-ttf
@@ -0,0 +1 @@
+nerd-fonts
\ No newline at end of file
diff --git a/srcpkgs/nerd-fonts/template b/srcpkgs/nerd-fonts/template
index f4409116aa628..819c1a1114a03 100644
--- a/srcpkgs/nerd-fonts/template
+++ b/srcpkgs/nerd-fonts/template
@@ -1,7 +1,7 @@
 # Template file for 'nerd-fonts'
 pkgname=nerd-fonts
 version=3.0.2
-revision=1
+revision=2
 depends="nerd-fonts-ttf nerd-fonts-otf"
 short_desc="Iconic font aggregator, collection and patcher"
 maintainer="cinerea0 <cinerea0@protonmail.com>"
@@ -25,11 +25,23 @@ do_install() {
 		vinstall $sh 744 usr/lib/NerdFonts
 	done
 
+	vinstall 10-nerd-font-symbols.conf 644 usr/share/fontconfig/conf.avail
+
 	vlicense LICENSE
 }
 
+nerd-fonts-symbols-ttf_package() {
+	short_desc+=" - TTF symbols-only font"
+	font_dirs="/usr/share/fonts/NerdFonts/ttf"
+	depends="font-util"
+	pkg_install() {
+		vmove "usr/share/fonts/NerdFonts/ttf/Symbols*"
+		vmove usr/share/fontconfig/conf.avail/10-nerd-font-symbols.conf
+	}
+}
+
 nerd-fonts-otf_package() {
-	short_desc="Iconic font aggregator, collection and patcher - otf fonts"
+	short_desc+=" - OTF fonts"
 	font_dirs="/usr/share/fonts/NerdFonts/otf"
 	depends="font-util"
 	pkg_install() {
@@ -38,9 +50,9 @@ nerd-fonts-otf_package() {
 }
 
 nerd-fonts-ttf_package() {
-	short_desc="Iconic font aggregator, collection and patcher - ttf fonts"
+	short_desc+=" - TTF fonts"
 	font_dirs="/usr/share/fonts/NerdFonts/ttf"
-	depends="font-util"
+	depends="font-util nerd-fonts-symbols-ttf"
 	pkg_install() {
 		vmove usr/share/fonts/NerdFonts/ttf
 	}

             reply	other threads:[~2023-09-28 21:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-28 21:42 classabbyamp [this message]
2023-09-30 14:54 ` [PR REVIEW] " sgn
2023-09-30 17:33 ` [PR PATCH] [Updated] " classabbyamp
2023-09-30 19:58 ` [PR REVIEW] " chrysos349
2023-09-30 20:08 ` classabbyamp
2023-10-02  1:44 ` cinerea0
2023-10-02  1:45 ` classabbyamp
2023-10-02 13:48 ` [PR PATCH] [Merged]: " classabbyamp

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-46319@inbox.vuxu.org \
    --to=classabbyamp@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).