summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorpho <pho@pkgsrc.org>2022-02-24 00:59:49 +0000
committerpho <pho@pkgsrc.org>2022-02-24 00:59:49 +0000
commitd60a7b0219c89f8a1fd1d2570b20c25d3bef9f2c (patch)
treec6b5faeaeb2625fdb814da986347ad2efcd6fcfe /www
parent7ec9505ac786d3ca1a7203f01e79a697ee269178 (diff)
downloadpkgsrc-d60a7b0219c89f8a1fd1d2570b20c25d3bef9f2c.tar.gz
www/hs-open-browser: import hs-open-browser-0.2.1.0
Open a web browser from Haskell. Currently BSD, Linux, OS X and Windows are supported.
Diffstat (limited to 'www')
-rw-r--r--www/hs-open-browser/DESCR2
-rw-r--r--www/hs-open-browser/Makefile11
-rw-r--r--www/hs-open-browser/PLIST25
-rw-r--r--www/hs-open-browser/buildlink3.mk13
-rw-r--r--www/hs-open-browser/distinfo6
-rw-r--r--www/hs-open-browser/patches/patch-open-browser.cabal14
6 files changed, 71 insertions, 0 deletions
diff --git a/www/hs-open-browser/DESCR b/www/hs-open-browser/DESCR
new file mode 100644
index 00000000000..652cac06c18
--- /dev/null
+++ b/www/hs-open-browser/DESCR
@@ -0,0 +1,2 @@
+Open a web browser from Haskell. Currently BSD, Linux, OS X and Windows are
+supported.
diff --git a/www/hs-open-browser/Makefile b/www/hs-open-browser/Makefile
new file mode 100644
index 00000000000..a0e9c4952e1
--- /dev/null
+++ b/www/hs-open-browser/Makefile
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2022/02/24 00:59:49 pho Exp $
+
+DISTNAME= open-browser-0.2.1.0
+CATEGORIES= www
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+COMMENT= Open a web browser from Haskell
+LICENSE= modified-bsd
+
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/hs-open-browser/PLIST b/www/hs-open-browser/PLIST
new file mode 100644
index 00000000000..34f3ad2390e
--- /dev/null
+++ b/www/hs-open-browser/PLIST
@@ -0,0 +1,25 @@
+@comment $NetBSD: PLIST,v 1.1 2022/02/24 00:59:49 pho Exp $
+lib/open-browser-${PKGVERSION}/${HS_VERSION}/package-description
+lib/open-browser-${PKGVERSION}/${HS_VERSION}/package-id
+lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
+lib/${HS_PLATFORM}/${HS_PKGID}/Web/Browser.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Web/Browser.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Web/Browser.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Web/Browser/Linux.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Web/Browser/Linux.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Web/Browser/Linux.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Web/Browser/OSX.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Web/Browser/OSX.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Web/Browser/OSX.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
+share/doc/${HS_PLATFORM}/open-browser-${PKGVERSION}/LICENSE
+share/doc/${HS_PLATFORM}/open-browser-${PKGVERSION}/html/Web-Browser.html
+share/doc/${HS_PLATFORM}/open-browser-${PKGVERSION}/html/doc-index.html
+share/doc/${HS_PLATFORM}/open-browser-${PKGVERSION}/html/haddock-bundle.min.js
+share/doc/${HS_PLATFORM}/open-browser-${PKGVERSION}/html/index.html
+share/doc/${HS_PLATFORM}/open-browser-${PKGVERSION}/html/linuwial.css
+share/doc/${HS_PLATFORM}/open-browser-${PKGVERSION}/html/meta.json
+share/doc/${HS_PLATFORM}/open-browser-${PKGVERSION}/html/open-browser.haddock
+share/doc/${HS_PLATFORM}/open-browser-${PKGVERSION}/html/quick-jump.css
+share/doc/${HS_PLATFORM}/open-browser-${PKGVERSION}/html/synopsis.png
diff --git a/www/hs-open-browser/buildlink3.mk b/www/hs-open-browser/buildlink3.mk
new file mode 100644
index 00000000000..dc5d9af023c
--- /dev/null
+++ b/www/hs-open-browser/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/02/24 00:59:49 pho Exp $
+
+BUILDLINK_TREE+= hs-open-browser
+
+.if !defined(HS_OPEN_BROWSER_BUILDLINK3_MK)
+HS_OPEN_BROWSER_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-open-browser+= hs-open-browser>=0.2.1
+BUILDLINK_ABI_DEPENDS.hs-open-browser+= hs-open-browser>=0.2.1.0
+BUILDLINK_PKGSRCDIR.hs-open-browser?= ../../www/hs-open-browser
+.endif # HS_OPEN_BROWSER_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -hs-open-browser
diff --git a/www/hs-open-browser/distinfo b/www/hs-open-browser/distinfo
new file mode 100644
index 00000000000..7e2f4550de9
--- /dev/null
+++ b/www/hs-open-browser/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/02/24 00:59:49 pho Exp $
+
+BLAKE2s (open-browser-0.2.1.0.tar.gz) = 417691745051fc2383571f0a2a20f75c78abf870c508b7befa2a31172b0f1233
+SHA512 (open-browser-0.2.1.0.tar.gz) = 94ba71597c270b518742534b1b9b9a7ca0ede2eeb08a030b03cca6dbe6e5a2de363dc443bae907ca5c90b126aeb7dc5f5dd1eada95ca78a0ba1a8d472df4ada1
+Size (open-browser-0.2.1.0.tar.gz) = 2629 bytes
+SHA1 (patch-open-browser.cabal) = 210d93308d7de548fbb9ddb9a332ae2d4706aa51
diff --git a/www/hs-open-browser/patches/patch-open-browser.cabal b/www/hs-open-browser/patches/patch-open-browser.cabal
new file mode 100644
index 00000000000..2be730c93d7
--- /dev/null
+++ b/www/hs-open-browser/patches/patch-open-browser.cabal
@@ -0,0 +1,14 @@
+$NetBSD: patch-open-browser.cabal,v 1.1 2022/02/24 00:59:49 pho Exp $
+
+Don't build the example executable.
+
+--- open-browser.cabal.orig 2022-02-20 04:36:19.916280376 +0000
++++ open-browser.cabal
+@@ -35,6 +35,7 @@ library
+ cpp-options: "-DWINDOWS_CCONV=ccall"
+
+ executable example
++ buildable: false
+ main-is: Main.hs
+ hs-source-dirs: example
+ default-language: Haskell2010