NEW: devel/robsd

2023-01-15 Thread Anton Lindqvist
Hi,
Here's a port with my tooling used to build snapshots and run regress
tests. Including a snippet from the readme below.

https://www.basename.se/robsd
https://github.com/mptre/robsd

Comments? OK?

This project started out as an attempt to automate the release(8)
process on OpenBSD. The prime motivation was to roll my own snapshots in
order to test my and others changes to the kernel, user space and
everything in between. Hence the name robsd as in release OpenBSD. The
scope later grew and the project is by now a kitchen sink for everything
related to building, testing and maintaining OpenBSD. It's written in
ksh with a dash of C and requires nothing other than what's included in
base.

The project is divided into the utilities as follows. All of them are
configured using a grammar that should be familiar for anyone with prior
OpenBSD experience.

# robsd

robsd builds a release according to the release process. Some of its
noteworthy features:

* The changes since the last build according to CVS is turned into a
  readable log, similar to the format seen on the *-changes mailing
  lists.
* Patches can be applied and reverted.
* Detection of build time changes.
* Detection of significant kernel and sets size changes.

# robsd-cross

robds-cross builds a cross compiler tool chain targeting another
architecture, using ${BSDSRCDIR}/Makefile.cross behind the scenes.

# robsd-ports

robsd-ports builds ports using dpb behind the scenes.

### robsd-regress

robsd-regress runs regression tests. HTML summaries can be rendered
using robsd-regress-html which also powers https://regress.basename.se.


robsd.tgz
Description: Binary data


Re: make arch-independent ports

2021-09-25 Thread Anton Lindqvist
On Sat, Sep 25, 2021 at 10:51:04AM +0100, Stuart Henderson wrote:
> On 2021/09/25 07:52, Anton Lindqvist wrote:
> > Hi,
> > When I try to `make package' on a port annotated with PKG_ARCH=* like
> > devel/uthash for instance I run into the following error:
> > 
> > make: don't know how to make 
> > /usr/ports/packages/amd64/all//uthash-2.3.0.tgz (prerequisite of: 
> > _internal-package-only)
> > 
> > Removing the extra slash solves the issue. This not my regular
> > territory, does it look like a reasonable fix?
> 
> I think it is reasonable, _PKG_REPO has a trailing slash already and
> it looks like it probably will fix a cosmetic problem I've noticed
> before. But I don't think I've seen an error relating to this before
> (myself or on the lists) so it seems there might be something unusual
> about your setup, do you have anything relevant in mk.conf or the
> environment?

I'm running inside a chroot created by proot, using nothing other than
the default mk.conf generated by proot:

# Automatically generated by proot
PORTS_PRIVSEP = Yes
SUDO = doas



make arch-independent ports

2021-09-24 Thread Anton Lindqvist
Hi,
When I try to `make package' on a port annotated with PKG_ARCH=* like
devel/uthash for instance I run into the following error:

make: don't know how to make 
/usr/ports/packages/amd64/all//uthash-2.3.0.tgz (prerequisite of: 
_internal-package-only)

Removing the extra slash solves the issue. This not my regular
territory, does it look like a reasonable fix?

Index: infrastructure/mk/bsd.port.mk
===
RCS file: /cvs/ports/infrastructure/mk/bsd.port.mk,v
retrieving revision 1.1556
diff -u -p -r1.1556 bsd.port.mk
--- infrastructure/mk/bsd.port.mk   13 Sep 2021 15:40:02 -  1.1556
+++ infrastructure/mk/bsd.port.mk   24 Sep 2021 05:50:31 -
@@ -991,7 +991,7 @@ _CACHE_PACKAGE_COOKIES += ${_CACHE_REPO}
 .for _S in ${BUILD_PACKAGES}
 .  if ${PKG_ARCH${_S}} == "*" && ${NO_ARCH} != ${MACHINE_ARCH}/all
 _PACKAGE_LINKS += ${MACHINE_ARCH}/all/${_PKGFILE${_S}} 
${NO_ARCH}/${_PKGFILE${_S}}
-_PACKAGE_COOKIES${_S} += ${_PKG_REPO}/${_PKGFILE${_S}}
+_PACKAGE_COOKIES${_S} += ${_PKG_REPO}${_PKGFILE${_S}}
 .  endif
 _PACKAGE_COOKIES${_S} += ${_PACKAGE_COOKIE${_S}}
 .  if ${PERMIT_PACKAGE${_S}:L} == "yes"



NEW: devel/knfmt

2021-07-22 Thread Anton Lindqvist
Hi,
The knfmt[1] utility formats source code files to conform to the Kernel
Normal Form (KNF) in a best effort fashion. It's not a silver bullet but
is able to get the rudimentary formatting right.

By default, source code is read from standard input and the formatted
source code is written to standard output:

$ knfmt https://github.com/mptre/knfmt


knfmt.tgz
Description: application/tar-gz


Re: UPDATE: mail/mdsort

2019-08-27 Thread Anton Lindqvist
ping

On Wed, Aug 21, 2019 at 09:43:47AM +0200, Anton Lindqvist wrote:
> Hi,
> Update mdsort[1] from author and maintainer, changelog below:
> 
>  * Add missing space for NUL-terminator when using `NAME_MAX` sized
>buffers.
> 
>  * Parse alternative body representations, favoring plain text over
>HTML.
> 
>  * Infer `INSTALL_MAN` from `INSTALL` if not present.
> 
>  * Lower or upper case a matched string used during interpolation.
> 
> Comments? OK?
> 
> [1] https://github.com/mptre/mdsort/releases/tag/v4.1.0
> 
> Index: Makefile
> ===
> RCS file: /cvs/ports/mail/mdsort/Makefile,v
> retrieving revision 1.6
> diff -u -p -r1.6 Makefile
> --- Makefile  7 Jul 2019 14:50:49 -   1.6
> +++ Makefile  21 Aug 2019 07:39:52 -
> @@ -2,7 +2,7 @@
>  
>  COMMENT =maildir sort
>  
> -V =  4.0.0
> +V =  4.1.0
>  DISTNAME =   mdsort-${V}
>  
>  CATEGORIES = mail
> Index: distinfo
> ===
> RCS file: /cvs/ports/mail/mdsort/distinfo,v
> retrieving revision 1.6
> diff -u -p -r1.6 distinfo
> --- distinfo  7 Jul 2019 14:50:49 -   1.6
> +++ distinfo  21 Aug 2019 07:39:52 -
> @@ -1,2 +1,2 @@
> -SHA256 (mdsort-4.0.0.tar.gz) = NBcE2vFmMRYunr1Si/yflmfuDukwht6Rb62m3F0oHng=
> -SIZE (mdsort-4.0.0.tar.gz) = 45206
> +SHA256 (mdsort-4.1.0.tar.gz) = +Y/70QomcvAfPpBTWpWpuOF72UFi1WUxtgPPuNeAeCE=
> +SIZE (mdsort-4.1.0.tar.gz) = 51136



UPDATE: mail/mdsort

2019-08-21 Thread Anton Lindqvist
Hi,
Update mdsort[1] from author and maintainer, changelog below:

 * Add missing space for NUL-terminator when using `NAME_MAX` sized
   buffers.

 * Parse alternative body representations, favoring plain text over
   HTML.

 * Infer `INSTALL_MAN` from `INSTALL` if not present.

 * Lower or upper case a matched string used during interpolation.

Comments? OK?

[1] https://github.com/mptre/mdsort/releases/tag/v4.1.0

Index: Makefile
===
RCS file: /cvs/ports/mail/mdsort/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- Makefile7 Jul 2019 14:50:49 -   1.6
+++ Makefile21 Aug 2019 07:39:52 -
@@ -2,7 +2,7 @@
 
 COMMENT =  maildir sort
 
-V =4.0.0
+V =4.1.0
 DISTNAME = mdsort-${V}
 
 CATEGORIES =   mail
Index: distinfo
===
RCS file: /cvs/ports/mail/mdsort/distinfo,v
retrieving revision 1.6
diff -u -p -r1.6 distinfo
--- distinfo7 Jul 2019 14:50:49 -   1.6
+++ distinfo21 Aug 2019 07:39:52 -
@@ -1,2 +1,2 @@
-SHA256 (mdsort-4.0.0.tar.gz) = NBcE2vFmMRYunr1Si/yflmfuDukwht6Rb62m3F0oHng=
-SIZE (mdsort-4.0.0.tar.gz) = 45206
+SHA256 (mdsort-4.1.0.tar.gz) = +Y/70QomcvAfPpBTWpWpuOF72UFi1WUxtgPPuNeAeCE=
+SIZE (mdsort-4.1.0.tar.gz) = 51136



Re: UPDATE: sysutils/yank

2019-08-20 Thread Anton Lindqvist
ping

On Wed, Aug 14, 2019 at 09:46:35AM +0200, Anton Lindqvist wrote:
> Hi,
> Update from author and maintainer, the complete changelog can be found
> here[1].
> 
> Comments? OK?
> 
> [1] https://github.com/mptre/yank/releases/tag/v1.2.0
> 
> Index: Makefile
> ===
> RCS file: /cvs/ports/sysutils/yank/Makefile,v
> retrieving revision 1.6
> diff -u -p -r1.6 Makefile
> --- Makefile  12 Jul 2019 20:49:55 -  1.6
> +++ Makefile  12 Aug 2019 08:42:26 -
> @@ -2,7 +2,7 @@
>  
>  COMMENT =yank terminal output to clipboard
>  
> -V =  1.1.0
> +V =  1.2.0
>  DISTNAME =   yank-${V}
>  CATEGORIES = sysutils
>  
> Index: distinfo
> ===
> RCS file: /cvs/ports/sysutils/yank/distinfo,v
> retrieving revision 1.4
> diff -u -p -r1.4 distinfo
> --- distinfo  8 Nov 2018 19:02:40 -   1.4
> +++ distinfo  12 Aug 2019 08:42:26 -
> @@ -1,2 +1,2 @@
> -SHA256 (yank-1.1.0.tar.gz) = 8ZcQfNYExB7zwjkBdb005a08fPH+r+3v41e6dRSfHFk=
> -SIZE (yank-1.1.0.tar.gz) = 8516
> +SHA256 (yank-1.2.0.tar.gz) = tQDRpxN45poqNIAyEH5tjbcouPavKAqbtMtEbB0m5Do=
> +SIZE (yank-1.2.0.tar.gz) = 8682



UPDATE: sysutils/yank

2019-08-14 Thread Anton Lindqvist
Hi,
Update from author and maintainer, the complete changelog can be found
here[1].

Comments? OK?

[1] https://github.com/mptre/yank/releases/tag/v1.2.0

Index: Makefile
===
RCS file: /cvs/ports/sysutils/yank/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- Makefile12 Jul 2019 20:49:55 -  1.6
+++ Makefile12 Aug 2019 08:42:26 -
@@ -2,7 +2,7 @@
 
 COMMENT =  yank terminal output to clipboard
 
-V =1.1.0
+V =1.2.0
 DISTNAME = yank-${V}
 CATEGORIES =   sysutils
 
Index: distinfo
===
RCS file: /cvs/ports/sysutils/yank/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo8 Nov 2018 19:02:40 -   1.4
+++ distinfo12 Aug 2019 08:42:26 -
@@ -1,2 +1,2 @@
-SHA256 (yank-1.1.0.tar.gz) = 8ZcQfNYExB7zwjkBdb005a08fPH+r+3v41e6dRSfHFk=
-SIZE (yank-1.1.0.tar.gz) = 8516
+SHA256 (yank-1.2.0.tar.gz) = tQDRpxN45poqNIAyEH5tjbcouPavKAqbtMtEbB0m5Do=
+SIZE (yank-1.2.0.tar.gz) = 8682



Re: plan9port: win(1) hang on acme(1) window

2019-07-16 Thread Anton Lindqvist
On Tue, Jul 16, 2019 at 04:14:19PM -0400, Patrick Marchand wrote:
> Hello,
> 
> On 07/16, Gleydson Soares wrote:
> > I will have a look at it tonight. Even though I’m running acme/win with no 
> > issues. Will try reproduce it on a newer snapshot.
> I had the time to upgrade from the friday snaphot to today's snapshot
> and it solved the issue. I'm curious to read the csv commits to find out what
> changed over the last few days.

Caused by this commit[1] which was later backed out[2]. Sorry for the
inconvenience.

[1] https://marc.info/?l=openbsd-cvs&m=156277704122293&w=2
[2] https://marc.info/?l=openbsd-cvs&m=156293980006370&w=2



UPDATE: mail/mdsort

2019-07-07 Thread Anton Lindqvist
Hi,
Update mdsort from author and maintainer, complete changelog can be
found here[1]. While here, switch to PERMIT_PACKAGE.

Comments? OK?

[1] https://github.com/mptre/mdsort/releases/tag/v4.0.0

Index: Makefile
===
RCS file: /cvs/ports/mail/mdsort/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- Makefile22 Apr 2019 14:33:07 -  1.5
+++ Makefile5 Jul 2019 05:52:30 -
@@ -2,7 +2,7 @@
 
 COMMENT =  maildir sort
 
-V =3.1.0
+V =4.0.0
 DISTNAME = mdsort-${V}
 
 CATEGORIES =   mail
@@ -12,7 +12,7 @@ HOMEPAGE =https://github.com/mptre/mdso
 MAINTAINER =   Anton Lindqvist 
 
 # MIT
-PERMIT_PACKAGE_CDROM = Yes
+PERMIT_PACKAGE =   Yes
 
 # uses pledge()
 WANTLIB += c
Index: distinfo
===
RCS file: /cvs/ports/mail/mdsort/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- distinfo22 Apr 2019 14:33:07 -  1.5
+++ distinfo5 Jul 2019 05:52:30 -
@@ -1,2 +1,2 @@
-SHA256 (mdsort-3.1.0.tar.gz) = SGcDYoMcjxiTrdpq031yu5f0GlLzGBQVR8Mv3+rkC7U=
-SIZE (mdsort-3.1.0.tar.gz) = 42037
+SHA256 (mdsort-4.0.0.tar.gz) = NBcE2vFmMRYunr1Si/yflmfuDukwht6Rb62m3F0oHng=
+SIZE (mdsort-4.0.0.tar.gz) = 45206



UPDATE: mail/mdsort

2019-04-22 Thread Anton Lindqvist
Hi,
Update mdsort from author and maintainer, complete changelog can be
found here[1].

Comments? OK?

[1] https://github.com/mptre/mdsort/releases/tag/v3.1.0

Index: Makefile
===
RCS file: /cvs/ports/mail/mdsort/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- Makefile21 Feb 2019 21:09:53 -  1.4
+++ Makefile22 Apr 2019 12:19:23 -
@@ -2,7 +2,7 @@
 
 COMMENT =  maildir sort
 
-V =3.0.0
+V =3.1.0
 DISTNAME = mdsort-${V}
 
 CATEGORIES =   mail
Index: distinfo
===
RCS file: /cvs/ports/mail/mdsort/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo21 Feb 2019 21:09:53 -  1.4
+++ distinfo22 Apr 2019 12:19:23 -
@@ -1,2 +1,2 @@
-SHA256 (mdsort-3.0.0.tar.gz) = Vwn4GHtKhvjTVwEm0+5iUq5qS59oCFrmk7UioIVo29c=
-SIZE (mdsort-3.0.0.tar.gz) = 38148
+SHA256 (mdsort-3.1.0.tar.gz) = SGcDYoMcjxiTrdpq031yu5f0GlLzGBQVR8Mv3+rkC7U=
+SIZE (mdsort-3.1.0.tar.gz) = 42037



UPDATE: sysutils/pick

2019-02-28 Thread Anton Lindqvist
Hi,
Update pick to 3.0.0 from maintainer. The changelog can be found here[1]
and the only real change is replacing auto{conf,make} with a
shell-script and plain Makefile(s).

Comments? OK?

[1] https://github.com/mptre/pick/releases/tag/v3.0.0

Index: Makefile
===
RCS file: /cvs/ports/sysutils/pick/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- Makefile11 Apr 2018 06:55:15 -  1.9
+++ Makefile27 Feb 2019 19:30:29 -
@@ -2,7 +2,7 @@
 
 COMMENT =  fuzzy select anything
 
-V =2.0.2
+V =3.0.0
 DISTNAME = pick-${V}
 
 CATEGORIES =   sysutils
@@ -19,7 +19,6 @@ WANTLIB +=c curses
 
 MASTER_SITES = https://github.com/mptre/pick/releases/download/v${V}/
 
-SEPARATE_BUILD =   Yes
-CONFIGURE_STYLE =  gnu
+CONFIGURE_STYLE =  simple
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/sysutils/pick/distinfo,v
retrieving revision 1.8
diff -u -p -r1.8 distinfo
--- distinfo11 Apr 2018 06:55:15 -  1.8
+++ distinfo27 Feb 2019 19:30:29 -
@@ -1,2 +1,2 @@
-SHA256 (pick-2.0.2.tar.gz) = 8rQ6qlQK0/8FolalMcL0fT2VFFuCwdGw1i37QNeT04U=
-SIZE (pick-2.0.2.tar.gz) = 132174
+SHA256 (pick-3.0.0.tar.gz) = J4O5wRtUMBzjLAwucM9NyNQ3y2jPE2uiBKYGVCIFUpg=
+SIZE (pick-3.0.0.tar.gz) = 29736



Re: UPDATE: mail/mdsort

2019-02-20 Thread Anton Lindqvist
ping

On Thu, Feb 14, 2019 at 08:23:15AM +0100, Anton Lindqvist wrote:
> Hi,
> Update mdsort from maintainer, complete changelog can be found here[1].
> 
> Comments? OK?
> 
> [1] https://github.com/mptre/mdsort/releases/tag/v3.0.0
> 
> Index: Makefile
> ===
> RCS file: /cvs/ports/mail/mdsort/Makefile,v
> retrieving revision 1.3
> diff -u -p -r1.3 Makefile
> --- Makefile  28 Oct 2018 12:14:02 -  1.3
> +++ Makefile  13 Feb 2019 07:12:29 -
> @@ -2,7 +2,7 @@
>  
>  COMMENT =maildir sort
>  
> -V =  2.0.0
> +V =  3.0.0
>  DISTNAME =   mdsort-${V}
>  
>  CATEGORIES = mail
> Index: distinfo
> ===
> RCS file: /cvs/ports/mail/mdsort/distinfo,v
> retrieving revision 1.3
> diff -u -p -r1.3 distinfo
> --- distinfo  28 Oct 2018 12:14:02 -  1.3
> +++ distinfo  13 Feb 2019 07:12:29 -
> @@ -1,2 +1,2 @@
> -SHA256 (mdsort-2.0.0.tar.gz) = 17sfQobEROU9WGbA6Cs3J9qG2XquHsrnjKT4Y0nsCds=
> -SIZE (mdsort-2.0.0.tar.gz) = 30615
> +SHA256 (mdsort-3.0.0.tar.gz) = Vwn4GHtKhvjTVwEm0+5iUq5qS59oCFrmk7UioIVo29c=
> +SIZE (mdsort-3.0.0.tar.gz) = 38148



UPDATE: mail/mdsort

2019-02-13 Thread Anton Lindqvist
Hi,
Update mdsort from maintainer, complete changelog can be found here[1].

Comments? OK?

[1] https://github.com/mptre/mdsort/releases/tag/v3.0.0

Index: Makefile
===
RCS file: /cvs/ports/mail/mdsort/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile28 Oct 2018 12:14:02 -  1.3
+++ Makefile13 Feb 2019 07:12:29 -
@@ -2,7 +2,7 @@
 
 COMMENT =  maildir sort
 
-V =2.0.0
+V =3.0.0
 DISTNAME = mdsort-${V}
 
 CATEGORIES =   mail
Index: distinfo
===
RCS file: /cvs/ports/mail/mdsort/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo28 Oct 2018 12:14:02 -  1.3
+++ distinfo13 Feb 2019 07:12:29 -
@@ -1,2 +1,2 @@
-SHA256 (mdsort-2.0.0.tar.gz) = 17sfQobEROU9WGbA6Cs3J9qG2XquHsrnjKT4Y0nsCds=
-SIZE (mdsort-2.0.0.tar.gz) = 30615
+SHA256 (mdsort-3.0.0.tar.gz) = Vwn4GHtKhvjTVwEm0+5iUq5qS59oCFrmk7UioIVo29c=
+SIZE (mdsort-3.0.0.tar.gz) = 38148



Re: UPDATE: textproc/lowdown

2018-12-28 Thread Anton Lindqvist
On Wed, Dec 26, 2018 at 04:14:18PM -0800, Bryan Vyhmeister wrote:
> On Wed, Dec 26, 2018 at 09:31:48PM +0100, Anton Lindqvist wrote:
> > Hi,
> > Trivial update to latest version from maintainer; changelog can be found
> > here[1]. While here, configure arguments must be passed as arguments and
> > not using env.
> > 
> > Anyone willing to replace me as the maintainer?
> > 
> > Comments? OK?
> > 
> > [1] https://kristaps.bsd.lv/lowdown/archive.html
> 
> I did some brief testing on amd64 and all seems to work fine. I am happy
> to take maintainer also. Here is your diff plus the maintainer change.

Thanks, consider it done.



UPDATE: textproc/lowdown

2018-12-26 Thread Anton Lindqvist
Hi,
Trivial update to latest version from maintainer; changelog can be found
here[1]. While here, configure arguments must be passed as arguments and
not using env.

Anyone willing to replace me as the maintainer?

Comments? OK?

[1] https://kristaps.bsd.lv/lowdown/archive.html

Index: Makefile
===
RCS file: /cvs/ports/textproc/lowdown/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- Makefile6 Sep 2018 16:13:01 -   1.14
+++ Makefile26 Dec 2018 20:30:20 -
@@ -1,7 +1,7 @@
 # $OpenBSD: Makefile,v 1.14 2018/09/06 16:13:01 anton Exp $
 
 COMMENT =  simple markdown translator
-DISTNAME = lowdown-0.4.1
+DISTNAME = lowdown-0.4.2
 CATEGORIES =   textproc
 
 HOMEPAGE = https://kristaps.bsd.lv/lowdown/
@@ -16,7 +16,7 @@ MASTER_SITES =https://kristaps.bsd.lv/l
 WANTLIB += c m
 
 CONFIGURE_STYLE =  simple
-CONFIGURE_ENV =PREFIX="${PREFIX}"
+CONFIGURE_ARGS =   PREFIX="${PREFIX}"
 
 ALL_TARGET =   lowdown
 
Index: distinfo
===
RCS file: /cvs/ports/textproc/lowdown/distinfo,v
retrieving revision 1.12
diff -u -p -r1.12 distinfo
--- distinfo3 Sep 2018 18:24:33 -   1.12
+++ distinfo26 Dec 2018 20:30:20 -
@@ -1,2 +1,2 @@
-SHA256 (lowdown-0.4.1.tar.gz) = pfsvpR2pwty9IjMucaizn8g4uQKZ4KyM3//SvHk0/Ow=
-SIZE (lowdown-0.4.1.tar.gz) = 94595
+SHA256 (lowdown-0.4.2.tar.gz) = Kp0xik8ImN1stlpGrVzfI9hWYPy7zr4ZqkgopMovXAQ=
+SIZE (lowdown-0.4.2.tar.gz) = 95401



Re: UPDATE: sysutils/yank

2018-11-07 Thread Anton Lindqvist
Ping

On Thu, Nov 01, 2018 at 05:59:51PM +0100, Anton Lindqvist wrote:
> Hi,
> Update from maintainer, the complete changelog can be found here[1].
> 
> Comments? OK?
> 
> [1] https://github.com/mptre/yank/releases/tag/v1.1.0
> 
> Index: Makefile
> ===
> RCS file: /cvs/ports/sysutils/yank/Makefile,v
> retrieving revision 1.4
> diff -u -p -r1.4 Makefile
> --- Makefile  9 Sep 2018 16:03:39 -   1.4
> +++ Makefile  1 Nov 2018 16:57:51 -
> @@ -2,7 +2,7 @@
>  
>  COMMENT =yank terminal output to clipboard
>  
> -V =  1.0.0
> +V =  1.1.0
>  DISTNAME =   yank-${V}
>  CATEGORIES = sysutils
>  
> Index: distinfo
> ===
> RCS file: /cvs/ports/sysutils/yank/distinfo,v
> retrieving revision 1.3
> diff -u -p -r1.3 distinfo
> --- distinfo  9 Sep 2018 16:03:39 -   1.3
> +++ distinfo  1 Nov 2018 16:57:51 -
> @@ -1,2 +1,2 @@
> -SHA256 (yank-1.0.0.tar.gz) = ILobAadRTy9nBwLoOEb0JCni6QSR3B9nnIMZpFoDgt4=
> -SIZE (yank-1.0.0.tar.gz) = 8364
> +SHA256 (yank-1.1.0.tar.gz) = 8ZcQfNYExB7zwjkBdb005a08fPH+r+3v41e6dRSfHFk=
> +SIZE (yank-1.1.0.tar.gz) = 8516



UPDATE: sysutils/yank

2018-11-01 Thread Anton Lindqvist
Hi,
Update from maintainer, the complete changelog can be found here[1].

Comments? OK?

[1] https://github.com/mptre/yank/releases/tag/v1.1.0

Index: Makefile
===
RCS file: /cvs/ports/sysutils/yank/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- Makefile9 Sep 2018 16:03:39 -   1.4
+++ Makefile1 Nov 2018 16:57:51 -
@@ -2,7 +2,7 @@
 
 COMMENT =  yank terminal output to clipboard
 
-V =1.0.0
+V =1.1.0
 DISTNAME = yank-${V}
 CATEGORIES =   sysutils
 
Index: distinfo
===
RCS file: /cvs/ports/sysutils/yank/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo9 Sep 2018 16:03:39 -   1.3
+++ distinfo1 Nov 2018 16:57:51 -
@@ -1,2 +1,2 @@
-SHA256 (yank-1.0.0.tar.gz) = ILobAadRTy9nBwLoOEb0JCni6QSR3B9nnIMZpFoDgt4=
-SIZE (yank-1.0.0.tar.gz) = 8364
+SHA256 (yank-1.1.0.tar.gz) = 8ZcQfNYExB7zwjkBdb005a08fPH+r+3v41e6dRSfHFk=
+SIZE (yank-1.1.0.tar.gz) = 8516



UPDATE: mail/mdsort

2018-10-28 Thread Anton Lindqvist
Hi,
Update mdsort from maintainer, complete changelog can be found here[1].
Most notably, mdsort can now act as a MDA reading messages from stdin.

Comments? OK?

[1] https://github.com/mptre/mdsort/releases/tag/v2.0.0

Index: Makefile
===
RCS file: /cvs/ports/mail/mdsort/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile30 Jul 2018 10:48:59 -  1.2
+++ Makefile27 Oct 2018 12:38:15 -
@@ -2,7 +2,7 @@
 
 COMMENT =  maildir sort
 
-V =1.1.0
+V =2.0.0
 DISTNAME = mdsort-${V}
 
 CATEGORIES =   mail
Index: distinfo
===
RCS file: /cvs/ports/mail/mdsort/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo30 Jul 2018 10:48:59 -  1.2
+++ distinfo27 Oct 2018 12:38:15 -
@@ -1,2 +1,2 @@
-SHA256 (mdsort-1.1.0.tar.gz) = uWtd0YUJ5zFCbEJ5rTxaGJmIPHhr794PsMJSBX7iFls=
-SIZE (mdsort-1.1.0.tar.gz) = 26633
+SHA256 (mdsort-2.0.0.tar.gz) = 17sfQobEROU9WGbA6Cs3J9qG2XquHsrnjKT4Y0nsCds=
+SIZE (mdsort-2.0.0.tar.gz) = 30615



UPDATE: sysutils/yank

2018-09-09 Thread Anton Lindqvist
Hi,
Update from maintainer. Most importantly, deterministic release tarballs
are now provided; the complete changelog can be found here[1].

Comments? OK?

[1] https://github.com/mptre/yank/releases/tag/v1.0.0

Index: Makefile
===
RCS file: /cvs/ports/sysutils/yank/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile6 Jun 2017 08:15:50 -   1.3
+++ Makefile9 Sep 2018 07:50:26 -
@@ -2,16 +2,17 @@
 
 COMMENT =  yank terminal output to clipboard
 
-GH_ACCOUNT =   mptre
-GH_PROJECT =   yank
-GH_TAGNAME =   v0.8.3
-
+V =1.0.0
+DISTNAME = yank-${V}
 CATEGORIES =   sysutils
 
+HOMEPAGE = https://github.com/mptre/yank
 MAINTAINER =   Anton Lindqvist 
 
 # MIT
 PERMIT_PACKAGE_CDROM = Yes
+
+MASTER_SITES = https://github.com/mptre/yank/releases/download/v${V}/
 
 # uses pledge()
 WANTLIB += c
Index: distinfo
===
RCS file: /cvs/ports/sysutils/yank/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo6 Jun 2017 08:15:50 -   1.2
+++ distinfo9 Sep 2018 07:50:26 -
@@ -1,2 +1,2 @@
-SHA256 (yank-0.8.3.tar.gz) = OaPM9tKwy4A7bRM8R3AwI2Zg71NJx/BVa1pmRMx1iLA=
-SIZE (yank-0.8.3.tar.gz) = 7997
+SHA256 (yank-1.0.0.tar.gz) = ILobAadRTy9nBwLoOEb0JCni6QSR3B9nnIMZpFoDgt4=
+SIZE (yank-1.0.0.tar.gz) = 8364



UPDATE: textproc/lowdown

2018-09-02 Thread Anton Lindqvist
Hi,
I've been working with upstream (Kristaps) to bundle libdiff in lowdown
instead of requiring a new dependency. See the previous discussion[1]
for further reference.

Besides that, trivial bump from maintainer.

Comments? OK?

[1] https://marc.info/?l=openbsd-ports&m=153435837909825&w=2

Index: Makefile
===
RCS file: /cvs/ports/textproc/lowdown/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- Makefile9 Jun 2018 22:05:46 -   1.12
+++ Makefile2 Sep 2018 16:54:17 -
@@ -2,7 +2,7 @@
 
 COMMENT =  simple markdown translator
 
-DISTNAME = lowdown-0.3.3
+DISTNAME = lowdown-0.4.1
 
 CATEGORIES =   textproc
 
Index: distinfo
===
RCS file: /cvs/ports/textproc/lowdown/distinfo,v
retrieving revision 1.11
diff -u -p -r1.11 distinfo
--- distinfo9 Jun 2018 22:05:46 -   1.11
+++ distinfo2 Sep 2018 16:54:17 -
@@ -1,2 +1,2 @@
-SHA256 (lowdown-0.3.3.tar.gz) = XsmwSYsR6iUoLWdO1oGpsvZ+pIfHpJM2kJHuuz1wPsU=
-SIZE (lowdown-0.3.3.tar.gz) = 87977
+SHA256 (lowdown-0.4.1.tar.gz) = pfsvpR2pwty9IjMucaizn8g4uQKZ4KyM3//SvHk0/Ow=
+SIZE (lowdown-0.4.1.tar.gz) = 94595
Index: pkg/PLIST
===
RCS file: /cvs/ports/textproc/lowdown/pkg/PLIST,v
retrieving revision 1.5
diff -u -p -r1.5 PLIST
--- pkg/PLIST   20 Oct 2017 13:48:09 -  1.5
+++ pkg/PLIST   2 Sep 2018 16:54:17 -
@@ -6,11 +6,13 @@ lib/liblowdown.a
 @man man/man1/lowdown.1
 @man man/man3/lowdown.3
 @man man/man3/lowdown_buf.3
+@man man/man3/lowdown_buf_diff.3
 @man man/man3/lowdown_doc_free.3
 @man man/man3/lowdown_doc_new.3
 @man man/man3/lowdown_doc_parse.3
 @man man/man3/lowdown_errstr.3
 @man man/man3/lowdown_file.3
+@man man/man3/lowdown_file_diff.3
 @man man/man3/lowdown_html_free.3
 @man man/man3/lowdown_html_new.3
 @man man/man3/lowdown_html_rndr.3



Re: NEW: textproc/libdiff

2018-08-15 Thread Anton Lindqvist
On Wed, Aug 15, 2018 at 08:25:55PM -0400, Brian Callahan wrote:
> Hi Ingo --
> 
> On 8/15/2018 8:13 PM, Ingo Schwarze wrote:
> > Hi Brian,
> >
> > Brian Callahan wrote on Wed, Aug 15, 2018 at 04:29:52PM -0400:
> >> On 08/15/18 15:51, Ingo Schwarze wrote:
> >>> Anton Lindqvist wrote on Wed, Aug 15, 2018 at 08:38:46PM +0200:
> >>>> This is an upcoming dependency for textproc/lowdown and also my first
> >>>> time porting a library(!).
> >>> While kristaps@ is famous for writing great code, he is also somewhat
> >>> well-known for declaring random fragments of his code as "libraries"
> >>> that probably shouldn't be public libraries.
> >>>
> >>> Is libdiff used by anything else besides lowdown?
> >>>
> >>> If not, should it maybe just be part of the lowdown port,
> >>> using two DISTFILES as explained in bsd.port.mk(5)?
> >>>
> >>> This would also have the advantage of avoiding installation of files
> >>> with excessively generic names like /usr/local/include/diff.h and
> >>> /usr/local/man/man3/diff.3.
> >>>
> >>> I'm not sure, if this question is too naive, i hope a real porter
> >>> will correct me.
> >> I would agree with your analysis. The only thing I would add is if 
> >> kristaps@ is likely to use this code in other projects, to just go
> >> ahead and make the port now since it's small enough.
> >>
> >> Or maybe better yet, if he's not going to be using it for anything else, 
> >> ask him to (re-include?) the libdiff stuff in lowdown. I don't use 
> >> lowdown, so I'm not really sure if this libdiff library is old code 
> >> that's being spun off into its own library or new code altogether.
> > I dug a little, and judging from Github, he took
> >
> >   https://github.com/cubicdaiya/onp/tree/master/c
> > (ten-year old, unmaintained code by Tatsuhiko Kubo)
> >
> > in June 2018, adapted it to his own purposes, such that the result
> > is now 90% his code, and published the result as
> >
> >   https://github.com/kristapsdz/libdiff/
> 
> Thanks for digging into this.
> 
> > Obviously, he thinks someone (or he himself) might re-use it at some
> > point in the future, or he wouldn't have published it as a library.
> > Yet that might never happen, or happen many years from now (after
> > all, Kubo's code lay unused for a decade before Kristaps picked it up).
> 
> While I trust that kristaps@ thinks that, I have absolutely seen
> libraries maintained as separate projects that were specifically made
> for a single project and not at all designed for re-use. Welcome to the
> wild world of ports :-)
> 
> > It's totally unclear, and i doubt that anybody (even Kristaps
> > himself) can more than guess at this point.  So far, it doesn't
> > even support building shared libraries upstream, and without
> > another user, there would be little point to that.
> 
> Sure; when I said that, in my head I was thinking "if he is working on
> something right now that also uses the library then we should just port it."
> 
> > I'd say, in such a situation, your call to guide Anton whether a
> > seperate port or inclusion into lowdown is better porting style...
> >
> > Yours,
> >   Ingo
> 
> (More for Anton) Doesn't hurt to ask to have the libdiff code put back
> into lowdown if it was indeed pulled out of it. If he says yes, great.
> If he says no, then we can revisit.

Ingo and Brian,
Thanks for the feedback and pointers. Bringing in Kristaps into the
discussion.



NEW: textproc/libdiff

2018-08-15 Thread Anton Lindqvist
Hi,
This is an upcoming dependency for textproc/lowdown and also my first
time porting a library(!).

One note: I ended up using ALL_TARGET=libdiff.a to prevent building two
utility programs that are included in libdiff. However, the make install
target depends on all which causes the same two programs to end up being
built anyway but they are not installed. Should the make install target
be patched to instead depend on libdiff.a? Or no biggie?

Comments? OK?


libdiff.tar.gz
Description: application/tar-gz


UPDATE: mail/mdsort

2018-07-29 Thread Anton Lindqvist
Hi,
Update mdsort from maintainer, changelog can be found here[1].

Comments? OK?

[2] https://github.com/mptre/mdsort/releases/tag/v1.1.0

Index: Makefile
===
RCS file: /cvs/ports/mail/mdsort/Makefile,v
retrieving revision 1.1
diff -u -p -r1.1 Makefile
--- Makefile7 Apr 2018 08:31:12 -   1.1
+++ Makefile30 Jul 2018 06:14:50 -
@@ -2,7 +2,7 @@
 
 COMMENT =  maildir sort
 
-V =1.0.1
+V =1.1.0
 DISTNAME = mdsort-${V}
 
 CATEGORIES =   mail
Index: distinfo
===
RCS file: /cvs/ports/mail/mdsort/distinfo,v
retrieving revision 1.1
diff -u -p -r1.1 distinfo
--- distinfo7 Apr 2018 08:31:12 -   1.1
+++ distinfo30 Jul 2018 06:14:50 -
@@ -1,2 +1,2 @@
-SHA256 (mdsort-1.0.1.tar.gz) = Q/iaAWW2SPXDjPtjpkupLTne718VzJvjvlZTggZnbSs=
-SIZE (mdsort-1.0.1.tar.gz) = 23431
+SHA256 (mdsort-1.1.0.tar.gz) = uWtd0YUJ5zFCbEJ5rTxaGJmIPHhr794PsMJSBX7iFls=
+SIZE (mdsort-1.1.0.tar.gz) = 26633



UPDATE: textproc/lowdown

2018-06-09 Thread Anton Lindqvist
Hi,
Update lowdown to 0.3.3 from maintainer. Changelog can be found here[1].

Comments? OK?

[1] https://kristaps.bsd.lv/lowdown/archive.html

Index: Makefile
===
RCS file: /cvs/ports/textproc/lowdown/Makefile,v
retrieving revision 1.11
diff -u -p -r1.11 Makefile
--- Makefile24 Apr 2018 15:09:47 -  1.11
+++ Makefile9 Jun 2018 20:54:27 -
@@ -2,8 +2,7 @@
 
 COMMENT =  simple markdown translator
 
-DISTNAME = lowdown-0.3.2
-REVISION = 0
+DISTNAME = lowdown-0.3.3
 
 CATEGORIES =   textproc
 
Index: distinfo
===
RCS file: /cvs/ports/textproc/lowdown/distinfo,v
retrieving revision 1.10
diff -u -p -r1.10 distinfo
--- distinfo24 Apr 2018 14:54:57 -  1.10
+++ distinfo9 Jun 2018 20:54:27 -
@@ -1,2 +1,2 @@
-SHA256 (lowdown-0.3.2.tar.gz) = dAz2AlxDzqrpvMH/w+lJhqpi1l2R74Fz1EShl3xWIJQ=
-SIZE (lowdown-0.3.2.tar.gz) = 87991
+SHA256 (lowdown-0.3.3.tar.gz) = XsmwSYsR6iUoLWdO1oGpsvZ+pIfHpJM2kJHuuz1wPsU=
+SIZE (lowdown-0.3.3.tar.gz) = 87977



Re: UPDATE: textproc/lowdown 0.3.1 to 0.3.2

2018-04-24 Thread Anton Lindqvist
On Tue, Apr 24, 2018 at 04:48:09PM +0200, Jeremie Courreges-Anglas wrote:
> On Mon, Apr 23 2018, Anton Lindqvist  wrote:
> > On Sun, Apr 22, 2018 at 01:44:59PM -0800, Micah Muer wrote:
> >> Here is a trivial update to the latest release of textproc/lowdown.
> >> Builds and runs for me on amd64 current-. Changelog here
> >> https://kristaps.bsd.lv/lowdown/archive.html
> >> 
> >> Thanks!
> >
> > Thanks, I have the same diff in my tree. Anyone else willing to OK?
> 
> port-lib-depends-check says:
> 
> Missing: m.10 (/usr/local/bin/lowdown-diff) (system lib)
> WANTLIB += m
> 
> Please add it to WANTLIB -> ok jca@

Ouch, managed to commit before reading your reply. Does this look ok?

Index: Makefile
===
RCS file: /cvs/ports/textproc/lowdown/Makefile,v
retrieving revision 1.10
diff -u -p -r1.10 Makefile
--- Makefile24 Apr 2018 14:54:57 -  1.10
+++ Makefile24 Apr 2018 15:01:09 -
@@ -3,6 +3,8 @@
 COMMENT =  simple markdown translator
 
 DISTNAME = lowdown-0.3.2
+REVISION = 0
+
 CATEGORIES =   textproc
 
 HOMEPAGE =     https://kristaps.bsd.lv/lowdown/
@@ -12,7 +14,7 @@ MAINTAINER =  Anton Lindqvist https://kristaps.bsd.lv/lowdown/snapshots/
 



Re: UPDATE: textproc/lowdown 0.3.1 to 0.3.2

2018-04-24 Thread Anton Lindqvist
On Sun, Apr 22, 2018 at 01:44:59PM -0800, Micah Muer wrote:
> Here is a trivial update to the latest release of textproc/lowdown.
> Builds and runs for me on amd64 current-. Changelog here
> https://kristaps.bsd.lv/lowdown/archive.html
> 
> Thanks!

Thanks, I have the same diff in my tree. Anyone else willing to OK?

> Index: Makefile
> ===
> RCS file: /cvs/ports/textproc/lowdown/Makefile,v
> retrieving revision 1.9
> diff -u -p -u -p -r1.9 Makefile
> --- Makefile  26 Oct 2017 18:03:54 -  1.9
> +++ Makefile  22 Apr 2018 21:24:59 -
> @@ -2,7 +2,7 @@
>  
>  COMMENT =simple markdown translator
>  
> -DISTNAME =   lowdown-0.3.1
> +DISTNAME =   lowdown-0.3.2
>  CATEGORIES = textproc
>  
>  HOMEPAGE =   https://kristaps.bsd.lv/lowdown/
> Index: distinfo
> ===
> RCS file: /cvs/ports/textproc/lowdown/distinfo,v
> retrieving revision 1.9
> diff -u -p -u -p -r1.9 distinfo
> --- distinfo  26 Oct 2017 18:03:54 -  1.9
> +++ distinfo  22 Apr 2018 21:24:59 -
> @@ -1,2 +1,2 @@
> -SHA256 (lowdown-0.3.1.tar.gz) = njeWx/gZo9KKjjBOrGDaYumPqZbK5BMdqXHY3q6kR2Y=
> -SIZE (lowdown-0.3.1.tar.gz) = 87414
> +SHA256 (lowdown-0.3.2.tar.gz) = dAz2AlxDzqrpvMH/w+lJhqpi1l2R74Fz1EShl3xWIJQ=
> +SIZE (lowdown-0.3.2.tar.gz) = 87991



Re: UPDATE: textproc/lowdown 0.3.1 to 0.3.2

2018-04-24 Thread Anton Lindqvist
On Sun, Apr 22, 2018 at 01:44:59PM -0800, Micah Muer wrote:
> Here is a trivial update to the latest release of textproc/lowdown.
> Builds and runs for me on amd64 current-. Changelog here
> https://kristaps.bsd.lv/lowdown/archive.html
> 
> Thanks!

Thanks, I have the same diff in my tree. Anyone else willing to OK?

> 
> Index: Makefile
> ===
> RCS file: /cvs/ports/textproc/lowdown/Makefile,v
> retrieving revision 1.9
> diff -u -p -u -p -r1.9 Makefile
> --- Makefile  26 Oct 2017 18:03:54 -  1.9
> +++ Makefile  22 Apr 2018 21:24:59 -
> @@ -2,7 +2,7 @@
>  
>  COMMENT =simple markdown translator
>  
> -DISTNAME =   lowdown-0.3.1
> +DISTNAME =   lowdown-0.3.2
>  CATEGORIES = textproc
>  
>  HOMEPAGE =   https://kristaps.bsd.lv/lowdown/
> Index: distinfo
> ===
> RCS file: /cvs/ports/textproc/lowdown/distinfo,v
> retrieving revision 1.9
> diff -u -p -u -p -r1.9 distinfo
> --- distinfo  26 Oct 2017 18:03:54 -  1.9
> +++ distinfo  22 Apr 2018 21:24:59 -
> @@ -1,2 +1,2 @@
> -SHA256 (lowdown-0.3.1.tar.gz) = njeWx/gZo9KKjjBOrGDaYumPqZbK5BMdqXHY3q6kR2Y=
> -SIZE (lowdown-0.3.1.tar.gz) = 87414
> +SHA256 (lowdown-0.3.2.tar.gz) = dAz2AlxDzqrpvMH/w+lJhqpi1l2R74Fz1EShl3xWIJQ=
> +SIZE (lowdown-0.3.2.tar.gz) = 87991



UPDATE: sysutils/pick

2018-04-10 Thread Anton Lindqvist
Hi,
Update pick to 2.0.2 from maintainer. The changelog can be found here[1]
and most importantly:

- The repository has been moved to my account over at GitHub

- The Werror flag is gone

Comments? OK?

[1] https://github.com/mptre/pick/releases/tag/v2.0.2

Index: Makefile
===
RCS file: /cvs/ports/sysutils/pick/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- Makefile1 Jan 2018 19:30:43 -   1.8
+++ Makefile10 Apr 2018 20:16:57 -
@@ -2,12 +2,12 @@
 
 COMMENT =  fuzzy select anything
 
-V =2.0.1
+V =2.0.2
 DISTNAME = pick-${V}
 
 CATEGORIES =   sysutils
 
-HOMEPAGE = https://github.com/calleerlandsson/pick
+HOMEPAGE = https://github.com/mptre/pick
 
 MAINTAINER =   Anton Lindqvist 
 
@@ -17,12 +17,9 @@ PERMIT_PACKAGE_CDROM =   Yes
 # uses pledge()
 WANTLIB += c curses
 
-MASTER_SITES = https://github.com/calleerlandsson/pick/releases/download/v${V}/
+MASTER_SITES = https://github.com/mptre/pick/releases/download/v${V}/
 
 SEPARATE_BUILD =   Yes
 CONFIGURE_STYLE =  gnu
-
-pre-configure:
-   sed -i 's,-Werror,,g' ${WRKSRC}/Makefile.in
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/sysutils/pick/distinfo,v
retrieving revision 1.7
diff -u -p -r1.7 distinfo
--- distinfo1 Jan 2018 19:30:43 -   1.7
+++ distinfo10 Apr 2018 20:16:57 -
@@ -1,2 +1,2 @@
-SHA256 (pick-2.0.1.tar.gz) = Sllrj0CjFrxOLA2OiEKBDXp7adRkpBDk7ipldOAWKeM=
-SIZE (pick-2.0.1.tar.gz) = 108010
+SHA256 (pick-2.0.2.tar.gz) = 8rQ6qlQK0/8FolalMcL0fT2VFFuCwdGw1i37QNeT04U=
+SIZE (pick-2.0.2.tar.gz) = 132174



NEW: mail/mdsort

2018-04-05 Thread Anton Lindqvist
Hi,
The mdsort utility moves messages from one maildir to another according
to a set of user defined rules. The rule syntax should be familiar to
users of OpenBSD. Example configuration:

  $ cat ~/.mdsort.conf
  maildir "~/Maildir/INBOX" {
# Move messages from OpenBSD mailing lists into dedicated directories.
match header { "Cc" "To" } /(bugs|misc|ports|tech)@openbsd.org/i \
  move "~/Maildir/openbsd-\1"

match header { "Cc" "To" } /(ports|source)-chan...@openbsd.org/i \
  move "~/Maildir/openbsd-cvs"

# Get rid of potential spam.
match header "Received-SPF" /fail/ or header "X-Spam-Score" /[1-9]/ \
  move "~/Maildir/Spam"

# Archive read messages.
match ! new move "~/Maildir/Archive"
  }

Rules can be inspected using the dry run option: instead of moving
messages, it shows which messages would be moved and why:

  $ mdsort -d
  /home/anton/Maildir/INBOX/new/1521917295.19872_29.puffy -> 
/home/anton/Maildir/openbsd-tech/new
  Cc: t...@openbsd.org
  ^  $

The manuals are available online[1] and the code over here[2].

OK to import? (I'm the author)

[1] https://mptre.github.io/mdsort/
[2] https://github.com/mptre/mdsort


mdsort.tar.gz
Description: application/tar-gz


UPDATE: sysutils/yank (switch to release)

2018-02-27 Thread Anton Lindqvist
Hi,
Switch from auto-generated tarball to release.

Comments? OK?

Index: Makefile
===
RCS file: /cvs/ports/sysutils/yank/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile6 Jun 2017 08:15:50 -   1.3
+++ Makefile27 Feb 2018 19:14:57 -
@@ -2,9 +2,9 @@
 
 COMMENT =  yank terminal output to clipboard
 
-GH_ACCOUNT =   mptre
-GH_PROJECT =   yank
-GH_TAGNAME =   v0.8.3
+V =0.8.3
+DISTNAME = yank-${V}
+REVISION = 0
 
 CATEGORIES =   sysutils
 
@@ -15,6 +15,8 @@ PERMIT_PACKAGE_CDROM =Yes
 
 # uses pledge()
 WANTLIB += c
+
+MASTER_SITES = https://github.com/mptre/yank/releases/download/v${V}/
 
 RUN_DEPENDS =  x11/xsel
 
Index: distinfo
===
RCS file: /cvs/ports/sysutils/yank/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo6 Jun 2017 08:15:50 -   1.2
+++ distinfo27 Feb 2018 19:14:57 -
@@ -1,2 +1,2 @@
-SHA256 (yank-0.8.3.tar.gz) = OaPM9tKwy4A7bRM8R3AwI2Zg71NJx/BVa1pmRMx1iLA=
-SIZE (yank-0.8.3.tar.gz) = 7997
+SHA256 (yank-0.8.3.tar.gz) = yf7vVt9uX0nWsUdEUQa0AVKXIJXR3xdeZX49tLcuQuM=
+SIZE (yank-0.8.3.tar.gz) = 8093



Re: UPDATE: sysutils/pick

2018-01-01 Thread Anton Lindqvist
On Mon, Jan 01, 2018 at 11:21:32AM -0500, Brian Callahan wrote:
> 
> On 01/01/18 11:08, Anton Lindqvist wrote:
> > Hi,
> > Update pick to 2.0.1 from maintainer, the changelog can be found here[1]
> > and the only change is:
> > 
> > - Typing a query fast could yield incorrect results.
> > 
> > Comments? OK?
> > 
> > [1] https://github.com/calleerlandsson/pick/releases/tag/v2.0.1
> > 
> > Index: Makefile
> > ===
> > RCS file: /cvs/ports/sysutils/pick/Makefile,v
> > retrieving revision 1.7
> > diff -u -p -r1.7 Makefile
> > --- Makefile7 Nov 2017 14:16:54 -   1.7
> > +++ Makefile1 Jan 2018 16:07:36 -
> > @@ -2,7 +2,7 @@
> >   COMMENT = fuzzy select anything
> > -V =2.0.0
> > +V =2.0.1
> >   DISTNAME =pick-${V}
> >   CATEGORIES =  sysutils
> > Index: distinfo
> > ===
> > RCS file: /cvs/ports/sysutils/pick/distinfo,v
> > retrieving revision 1.6
> > diff -u -p -r1.6 distinfo
> > --- distinfo7 Nov 2017 14:16:54 -   1.6
> > +++ distinfo1 Jan 2018 16:07:36 -
> > @@ -1,2 +1,2 @@
> > -SHA256 (pick-2.0.0.tar.gz) = DocUG5zKfDHU13yHp8BYLjFvQPkHZETHxuh6eR8a6As=
> > -SIZE (pick-2.0.0.tar.gz) = 107860
> > +SHA256 (pick-2.0.1.tar.gz) = Sllrj0CjFrxOLA2OiEKBDXp7adRkpBDk7ipldOAWKeM=
> > +SIZE (pick-2.0.1.tar.gz) = 108010
> > 
> 
> Two thoughts:
> 1. SEPARATE_BUILD=Yes can be set
> 2. There's a -Werror floating around the build
> 
> If you don't want to patch ${WRKSRC}/Makefile.in to remove the -Werror, this
> will do:
> pre-configure:
>     sed -i 's,-Werror,,g' ${WRKSRC}/Makefile.in

Thanks, both thoughts addressed. I went with your proposal and added a
pre-configure target. But, I will make sure that -Werror is removed in
the next upstream release.

Index: Makefile
===
RCS file: /cvs/ports/sysutils/pick/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile7 Nov 2017 14:16:54 -   1.7
+++ Makefile1 Jan 2018 19:00:38 -
@@ -2,7 +2,7 @@
 
 COMMENT =  fuzzy select anything
 
-V =2.0.0
+V =2.0.1
 DISTNAME = pick-${V}
 
 CATEGORIES =   sysutils
@@ -19,6 +19,10 @@ WANTLIB +=   c curses
 
 MASTER_SITES = https://github.com/calleerlandsson/pick/releases/download/v${V}/
 
+SEPARATE_BUILD =   Yes
 CONFIGURE_STYLE =  gnu
+
+pre-configure:
+   sed -i 's,-Werror,,g' ${WRKSRC}/Makefile.in
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/sysutils/pick/distinfo,v
retrieving revision 1.6
diff -u -p -r1.6 distinfo
--- distinfo7 Nov 2017 14:16:54 -   1.6
+++ distinfo1 Jan 2018 19:00:38 -
@@ -1,2 +1,2 @@
-SHA256 (pick-2.0.0.tar.gz) = DocUG5zKfDHU13yHp8BYLjFvQPkHZETHxuh6eR8a6As=
-SIZE (pick-2.0.0.tar.gz) = 107860
+SHA256 (pick-2.0.1.tar.gz) = Sllrj0CjFrxOLA2OiEKBDXp7adRkpBDk7ipldOAWKeM=
+SIZE (pick-2.0.1.tar.gz) = 108010



UPDATE: sysutils/pick

2018-01-01 Thread Anton Lindqvist
Hi,
Update pick to 2.0.1 from maintainer, the changelog can be found here[1]
and the only change is:

- Typing a query fast could yield incorrect results.

Comments? OK?

[1] https://github.com/calleerlandsson/pick/releases/tag/v2.0.1

Index: Makefile
===
RCS file: /cvs/ports/sysutils/pick/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile7 Nov 2017 14:16:54 -   1.7
+++ Makefile1 Jan 2018 16:07:36 -
@@ -2,7 +2,7 @@
 
 COMMENT =  fuzzy select anything
 
-V =2.0.0
+V =2.0.1
 DISTNAME = pick-${V}
 
 CATEGORIES =   sysutils
Index: distinfo
===
RCS file: /cvs/ports/sysutils/pick/distinfo,v
retrieving revision 1.6
diff -u -p -r1.6 distinfo
--- distinfo7 Nov 2017 14:16:54 -   1.6
+++ distinfo1 Jan 2018 16:07:36 -
@@ -1,2 +1,2 @@
-SHA256 (pick-2.0.0.tar.gz) = DocUG5zKfDHU13yHp8BYLjFvQPkHZETHxuh6eR8a6As=
-SIZE (pick-2.0.0.tar.gz) = 107860
+SHA256 (pick-2.0.1.tar.gz) = Sllrj0CjFrxOLA2OiEKBDXp7adRkpBDk7ipldOAWKeM=
+SIZE (pick-2.0.1.tar.gz) = 108010



UPDATE: sysutils/pick

2017-11-06 Thread Anton Lindqvist
Morning,
Update pick to 2.0.0 from maintainer, the complete changelog can be
found here[1] and the most notable changes are:

- Add Ctrl-O key binding used to toggle sorting.

- Ignore OSC escape sequences while calculating the line width and
  filtering.

- Fix exit code for -h option.

- Optimize filtering by safely reducing the number of choices to
  reconsider when the query grew longer.

- Only redraw the choices when necessary.

- Replace example in manual with a more portable but equally useful one.

Comments? OK?

[1] https://github.com/calleerlandsson/pick/releases/tag/v2.0.0

Index: Makefile
===
RCS file: /cvs/ports/sysutils/pick/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- Makefile5 Oct 2017 08:06:24 -   1.6
+++ Makefile7 Nov 2017 07:46:30 -
@@ -2,7 +2,7 @@
 
 COMMENT =  fuzzy select anything
 
-V =1.9.0
+V =2.0.0
 DISTNAME = pick-${V}
 
 CATEGORIES =   sysutils
Index: distinfo
===
RCS file: /cvs/ports/sysutils/pick/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- distinfo5 Oct 2017 08:06:24 -   1.5
+++ distinfo7 Nov 2017 07:46:30 -
@@ -1,2 +1,2 @@
-SHA256 (pick-1.9.0.tar.gz) = l9PzEOt95E++UK00UcSdhZ1gf6FKzQxYSq+ul+6mUmc=
-SIZE (pick-1.9.0.tar.gz) = 106379
+SHA256 (pick-2.0.0.tar.gz) = DocUG5zKfDHU13yHp8BYLjFvQPkHZETHxuh6eR8a6As=
+SIZE (pick-2.0.0.tar.gz) = 107860



UPDATE: textproc/lowdown

2017-10-26 Thread Anton Lindqvist
Hi,
Update lowdown to 0.3.1 from maintainer. Existing CFLAGS from the
environment are now respected, pointed out by jca@ in the previous
update[1]. Complete changelog can be found here[2].

Comments? OK?

[1] https://marc.info/?l=openbsd-ports&m=150850262811216&w=2
[2] https://kristaps.bsd.lv/lowdown/archive.html

Index: Makefile
===
RCS file: /cvs/ports/textproc/lowdown/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- Makefile20 Oct 2017 13:48:09 -  1.8
+++ Makefile26 Oct 2017 14:25:55 -
@@ -2,7 +2,7 @@
 
 COMMENT =  simple markdown translator
 
-DISTNAME = lowdown-0.3.0
+DISTNAME = lowdown-0.3.1
 CATEGORIES =   textproc
 
 HOMEPAGE = https://kristaps.bsd.lv/lowdown/
Index: distinfo
===
RCS file: /cvs/ports/textproc/lowdown/distinfo,v
retrieving revision 1.8
diff -u -p -r1.8 distinfo
--- distinfo20 Oct 2017 13:48:09 -  1.8
+++ distinfo26 Oct 2017 14:25:55 -
@@ -1,2 +1,2 @@
-SHA256 (lowdown-0.3.0.tar.gz) = VJWimSJ+SSQbokFQZcCj8y7TM0g023qmEdZcXSy9V+c=
-SIZE (lowdown-0.3.0.tar.gz) = 86661
+SHA256 (lowdown-0.3.1.tar.gz) = njeWx/gZo9KKjjBOrGDaYumPqZbK5BMdqXHY3q6kR2Y=
+SIZE (lowdown-0.3.1.tar.gz) = 87414



Re: UPDATE: textproc/lowdown

2017-10-20 Thread Anton Lindqvist
On Fri, Oct 20, 2017 at 02:28:01PM +0200, Jeremie Courreges-Anglas wrote:
> On Fri, Oct 20 2017, Anton Lindqvist  wrote:
> > Hi,
> > Update lowdown to 0.3.0 from maintainer. Changelog can be found here[1].
> >
> > Comments?
> 
> ''make clean all DEBUG=whatever'' doesn't pass "whatever" in CFLAGS.
> I fail to see how CFLAGS are passed to the underlying build system.
> This is already the case with lowdown-0.2.7, but it would be good to fix
> this.

I will take this upstream and make sure its fixed until the next
release.



UPDATE: textproc/lowdown

2017-10-20 Thread Anton Lindqvist
Hi,
Update lowdown to 0.3.0 from maintainer. Changelog can be found here[1].

Comments? OK?

[1] https://kristaps.bsd.lv/lowdown/archive.html

Index: Makefile
===
RCS file: /cvs/ports/textproc/lowdown/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile5 Oct 2017 08:08:19 -   1.7
+++ Makefile20 Oct 2017 09:23:11 -
@@ -2,7 +2,7 @@
 
 COMMENT =  simple markdown translator
 
-DISTNAME = lowdown-0.2.7
+DISTNAME = lowdown-0.3.0
 CATEGORIES =   textproc
 
 HOMEPAGE = https://kristaps.bsd.lv/lowdown/
Index: distinfo
===
RCS file: /cvs/ports/textproc/lowdown/distinfo,v
retrieving revision 1.7
diff -u -p -r1.7 distinfo
--- distinfo5 Oct 2017 08:08:19 -   1.7
+++ distinfo20 Oct 2017 09:23:11 -
@@ -1,2 +1,2 @@
-SHA256 (lowdown-0.2.7.tar.gz) = yWwQXCMUhIQ6jTjot96ySO93NoEJU7kon2E/7513feE=
-SIZE (lowdown-0.2.7.tar.gz) = 72312
+SHA256 (lowdown-0.3.0.tar.gz) = VJWimSJ+SSQbokFQZcCj8y7TM0g023qmEdZcXSy9V+c=
+SIZE (lowdown-0.3.0.tar.gz) = 86661
Index: pkg/PLIST
===
RCS file: /cvs/ports/textproc/lowdown/pkg/PLIST,v
retrieving revision 1.4
diff -u -p -r1.4 PLIST
--- pkg/PLIST   5 Oct 2017 08:08:19 -   1.4
+++ pkg/PLIST   20 Oct 2017 09:23:11 -
@@ -1,5 +1,6 @@
 @comment $OpenBSD: PLIST,v 1.4 2017/10/05 08:08:19 anton Exp $
 @bin bin/lowdown
+@bin bin/lowdown-diff
 include/lowdown.h
 lib/liblowdown.a
 @man man/man1/lowdown.1



UPDATE: textproc/lowdown

2017-10-05 Thread Anton Lindqvist
Hi,
Update lowdown to 0.2.7 from maintainer. Most notably, a reference
manual of the Markdown accepted by lowdown has been added. Complete
changelog can be found here[1].

Comments? OK?

[1] https://kristaps.bsd.lv/lowdown/archive.html

Index: Makefile
===
RCS file: /cvs/ports/textproc/lowdown/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- Makefile7 Sep 2017 07:03:24 -   1.6
+++ Makefile5 Oct 2017 07:42:00 -
@@ -2,7 +2,7 @@
 
 COMMENT =  simple markdown translator
 
-DISTNAME = lowdown-0.2.4
+DISTNAME = lowdown-0.2.7
 CATEGORIES =   textproc
 
 HOMEPAGE = https://kristaps.bsd.lv/lowdown/
Index: distinfo
===
RCS file: /cvs/ports/textproc/lowdown/distinfo,v
retrieving revision 1.6
diff -u -p -r1.6 distinfo
--- distinfo7 Sep 2017 07:03:24 -   1.6
+++ distinfo5 Oct 2017 07:42:00 -
@@ -1,2 +1,2 @@
-SHA256 (lowdown-0.2.4.tar.gz) = TMbqByJE+617RPqj4CjzNvP26UIvqazCY9LCwlDkOog=
-SIZE (lowdown-0.2.4.tar.gz) = 64693
+SHA256 (lowdown-0.2.7.tar.gz) = yWwQXCMUhIQ6jTjot96ySO93NoEJU7kon2E/7513feE=
+SIZE (lowdown-0.2.7.tar.gz) = 72312
Index: pkg/PLIST
===
RCS file: /cvs/ports/textproc/lowdown/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -r1.3 PLIST
--- pkg/PLIST   7 Sep 2017 07:03:24 -   1.3
+++ pkg/PLIST   5 Oct 2017 07:42:00 -
@@ -19,3 +19,4 @@ lib/liblowdown.a
 @man man/man3/lowdown_tree_free.3
 @man man/man3/lowdown_tree_new.3
 @man man/man3/lowdown_tree_rndr.3
+@man man/man5/lowdown.5



Re: UPDATE: sysutils/pick

2017-10-05 Thread Anton Lindqvist
Ping

On Tue, Sep 19, 2017 at 09:38:51AM +0200, Anton Lindqvist wrote:
> Hi,
> Update pick to 1.9.0 from maintainer, the complete changelog can be
> found here[1] and the most important changes below:
> 
> New features:
> 
> - Add -K option used to disable toggling of keyboard transmit mode.
>   Fixes a bug causing the arrow keys to stop working after running pick
>   from within Vim.
> 
> Bug fixes:
> 
> - Do not reset the selection on redraw.
> 
> - Explicitly handle Ctrl-{C,Z} control characters. The previous SIGINT
>   handler was broken since it invoked functions that are not considered
>   asynchronous safe. Instead, do not turn control characters into
>   signals but instead handle the relevant ones. A pleasant side-effect
>   is that suspend/resumes now behaves correctly.
> 
> Changes:
> 
> - Make Ctrl-W implement the ALTWERASE algorithm,
> 
> - Improve the semantics of the manual and clarify a few things.
> 
> Comments? OK?
> 
> [1] https://github.com/calleerlandsson/pick/releases/tag/v1.9.0
> 
> Index: Makefile
> ===
> RCS file: /cvs/ports/sysutils/pick/Makefile,v
> retrieving revision 1.5
> diff -u -p -r1.5 Makefile
> --- Makefile  29 Aug 2017 07:14:40 -  1.5
> +++ Makefile  19 Sep 2017 07:34:30 -
> @@ -2,7 +2,7 @@
>  
>  COMMENT =fuzzy select anything
>  
> -V =  1.8.0
> +V =  1.9.0
>  DISTNAME =   pick-${V}
>  
>  CATEGORIES = sysutils
> Index: distinfo
> ===
> RCS file: /cvs/ports/sysutils/pick/distinfo,v
> retrieving revision 1.4
> diff -u -p -r1.4 distinfo
> --- distinfo  29 Aug 2017 07:14:40 -  1.4
> +++ distinfo  19 Sep 2017 07:34:30 -
> @@ -1,2 +1,2 @@
> -SHA256 (pick-1.8.0.tar.gz) = eDTTrvnldc4HQU+WHR8CR3a0m7I8XcO3u49rc0ExBn0=
> -SIZE (pick-1.8.0.tar.gz) = 101366
> +SHA256 (pick-1.9.0.tar.gz) = l9PzEOt95E++UK00UcSdhZ1gf6FKzQxYSq+ul+6mUmc=
> +SIZE (pick-1.9.0.tar.gz) = 106379



UPDATE: sysutils/pick

2017-09-19 Thread Anton Lindqvist
Hi,
Update pick to 1.9.0 from maintainer, the complete changelog can be
found here[1] and the most important changes below:

New features:

- Add -K option used to disable toggling of keyboard transmit mode.
  Fixes a bug causing the arrow keys to stop working after running pick
  from within Vim.

Bug fixes:

- Do not reset the selection on redraw.

- Explicitly handle Ctrl-{C,Z} control characters. The previous SIGINT
  handler was broken since it invoked functions that are not considered
  asynchronous safe. Instead, do not turn control characters into
  signals but instead handle the relevant ones. A pleasant side-effect
  is that suspend/resumes now behaves correctly.

Changes:

- Make Ctrl-W implement the ALTWERASE algorithm,

- Improve the semantics of the manual and clarify a few things.

Comments? OK?

[1] https://github.com/calleerlandsson/pick/releases/tag/v1.9.0

Index: Makefile
===
RCS file: /cvs/ports/sysutils/pick/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- Makefile29 Aug 2017 07:14:40 -  1.5
+++ Makefile19 Sep 2017 07:34:30 -
@@ -2,7 +2,7 @@
 
 COMMENT =  fuzzy select anything
 
-V =1.8.0
+V =1.9.0
 DISTNAME = pick-${V}
 
 CATEGORIES =   sysutils
Index: distinfo
===
RCS file: /cvs/ports/sysutils/pick/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo29 Aug 2017 07:14:40 -  1.4
+++ distinfo19 Sep 2017 07:34:30 -
@@ -1,2 +1,2 @@
-SHA256 (pick-1.8.0.tar.gz) = eDTTrvnldc4HQU+WHR8CR3a0m7I8XcO3u49rc0ExBn0=
-SIZE (pick-1.8.0.tar.gz) = 101366
+SHA256 (pick-1.9.0.tar.gz) = l9PzEOt95E++UK00UcSdhZ1gf6FKzQxYSq+ul+6mUmc=
+SIZE (pick-1.9.0.tar.gz) = 106379



UPDATE: textproc/lowdown

2017-09-05 Thread Anton Lindqvist
Hi,
Update lowdown from 0.1.12 to 0.2.4 from maintainer. Most notably, the
library has been documented. Complete changelog can be found here[1].

Comments? OK?

[1] https://kristaps.bsd.lv/lowdown/archive.html

Index: Makefile
===
RCS file: /cvs/ports/textproc/lowdown/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- Makefile18 Jul 2017 21:16:58 -  1.5
+++ Makefile5 Sep 2017 20:20:13 -
@@ -2,7 +2,7 @@
 
 COMMENT =  simple markdown translator
 
-DISTNAME = lowdown-0.1.12
+DISTNAME = lowdown-0.2.4
 CATEGORIES =   textproc
 
 HOMEPAGE = https://kristaps.bsd.lv/lowdown/
Index: distinfo
===
RCS file: /cvs/ports/textproc/lowdown/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- distinfo18 Jul 2017 21:16:58 -  1.5
+++ distinfo5 Sep 2017 20:20:13 -
@@ -1,2 +1,2 @@
-SHA256 (lowdown-0.1.12.tar.gz) = CofJg0FPKKHBHoDO3O8CHQETo2PHotZReCfas0VxwlM=
-SIZE (lowdown-0.1.12.tar.gz) = 56232
+SHA256 (lowdown-0.2.4.tar.gz) = TMbqByJE+617RPqj4CjzNvP26UIvqazCY9LCwlDkOog=
+SIZE (lowdown-0.2.4.tar.gz) = 64693
Index: pkg/PLIST
===
RCS file: /cvs/ports/textproc/lowdown/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   5 Mar 2017 17:10:41 -   1.2
+++ pkg/PLIST   5 Sep 2017 20:20:13 -
@@ -4,3 +4,18 @@ include/lowdown.h
 lib/liblowdown.a
 @man man/man1/lowdown.1
 @man man/man3/lowdown.3
+@man man/man3/lowdown_buf.3
+@man man/man3/lowdown_doc_free.3
+@man man/man3/lowdown_doc_new.3
+@man man/man3/lowdown_doc_parse.3
+@man man/man3/lowdown_errstr.3
+@man man/man3/lowdown_file.3
+@man man/man3/lowdown_html_free.3
+@man man/man3/lowdown_html_new.3
+@man man/man3/lowdown_html_rndr.3
+@man man/man3/lowdown_nroff_free.3
+@man man/man3/lowdown_nroff_new.3
+@man man/man3/lowdown_nroff_rndr.3
+@man man/man3/lowdown_tree_free.3
+@man man/man3/lowdown_tree_new.3
+@man man/man3/lowdown_tree_rndr.3



UPDATE: sysutils/pick

2017-08-28 Thread Anton Lindqvist
Hi,
Update pick to 1.8.0 from maintainer, the complete changelog can be
found here[1] and the most important changes below:

New features:

- Read arrow keys from the terminfo(3) database.

- Add support for SIGWINCH.

Bug fixes:

- Declare functions as __dead when appropriate in pick-test(1).
  Discovered while compiling using GCC 7.

- Make sure $IFS is not an empty string.

- Disable IEXTEN to solve Ctrl-V conflict.

- Declare functions as __dead in pick(1) when appropriate.

- Always pass 9 parameters to tparm(3). Partial fix to make pick compile
  on NetBSD.

- Ensure blocking read in non-canonical mode.

- Prefix UP (and DOWN for consistency) since it's already defined on
  NetBSD. Partial fix to make pick compile on NetBSD.

- Use compound-list in pick-test.sh for POSIX compatibility.

- Fix and simplify horisontal scrolling.

- Fix scroll up bug.

- Always favor the shortest match.
  This bug only occurs when a choice contains multiple instances of the
  query and the right-most match is the shortest one.

Comments? OK?

[1] https://github.com/calleerlandsson/pick/releases/tag/v1.8.0

Index: Makefile
===
RCS file: /cvs/ports/sysutils/pick/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- Makefile2 Jul 2017 19:37:22 -   1.4
+++ Makefile28 Aug 2017 15:27:29 -
@@ -2,7 +2,7 @@
 
 COMMENT =  fuzzy select anything
 
-V =1.7.0
+V =1.8.0
 DISTNAME = pick-${V}
 
 CATEGORIES =   sysutils
Index: distinfo
===
RCS file: /cvs/ports/sysutils/pick/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo2 Jul 2017 19:37:22 -   1.3
+++ distinfo28 Aug 2017 15:27:29 -
@@ -1,2 +1,2 @@
-SHA256 (pick-1.7.0.tar.gz) = lQUxxW7cS+N1/k6JKRyqgHMispgUMEPi4pY9406W3hU=
-SIZE (pick-1.7.0.tar.gz) = 101443
+SHA256 (pick-1.8.0.tar.gz) = eDTTrvnldc4HQU+WHR8CR3a0m7I8XcO3u49rc0ExBn0=
+SIZE (pick-1.8.0.tar.gz) = 101366



UPDATE: textproc/lowdown

2017-07-18 Thread Anton Lindqvist
Hi,
Update lowdown to 0.1.12 from maintainer, changelog below:

- Fix how the final metadata with multiple lines wouldn't have the last
  line processed.

Comments? OK?

Index: Makefile
===
RCS file: /cvs/ports/textproc/lowdown/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- Makefile29 May 2017 11:03:50 -  1.4
+++ Makefile18 Jul 2017 19:24:59 -
@@ -2,7 +2,7 @@
 
 COMMENT =  simple markdown translator
 
-DISTNAME = lowdown-0.1.11
+DISTNAME = lowdown-0.1.12
 CATEGORIES =   textproc
 
 HOMEPAGE = https://kristaps.bsd.lv/lowdown/
Index: distinfo
===
RCS file: /cvs/ports/textproc/lowdown/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo29 May 2017 11:03:50 -  1.4
+++ distinfo18 Jul 2017 19:24:59 -
@@ -1,2 +1,2 @@
-SHA256 (lowdown-0.1.11.tar.gz) = 1/bl3J3Bld5OyK4N7nL5VzPfWlIN8dCoo684Xa8OLSw=
-SIZE (lowdown-0.1.11.tar.gz) = 56149
+SHA256 (lowdown-0.1.12.tar.gz) = CofJg0FPKKHBHoDO3O8CHQETo2PHotZReCfas0VxwlM=
+SIZE (lowdown-0.1.12.tar.gz) = 56232



UPDATE: sysutils/pick

2017-06-30 Thread Anton Lindqvist
Hi,
Update pick to 1.7.0 from maintainer, most notable changes:

- Add support for HOME and END keys

- Read keys from the terminfo(3) database, currently limited to HOME and
  END

- Add support for Ctrl-V/Alt-V and Alt- alternative key bindings
  for HOME and END, and Page-Down and Page-Up respectively

- Don't move the cursor upwards if no choices where printed

- Fix selection bar vanishes on Page-Down bug

The complete changelog is available here[1].

Comments? OK?

[1] https://github.com/calleerlandsson/pick/releases/tag/v1.7.0

Index: Makefile
===
RCS file: /cvs/ports/sysutils/pick/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile30 May 2017 10:26:07 -  1.3
+++ Makefile30 Jun 2017 15:19:10 -
@@ -2,9 +2,8 @@
 
 COMMENT =  fuzzy select anything
 
-V =1.6.1
+V =1.7.0
 DISTNAME = pick-${V}
-REVISION = 0
 
 CATEGORIES =   sysutils
 
Index: distinfo
===
RCS file: /cvs/ports/sysutils/pick/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo2 May 2017 20:17:31 -   1.2
+++ distinfo30 Jun 2017 15:19:10 -
@@ -1,2 +1,2 @@
-SHA256 (pick-1.6.1.tar.gz) = stA4TDdraXt+jxeENIXmNzUU8AGzW+GLZBSi/VztjZs=
-SIZE (pick-1.6.1.tar.gz) = 100881
+SHA256 (pick-1.7.0.tar.gz) = lQUxxW7cS+N1/k6JKRyqgHMispgUMEPi4pY9406W3hU=
+SIZE (pick-1.7.0.tar.gz) = 101443



UPDATE: sysutils/yank

2017-06-06 Thread Anton Lindqvist
Hi,
Update yank to 0.8.3 from maintainer, most notable changes:

- Call setlocale(3) prior pledge, allows removal of the rpath promise

- Compile and link separately

Comments? OK?

Index: Makefile
===
RCS file: /cvs/ports/sysutils/yank/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile30 May 2017 10:26:07 -  1.2
+++ Makefile6 Jun 2017 07:22:06 -
@@ -4,8 +4,7 @@ COMMENT =   yank terminal output to clipbo
 
 GH_ACCOUNT =   mptre
 GH_PROJECT =   yank
-GH_TAGNAME =   v0.8.2
-REVISION = 0
+GH_TAGNAME =   v0.8.3
 
 CATEGORIES =   sysutils
 
Index: distinfo
===
RCS file: /cvs/ports/sysutils/yank/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo11 Mar 2017 17:59:31 -  1.1.1.1
+++ distinfo6 Jun 2017 07:22:06 -
@@ -1,2 +1,2 @@
-SHA256 (yank-0.8.2.tar.gz) = J2eKgsXlQVkCvGxBhq2t+GDBcwgiw+8IshEyykYzHOU=
-SIZE (yank-0.8.2.tar.gz) = 7866
+SHA256 (yank-0.8.3.tar.gz) = OaPM9tKwy4A7bRM8R3AwI2Zg71NJx/BVa1pmRMx1iLA=
+SIZE (yank-0.8.3.tar.gz) = 7997



UPDATE: textproc/lowdown

2017-05-29 Thread Anton Lindqvist
Hi,
Update lowdown to 0.1.11 from maintainer, see changelog below:

- Support `[%metadata]` embedded in documents. (Thanks to Anton
  Lindqvist for furnishing several patches for metadata!) Note that
  lowdown doesn't do anything with metadata beyond pasting or standalone
  document creation. Metadata has also been expanded to allow for
  multiple authors.

- Add the `nroff-numbered` output mode option for numbered sections. (None
  for HTML5 because it can be done with CSS.)

- Add some default roff goop to the standalone `-Tms` file for prettier
  section names.

While here, update my own email.

Comments? OK?

Index: Makefile
===
RCS file: /cvs/ports/textproc/lowdown/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile18 Mar 2017 09:53:37 -  1.3
+++ Makefile29 May 2017 07:29:07 -
@@ -2,11 +2,11 @@
 
 COMMENT =  simple markdown translator
 
-DISTNAME = lowdown-0.1.10
+DISTNAME = lowdown-0.1.11
 CATEGORIES =   textproc
 
 HOMEPAGE = https://kristaps.bsd.lv/lowdown/
-MAINTAINER =   Anton Lindqvist 
+MAINTAINER =   Anton Lindqvist 
 
 # ISC
 PERMIT_PACKAGE_CDROM = Yes
Index: distinfo
===
RCS file: /cvs/ports/textproc/lowdown/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo18 Mar 2017 09:53:37 -  1.3
+++ distinfo29 May 2017 07:29:07 -
@@ -1,2 +1,2 @@
-SHA256 (lowdown-0.1.10.tar.gz) = 7vL8svd3njbQpgnA7C6wiRNAV/yxomqT6ZNQp9jC1yk=
-SIZE (lowdown-0.1.10.tar.gz) = 53750
+SHA256 (lowdown-0.1.11.tar.gz) = 1/bl3J3Bld5OyK4N7nL5VzPfWlIN8dCoo684Xa8OLSw=
+SIZE (lowdown-0.1.11.tar.gz) = 56149



Re: UPDATE: sysutils/pick

2017-05-01 Thread Anton Lindqvist
Ping

On Mon, Apr 24, 2017 at 07:14:36PM +0200, Anton Lindqvist wrote:
> Hi,
> Update pick to version 1.6.1. This fixes a regression introduced in the
> previous release causing tabs to not be properly displayed. Release
> notes can be found here[1].
> 
> [1] https://github.com/calleerlandsson/pick/releases/tag/v1.6.1
> 
> Index: Makefile
> ===
> RCS file: /cvs/ports/sysutils/pick/Makefile,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 Makefile
> --- Makefile  19 Apr 2017 12:23:20 -  1.1.1.1
> +++ Makefile  24 Apr 2017 17:12:22 -
> @@ -2,7 +2,7 @@
>  
>  COMMENT =fuzzy select anything
>  
> -V =  1.6.0
> +V =  1.6.1
>  DISTNAME =   pick-${V}
>  
>  CATEGORIES = sysutils
> Index: distinfo
> ===
> RCS file: /cvs/ports/sysutils/pick/distinfo,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 distinfo
> --- distinfo  19 Apr 2017 12:23:20 -  1.1.1.1
> +++ distinfo  24 Apr 2017 17:12:22 -
> @@ -1,2 +1,2 @@
> -SHA256 (pick-1.6.0.tar.gz) = 0DT9dSVsyz6MZSMZasJQtEsYFwpllJRO1tI9G8q/rmo=
> -SIZE (pick-1.6.0.tar.gz) = 100855
> +SHA256 (pick-1.6.1.tar.gz) = stA4TDdraXt+jxeENIXmNzUU8AGzW+GLZBSi/VztjZs=
> +SIZE (pick-1.6.1.tar.gz) = 100881



UPDATE: sysutils/pick

2017-04-24 Thread Anton Lindqvist
Hi,
Update pick to version 1.6.1. This fixes a regression introduced in the
previous release causing tabs to not be properly displayed. Release
notes can be found here[1].

[1] https://github.com/calleerlandsson/pick/releases/tag/v1.6.1

Index: Makefile
===
RCS file: /cvs/ports/sysutils/pick/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- Makefile19 Apr 2017 12:23:20 -  1.1.1.1
+++ Makefile24 Apr 2017 17:12:22 -
@@ -2,7 +2,7 @@
 
 COMMENT =  fuzzy select anything
 
-V =1.6.0
+V =1.6.1
 DISTNAME = pick-${V}
 
 CATEGORIES =   sysutils
Index: distinfo
===
RCS file: /cvs/ports/sysutils/pick/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo19 Apr 2017 12:23:20 -  1.1.1.1
+++ distinfo24 Apr 2017 17:12:22 -
@@ -1,2 +1,2 @@
-SHA256 (pick-1.6.0.tar.gz) = 0DT9dSVsyz6MZSMZasJQtEsYFwpllJRO1tI9G8q/rmo=
-SIZE (pick-1.6.0.tar.gz) = 100855
+SHA256 (pick-1.6.1.tar.gz) = stA4TDdraXt+jxeENIXmNzUU8AGzW+GLZBSi/VztjZs=
+SIZE (pick-1.6.1.tar.gz) = 100881



Re: NEW: devel/vim-printf

2017-04-19 Thread Anton Lindqvist
Ping

On Wed, Apr 12, 2017 at 08:47:26AM +0200, Anton Lindqvist wrote:
> Hi,
> I'm not aware of the general opinion of distributing Vim plugins via
> ports. I don't use any plugin manager for Vim since I currently only use
> two plugins. In the process of unifying my installation process I
> decided to make everything available through ports using mystuff for
> now.
> 
> $ cat pkg/DESCR
> Turn a line consisting of tokens separated by commas into a printf
> statement. A token is recognized as a sequence of any characters except
> for whitespace and comma but with respect to balanced brackets and
> parentheses.
> 
> There's also a GIF available over at GitHub[1] that does a better job of
> explaining the functionality.
> 
> The install procedure in both the Makefile and pkg/PLIST is borrowed
> from devel/vim-taglist with one modification: don't leave an empty
> doc/tags file around when all plugins are removed. I have similar diff
> for devel/vim-taglist which I will submit later on.
> 
> [1] https://github.com/mptre/vim-printf



Re: NEW: sysutils/pick

2017-04-19 Thread Anton Lindqvist
On Wed, Apr 12, 2017 at 11:45:48AM +0200, Theo Buehler wrote:
> On Wed, Apr 12, 2017 at 03:18:48AM -0600, Anthony J. Bentley wrote:
> > Anton Lindqvist writes:
> > > On Mon, Mar 06, 2017 at 08:54:36PM +0100, Anton Lindqvist wrote:
> > > > The pick(1) utility allows users to select from a set of choices using
> > > > an interface with fuzzy search functionality. The choices are read from
> > > > stdin, and the selected choice written to stdout.
> > > > 
> > > > I'm a contributor and maintainer of pick. This port has been
> > > > submitted[1] earlier but not committed. I've talked to Mike about this
> > > > re-submission and on taking over as the maintainer. Notable changes
> > > > since the last submission: pledge:d and a test-suite is in place.
> > > > 
> > > > https://github.com/calleerlandsson/pick
> > > > 
> > > > [1] http://marc.info/?l=openbsd-ports&m=142547614218768&w=2
> > > 
> > > Ping
> > 
> > This looks good to me. Anyone willing to ok so I can import?
> > 
> 
> Putting the initial pledge before setlocale is a bit iffy, so I wonder
> whether we should add a patch changing that.
> 
> Apart from that, the port looks good to me.

Attached is an updated port of pick-1.6.0 which fixes the issue earlier
discussed. Complete changelog below:

- Fix memory leak

- Postpone initial pledge call

- Don't match strings inside escape sequences

- Calculate the width of each displayed character

- Define _GNU_SOURCE in order to make wcwidth(3) available on Linux

- Test suite improvements

- Exit with 0 on success and 1 on failure instead of using the exit
  codes defined in sysexits.h

https://github.com/calleerlandsson/pick/releases/tag/v1.6.0


pick.tar.gz
Description: application/tar-gz


FAQ: missing cross-references in specialtopics.html

2017-04-13 Thread Anton Lindqvist
Hi,
Here's a patch to a couple of missing cross-references to
specialtopics.html. While at it, rephrase one sentence and fix a typo
(an -> a).

Index: specialtopics.html
===
RCS file: /cvs/www/faq/ports/specialtopics.html,v
retrieving revision 1.60
diff -u -p -r1.60 specialtopics.html
--- specialtopics.html  12 Apr 2017 20:24:17 -  1.60
+++ specialtopics.html  13 Apr 2017 18:00:33 -
@@ -48,8 +48,11 @@ You must understand the library naming s
 
 When you link a program, the linker ld embeds that information in the created
 binary.
-You can see it with ldd. Later, when you run that program, the dynamic linker
-ld.so uses that information to find the right dynamic library:
+You can see it with
+http://man.openbsd.org/ldd";>ldd(1).
+Later, when you run that program, the dynamic linker
+http://man.openbsd.org/ld.so";>ld.so(1) uses that information to
+find the right dynamic library:
 
 
 A library with the same exact major number is required.
@@ -144,11 +147,13 @@ which can be directly included in the po
 
 Avoid DT_SONAME hardcoding
 
-Some ports use ld(1)'s -soname flag to override the library
+Some ports use the -soname flag with
+http://man.openbsd.org/ld";>ld(1) to override the library
 specification in the DT_SONAME field.
 Setting DT_SONAME is not a bug itself but is usually not desirable on
-OpenBSD where ld.so(1) is smart and the ports tree takes care of library
-versioning.
+OpenBSD where
+http://man.openbsd.org/ld.so";>ld.so(1) is smart and the ports tree
+takes care of library versioning.
 Moreover, a wrong soname can result in unusable binaries that depend on this
 library; either always or after some updates to the port containing the 
library.
 To check if the DT_SONAME field is set, run the following command:
@@ -174,12 +179,15 @@ However, it is quite possible to use a s
 You should understand the library lookup rules:
 
 
-At build time, ld uses -L flags to set up paths to look for libraries.
+At build time,
+http://man.openbsd.org/ld";>ld(1) uses -L flags to set up
+paths to look for libraries.
 It stops looking as soon as it finds a library that matches its requirements.
 
 
-At run time, ld.so uses the information cached through ldconfig to find the
-required library.
+At run time,
+http://man.openbsd.org/ld.so";>ld.so(1) uses the information cached
+through ldconfig to find the required library.
 
 
 So, let us assume you have two ports that provide two major versions of a
@@ -202,7 +210,8 @@ $ ld -o program program.o -L/usr/loca
 To solve those libraries at run-time, a link called
 /usr/local/lib/libqt.so.1.45 and a link called
 /usr/local/lib/libqt.so.2.31 have been provided.
-This is enough to satisfy ld.so.
+This is enough to satisfy
+http://man.openbsd.org/ld.so";>ld.so(1).
 
 
 It is an error to link a program using qt1 with
@@ -375,7 +384,8 @@ These often get in the way of OpenBSD sp
 For that reason, as soon as CONFIGURE_STYLE corresponds to autoconf
 use, post-patch will touch various files in a specific order, so that
 no automake dependencies get triggered later.
-The list of dependencies is given in tsort(1) order in a file mentioned in
+The list of dependencies is given in
+http://man.openbsd.org/tsort";>tsort(1) order in a file mentioned 
in
 REORDER_DEPENDENCIES (the default is
 ${PORTSDIR}/infrastructure/mk/automake.dep).
 
@@ -473,7 +483,8 @@ the distributed configure script (usuall
 and use this same version yourself.
 
 
-Autoconf relies on the standard unix preprocessor m4(1).
+Autoconf relies on the standard unix preprocessor
+http://man.openbsd.org/m4";>m4(1).
 Normally, autoconf relies on some features on the GNU version of m4, gm4.
 Fortunately, OpenBSD's m4 has enough features to run autoconf as well, it
 just needs to be invoked with -g to handle autoconf.
@@ -795,8 +806,10 @@ In normal usage, you just ask for an enc
 (e.g., AUDIO_ENCODING_SLINEAR_LE).
 Considering that a soundcard does not have to use the same endianness as your
 platform, you should be prepared to deal with that.
-The easiest way is probably to prepare a full audio buffer, and to use swab(3)
-if an endianness change is required.
+The easiest way is probably to prepare a full audio buffer,
+and to use
+http://man.openbsd.org/swab";>swab(3) if an endianness change is
+required.
 Dealing with external samples usually amounts to:
 
 
@@ -1255,17 +1268,19 @@ In case of doubt, report the issue and a
 rc.d(8) scripts
 
 This section is intended to provide some information on writing and installing
-rc.d(8) scripts.
+http://man.openbsd.org/rc.d";>rc.d(8) scripts.
 
 
-Ports that install a daemon benefit greatly from having rc.d(8) scripts.
+Ports that install a daemon benefit greatly from having
+http://man.openbsd.org/rc.d";>rc.d(8) scripts.
 It allows the user to easily check if the daemon is running, as well as
 providing an easy and consistent way to start and stop it.
 
 Writing rc.d(8) scripts
 
-Writing an rc.d(8) script i

Re: NEW: sysutils/pick

2017-04-12 Thread Anton Lindqvist
On Wed, Apr 12, 2017 at 11:45:48AM +0200, Theo Buehler wrote:
> On Wed, Apr 12, 2017 at 03:18:48AM -0600, Anthony J. Bentley wrote:
> > Anton Lindqvist writes:
> > > On Mon, Mar 06, 2017 at 08:54:36PM +0100, Anton Lindqvist wrote:
> > > > The pick(1) utility allows users to select from a set of choices using
> > > > an interface with fuzzy search functionality. The choices are read from
> > > > stdin, and the selected choice written to stdout.
> > > > 
> > > > I'm a contributor and maintainer of pick. This port has been
> > > > submitted[1] earlier but not committed. I've talked to Mike about this
> > > > re-submission and on taking over as the maintainer. Notable changes
> > > > since the last submission: pledge:d and a test-suite is in place.
> > > > 
> > > > https://github.com/calleerlandsson/pick
> > > > 
> > > > [1] http://marc.info/?l=openbsd-ports&m=142547614218768&w=2
> > > 
> > > Ping
> > 
> > This looks good to me. Anyone willing to ok so I can import?
> > 
> 
> Putting the initial pledge before setlocale is a bit iffy, so I wonder
> whether we should add a patch changing that.

I'd be happy to drop the initial pledge call upstream instead.



NEW: devel/vim-printf

2017-04-11 Thread Anton Lindqvist
Hi,
I'm not aware of the general opinion of distributing Vim plugins via
ports. I don't use any plugin manager for Vim since I currently only use
two plugins. In the process of unifying my installation process I
decided to make everything available through ports using mystuff for
now.

$ cat pkg/DESCR
Turn a line consisting of tokens separated by commas into a printf
statement. A token is recognized as a sequence of any characters except
for whitespace and comma but with respect to balanced brackets and
parentheses.

There's also a GIF available over at GitHub[1] that does a better job of
explaining the functionality.

The install procedure in both the Makefile and pkg/PLIST is borrowed
from devel/vim-taglist with one modification: don't leave an empty
doc/tags file around when all plugins are removed. I have similar diff
for devel/vim-taglist which I will submit later on.

[1] https://github.com/mptre/vim-printf


vim-printf.tar.gz
Description: application/tar-gz


FAQ: guide.html minor cleanup

2017-04-02 Thread Anton Lindqvist
Hi,
The use of -tags around make commands in the Porting Guide looks
inconsistent to me. Maybe there's a convention I'm not aware of, I
apologize for the noise then.

I'm familiar with the porting checklist but being able to visually scan
the checklist in order to make sure I haven't missed any of the
mandatory make commands would be valuable. However, some of the
bold-tags where removed in r1.55 in order to make the formatting
consistent with the main FAQ-style. Here's a patch to remove the
remaining bold-tags, assuming this is the preferred convention.

Index: guide.html
===
RCS file: /cvs/www/faq/ports/guide.html,v
retrieving revision 1.67
diff -u -p -r1.67 guide.html
--- guide.html  25 Mar 2017 19:07:05 -  1.67
+++ guide.html  1 Apr 2017 17:26:17 -
@@ -179,7 +179,7 @@ Don't set DISTNAME to point to 
 
 
 You can check to see if you have filled these values in correctly by typing
-make fetch-all.
+make fetch-all.
 
 
 
@@ -270,8 +270,8 @@ supplementary files that the casual user
 
 
 
-Create a checksum in distinfo by typing make makesum.
-Then verify the checksum is correct by typing make checksum.
+Create a checksum in distinfo by typing make makesum.
+Then verify the checksum is correct by typing make checksum.
 
 
 In some rare cases, files checksums can't be verified reliably.
@@ -736,9 +736,8 @@ the dependency, try to use it, and fail 
 Check run-time dependencies versus build-dependencies
 
 Update your packing-list with make plist.
-Use make port-lib-depends-check to see what libraries your
-software needs (that will end up in LIB_DEPENDS or WANTLIB,
-usually).
+Use make port-lib-depends-check to see what libraries your software
+needs (that will end up in LIB_DEPENDS or WANTLIB, usually).
 Identify various files and binaries in the dependencies that have to be present
 for the port to work.
 



UPDATE: textproc/lowdown

2017-03-18 Thread Anton Lindqvist
Hi,
Update lowdown to 0.1.10, from maintainer.

Index: Makefile
===
RCS file: /cvs/ports/textproc/lowdown/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile5 Mar 2017 17:10:41 -   1.2
+++ Makefile17 Mar 2017 21:09:38 -
@@ -2,7 +2,7 @@
 
 COMMENT =  simple markdown translator
 
-DISTNAME = lowdown-0.1.9
+DISTNAME = lowdown-0.1.10
 CATEGORIES =   textproc
 
 HOMEPAGE = https://kristaps.bsd.lv/lowdown/
Index: distinfo
===
RCS file: /cvs/ports/textproc/lowdown/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo5 Mar 2017 17:10:41 -   1.2
+++ distinfo17 Mar 2017 21:09:38 -
@@ -1,2 +1,2 @@
-SHA256 (lowdown-0.1.9.tar.gz) = O4CfnLTPaRK7L3BmbN8YbSVT8av9VJq1N7eCtGiMTnE=
-SIZE (lowdown-0.1.9.tar.gz) = 52896
+SHA256 (lowdown-0.1.10.tar.gz) = 7vL8svd3njbQpgnA7C6wiRNAV/yxomqT6ZNQp9jC1yk=
+SIZE (lowdown-0.1.10.tar.gz) = 53750



Re: NEW: sysutils/pick

2017-03-17 Thread Anton Lindqvist
On Thu, Mar 16, 2017 at 10:57:18PM -0600, Anthony J. Bentley wrote:
> Anton Lindqvist writes:
> > On Mon, Mar 06, 2017 at 08:54:36PM +0100, Anton Lindqvist wrote:
> > > The pick(1) utility allows users to select from a set of choices using
> > > an interface with fuzzy search functionality. The choices are read from
> > > stdin, and the selected choice written to stdout.
> > > 
> > > I'm a contributor and maintainer of pick. This port has been
> > > submitted[1] earlier but not committed. I've talked to Mike about this
> > > re-submission and on taking over as the maintainer. Notable changes
> > > since the last submission: pledge:d and a test-suite is in place.
> > > 
> > > https://github.com/calleerlandsson/pick
> > > 
> > > [1] http://marc.info/?l=openbsd-ports&m=142547614218768&w=2
> > 
> > Ping
> 
> This will need a @conflict with mail/nmh.

Already present:

$ cat pkg/PLIST
@comment $OpenBSD$
@conflict nmh-*
@bin bin/pick
@man man/man1/pick.1



Re: NEW: sysutils/pick

2017-03-16 Thread Anton Lindqvist
On Mon, Mar 06, 2017 at 08:54:36PM +0100, Anton Lindqvist wrote:
> The pick(1) utility allows users to select from a set of choices using
> an interface with fuzzy search functionality. The choices are read from
> stdin, and the selected choice written to stdout.
> 
> I'm a contributor and maintainer of pick. This port has been
> submitted[1] earlier but not committed. I've talked to Mike about this
> re-submission and on taking over as the maintainer. Notable changes
> since the last submission: pledge:d and a test-suite is in place.
> 
> https://github.com/calleerlandsson/pick
> 
> [1] http://marc.info/?l=openbsd-ports&m=142547614218768&w=2

Ping



NEW: sysutils/pick

2017-03-06 Thread Anton Lindqvist
The pick(1) utility allows users to select from a set of choices using
an interface with fuzzy search functionality. The choices are read from
stdin, and the selected choice written to stdout.

I'm a contributor and maintainer of pick. This port has been
submitted[1] earlier but not committed. I've talked to Mike about this
re-submission and on taking over as the maintainer. Notable changes
since the last submission: pledge:d and a test-suite is in place.

https://github.com/calleerlandsson/pick

[1] http://marc.info/?l=openbsd-ports&m=142547614218768&w=2


pick.tar.gz
Description: application/tar-gz


UPDATE: textproc/lowdown

2017-03-05 Thread Anton Lindqvist
Hi,
Here's an update of lowdown to 0.1.9. I'm a lowdown contributor and
Kristaps asked me to maintain the port, which I don't mind. Summary of
changes:

- Make use of the new simple configure script

- Install liblowdown and corresponding header and man-page

- Add missing pledge comment

Index: Makefile
===
RCS file: /cvs/ports/textproc/lowdown/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- Makefile28 Dec 2016 16:58:57 -  1.1.1.1
+++ Makefile5 Mar 2017 13:24:34 -
@@ -2,20 +2,22 @@
 
 COMMENT =  simple markdown translator
 
-DISTNAME = lowdown-0.1.1
+DISTNAME = lowdown-0.1.9
 CATEGORIES =   textproc
 
 HOMEPAGE = https://kristaps.bsd.lv/lowdown/
-MAINTAINER =   Kristaps Dzonsons 
+MAINTAINER =   Anton Lindqvist 
 
 # ISC
 PERMIT_PACKAGE_CDROM = Yes
 
+# uses pledge()
 WANTLIB += c
 
 MASTER_SITES = https://kristaps.bsd.lv/lowdown/snapshots/
 
-MAKE_FLAGS =   PREFIX="${PREFIX}"
+CONFIGURE_STYLE =  simple
+CONFIGURE_ENV =PREFIX="${PREFIX}"
 NO_TEST =  Yes
 ALL_TARGET =   lowdown
 
Index: distinfo
===
RCS file: /cvs/ports/textproc/lowdown/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo28 Dec 2016 16:58:57 -  1.1.1.1
+++ distinfo5 Mar 2017 13:24:34 -
@@ -1,2 +1,2 @@
-SHA256 (lowdown-0.1.1.tar.gz) = gA7GFl0/r5l+/+5Yz/NifRk9IL41FJzYOPrvBaHXloc=
-SIZE (lowdown-0.1.1.tar.gz) = 40718
+SHA256 (lowdown-0.1.9.tar.gz) = O4CfnLTPaRK7L3BmbN8YbSVT8av9VJq1N7eCtGiMTnE=
+SIZE (lowdown-0.1.9.tar.gz) = 52896
Index: pkg/PLIST
===
RCS file: /cvs/ports/textproc/lowdown/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST   28 Dec 2016 16:58:57 -  1.1.1.1
+++ pkg/PLIST   5 Mar 2017 13:24:34 -
@@ -1,3 +1,6 @@
 @comment $OpenBSD: PLIST,v 1.1.1.1 2016/12/28 16:58:57 jturner Exp $
 @bin bin/lowdown
+include/lowdown.h
+lib/liblowdown.a
 @man man/man1/lowdown.1
+@man man/man3/lowdown.3



Re: NEW: sysutils/yank

2017-03-02 Thread Anton Lindqvist
On Tue, Feb 21, 2017 at 08:37:51AM +, Stuart Henderson wrote:
> On 2017/02/20 21:30, Anton Lindqvist wrote:
> > Thanks for the review, comments below:
> > 
> > On Mon, Feb 20, 2017 at 07:52:16PM +, Stuart Henderson wrote:
> > > On 2017/02/20 19:37, Anton Lindqvist wrote:
> > > > Update to newest version 0.8.2.
> > > > 
> > > > On Sat, Feb 18, 2017 at 09:05:24AM +0100, Anton Lindqvist wrote:
> > > > > The yank(1) utility reads input from stdin and displays a selection
> > > > > interface that allows a field to be selected and copied to the
> > > > > clipboard.
> > > > > 
> > > > > I'm the creator and maintainer of yank(1).
> > > > > 
> > > > > https://github.com/mptre/yank
> > > 
> > > - HOMEPAGE isn't needed, that's the default with GH_* anyway.
> > 
> > Fixed
> > 
> > > - the @conflict is done on the package name, so it should be EMBOSS-*
> > > not emboss-*.
> > 
> > Fixed
> > 
> > > - we're trying to keep track of things in ports using pledge, so please
> > > add a "# uses pledge()" comment near the WANTLIB
> > 
> > Thanks, didn't know. Maybe this convention should mentioned in
> > infrastructure/templates/Makefile.template.
> > 
> > > rest is ok ports-wise, though I'm not a fan of hard-coded terminal
> > > escape sequences.
> > 
> > Agree, I will migrate to curses at some point in the future.
> 
> Thanks. OK sthen@ if somebody would like to import it.

Anyone?



Re: NEW: sysutils/yank

2017-02-20 Thread Anton Lindqvist
Thanks for the review, comments below:

On Mon, Feb 20, 2017 at 07:52:16PM +, Stuart Henderson wrote:
> On 2017/02/20 19:37, Anton Lindqvist wrote:
> > Update to newest version 0.8.2.
> > 
> > On Sat, Feb 18, 2017 at 09:05:24AM +0100, Anton Lindqvist wrote:
> > > The yank(1) utility reads input from stdin and displays a selection
> > > interface that allows a field to be selected and copied to the
> > > clipboard.
> > > 
> > > I'm the creator and maintainer of yank(1).
> > > 
> > > https://github.com/mptre/yank
> 
> - HOMEPAGE isn't needed, that's the default with GH_* anyway.

Fixed

> - the @conflict is done on the package name, so it should be EMBOSS-*
> not emboss-*.

Fixed

> - we're trying to keep track of things in ports using pledge, so please
> add a "# uses pledge()" comment near the WANTLIB

Thanks, didn't know. Maybe this convention should mentioned in
infrastructure/templates/Makefile.template.

> rest is ok ports-wise, though I'm not a fan of hard-coded terminal
> escape sequences.

Agree, I will migrate to curses at some point in the future.


yank.tar.gz
Description: application/tar-gz


Re: NEW: sysutils/yank

2017-02-20 Thread Anton Lindqvist
Update to newest version 0.8.2.

On Sat, Feb 18, 2017 at 09:05:24AM +0100, Anton Lindqvist wrote:
> The yank(1) utility reads input from stdin and displays a selection
> interface that allows a field to be selected and copied to the
> clipboard.
> 
> I'm the creator and maintainer of yank(1).
> 
> https://github.com/mptre/yank


yank.tar.gz
Description: application/tar-gz


NEW: sysutils/yank

2017-02-18 Thread Anton Lindqvist
The yank(1) utility reads input from stdin and displays a selection
interface that allows a field to be selected and copied to the
clipboard.

I'm the creator and maintainer of yank(1).

https://github.com/mptre/yank


yank.tar.gz
Description: application/tar-gz


Re: ectags-5.8p1 produces wrong results

2016-08-14 Thread Anton Lindqvist
On Sun, Aug 14, 2016 at 07:26:47PM +0200, Sebastien Marie wrote:
> On Fri, Aug 12, 2016 at 12:13:54AM -0600, Alexandr Shadchin wrote:
> > CVSROOT:/cvs
> > Module name:ports
> > Changes by: shadc...@cvs.openbsd.org2016/08/12 00:13:54
> > 
> > Modified files:
> > devel/ectags   : Makefile 
> > Added files:
> > devel/ectags/patches: patch-read_c 
> > 
> > Log message:
> > Fix segfault while running ctags on a binary file.
> > 
> > From Anton Lindqvist 
> > 
> 
> Hi,
> 
> I experimented problems with ectags-5.8p1 whereas ectags-5.8p0 is fine:
> ectags is more or less unusable now.
> 
> Note I haven't any ctags.conf or .ctags configuration file.
> 
> Here an example in random directory, using ectags-5.8p1:
> 
> $ cd /usr/src/usr.bin/file
> $ rm -f tags
> $ /usr/local/bin/ectags -R .
> $ ls tags
> tags
> $ /usr/local/bin/ectags -R .
> ectags: "tags" doesn't look like a tag file; I refuse to overwrite it.
> $ grep MAGIC_ tags | head -10
> MAGIC_H   magic.h 20;"d
> MAGIC_STRENGTH_MULTIPLIER magic.h 31;"d
> MAGIC_STRING_SIZE magic.h 30;"d
> MAGIC_TEST_MIME   magic.h 178;"   d
> MAGIC_TEST_TEXT   magic.h 177;"   d
> MAGIC_TYPE_BEDATE magic.h /^$/;"  e   enum:magic_type
> MAGIC_TYPE_BEDOUBLE   magic.h /^$/;"  e   enum:magic_type
> MAGIC_TYPE_BEFLOATmagic.h /^$/;"  e   enum:magic_type
> MAGIC_TYPE_BELDATEmagic.h /^$/;"  e   enum:magic_type
> MAGIC_TYPE_BELONG magic.h /^$/;"  e   enum:magic_type
> 
> The pattern in the tags file is /^$/ which is wrong.
> 
> Same session with ectags-5.8p0:
> 
> $ cd /usr/src/usr.bin/file
> $ rm -f tags
> $ /usr/local/bin/ectags -R .
> $ ls tags
> tags
> $ /usr/local/bin/ectags -R .
> $ grep MAGIC_ tags | head -10
> MAGIC_H   magic.h 20;"d
> MAGIC_STRENGTH_MULTIPLIER magic.h 31;"d
> MAGIC_STRING_SIZE magic.h 30;"d
> MAGIC_TEST_MIME   magic.h 178;"   d
> MAGIC_TEST_TEXT   magic.h 177;"   d
> MAGIC_TYPE_BEDATE magic.h /^  MAGIC_TYPE_BEDATE,$/;"  e   
> enum:magic_type
> MAGIC_TYPE_BEDOUBLE   magic.h /^  MAGIC_TYPE_BEDOUBLE,$/;"e   
> enum:magic_type
> MAGIC_TYPE_BEFLOATmagic.h /^  MAGIC_TYPE_BEFLOAT,$/;" e   
> enum:magic_type
> MAGIC_TYPE_BELDATEmagic.h /^  MAGIC_TYPE_BELDATE,$/;" e   
> enum:magic_type
> MAGIC_TYPE_BELONG magic.h /^  MAGIC_TYPE_BELONG,$/;"  e   
> enum:magic_type
> 
> ctags file is fine.
> 
> 
> Thanks.
> -- 
> Sebastien Marie

My bad, I tried to fix an issue where ctags would crashed while reading
a binary file. If I remove the last added else-if clause where a invalid
line is turned into a empty valid line, the addressed crash is gone and
the generated tags-file is identical to the one generated by ctags prior
applying this patch.

$ cd /usr/src/usr.bin/file
$ rm tags
$ ectags -R .
$ ls tags
tags
$ mv tags tags.bak
$ PATH="~/bin:$PATH" ectags -R . # ectags with the patch below applied
$ PATH="~/bin:$PATH" ectags -R .
$ cmp tags tags.bak && echo ok
ok

diff --git a/read.c b/read.c
index 7940c86..a21601a 100644
--- a/read.c
+++ b/read.c
@@ -526,9 +526,9 @@ extern char *readLine (vString *const vLine, FILE *const fp)
vStringSetLength (vLine);
/* canonicalize new line */
eol = vStringValue (vLine) + vStringLength 
(vLine) - 1;
-   if (*eol == '\r')
+   if (vStringLength (vLine) > 0 && *eol == '\r')
*eol = '\n';
-   else if (*(eol - 1) == '\r'  &&  *eol == '\n')
+   else if (vStringLength (vLine) > 1 && *(eol - 
1) == '\r' && *eol == '\n')
{
*(eol - 1) = '\n';
*eol = '\0';