Bug 253099

Summary: x11-fonts/paratype: update to the PT Public Pack
Product: Ports & Packages Reporter: Val Packett <val>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed Not Accepted    
Severity: Affects Only Me CC: diizzy, lwhsu, yasu
Priority: --- Keywords: patch
Version: LatestFlags: val: maintainer-feedback+
Hardware: Any   
OS: Any   
Attachments:
Description Flags
pt-public-pack.patch val: maintainer-approval+

Description Val Packett 2021-01-30 16:09:03 UTC
Created attachment 222025 [details]
pt-public-pack.patch

The PT Public Pack https://www.paratype.com/collections/pt/44157 includes new typefaces PT Astra Sans/Serif and PT Root UI, and has reasonable file names instead of whatever weird abbreviations were there in the previous downloads.

Unfortunately the download requires a Referer header, looks like this is the first use of `FETCH_ENV+= HTTP_REFERER=…` in the ports tree. Also there's no version number anywhere for the collection, so I went ahead with the download ID.
Comment 1 Li-Wen Hsu freebsd_committer freebsd_triage 2021-02-13 12:57:45 UTC
I am worried that the download ID, which is used as PORTVERSION here, might changed or even go backward. For this situation I suggest we use a customized version or snapshot date. What do you think? Also I suggest appending a meaningful filename suffix for the distfile.
Comment 2 Val Packett 2021-02-19 17:20:30 UTC
(In reply to Li-Wen Hsu from comment #1)
Okay, date is fine.

> I suggest appending a meaningful filename suffix for the distfile

How do you rename downloaded files in the ports framework? I haven't noticed any feature that allows doing this yet…
Comment 3 Yasuhiro Kimura freebsd_committer freebsd_triage 2021-10-31 18:29:17 UTC
(In reply to Greg V from comment #0)

I tried your patch but it results in fetch error as following.

yasu@rolling-vm-freebsd2[2010]% make PORTSDIR=/usr0/freebsd/ports/ports fetch
===>  License OFL11 accepted by the user
===>   paratype-59384 depends on file: /usr/local/sbin/pkg - found
=> 59384 doesn't seem to exist in /net/freebsd/ports/distfiles/paratype.
=> Attempting to fetch https://api.paratype.com/api/editions/ofl/download/59384
fetch: https://api.paratype.com/api/editions/ofl/download/59384: size mismatch: expected 4206265, actual 4318529
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/paratype/59384
fetch: http://distcache.FreeBSD.org/ports-distfiles/paratype/59384: Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /net/freebsd/ports/distfiles/paratype and try again.
*** Error code 1

Stop.
make: stopped in /usr0/freebsd/ports/ports/x11-fonts/paratype
yasu@rolling-vm-freebsd2[2011]%
Comment 4 Daniel Engberg freebsd_committer freebsd_triage 2021-10-31 20:53:26 UTC
Given the relatively slow response for download requests I'd assume that it's generating archvies on the fly.

I couldn't find any history for changes but are these too old?
https://slackbuilds.org/repository/14.2/system/ttf-paratype-pt-fonts/
https://sourceforge.net/projects/slackbuildsdirectlinks/files/ttf-paratype-pt-fonts/

Upstream cites 2011 ( https://company.paratype.com/pt-sans-pt-serif ) so I guess that's the latest update?
Comment 5 Daniel Engberg freebsd_committer freebsd_triage 2022-02-12 09:00:02 UTC
Greg, can you please have a look?
Comment 6 Daniel Engberg freebsd_committer freebsd_triage 2022-08-09 08:03:32 UTC
Friendly ping
Comment 7 Val Packett 2022-08-10 21:35:57 UTC
I guess this is not possible without rehosting somewhere which I'm not going to do..