Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#53753 closed submission (fixed)

tldr c client

Reported by: 1-61803 Owned by: kurthindenburg (Kurt Hindenburg)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port: tldr-cpp-client

Description

https://github.com/tldr-pages/tldr-cpp-client

Unfortunately CHANGELOG.md and CONTRIBUTING.md don't come with the tarball, so they are not included.

Attachments (3)

Portfile (1.6 KB) - added by 1-61803 8 years ago.
Portfile.2 (1.2 KB) - added by 1-61803 8 years ago.
python client
main.log (31.7 KB) - added by 1-61803 8 years ago.
log for python client

Download all attachments as: .zip

Change History (13)

Changed 8 years ago by 1-61803

Attachment: Portfile added

comment:1 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

Cc: kurthindenburg added

Any reason to not use the python version? It appears to be updated more recently.

comment:2 Changed 8 years ago by 1-61803

At first I thought all clients were more or less the same without checking them thoroughly.

The most recent and configurable is the node client actually, but I haven't made ports with node yet.

tldr-cpp-client has autocompletion

tldr-python-client is more configurable (cache, colors), but no autocomplete — I guess I could use it from the c client

tldr-node-client has it all with a little more elbow grease (no bash completion though)

Thing is, I gave the python client a shot but failed with

Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary
metadata and will not work.

Let me know if you can take a look at it (portfile and main.log attached), otherwise I'll post it to the list, and if found a solution, I'll submit it separately.

Last edited 8 years ago by 1-61803 (previous) (diff)

Changed 8 years ago by 1-61803

Attachment: Portfile.2 added

python client

Changed 8 years ago by 1-61803

Attachment: main.log added

log for python client

comment:3 Changed 8 years ago by 1-61803

@kurthindenburg, is there a problem committing this one in the meantime?

comment:4 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

Owner: set to kurthindenburg
Resolution: fixed
Status: newclosed

In a79493e5/macports-ports:

tldr-cpp-client: new port

closes #53753

comment:5 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

If you want to add another ticket for the python version, go ahead - although perhaps this one is enough.

comment:6 Changed 8 years ago by 1-61803

ok, any ideas about the log I attached for the python client?

comment:7 Changed 8 years ago by 1-61803

While cutting leaves I realised it doesn't only depend during the build phase on these

depends_lib-append  port:curl \
                    port:libzip

Do you need a separate ticket?

Last edited 8 years ago by 1-61803 (previous) (diff)

comment:8 Changed 8 years ago by 1-61803

Also, please add

conflicts           tldr-python-client

See #53788.

comment:9 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

You are correct

 otool -L /opt/local/bin/tldr  
/opt/local/bin/tldr:
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.0.0)
        /opt/local/lib/libcurl.4.dylib (compatibility version 9.0.0, current version 9.0.0)
        /opt/local/lib/libzip.4.dylib (compatibility version 5.0.0, current version 5.0.0)

comment:10 Changed 8 years ago by 1-61803

Ok, then please post back when you commit both changes above so that I can delete my local port.

Note: See TracTickets for help on using tickets.