Bug 270770 - www/trurl: new port
Summary: www/trurl: new port
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: Renato Botelho
URL: https://curl.se/trurl
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-11 21:04 UTC by Vidar Karlsen
Modified: 2023-05-30 13:59 UTC (History)
2 users (show)

See Also:


Attachments
git format-patch, www/trurl (3.69 KB, patch)
2023-04-11 21:04 UTC, Vidar Karlsen
no flags Details | Diff
New patch for 0.7 (3.63 KB, application/mbox)
2023-05-29 12:52 UTC, Renato Botelho
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vidar Karlsen 2023-04-11 21:04:23 UTC
Created attachment 241424 [details]
git format-patch, www/trurl

Description:
trurl parses, manipulates and outputs URLs and parts of URLs.

It uses the RFC 3986 definition of URLs and it uses libcurl's URL
parser to do so, which includes a few "extensions". The URL support is
limited to "hierarchical" URLs, the ones that use "://" separators
after the scheme.

Typically you pass in one or more URLs and decide what of that you want
output. Posssibly modifying the URL as well.

trurl knows URLs and every URL consists of up to ten separate and
independent "components". These components can be extracted, removed
and updated with trurl and they are referred to by their respective
names: scheme, user, password, options, host, port, path, query,
fragment and zoneid.

WWW: https://curl.se/trurl

QA:
portclippy ok
portlint ok
poudriere testport 13.1-amd64 ok
make test ok
Comment 1 Vidar Karlsen 2023-04-15 09:29:46 UTC
I got my jails in order and got poudriere testport done on 12.4-i386, 12.4-amd64, 13.2-amd64. 13.2-arm64, all ok.
Comment 2 Renato Botelho freebsd_committer freebsd_triage 2023-05-29 12:41:14 UTC
I'll take this one
Comment 3 Renato Botelho freebsd_committer freebsd_triage 2023-05-29 12:52:23 UTC
Created attachment 242476 [details]
New patch for 0.7

Hello Vidar!

Before notice this PR I started working on trurl port and submitted a bugfix to upstream to use DESTDIR only on install targets.  It made required changes to be small.

Please take a look at proposed diff to be used instead of your original one and let me know if you find any problems.  Otherwise, I'll get it committed and you set as maintainer.

Thank you for your contribution!
Comment 4 Vidar Karlsen 2023-05-30 08:14:15 UTC
(In reply to Renato Botelho from comment #3)

Looks good to me! Thank you for the improvements, Renato!
Comment 5 commit-hook freebsd_committer freebsd_triage 2023-05-30 11:07:16 UTC
A commit in branch main references this bug:

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

commit 10debe049c2708ccd700e402d9007b07b338296c
Author:     Vidar Karlsen <vidar@karlsen.tech>
AuthorDate: 2023-05-27 12:06:05 +0000
Commit:     Renato Botelho <garga@FreeBSD.org>
CommitDate: 2023-05-30 11:05:22 +0000

    www/trurl: New port

    trurl parses, manipulates and outputs URLs and parts of URLs.

    It uses the RFC 3986 definition of URLs and it uses libcurl's URL
    parser to do so, which includes a few "extensions". The URL support is
    limited to "hierarchical" URLs, the ones that use "://" separators
    after the scheme.

    Typically you pass in one or more URLs and decide what of that you want
    output. Posssibly modifying the URL as well.

    trurl knows URLs and every URL consists of up to ten separate and
    independent "components". These components can be extracted, removed
    and updated with trurl and they are referred to by their respective
    names: scheme, user, password, options, host, port, path, query,
    fragment and zoneid.

    PR:             270770
    Sponsored by:   <Rubicon Communications, LLC ("Netgate")

 www/Makefile              |  1 +
 www/trurl/Makefile (new)  | 33 +++++++++++++++++++++++++++++++++
 www/trurl/distinfo (new)  |  3 +++
 www/trurl/pkg-descr (new) | 15 +++++++++++++++
 4 files changed, 52 insertions(+)
Comment 6 commit-hook freebsd_committer freebsd_triage 2023-05-30 13:59:42 UTC
A commit in branch main references this bug:

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

commit 6f25b5a4e9ace69e85390d02ae6587b72ebe9e15
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2023-05-30 13:57:03 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2023-05-30 13:58:27 +0000

    misc/trurl: Update to 0.7

    - Update to 0.7
    - Honor global CFLAGS and LDFLAGS
    - Introduce "test" target (based on [1])

    PR:     270770 [1]

 misc/trurl/Makefile                   | 16 ++++++++++++----
 misc/trurl/distinfo                   |  6 +++---
 misc/trurl/files/patch-Makefile (new) | 11 +++++++++++
 3 files changed, 26 insertions(+), 7 deletions(-)