summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpho <pho@pkgsrc.org>2021-03-14 09:15:43 +0000
committerpho <pho@pkgsrc.org>2021-03-14 09:15:43 +0000
commit0d8d34222a9ba644c58d70992d63775107071377 (patch)
tree6c7a7cb1dadcf0fe082e3d37e50988114565e13d
parent0bf3841f7f7f9bb7f8000ced923fb869b5b5fcbb (diff)
downloadpkgsrc-0d8d34222a9ba644c58d70992d63775107071377.tar.gz
devel/pointfree: Import pointfree-1.1.1.7
This is a command-line tool for converting Haskell expressions to point-free form.
-rw-r--r--devel/Makefile3
-rw-r--r--devel/pointfree/DESCR1
-rw-r--r--devel/pointfree/Makefile29
-rw-r--r--devel/pointfree/PLIST3
-rw-r--r--devel/pointfree/distinfo6
5 files changed, 41 insertions, 1 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 56494062655..7fb6aff443b 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3348 2021/03/12 15:02:38 tpaul Exp $
+# $NetBSD: Makefile,v 1.3349 2021/03/14 09:15:43 pho Exp $
#
COMMENT= Development utilities
@@ -2148,6 +2148,7 @@ SUBDIR+= pkgconf
SUBDIR+= ply
SUBDIR+= pmccabe
SUBDIR+= poco
+SUBDIR+= pointfree
SUBDIR+= polly
SUBDIR+= popt
SUBDIR+= poxml
diff --git a/devel/pointfree/DESCR b/devel/pointfree/DESCR
new file mode 100644
index 00000000000..e2bfb521d23
--- /dev/null
+++ b/devel/pointfree/DESCR
@@ -0,0 +1 @@
+Stand-alone command-line version of the point-less plugin for lambdabot.
diff --git a/devel/pointfree/Makefile b/devel/pointfree/Makefile
new file mode 100644
index 00000000000..d4b635db019
--- /dev/null
+++ b/devel/pointfree/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2021/03/14 09:15:43 pho Exp $
+#
+
+DISTNAME= pointfree-1.1.1.7
+PKGNAME= ${DISTNAME}
+CATEGORIES= devel
+
+MAINTAINER= pho@cielonegro.org
+COMMENT= Convert Haskell expressions to pointfree form
+LICENSE= mit
+
+# "pointfree.cabal" declares an empty library (exposing no symbols at
+# all), and the executable doesn't depend on the library either. This
+# is not only pointless, but also makes Cabal do a weird thing
+# possibly due to a bug: it embeds an rpath to the *build directory*
+# which serves absolutely no purpose. Disable the library as a
+# workaround.
+SUBST_CLASSES+= 1
+SUBST_STAGE.1= post-extract
+SUBST_FILES.1= pointfree.cabal
+SUBST_SED.1= -e "s|Library|Library+ buildable: False|"
+
+SUBST_CLASSES+= 2
+SUBST_STAGE.2= pre-configure
+SUBST_FILES.2= pointfree.cabal
+SUBST_FILTER_CMD.2= ${TR} '+' \\n
+
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/pointfree/PLIST b/devel/pointfree/PLIST
new file mode 100644
index 00000000000..b16b17a8639
--- /dev/null
+++ b/devel/pointfree/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2021/03/14 09:15:43 pho Exp $
+bin/pointfree
+@pkgdir lib/${PKGNAME}/ghc-8.8.4
diff --git a/devel/pointfree/distinfo b/devel/pointfree/distinfo
new file mode 100644
index 00000000000..24e243826f3
--- /dev/null
+++ b/devel/pointfree/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/03/14 09:15:43 pho Exp $
+
+SHA1 (pointfree-1.1.1.7.tar.gz) = fe5bfbb5959d3bff723b9e10090b9606ef62ff06
+RMD160 (pointfree-1.1.1.7.tar.gz) = 6f7e5db28fd3bf2d06ff0f55c141e90ef8193b99
+SHA512 (pointfree-1.1.1.7.tar.gz) = e03d9643b659d6a70677ddecb2d9ef26f6f40e94b126e56cd2125638b2c78d2c22f70bb1373a3d6aa97c87e7aef17ae8cd766da62e37f312ecbce9fdb527dd40
+Size (pointfree-1.1.1.7.tar.gz) = 20463 bytes