Bug 287725 - [new port] games/typtea: Minimal terminal-based typing speed test
Summary: [new port] games/typtea: Minimal terminal-based typing speed test
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Hiroki Tagato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-22 20:21 UTC by Yusuf Yaman
Modified: 2025-06-24 20:06 UTC (History)
2 users (show)

See Also:


Attachments
games/typtea.patch (2.69 KB, patch)
2025-06-22 20:22 UTC, Yusuf Yaman
nxjoseph: maintainer-approval+
Details | Diff
games/typtea.patch (2.79 KB, patch)
2025-06-24 08:16 UTC, Yusuf Yaman
nxjoseph: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuf Yaman freebsd_committer freebsd_triage 2025-06-22 20:21:14 UTC

    
Comment 1 Yusuf Yaman freebsd_committer freebsd_triage 2025-06-22 20:22:22 UTC
Created attachment 261487 [details]
games/typtea.patch

Minimal terminal-based typing speed test with
support for dozens of programming languages.

WWW:	https://github.com/ashish0kumar/typtea

I have been used port{clippy,fmt,lint} and poudriere testport on 143amd64.

Thanks in advance.
Comment 2 Hiroki Tagato freebsd_committer freebsd_triage 2025-06-24 07:46:02 UTC
Thanks for a new port submission.

I would recommend adding GO_BUILDFLAGS to Makefile so that the build process can correctly embed version into a resulting binary. See .goreleaser.yaml in the source archive to see what ldflags should be used.
Comment 3 Yusuf Yaman freebsd_committer freebsd_triage 2025-06-24 08:16:56 UTC
Created attachment 261528 [details]
games/typtea.patch

(In reply to Hiroki Tagato from comment #2)
Thanks for that hint but had to find some examples from other ports to see how they do it because the upstream's ldflags didn't just work ootb, i had to modify it.

# /wrkdirs/usr/ports/games/typtea/work/stage/usr/local/bin/typtea -v
typtea version v0.1.4

GO_BUILDFLAGS+= -ldflags="-s -w -X github.com/ashish0kumar/typtea/cmd.version=${DISTVERSIONFULL}"
Comment 4 commit-hook freebsd_committer freebsd_triage 2025-06-24 20:04:42 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e557bd0b33932b98b3d132f6c38b6f78f158d2fb

commit e557bd0b33932b98b3d132f6c38b6f78f158d2fb
Author:     Yusuf Yaman <nxjoseph@protonmail.com>
AuthorDate: 2025-06-22 20:20:21 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-06-24 20:03:59 +0000

    games/typtea: new port: Minimal terminal-based typing speed test

    Minimal terminal-based typing speed test with
    support for dozens of programming languages.

    Features:
    - Terminal-based typing with WPM and accuracy tracking
    - Multi-language support including English and 30+ programming languages
    - Infinite word generation with smooth 3-line scrolling display
    - Minimalist TUI built with Bubble Tea and Lipgloss
    - Embedded language data for easy distribution
    - Accurate metrics following standard typing test calculations

    WWW: https://github.com/ashish0kumar/typtea

    PR:             287725
    Reported by:    Yusuf Yaman <nxjoseph@protonmail.com> (new maintainer)

 games/Makefile               |  1 +
 games/typtea/Makefile (new)  | 21 +++++++++++++++++++++
 games/typtea/distinfo (new)  |  5 +++++
 games/typtea/pkg-descr (new) | 10 ++++++++++
 4 files changed, 37 insertions(+)
Comment 5 Hiroki Tagato freebsd_committer freebsd_triage 2025-06-24 20:05:27 UTC
Committed, thanks!
Comment 6 Yusuf Yaman freebsd_committer freebsd_triage 2025-06-24 20:06:20 UTC
(In reply to Hiroki Tagato from comment #5)
Thanks! I've become so happy every time one of my ports has been committed to the tree. :=)