You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
moor: new port
- https://github.com/walles/moor - replaces `moar` Fixes: https://trac.macports.org/ticket/72843
This commit is contained in:
+5
-54
@@ -1,61 +1,12 @@
|
||||
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
||||
|
||||
PortSystem 1.0
|
||||
PortGroup golang 1.0
|
||||
|
||||
go.setup github.com/walles/moar 1.31.8 v
|
||||
go.offline_build no
|
||||
revision 0
|
||||
|
||||
conflicts MoarVM
|
||||
|
||||
description Moar is a pager. It's designed to just do the right thing \
|
||||
without any configuration.
|
||||
|
||||
long_description Moar should work as a drop-in replacement for Less. \
|
||||
It features syntax highlighting, ANSI color coded text \
|
||||
support, incremental search and automatic decompression, \
|
||||
among others.
|
||||
|
||||
checksums rmd160 12e541c5ad34380a29e4366049b68949e2729af9 \
|
||||
sha256 77943278d1ca22c3ca405c6a227e4807ce8637b807c40802c739f901ae980151 \
|
||||
size 2849478
|
||||
replaced_by moor
|
||||
PortGroup obsolete 1.0
|
||||
|
||||
name moar
|
||||
version 1.31.8
|
||||
revision 1
|
||||
categories textproc
|
||||
installs_libs no
|
||||
license FreeBSD
|
||||
maintainers {gmail.com:j.lopez.r @jlopezr} \
|
||||
{gmail.com:herby.gillot @herbygillot} \
|
||||
openmaintainer
|
||||
|
||||
set install_name ${name}
|
||||
|
||||
variant pager description {Install as moar-pager} {
|
||||
set install_name ${name}-pager
|
||||
|
||||
conflicts-delete MoarVM
|
||||
patchfiles patch-moar-1.diff
|
||||
}
|
||||
|
||||
build.pre_args-append \
|
||||
-ldflags \"-X main.versionString=${version}\"
|
||||
|
||||
destroot {
|
||||
xinstall -m 0755 ${worksrcpath}/${name} \
|
||||
${destroot}${prefix}/bin/${install_name}
|
||||
|
||||
xinstall -d ${destroot}${prefix}/share/man/man1
|
||||
xinstall -m 0644 \
|
||||
${worksrcpath}/${name}.1 \
|
||||
${destroot}${prefix}/share/man/man1/${install_name}.1
|
||||
}
|
||||
|
||||
notes "
|
||||
The pager variant is compatible with MoarVM for raku and nqp development.
|
||||
|
||||
Add:
|
||||
|
||||
export PAGER=${prefix}/bin/${install_name}
|
||||
|
||||
...to your .bashrc, or .zshrc
|
||||
"
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
--- moar.1.orig 2023-11-29 23:08:16
|
||||
+++ moar.1 2023-11-29 23:09:21
|
||||
@@ -1,23 +1,23 @@
|
||||
-.TH MOAR 1 2022-07-21
|
||||
+.TH MOAR-PAGER 1 2022-07-21
|
||||
.SH NAME
|
||||
-moar \- the nice pager
|
||||
+moar-pager \- the nice pager
|
||||
.SH SYNOPSIS
|
||||
-.B moar
|
||||
+.B moar-pager
|
||||
[options]
|
||||
.IR file
|
||||
.br
|
||||
-.B "moar \-\-help"
|
||||
+.B "moar-pager \-\-help"
|
||||
.br
|
||||
-.B "moar \-\-version"
|
||||
+.B "moar-pager \-\-version"
|
||||
.SH DESCRIPTION
|
||||
-.B moar
|
||||
+.B moar-pager
|
||||
is a pager much like
|
||||
.I less
|
||||
(1), but with generally nicer out-of-the-box behavior.
|
||||
.PP
|
||||
More information and screenshots: https://github.com/walles/moar#readme
|
||||
.PP
|
||||
-Inside of \fBmoar\fR, press
|
||||
+Inside of \fBmoar-pager\fR, press
|
||||
.B ?
|
||||
to access the built-in help.
|
||||
.PP
|
||||
@@ -31,7 +31,7 @@
|
||||
environment variable for persistent configuration.
|
||||
.PP
|
||||
Doing
|
||||
-.B moar --help
|
||||
+.B moar-pager --help
|
||||
will also list these options.
|
||||
.TP
|
||||
\fB\-\-colors\fR={\fBauto\fR | \fB8\fR | \fB16\fR | \fB256\fR | \fB16M\fR}
|
||||
@@ -46,7 +46,7 @@
|
||||
.B tail \-f
|
||||
.TP
|
||||
\fB\-\-no\-clear\-on\-exit\fR
|
||||
-Retain screen contents when exiting moar
|
||||
+Retain screen contents when exiting moar-pager
|
||||
.TP
|
||||
\fB\-\-no\-linenumbers\fR
|
||||
Hide line numbers on startup, press left arrow key to show
|
||||
@@ -101,15 +101,15 @@
|
||||
.B 1234
|
||||
.SH ENVIRONMENT
|
||||
Having
|
||||
-.B PAGER=moar
|
||||
+.B PAGER=moar-pager
|
||||
in your environment will make lots of different programs use
|
||||
-.B moar
|
||||
+.B moar-pager
|
||||
as their pager.
|
||||
.PP
|
||||
Additional options are read from the
|
||||
.B MOAR
|
||||
environment variable if set, just as if those same options had been manually added to each
|
||||
-.B moar
|
||||
+.B moar-pager
|
||||
invocation.
|
||||
.SH BUGS
|
||||
Kindly report any bugs here: https://github.com/walles/moar/issues
|
||||
@@ -0,0 +1,48 @@
|
||||
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
||||
|
||||
PortSystem 1.0
|
||||
PortGroup golang 1.0
|
||||
|
||||
go.setup github.com/walles/moor 2.0.4 v
|
||||
go.offline_build no
|
||||
revision 0
|
||||
|
||||
description Moor is a pager. It's designed to just do the right thing \
|
||||
without any configuration.
|
||||
|
||||
long_description Moor should work as a drop-in replacement for Less. \
|
||||
It features syntax highlighting, ANSI color coded text \
|
||||
support, incremental search and automatic decompression, \
|
||||
among others.
|
||||
|
||||
checksums rmd160 29fb69fbf98c61b14dde86f49ebf88c5c86aa730 \
|
||||
sha256 7d8c9c5da7e2b95cb0082ddb269da978247f5bbb62b1f2556760046b70c1051b \
|
||||
size 3013176
|
||||
|
||||
categories textproc
|
||||
installs_libs no
|
||||
license FreeBSD
|
||||
maintainers {gmail.com:j.lopez.r @jlopezr} \
|
||||
{gmail.com:herby.gillot @herbygillot} \
|
||||
openmaintainer
|
||||
|
||||
build.args-append ./cmd/${name}
|
||||
build.pre_args-append \
|
||||
-ldflags \"-X main.versionString=${version}\"
|
||||
|
||||
destroot {
|
||||
xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
|
||||
|
||||
xinstall -m 0644 \
|
||||
${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1/
|
||||
}
|
||||
|
||||
notes "
|
||||
moar has been replaced by moor.
|
||||
|
||||
Add:
|
||||
|
||||
export PAGER=${prefix}/bin/${name}
|
||||
|
||||
...to your .bashrc, or .zshrc
|
||||
"
|
||||
Reference in New Issue
Block a user