pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/hs-hinotify



Module Name:    pkgsrc
Committed By:   pho
Date:           Sat Feb 26 12:27:41 UTC 2022

Added Files:
        pkgsrc/devel/hs-hinotify: DESCR Makefile PLIST buildlink3.mk distinfo
        pkgsrc/devel/hs-hinotify/patches: patch-hinotify.cabal

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/hs-hinotify/DESCR \
    pkgsrc/devel/hs-hinotify/Makefile pkgsrc/devel/hs-hinotify/PLIST \
    pkgsrc/devel/hs-hinotify/buildlink3.mk pkgsrc/devel/hs-hinotify/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/hs-hinotify/patches/patch-hinotify.cabal

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/hs-hinotify/DESCR
diff -u /dev/null pkgsrc/devel/hs-hinotify/DESCR:1.1
--- /dev/null   Sat Feb 26 12:27:41 2022
+++ pkgsrc/devel/hs-hinotify/DESCR      Sat Feb 26 12:27:40 2022
@@ -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.
Index: pkgsrc/devel/hs-hinotify/Makefile
diff -u /dev/null pkgsrc/devel/hs-hinotify/Makefile:1.1
--- /dev/null   Sat Feb 26 12:27:41 2022
+++ pkgsrc/devel/hs-hinotify/Makefile   Sat Feb 26 12:27:40 2022
@@ -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"
Index: pkgsrc/devel/hs-hinotify/PLIST
diff -u /dev/null pkgsrc/devel/hs-hinotify/PLIST:1.1
--- /dev/null   Sat Feb 26 12:27:41 2022
+++ pkgsrc/devel/hs-hinotify/PLIST      Sat Feb 26 12:27:40 2022
@@ -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
Index: pkgsrc/devel/hs-hinotify/buildlink3.mk
diff -u /dev/null pkgsrc/devel/hs-hinotify/buildlink3.mk:1.1
--- /dev/null   Sat Feb 26 12:27:41 2022
+++ pkgsrc/devel/hs-hinotify/buildlink3.mk      Sat Feb 26 12:27:40 2022
@@ -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
Index: pkgsrc/devel/hs-hinotify/distinfo
diff -u /dev/null pkgsrc/devel/hs-hinotify/distinfo:1.1
--- /dev/null   Sat Feb 26 12:27:41 2022
+++ pkgsrc/devel/hs-hinotify/distinfo   Sat Feb 26 12:27:40 2022
@@ -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

Index: pkgsrc/devel/hs-hinotify/patches/patch-hinotify.cabal
diff -u /dev/null pkgsrc/devel/hs-hinotify/patches/patch-hinotify.cabal:1.1
--- /dev/null   Sat Feb 26 12:27:41 2022
+++ pkgsrc/devel/hs-hinotify/patches/patch-hinotify.cabal       Sat Feb 26 12:27:40 2022
@@ -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