Files
Joshua Root e75b2782c1 net/*: set github.tarball_from explicitly
In preparation for changing the default.
2025-01-27 01:32:42 +11:00

60 lines
2.1 KiB
Plaintext

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8::et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
PortGroup python 1.0
github.setup eliangcs http-prompt 2.1.0 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision 2
maintainers nomaintainer
categories net
description HTTPie + prompt_toolkit = an interactive command-line HTTP \
client featuring autocomplete and syntax highlighting
long_description {*}${description}
platforms {darwin any}
supported_archs noarch
license MIT
checksums rmd160 a946f0baa01a21d2374605128738593ce6e0c0ef \
sha256 cc360fdfce570f908f34bdfff5f9049c717c1b5d716af5b49c9e19a375063270 \
size 323308
patchfiles patch-cli.py.diff \
patch-utils.py.diff \
patch-test_interaction.py.diff \
patch-requirements.txt.diff
# It MUST match default_version of httpie
python.default_version 311
depends_lib-append port:py${python.version}-click \
port:py${python.version}-parsimonious \
port:py${python.version}-prompt_toolkit \
port:py${python.version}-pygments \
port:py${python.version}-yaml \
port:httpie
python.link_binaries_suffix
depends_test-append port:py${python.version}-mock \
port:py${python.version}-pexpect \
port:py${python.version}-pytest \
port:py${python.version}-pytest-cov \
port:twine \
port:py${python.version}-wheel
test.run yes
test.cmd py.test-${python.branch}
test.target
test.env PYTHONPATH=${worksrcpath}/build/lib
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE \
${destroot}${docdir}
}