summaryrefslogtreecommitdiff
path: root/devel/erlang-fs
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2018-01-03 20:46:55 +0000
committerfhajny <fhajny@pkgsrc.org>2018-01-03 20:46:55 +0000
commit1dce41aa8008d8ad75bf30793f4b922947699832 (patch)
treeae53543c7a1592d0af1065ce9a24e6181c6f7c7b /devel/erlang-fs
parent34148b25f6862b2da07486af45fecb3b84c452d9 (diff)
downloadpkgsrc-1dce41aa8008d8ad75bf30793f4b922947699832.tar.gz
devel/erlang-fs: return "unsupported" properly on SunOS.
Diffstat (limited to 'devel/erlang-fs')
-rw-r--r--devel/erlang-fs/Makefile3
-rw-r--r--devel/erlang-fs/distinfo3
-rw-r--r--devel/erlang-fs/patches/patch-src_fs__sup.erl15
3 files changed, 19 insertions, 2 deletions
diff --git a/devel/erlang-fs/Makefile b/devel/erlang-fs/Makefile
index a9a598bfb42..125ce3d8532 100644
--- a/devel/erlang-fs/Makefile
+++ b/devel/erlang-fs/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1 2017/12/14 20:58:26 fhajny Exp $
+# $NetBSD: Makefile,v 1.2 2018/01/03 20:46:55 fhajny Exp $
DISTNAME= fs-2.12.0
PKGNAME= erlang-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=synrc/}
diff --git a/devel/erlang-fs/distinfo b/devel/erlang-fs/distinfo
index 2130a421f65..cc377b2e797 100644
--- a/devel/erlang-fs/distinfo
+++ b/devel/erlang-fs/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2017/12/14 20:58:26 fhajny Exp $
+$NetBSD: distinfo,v 1.2 2018/01/03 20:46:55 fhajny Exp $
SHA1 (fs-2.12.0.tar.gz) = b3ee68a48f0f3ae26b236a24e35308c729825042
RMD160 (fs-2.12.0.tar.gz) = f5fbced99b7e8f9af6b532174f540d1352ccc219
SHA512 (fs-2.12.0.tar.gz) = a5a708a9570417359bd4d3d34c26925c09453108fc4fdc8a9f8fbb59a5fa7e0dd4c60a30ebf4c4a2289a2b25a289cb731990600f78eedc4fb8a66ee9bfe2e221
Size (fs-2.12.0.tar.gz) = 21410 bytes
+SHA1 (patch-src_fs__sup.erl) = 468aadce60bd9beaaa47aff3942006527b127908
diff --git a/devel/erlang-fs/patches/patch-src_fs__sup.erl b/devel/erlang-fs/patches/patch-src_fs__sup.erl
new file mode 100644
index 00000000000..e59fd20cbab
--- /dev/null
+++ b/devel/erlang-fs/patches/patch-src_fs__sup.erl
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_fs__sup.erl,v 1.1 2018/01/03 20:46:55 fhajny Exp $
+
+Properly return "unsupported" on SunOS platforms.
+Merged upstream via https://github.com/synrc/fs/pull/54
+
+--- src/fs_sup.erl.orig 2016-12-20 00:10:23.000000000 +0000
++++ src/fs_sup.erl
+@@ -10,6 +10,7 @@ init([EventHandler, FileHandler, Path])
+ Backend = case os:type() of
+ {unix, darwin} -> fsevents;
+ {unix, linux} -> inotifywait;
++ {unix, sunos} -> undefined;
+ {unix, _} -> kqueue;
+ {win32, nt} -> inotifywait_win32;
+ _ -> undefined end,