pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/hs-hinotify devel/hs-hinotify: import hs-hinotif...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6eb7a2309ee4
branches:  trunk
changeset: 374766:6eb7a2309ee4
user:      pho <pho%pkgsrc.org@localhost>
date:      Sat Feb 26 12:27:40 2022 +0000

description:
devel/hs-hinotify: import hs-hinotify-0.4.1

This library provides a wrapper to the Linux Kernel's inotify feature,
allowing applications to subscribe to notifications when a file is accessed
or modified.

diffstat:

 devel/hs-hinotify/DESCR                        |   3 +++
 devel/hs-hinotify/Makefile                     |  25 +++++++++++++++++++++++++
 devel/hs-hinotify/PLIST                        |  22 ++++++++++++++++++++++
 devel/hs-hinotify/buildlink3.mk                |  20 ++++++++++++++++++++
 devel/hs-hinotify/distinfo                     |   6 ++++++
 devel/hs-hinotify/patches/patch-hinotify.cabal |  16 ++++++++++++++++
 6 files changed, 92 insertions(+), 0 deletions(-)

diffs (116 lines):

diff -r a53bb724e090 -r 6eb7a2309ee4 devel/hs-hinotify/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-hinotify/DESCR   Sat Feb 26 12:27:40 2022 +0000
@@ -0,0 +1,3 @@
+This library provides a wrapper to the Linux Kernel's inotify feature,
+allowing applications to subscribe to notifications when a file is accessed
+or modified.
diff -r a53bb724e090 -r 6eb7a2309ee4 devel/hs-hinotify/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-hinotify/Makefile        Sat Feb 26 12:27:40 2022 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2022/02/26 12:27:40 pho Exp $
+
+DISTNAME=      hinotify-0.4.1
+CATEGORIES=    devel
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Haskell binding to inotify
+LICENSE=       modified-bsd
+
+# It works on Linux and BSDs supporting kqueue(2). The list could be
+# expanded to support more BSDs, but unless we can actually test them we
+# can't upstream patches.
+ONLY_FOR_PLATFORM+=    FreeBSD-*-*
+ONLY_FOR_PLATFORM+=    NetBSD-*-*
+ONLY_FOR_PLATFORM+=    OpenBSD-*-*
+ONLY_FOR_PLATFORM+=    Linux-*-*
+
+.include "../../mk/bsd.fast.prefs.mk"
+.if ${OPSYS} != "Linux"
+.  include "../../devel/libinotify/buildlink3.mk"
+.endif
+
+.include "../../devel/hs-async/buildlink3.mk"
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r a53bb724e090 -r 6eb7a2309ee4 devel/hs-hinotify/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-hinotify/PLIST   Sat Feb 26 12:27:40 2022 +0000
@@ -0,0 +1,22 @@
+@comment $NetBSD: PLIST,v 1.1 2022/02/26 12:27:40 pho Exp $
+lib/hinotify-${PKGVERSION}/${HS_VERSION}/package-description
+lib/hinotify-${PKGVERSION}/${HS_VERSION}/package-id
+lib/${HS_PLATFORM}/${HS_PKGID}/System/INotify.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/INotify.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/INotify.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/INotify/Masks.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/INotify/Masks.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/INotify/Masks.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
+lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
+share/doc/${HS_PLATFORM}/hinotify-${PKGVERSION}/LICENSE
+share/doc/${HS_PLATFORM}/hinotify-${PKGVERSION}/html/System-INotify.html
+share/doc/${HS_PLATFORM}/hinotify-${PKGVERSION}/html/doc-index.html
+share/doc/${HS_PLATFORM}/hinotify-${PKGVERSION}/html/haddock-bundle.min.js
+share/doc/${HS_PLATFORM}/hinotify-${PKGVERSION}/html/hinotify.haddock
+share/doc/${HS_PLATFORM}/hinotify-${PKGVERSION}/html/index.html
+share/doc/${HS_PLATFORM}/hinotify-${PKGVERSION}/html/linuwial.css
+share/doc/${HS_PLATFORM}/hinotify-${PKGVERSION}/html/meta.json
+share/doc/${HS_PLATFORM}/hinotify-${PKGVERSION}/html/quick-jump.css
+share/doc/${HS_PLATFORM}/hinotify-${PKGVERSION}/html/synopsis.png
diff -r a53bb724e090 -r 6eb7a2309ee4 devel/hs-hinotify/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-hinotify/buildlink3.mk   Sat Feb 26 12:27:40 2022 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/02/26 12:27:40 pho Exp $
+
+BUILDLINK_TREE+=       hs-hinotify
+
+.if !defined(HS_HINOTIFY_BUILDLINK3_MK)
+HS_HINOTIFY_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-hinotify+=    hs-hinotify>=0.4.1
+BUILDLINK_ABI_DEPENDS.hs-hinotify+=    hs-hinotify>=0.4.1
+BUILDLINK_PKGSRCDIR.hs-hinotify?=      ../../devel/hs-hinotify
+
+.include "../../mk/bsd.fast.prefs.mk"
+.if ${OPSYS} != "Linux"
+.include "../../devel/libinotify/buildlink3.mk"
+.endif
+
+.include "../../devel/hs-async/buildlink3.mk"
+.endif # HS_HINOTIFY_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -hs-hinotify
diff -r a53bb724e090 -r 6eb7a2309ee4 devel/hs-hinotify/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-hinotify/distinfo        Sat Feb 26 12:27:40 2022 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/02/26 12:27:40 pho Exp $
+
+BLAKE2s (hinotify-0.4.1.tar.gz) = 8cd7d86736526ee4da808383b33c576f756c4b034823cb06cdfa69aa6f2c575c
+SHA512 (hinotify-0.4.1.tar.gz) = 2f4627a3604ac6ec5d745ba6f4fd11e39a094ad54a5ab4d5040fe6c7c2a8823e42be575b9be95dc6848db99b421bac70798f8eb5f9ba6841f06f6156afe8797b
+Size (hinotify-0.4.1.tar.gz) = 9173 bytes
+SHA1 (patch-hinotify.cabal) = 4afe5126c5c15469adcea920529392ef8dbd9407
diff -r a53bb724e090 -r 6eb7a2309ee4 devel/hs-hinotify/patches/patch-hinotify.cabal
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-hinotify/patches/patch-hinotify.cabal    Sat Feb 26 12:27:40 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-hinotify.cabal,v 1.1 2022/02/26 12:27:40 pho Exp $
+
+Support NetBSD:
+https://github.com/kolmodin/hinotify/pull/35
+
+--- hinotify.cabal.orig        2022-02-26 10:33:22.134469468 +0000
++++ hinotify.cabal
+@@ -34,7 +34,7 @@ library
+     includes: sys/inotify.h
+     hs-source-dirs: src
+ 
+-    if os(freebsd) || os(openbsd)
++    if os(freebsd) || os(netbsd) || os(openbsd)
+       extra-libraries: inotify
+ 
+ test-suite test001



Home | Main Index | Thread Index | Old Index