Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/node-fibers/Makefile,v
retrieving revision 1.13
diff -u -p -u -p -r1.13 Makefile
--- Makefile	21 Jun 2013 08:52:05 -0000	1.13
+++ Makefile	28 Aug 2013 17:02:44 -0000
@@ -5,13 +5,11 @@
 # and i386, so even if other arches are supported by node
 # later, this extension will only support these arches.
 ONLY_FOR_ARCHS= amd64 i386
-BROKEN =	requires root privileges during building
 
 COMMENT =	fiber/coroutine support for Node.js
 
-NPM_VERSION =	0.6.8
+NPM_VERSION =	1.0.1
 NPM_NAME =	fibers
-REVISION =	3
 CATEGORIES =	devel
 
 HOMEPAGE =	https://github.com/laverdet/node-fibers
@@ -31,7 +29,10 @@ TEST_DEPENDS =	${BUILD_PKGPATH}
 
 pre-configure:
 	${SUBST_CMD} ${WRKDIST}/binding.gyp
+	@rm -rf ${WRKSRC}/bin/{darwin-*,linux-*,win32-*}
 
+# Failing tests/stack-overflow2.js is known issue, see
+# https://github.com/laverdet/node-fibers/issues/108
 do-test:
 	cd ${WRKDIST} && node test.js
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/node-fibers/distinfo,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 distinfo
--- distinfo	26 May 2013 16:03:40 -0000	1.5
+++ distinfo	28 Aug 2013 17:02:44 -0000
@@ -1,2 +1,2 @@
-SHA256 (fibers-0.6.8.tgz) = ZjxXR8Y3E5hbSbUTvw1qtaFNMsCxoxVW9uWCHTnvibA=
-SIZE (fibers-0.6.8.tgz) = 443926
+SHA256 (fibers-1.0.1.tgz) = P3eMDs/fAh0yHrt77A8SJAZpfo0twPkgdK04L8RzSZc=
+SIZE (fibers-1.0.1.tgz) = 628954
Index: patches/patch-binding_gyp
===================================================================
RCS file: patches/patch-binding_gyp
diff -N patches/patch-binding_gyp
--- patches/patch-binding_gyp	5 Dec 2012 00:45:05 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,20 +0,0 @@
-$OpenBSD: patch-binding_gyp,v 1.2 2012/12/05 00:45:05 abieber Exp $
-
-Bad hack to get it to use correct implementation, since it is
-recognizing the OpenBSD as Linux.
-
---- binding.gyp.orig	Sun Jun 24 05:39:12 2012
-+++ binding.gyp	Wed Nov 28 09:28:50 2012
-@@ -18,10 +18,10 @@
- 					{
- 						'cflags': ['-Wno-deprecated-declarations'],
- 						'defines': ['USE_CORO'],
--						'ldflags': ['-pthread'],
-+						'ldflags': ['-pthread -L${LOCALBASE}/lib'],
- 					}
- 				],
--				['OS == "linux" or OS == "solaris" or OS == "freebsd"', {'defines': ['CORO_UCONTEXT']}],
-+				['OS == "linux" or OS == "solaris" or OS == "freebsd"', {'defines': ['CORO_ASM']}],
- 				['OS == "mac"', {
- 					'defines': ['CORO_SJLJ'],
- 					 'xcode_settings': {
Index: patches/patch-build_js
===================================================================
RCS file: /cvs/ports/devel/node-fibers/patches/patch-build_js,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-build_js
--- patches/patch-build_js	5 Dec 2012 00:45:05 -0000	1.1
+++ patches/patch-build_js	28 Aug 2013 17:02:44 -0000
@@ -1,7 +1,7 @@
 $OpenBSD: patch-build_js,v 1.1 2012/12/05 00:45:05 abieber Exp $
---- build.js.orig	Tue Nov 27 08:13:04 2012
-+++ build.js	Tue Nov 27 08:15:13 2012
-@@ -24,7 +24,12 @@ if (!{ia32: true, x64: true, arm: true}.hasOwnProperty
+--- build.js.orig	Thu Jun 13 05:12:16 2013
++++ build.js	Wed Aug 28 15:53:04 2013
+@@ -26,7 +26,12 @@ if (!{ia32: true, x64: true, arm: true}.hasOwnProperty
  }
  
  // Test for pre-built library
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/node-fibers/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 PLIST
--- pkg/PLIST	5 Dec 2012 00:45:05 -0000	1.3
+++ pkg/PLIST	28 Aug 2013 17:02:44 -0000
@@ -8,6 +8,7 @@ lib/node_modules/fibers/bin/
 lib/node_modules/fibers/bin/.npmignore
 @bin lib/node_modules/fibers/bin/fibers.node
 lib/node_modules/fibers/binding.gyp
+lib/node_modules/fibers/binding.gyp.beforesubst
 lib/node_modules/fibers/build/
 lib/node_modules/fibers/build.js
 lib/node_modules/fibers/build/Makefile
@@ -38,6 +39,7 @@ lib/node_modules/fibers/build/fibers.tar
 lib/node_modules/fibers/fibers.js
 lib/node_modules/fibers/future.js
 lib/node_modules/fibers/package.json
+lib/node_modules/fibers/quick-test.js
 lib/node_modules/fibers/src/
 lib/node_modules/fibers/src/coroutine.cc
 lib/node_modules/fibers/src/coroutine.h
@@ -58,10 +60,12 @@ lib/node_modules/fibers/test/exec.js
 lib/node_modules/fibers/test/exit.js
 lib/node_modules/fibers/test/fibonacci.js
 lib/node_modules/fibers/test/finish-multiple.js
+lib/node_modules/fibers/test/future-exception.js
 lib/node_modules/fibers/test/future.js
 lib/node_modules/fibers/test/illegal-yield.js
 lib/node_modules/fibers/test/pool.js
 lib/node_modules/fibers/test/process-title.js
 lib/node_modules/fibers/test/stack-overflow.js
+lib/node_modules/fibers/test/stack-overflow2.js
 lib/node_modules/fibers/test/started.js
 lib/node_modules/fibers/test/unwind.js
