PSARC/2014/416 JJV - Javascript JSON Schema validator
authorYiteng Zhang <yiteng.zhang@oracle.com>
Thu, 19 Mar 2015 13:04:39 -0700
changeset 3992 390ccd49dbb3
parent 3990 b06e709ffd8f
child 3993 0d77bb4904f8
PSARC/2014/416 JJV - Javascript JSON Schema validator 20063602 integrate JJV into Userland
components/javascript/jjv/Makefile
components/javascript/jjv/jjv.license
components/javascript/jjv/jjv.p5m
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/javascript/jjv/Makefile	Thu Mar 19 13:04:39 2015 -0700
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=		jjv
+COMPONENT_VERSION=	1.0.2
+COMPONENT_PROJECT_URL=	https://github.com/acornejo/jjv/archive
+COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
+COMPONENT_ARCHIVE=	v$(COMPONENT_VERSION).tar.gz
+COMPONENT_ARCHIVE_HASH=	sha256:130b9a2a09c2525f9ccecdf52e3d855901f2eaf6712edc7eedaad3824f65654d
+COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)/$(COMPONENT_ARCHIVE)
+COMPONENT_BUGDB= 	javascript/jjv
+
+TPNO= 	21110
+
+include ../../../make-rules/prep.mk
+include ../../../make-rules/ips.mk
+
+# common targets
+publish: download prep
+
+# To run the test files, you'll need to install node.js and npm, and then go to
+# to the root of the source code, 'jjv-1.0.2', and run the following commands:
+# $ npm install chai
+# $ npm install mocha
+# $ ./node_modules/mocha/bin/mocha
+test:		$(NO_TESTS)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/javascript/jjv/jjv.license	Thu Mar 19 13:04:39 2015 -0700
@@ -0,0 +1,22 @@
+The MIT License
+
+Copyright (c) 2012-2013 Alex Cornejo.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/javascript/jjv/jjv.p5m	Thu Mar 19 13:04:39 2015 -0700
@@ -0,0 +1,43 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+#
+
+set name=pkg.fmri \
+    value=pkg:/library/javascript/jjv@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="A Javascript JSON-schema validator"
+set name=pkg.description \
+    value="JJV is an implementation of the JSON-schema validator written in Javascript. JJV runs in the browser and in the server(through implementations such as Node.js). This implementation is small, extensible, and fast."
+set name=com.oracle.info.description \
+    value="JJV, a Javascript JSON-schema validator"
+set name=com.oracle.info.tpno value=$(TPNO)
+set name=info.classification \
+    value="org.opensolaris.category.2008:Development/Other Languages"
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=info.upstream value="Alex Cornejo <[email protected]>"
+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
+set name=org.opensolaris.arc-caseid value=PSARC/2014/416
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+file lib/jjv.js path=usr/share/lib/javascript/jjv/1.0.2/jjv.js
+link path=usr/share/lib/javascript/jjv/latest target=1.0.2
+license jjv.license license=MIT