new hs-ports: devel/hs-echo, devel/hs-edit-distance

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

new hs-ports: devel/hs-echo, devel/hs-edit-distance

Matthias Kilian
Hi,

for updating devel/cabal-install to version 2.0.0.1 (which is probably
the best version for use with ghc-8.2.2), two new hs-ports are needed:

devel/hs-echo:

COMMENT =               cross-platform echoing terminal input

DESCR:

The base library exposes the hGetEcho and hSetEcho functions for
querying and setting echo status, but unfortunately, neither function
works with MinTTY consoles on Windows.
This library provides an alternative interface which works with
both MinTTY and other consoles.


devel/hs-edit-distance:

COMMENT = Levenshtein edit distances

DESCR:

Optimized edit distances for fuzzy matching, including Levenshtein
and restricted Damerau-Levenshtein algorithms.


If you want to build them, you'll also have to build ghc-8.2.2 from the
diff I sent about twoo weeks ago:

https://marc.info/?l=openbsd-ports&m=151312144401005&w=2

ok to import them either (but leave them unhooked until I'm ready
to update ghc)?

Ciao,
        Kili

hs-echo.tgz (1K) Download Attachment
hs-edit-distance.tgz (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: new hs-ports: devel/hs-echo, devel/hs-edit-distance

Matthias Kilian
On Wed, Dec 27, 2017 at 06:18:09PM +0100, Matthias Kilian wrote:
> devel/hs-edit-distance:
>
> COMMENT = Levenshtein edit distances
>
> DESCR:
>
> Optimized edit distances for fuzzy matching, including Levenshtein
> and restricted Damerau-Levenshtein algorithms.

Damned! I missed a dependency (devel/hs-random).

New version attached. In addition to ghc-8.2.2, you'll also need the
diff below to build devel/hs-random with it.

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/hs-random/Makefile,v
retrieving revision 1.11
diff -u -p -r1.11 Makefile
--- Makefile 7 Nov 2017 21:19:40 -0000 1.11
+++ Makefile 27 Dec 2017 17:48:10 -0000
@@ -7,7 +7,7 @@ COMMENT = random number library
 PORTROACH = ignore:1
 
 DISTNAME = random-1.1
-REVISION = 2
+REVISION = 3
 CATEGORIES = devel
 
 MAINTAINER = Matthias Kilian <[hidden email]>
@@ -19,6 +19,6 @@ MODULES = lang/ghc
 
 MODGHC_BUILD = cabal hackage haddock register
 
-MODGHC_PACKAGE_KEY = 54KmMHXjttlERYcr1mvsAe
+MODGHC_PACKAGE_KEY = LLUGZ7T9DqQ5vN0Jbcd0We
 
 .include <bsd.port.mk>
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/hs-random/pkg/PLIST,v
retrieving revision 1.5
diff -u -p -r1.5 PLIST
--- pkg/PLIST 19 Sep 2015 08:01:03 -0000 1.5
+++ pkg/PLIST 27 Dec 2017 17:48:10 -0000
@@ -14,12 +14,9 @@ share/doc/hs-${DISTNAME}/LICENSE
 share/doc/hs-${DISTNAME}/html/
 share/doc/hs-${DISTNAME}/html/System-Random.html
 share/doc/hs-${DISTNAME}/html/doc-index.html
-share/doc/hs-${DISTNAME}/html/frames.html
 share/doc/hs-${DISTNAME}/html/haddock-util.js
 share/doc/hs-${DISTNAME}/html/hslogo-16.png
-share/doc/hs-${DISTNAME}/html/index-frames.html
 share/doc/hs-${DISTNAME}/html/index.html
-share/doc/hs-${DISTNAME}/html/mini_System-Random.html
 share/doc/hs-${DISTNAME}/html/minus.gif
 share/doc/hs-${DISTNAME}/html/ocean.css
 share/doc/hs-${DISTNAME}/html/plus.gif

Ciao,
        Kili

hs-edit-distance.tgz (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: new hs-ports: devel/hs-echo, devel/hs-edit-distance

Matthias Kilian
In reply to this post by Matthias Kilian
Hi,

asking again wether it's ok to import those. For test-building,
you'll need the ghc update linked below and the hs-random diff at
the end of this mail.  I think, with those two new ports I could
start the big haskell churn and commit ghc-8.2.2 and about 110
hs-ports which also need to be touched/updated.

If people are upset because of hs-echo (which *is* stupid and exists
only because some standard Haskell functions don't work on Windows),
I could also try to patch cabal-install to not make use of it and
use hGetEcho/hSetEcho again.

Ciao,
        Kili

On Wed, Dec 27, 2017 at 06:18:09PM +0100, Matthias Kilian wrote:

> for updating devel/cabal-install to version 2.0.0.1 (which is probably
> the best version for use with ghc-8.2.2), two new hs-ports are needed:
>
> devel/hs-echo:
>
> COMMENT =               cross-platform echoing terminal input
>
> DESCR:
>
> The base library exposes the hGetEcho and hSetEcho functions for
> querying and setting echo status, but unfortunately, neither function
> works with MinTTY consoles on Windows.
> This library provides an alternative interface which works with
> both MinTTY and other consoles.
>
> devel/hs-edit-distance:
>
> COMMENT = Levenshtein edit distances
>
> DESCR:
>
> Optimized edit distances for fuzzy matching, including Levenshtein
> and restricted Damerau-Levenshtein algorithms.
>
> If you want to build them, you'll also have to build ghc-8.2.2 from the
> diff I sent about twoo weeks ago:
>
> https://marc.info/?l=openbsd-ports&m=151312144401005&w=2
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/hs-random/Makefile,v
retrieving revision 1.11
diff -u -p -r1.11 Makefile
--- Makefile 7 Nov 2017 21:19:40 -0000 1.11
+++ Makefile 12 Jan 2018 21:07:42 -0000
@@ -7,7 +7,7 @@ COMMENT = random number library
 PORTROACH = ignore:1
 
 DISTNAME = random-1.1
-REVISION = 2
+REVISION = 3
 CATEGORIES = devel
 
 MAINTAINER = Matthias Kilian <[hidden email]>
@@ -19,6 +19,6 @@ MODULES = lang/ghc
 
 MODGHC_BUILD = cabal hackage haddock register
 
-MODGHC_PACKAGE_KEY = 54KmMHXjttlERYcr1mvsAe
+MODGHC_PACKAGE_KEY = LLUGZ7T9DqQ5vN0Jbcd0We
 
 .include <bsd.port.mk>
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/hs-random/pkg/PLIST,v
retrieving revision 1.5
diff -u -p -r1.5 PLIST
--- pkg/PLIST 19 Sep 2015 08:01:03 -0000 1.5
+++ pkg/PLIST 12 Jan 2018 21:07:42 -0000
@@ -14,12 +14,9 @@ share/doc/hs-${DISTNAME}/LICENSE
 share/doc/hs-${DISTNAME}/html/
 share/doc/hs-${DISTNAME}/html/System-Random.html
 share/doc/hs-${DISTNAME}/html/doc-index.html
-share/doc/hs-${DISTNAME}/html/frames.html
 share/doc/hs-${DISTNAME}/html/haddock-util.js
 share/doc/hs-${DISTNAME}/html/hslogo-16.png
-share/doc/hs-${DISTNAME}/html/index-frames.html
 share/doc/hs-${DISTNAME}/html/index.html
-share/doc/hs-${DISTNAME}/html/mini_System-Random.html
 share/doc/hs-${DISTNAME}/html/minus.gif
 share/doc/hs-${DISTNAME}/html/ocean.css
 share/doc/hs-${DISTNAME}/html/plus.gif


hs-echo.tgz (1K) Download Attachment
hs-edit-distance.tgz (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: new hs-ports: devel/hs-echo, devel/hs-edit-distance

Stuart Henderson
On 2018/01/12 22:15, Matthias Kilian wrote:
> Hi,
>
> asking again wether it's ok to import those. For test-building,
> you'll need the ghc update linked below and the hs-random diff at
> the end of this mail.  I think, with those two new ports I could
> start the big haskell churn and commit ghc-8.2.2 and about 110
> hs-ports which also need to be touched/updated.

OK.

> If people are upset because of hs-echo (which *is* stupid and exists
> only because some standard Haskell functions don't work on Windows),
> I could also try to patch cabal-install to not make use of it and
> use hGetEcho/hSetEcho again.

You don't need any more pain than you already have!

Reply | Threaded
Open this post in threaded view
|

Re: new hs-ports: devel/hs-echo, devel/hs-edit-distance

Matthias Kilian
On Fri, Jan 12, 2018 at 09:23:17PM +0000, Stuart Henderson wrote:
> > If people are upset because of hs-echo (which *is* stupid and exists
> > only because some standard Haskell functions don't work on Windows),
> > I could also try to patch cabal-install to not make use of it and
> > use hGetEcho/hSetEcho again.
>
> You don't need any more pain than you already have!

http://www.openbsd.org/images/hackathons/p2k9.gif

Ciao,
        Kili