Index: irc/weechat/Makefile
===================================================================
--- irc/weechat/Makefile	(revision 402508)
+++ irc/weechat/Makefile	(working copy)
@@ -3,6 +3,7 @@
 
 PORTNAME=	weechat
 PORTVERSION=	1.3
+PORTREVISION=	1
 CATEGORIES=	irc
 MASTER_SITES=	http://weechat.org/files/src/
 
@@ -22,9 +23,9 @@
 LIB_DEPENDS+=	libcurl.so:${PORTSDIR}/ftp/curl \
 		libgcrypt.so:${PORTSDIR}/security/libgcrypt
 
-OPTIONS_DEFINE=	RUBY PYTHON PERL TCL LUA CHARSET BACKTRACE ASPELL \
+OPTIONS_DEFINE=	RUBY PYTHON PERL TCL LUA JAVASCRIPT CHARSET BACKTRACE ASPELL \
 		GNUTLS CA_BUNDLE NLS ICON MANPAGES DOCS
-OPTIONS_DEFAULT=RUBY PYTHON PERL TCL LUA CHARSET BACKTRACE ASPELL \
+OPTIONS_DEFAULT=RUBY PYTHON PERL TCL LUA JAVASCRIPT CHARSET BACKTRACE ASPELL \
 		GNUTLS CA_BUNDLE ICON MANPAGES
 
 OPTIONS_SUB=	yes
@@ -33,6 +34,7 @@
 CA_BUNDLE_DESC=	Include CA bundle for certificate verification
 CHARSET_DESC=	Charset conversion support
 ICON_DESC=	Desktop icon
+JAVASCRIPT_DESC=Javascript support
 PYTHON_DESC=	Python scripting language support
 RUBY_DESC=	Ruby scripting language support
 
@@ -48,6 +50,8 @@
 
 DOCS_CMAKE_ON=		-DENABLE_DOC=yes
 
+JAVASCRIPT_CMAKE_OFF=	-DENABLE_JAVASCRIPT=no
+
 GNUTLS_CMAKE_OFF=	-DENABLE_GNUTLS=no
 GNUTLS_USES=		pkgconfig
 GNUTLS_LIB_DEPENDS=	libgnutls.so.28:${PORTSDIR}/security/gnutls
Index: irc/weechat/files/patch-src-plugins-javascript-weechat-js-api.cpp
===================================================================
--- irc/weechat/files/patch-src-plugins-javascript-weechat-js-api.cpp	(nonexistent)
+++ irc/weechat/files/patch-src-plugins-javascript-weechat-js-api.cpp	(working copy)
@@ -0,0 +1,10 @@
+--- src/plugins/javascript/weechat-js-api.cpp.orig	2015-08-16 06:27:07 UTC
++++ src/plugins/javascript/weechat-js-api.cpp
+@@ -25,6 +25,7 @@
+ #include <cstdlib>
+ #include <cstring>
+ #include <string>
++#include <time.h>
+ 
+ extern "C"
+ {

Property changes on: irc/weechat/files/patch-src-plugins-javascript-weechat-js-api.cpp
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Index: irc/weechat/pkg-plist
===================================================================
--- irc/weechat/pkg-plist	(revision 402508)
+++ irc/weechat/pkg-plist	(working copy)
@@ -20,6 +20,7 @@
 %%MANPAGES%%man/ru/man1/weechat.1.gz
 %%ASPELL%%lib/weechat/plugins/aspell.so
 %%CHARSET%%lib/weechat/plugins/charset.so
+%%JAVASCRIPT%%lib/weechat/plugins/javascript.so
 %%LUA%%lib/weechat/plugins/lua.so
 %%PERL%%lib/weechat/plugins/perl.so
 %%PYTHON%%lib/weechat/plugins/python.so