Bug 284793 - [new port] net-im/tuba: Browse the Fediverse
Summary: [new port] net-im/tuba: Browse the Fediverse
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: Robert Clausecker
URL:
Keywords:
Depends on: 283354
Blocks:
  Show dependency treegraph
 
Reported: 2025-02-13 18:33 UTC by Yusuf Yaman
Modified: 2025-02-20 23:36 UTC (History)
2 users (show)

See Also:


Attachments
net-im/tuba.patch (6.41 KB, patch)
2025-02-13 18:34 UTC, Yusuf Yaman
no flags Details | Diff
net-im/tuba.patch (6.45 KB, patch)
2025-02-13 19:04 UTC, Yusuf Yaman
no flags Details | Diff
net-im/tuba.patch (6.40 KB, patch)
2025-02-13 19:26 UTC, Yusuf Yaman
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuf Yaman 2025-02-13 18:33:35 UTC

    
Comment 1 Yusuf Yaman 2025-02-13 18:34:50 UTC
Created attachment 257486 [details]
net-im/tuba.patch

Tuba is an open-source Fediverse client for browsing and interacting with
various federated social networks. It is a fork of the Tootle project,
designed to provide a modern and user-friendly interface for accessing
Mastodon and other ActivityPub-based platforms.

WWW:	https://tuba.geopjr.dev \
	https://github.com/GeopJr/Tuba

Poudriere testport passes on amd64 14.2-RELEASE.

Thanks in advance!
Comment 2 Robert Clausecker freebsd_committer freebsd_triage 2025-02-13 18:50:37 UTC
Instead of installing the binary twice, check if you can hard-link it.
A soft-link is also ok.

PORTNAME should match GH_PROJECT if reasonable.

Is there a particular reason why the SPELLCHECK option is off by default?

Port looks ok otherwise.  Have not conducted a build test yet.
Comment 3 Yusuf Yaman 2025-02-13 19:03:32 UTC
(In reply to Robert Clausecker from comment #2)
Thanks for feedback.

I do now hard-link binary and then strip_cmd it.

portname changed to Tuba.

> Is there a particular reason why the SPELLCHECK option is off by default?

No, I marked it as default now.

> Port looks ok otherwise.  Have not conducted a build test yet.

Thanks.

Tested in 14.2-R/amd64/latest (with local patched gtksourceview5 5.6.0) poudriere.
Comment 4 Yusuf Yaman 2025-02-13 19:04:06 UTC
Created attachment 257489 [details]
net-im/tuba.patch
Comment 5 Robert Clausecker freebsd_committer freebsd_triage 2025-02-13 19:13:49 UTC
(In reply to Yusuf Yaman from comment #3)

You may need to first strip and then hard link as strip may break hard links.
That said, if the original binary is stripped, there's no reason to strip the link.  It's the same file after all.

I'll go fix that on commit if needed.

A build test reveals that a dependency is missing:

Dependency gtksourceview-5 found: NO. Found 5.4.2 but need: '>=5.6.0'

I recommend you test your ports with Poudriere to check if all required dependencies are listed.

Portlint recommends to make the gettext dependency conditional on an NLS knob.  Would this work for this port?
Comment 6 Yusuf Yaman 2025-02-13 19:17:20 UTC
(In reply to Robert Clausecker from comment #5)

> You may need to first strip and then hard link as strip may break hard links.
That said, if the original binary is stripped, there's no reason to strip the link.  It's the same file after all.

Portlint said me to do so, they have the same file size, so i don't need to do it?

> I'll go fix that on commit if needed.

Thanks.


> A build test reveals that a dependency is missing:
> Dependency gtksourceview-5 found: NO. Found 5.4.2 but need: '>=5.6.0'

I added a PR to "Depends on" list which would update gtksourceview5 because it is so old and Tuba requires gtksourceview5>=5.6.0, actually i was said that i patched gtksourceview5 to 5.6.0 locally.

> I recommend you test your ports with Poudriere to check if all required dependencies are listed.

Thanks but I already do so.

> Portlint recommends to make the gettext dependency conditional on an NLS knob.  > Would this work for this port?

I don't think so because I didn't see a  configurable NLS option in my port.
Comment 7 Yusuf Yaman 2025-02-13 19:19:37 UTC
Ok, now portlint doesn't tell me to strip the binary, i checked again.
Comment 8 Robert Clausecker freebsd_committer freebsd_triage 2025-02-13 19:23:21 UTC
Ah yes, I missed the dependency.  I guess we'll have to wait for someone from gnome@ to take the first step.
Comment 9 Yusuf Yaman 2025-02-13 19:24:11 UTC
(In reply to Robert Clausecker from comment #8)
I see, let's hope it will get updated. Very thanks.
Comment 10 Yusuf Yaman 2025-02-13 19:26:05 UTC
Created attachment 257490 [details]
net-im/tuba.patch

Removed ${STRIP_CMD}.
Comment 11 commit-hook freebsd_committer freebsd_triage 2025-02-20 23:29:26 UTC
A commit in branch main references this bug:

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

commit e9b5bd9e13a8f8d34e1f2f0cf670501ce25186c3
Author:     Yusuf Yaman <nxjoseph@protonmail.com>
AuthorDate: 2025-02-13 18:33:00 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-02-20 23:27:22 +0000

    net-im/tuba: New port: Browse the Fediverse

    Tuba is an open-source Fediverse client for browsing and interacting with
    various federated social networks. It is a fork of the Tootle project,
    designed to provide a modern and user-friendly interface for accessing
    Mastodon and other ActivityPub-based platforms.

    WWW: https://tuba.geopjr.dev
    WWW: https://github.com/GeopJr/Tuba

    PR:             284793

 net-im/Makefile             |  1 +
 net-im/tuba/Makefile (new)  | 41 +++++++++++++++++++++++++++++
 net-im/tuba/distinfo (new)  |  3 +++
 net-im/tuba/pkg-descr (new) |  4 +++
 net-im/tuba/pkg-plist (new) | 64 +++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 113 insertions(+)
Comment 12 Robert Clausecker freebsd_committer freebsd_triage 2025-02-20 23:36:14 UTC
Thank you for your contribution.