[PATCH] portgen(1) man page: Add py type

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] portgen(1) man page: Add py type

Linda Lapinlampi
/usr/ports/infrastructure/bin/portgen supports "py" type, as seen in the
source code:

if ( $type eq 'p5' ) {
        $o = OpenBSD::PortGen::Port::CPAN->new();
} elsif ( $type eq 'py' ) {
        $o = OpenBSD::PortGen::Port::PyPI->new();
} elsif ( $type eq 'ruby' ) {
        $o = OpenBSD::PortGen::Port::Ruby->new();
} else {
        die "unknown module type\n";
}

This "py" type also works to generate ports from PyPI sources, mostly.
It's not documented in the man page though.

Attached diff adds a mention of the type to portgen(1) man page.

portgen.1-py.diff (463 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] portgen(1) man page: Add py type

Stuart Henderson
I asked tsg about this before, IIRC it was intentionally omitted as it
wasn't considered finished. (For starters it could do with some plist smarts).

--
Sent from a phone, apologies for poor formatting.

On 3 February 2019 21:22:58 Linda Lapinlampi <[hidden email]> wrote:

> /usr/ports/infrastructure/bin/portgen supports "py" type, as seen in the
> source code:
>
>
> if ( $type eq 'p5' ) {
> $o = OpenBSD::PortGen::Port::CPAN->new();
> } elsif ( $type eq 'py' ) {
> $o = OpenBSD::PortGen::Port::PyPI->new();
> } elsif ( $type eq 'ruby' ) {
> $o = OpenBSD::PortGen::Port::Ruby->new();
> } else {
> die "unknown module type\n";
> }
>
>
> This "py" type also works to generate ports from PyPI sources, mostly.
> It's not documented in the man page though.
>
>
> Attached diff adds a mention of the type to portgen(1) man page.