Github messages for voidlinux
 help / color / mirror / Atom feed
From: FoggyMtnDrifter <FoggyMtnDrifter@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] add ttf-vista-fonts package (nonfree)
Date: Wed, 24 Apr 2024 23:52:32 +0200	[thread overview]
Message-ID: <20240424215232.56074223C4@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-49996@inbox.vuxu.org>

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

There is an updated pull request by FoggyMtnDrifter against master on the void-packages repository

https://github.com/FoggyMtnDrifter/void-packages ttf-vista-fonts
https://github.com/void-linux/void-packages/pull/49996

add ttf-vista-fonts package (nonfree)
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ttf-vista-fonts-49996.patch --]
[-- Type: text/x-diff, Size: 6366 bytes --]

From 5f8a50f6198e9725d61660aea16358aff1e8bbeb Mon Sep 17 00:00:00 2001
From: Michael Kinder <michael@foggymtndrifter.com>
Date: Tue, 23 Apr 2024 05:06:24 -0400
Subject: [PATCH 1/3] add ttf-vista-fonts package (nonfree)

---
 srcpkgs/ttf-vista-fonts/template | 41 ++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 srcpkgs/ttf-vista-fonts/template

diff --git a/srcpkgs/ttf-vista-fonts/template b/srcpkgs/ttf-vista-fonts/template
new file mode 100644
index 00000000000000..2e988ce12ed46b
--- /dev/null
+++ b/srcpkgs/ttf-vista-fonts/template
@@ -0,0 +1,41 @@
+pkgname=ttf-vista-fonts
+version=1.0.0
+revision=1
+short_desc="Microsoft Vista and Office 2007 True Type Fonts"
+maintainer="Michael Kinder <michael@foggymtndrifter.com>"
+# Referenced to the PowerPointViewer.exe, the template and mechanism are custom.
+# The fonts are licensed under a Microsoft-specific license included with this
+# package as filename "EULA".
+license="custom:microsoft"
+homepage="https://docs.microsoft.com/en-us/typography/fonts/font-faq"
+distfiles="https://web.archive.org/web/20171225132744/http://download.microsoft.com/download/E/6/7/E675FFFC-2A6D-4AB0-B3EB-27C9F8C8F696/PowerPointViewer.exe>${pkgname}.cab"
+checksum=249473568eba7a1e4f95498acba594e0f42e6581add4dead70c1dfb908a09423
+makedepends="fontforge fontconfig cabextract"
+nocross=yes
+
+# While it is fine to distribute the templates that build packages
+# containing the Vista and Office 2007 fonts, they must not distribute the fonts
+# themselves (this would constitute changing or otherwise
+# encapsulating the filename which is not permitted).
+restricted=yes
+repository=nonfree
+
+# They're just fonts...
+
+# Tell XBPS that these are fonts
+font_dirs="/usr/share/fonts/TTF"
+
+do_extract() {
+    mkdir -p ${wrksrc}
+    cabextract --lowercase ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}.cab -d ${wrksrc}
+    cabextract --lowercase -F '*.tt[fc]' ${wrksrc}/ppviewer.cab -d ${wrksrc}
+}
+
+do_install() {
+    vmkdir usr/share/fonts/TTF
+    # Use find command to correctly handle and copy each font file
+    find ${wrksrc} -iname "*.ttf" -o -iname "*.ttc" | while read fontfile; do
+        vcopy "$(basename ${fontfile})" usr/share/fonts/TTF/
+    done
+    vinstall ${wrksrc}/eula 644 usr/share/licenses/${pkgname}/EULA
+}

From e1b039fc8c16958ee48af4d2661b4c7ef56065fd Mon Sep 17 00:00:00 2001
From: Michael Kinder <michael@foggymtndrifter.com>
Date: Tue, 23 Apr 2024 10:22:25 -0400
Subject: [PATCH 2/3] update template

---
 srcpkgs/ttf-vista-fonts/template | 36 ++++++++------------------------
 1 file changed, 9 insertions(+), 27 deletions(-)

diff --git a/srcpkgs/ttf-vista-fonts/template b/srcpkgs/ttf-vista-fonts/template
index 2e988ce12ed46b..22444afda864d7 100644
--- a/srcpkgs/ttf-vista-fonts/template
+++ b/srcpkgs/ttf-vista-fonts/template
@@ -1,41 +1,23 @@
+# Template file for 'ttf-vista-fonts'
 pkgname=ttf-vista-fonts
 version=1.0.0
 revision=1
+hostmakedepends="cabextract"
 short_desc="Microsoft Vista and Office 2007 True Type Fonts"
 maintainer="Michael Kinder <michael@foggymtndrifter.com>"
-# Referenced to the PowerPointViewer.exe, the template and mechanism are custom.
-# The fonts are licensed under a Microsoft-specific license included with this
-# package as filename "EULA".
 license="custom:microsoft"
 homepage="https://docs.microsoft.com/en-us/typography/fonts/font-faq"
 distfiles="https://web.archive.org/web/20171225132744/http://download.microsoft.com/download/E/6/7/E675FFFC-2A6D-4AB0-B3EB-27C9F8C8F696/PowerPointViewer.exe>${pkgname}.cab"
 checksum=249473568eba7a1e4f95498acba594e0f42e6581add4dead70c1dfb908a09423
-makedepends="fontforge fontconfig cabextract"
-nocross=yes
-
-# While it is fine to distribute the templates that build packages
-# containing the Vista and Office 2007 fonts, they must not distribute the fonts
-# themselves (this would constitute changing or otherwise
-# encapsulating the filename which is not permitted).
+font_dirs="/usr/share/fonts/TTF"
 restricted=yes
 repository=nonfree
-
-# They're just fonts...
-
-# Tell XBPS that these are fonts
-font_dirs="/usr/share/fonts/TTF"
-
-do_extract() {
-    mkdir -p ${wrksrc}
-    cabextract --lowercase ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}.cab -d ${wrksrc}
-    cabextract --lowercase -F '*.tt[fc]' ${wrksrc}/ppviewer.cab -d ${wrksrc}
-}
+skip_extraction="${pkgname}.cab"
 
 do_install() {
-    vmkdir usr/share/fonts/TTF
-    # Use find command to correctly handle and copy each font file
-    find ${wrksrc} -iname "*.ttf" -o -iname "*.ttc" | while read fontfile; do
-        vcopy "$(basename ${fontfile})" usr/share/fonts/TTF/
-    done
-    vinstall ${wrksrc}/eula 644 usr/share/licenses/${pkgname}/EULA
+	vsrccopy ${pkgname}.cab .
+	cabextract ${pkgname}.cab
+	cabextract --lowercase -F '*.tt[fc]' ppviewer.cab \
+		-d ${DESTDIR}/usr/share/fonts/TTF
+	vlicense EULA
 }

From 97a297b0da81e80713951deba1cebf7bfcd92b1e Mon Sep 17 00:00:00 2001
From: Michael Kinder <michael@foggymtndrifter.com>
Date: Tue, 23 Apr 2024 05:06:24 -0400
Subject: [PATCH 3/3] New package: ttf-vista-fonts-1.0.0

---
 srcpkgs/ttf-vista-fonts/template | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 srcpkgs/ttf-vista-fonts/template

diff --git a/srcpkgs/ttf-vista-fonts/template b/srcpkgs/ttf-vista-fonts/template
new file mode 100644
index 00000000000000..22444afda864d7
--- /dev/null
+++ b/srcpkgs/ttf-vista-fonts/template
@@ -0,0 +1,23 @@
+# Template file for 'ttf-vista-fonts'
+pkgname=ttf-vista-fonts
+version=1.0.0
+revision=1
+hostmakedepends="cabextract"
+short_desc="Microsoft Vista and Office 2007 True Type Fonts"
+maintainer="Michael Kinder <michael@foggymtndrifter.com>"
+license="custom:microsoft"
+homepage="https://docs.microsoft.com/en-us/typography/fonts/font-faq"
+distfiles="https://web.archive.org/web/20171225132744/http://download.microsoft.com/download/E/6/7/E675FFFC-2A6D-4AB0-B3EB-27C9F8C8F696/PowerPointViewer.exe>${pkgname}.cab"
+checksum=249473568eba7a1e4f95498acba594e0f42e6581add4dead70c1dfb908a09423
+font_dirs="/usr/share/fonts/TTF"
+restricted=yes
+repository=nonfree
+skip_extraction="${pkgname}.cab"
+
+do_install() {
+	vsrccopy ${pkgname}.cab .
+	cabextract ${pkgname}.cab
+	cabextract --lowercase -F '*.tt[fc]' ppviewer.cab \
+		-d ${DESTDIR}/usr/share/fonts/TTF
+	vlicense EULA
+}

  parent reply	other threads:[~2024-04-24 21:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-23  9:10 [PR PATCH] " FoggyMtnDrifter
2024-04-23  9:12 ` FoggyMtnDrifter
2024-04-23 12:00 ` chrysos349
2024-04-23 14:22 ` [PR PATCH] [Updated] " FoggyMtnDrifter
2024-04-23 14:39 ` FoggyMtnDrifter
2024-04-24 18:58 ` fanyx
2024-04-24 21:52 ` FoggyMtnDrifter [this message]
2024-04-24 23:55 ` 0x5c
2024-04-25  1:19 ` [PR PATCH] [Updated] " FoggyMtnDrifter
2024-04-25  1:20 ` FoggyMtnDrifter

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=20240424215232.56074223C4@inbox.vuxu.org \
    --to=foggymtndrifter@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).