[Pkg-javascript-commits] [libjs-sifter.js] 02/03: Initial release for libjs-sifter.js.

Sergio Durigan Junior sergiodj-guest at moszumanska.debian.org
Mon Aug 15 23:53:59 UTC 2016


This is an automated email from the git hooks/post-receive script.

sergiodj-guest pushed a commit to branch master
in repository libjs-sifter.js.

commit e5f7a990523dc4d39ac4bda2c3a00426d6ab42e9
Author: Sergio Durigan Junior <sergiodj at sergiodj.net>
Date:   Mon Aug 15 19:51:22 2016 -0400

    Initial release for libjs-sifter.js.
    
    Closes: #834466
---
 debian/README.Debian                               |  8 ++++
 debian/README.source                               | 10 +++++
 debian/changelog                                   |  5 +++
 debian/compat                                      |  1 +
 debian/control                                     | 44 ++++++++++++++++++++++
 debian/copyright                                   | 27 +++++++++++++
 debian/docs                                        |  1 +
 debian/install                                     |  2 +
 .../0001-Adjusting-mocha-path-on-Makefile.patch    | 27 +++++++++++++
 debian/patches/series                              |  1 +
 debian/rules                                       | 11 ++++++
 debian/source/format                               |  1 +
 debian/watch                                       |  6 +++
 13 files changed, 144 insertions(+)

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..855c0b2
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,8 @@
+libjs-sifter.js for Debian
+--------------------------
+
+This package only installs the JavaScript library sifter.js.  It does
+not install the Node.js CLI application, due to many missing
+dependencies on Debian.
+
+ -- Sergio Durigan Junior <sergiodj at sergiodj.net>  Mon, 15 Aug 2016 17:09:17 -0400
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..04005f0
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,10 @@
+libjs-sifter.js for Debian
+--------------------------
+
+Upstream ships with a CLI application (bin/sifter.js), which is a
+Node.js module.  However, since it depends on many unpackaged
+dependencies, I decided to not install it.  IOW, this package installs
+just the JavaScript library.
+
+ -- Sergio Durigan Junior <sergiodj at sergiodj.net>  Mon, 15 Aug 2016 17:09:17 -0400
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..e8e014e
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libjs-sifter.js (0.5.1+dfsg-1) unstable; urgency=medium
+
+  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
+
+ -- Sergio Durigan Junior <sergiodj at sergiodj.net>  Mon, 15 Aug 2016 17:09:17 -0400
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..1c949de
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,44 @@
+Source: libjs-sifter.js
+Section: web
+Priority: optional
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Sergio Durigan Junior <sergiodj at sergiodj.net>
+Build-Depends: debhelper (>=9), yui-compressor, mocha
+Standards-Version: 3.9.8
+Homepage: https://github.com/brianreavis/sifter.js
+Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/libjs-sifter.js.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/libjs-sifter.js.git
+
+Package: libjs-sifter.js
+Architecture: all
+Depends: ${misc:Depends}
+Description: Library for textually searching arrays and hashes of objects
+ Sifter is a client and server-side library (via UMD) for textually
+ searching arrays and hashes of objects by property – or multiple
+ properties. It's designed specifically for autocomplete. The process
+ is three-step: score, filter, sort.
+ .
+  * Supports díåcritîçs.
+ .
+    For example, if searching for "montana" and an item in the set has
+    a value of "montaña", it will still be matched. Sorting will also
+    play nicely with diacritics.
+ .
+  * Smart scoring.
+ .
+     Items are scored / sorted intelligently depending on where a
+     match is found in the string (how close to the beginning) and
+     what percentage of the string matches.
+ .
+  * Multi-field sorting.
+ .
+     When scores aren't enough to go by – like when getting results
+     for an empty query – it can sort by one or more fields. For
+     example, sort by a person's first name and last name without
+     actually merging the properties to a single string.
+ .
+  * Nested properties.
+ .
+     Allows one to search and sort on nested properties so you can
+     perform search on complex objects without flattening them simply
+     by using dot-notation to reference fields (ie. nested.property).
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..e5d18b2
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,27 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libjs-sifter.js
+Source: https://github.com/brianreavis/sifter.js
+
+Files: *
+Copyright: 2013 Brian Reavis <brian at thirdroute.com>
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2016 Sergio Durigan Junior <sergiodj at sergiodj.net>
+License: Apache-2.0
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License"); you
+ may not use this file except in compliance with the License.  You may
+ obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied.  See the License for the specific language governing
+ permissions and limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache 2.0 License can be
+ found in /usr/share/common-licenses/Apache-2.0 file.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..811cd38
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,2 @@
+lib/sifter.min.js usr/share/javascript/sifter.js/
+lib/sifter.js usr/share/javascript/sifter.js/
diff --git a/debian/patches/0001-Adjusting-mocha-path-on-Makefile.patch b/debian/patches/0001-Adjusting-mocha-path-on-Makefile.patch
new file mode 100644
index 0000000..cb979e7
--- /dev/null
+++ b/debian/patches/0001-Adjusting-mocha-path-on-Makefile.patch
@@ -0,0 +1,27 @@
+From: Sergio Durigan Junior <sergiodj at sergiodj.net>
+Date: Mon, 15 Aug 2016 19:26:12 -0400
+Subject: Adjusting mocha path on Makefile
+
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 97a61c0..35845cd 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,6 @@
+ .PHONY: compile test test-ci release benchmark
+ 
+-MOCHA=node_modules/.bin/mocha
++MOCHA=mocha
+ COVERALLS=node_modules/.bin/coveralls
+ _MOCHA=node_modules/.bin/_mocha
+ ISTANBUL=node_modules/.bin/istanbul
+@@ -54,4 +54,4 @@ else
+ 	git push origin --tags
+ 	npm publish
+ 	@echo "\033[32mv${version} released\033[0;39m"
+-endif
+\ No newline at end of file
++endif
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b114332
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Adjusting-mocha-path-on-Makefile.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..aebb685
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
+override_dh_auto_build:
+	yui-compressor -o lib/sifter.min.js lib/sifter.js
+
+override_dh_auto_clean:
+	dh_clean
+	rm -f lib/sifter.min.js
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..de42e5e
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,6 @@
+version=4
+opts="dversionmangle=s@\+dfsg(\.\d+)?@@,\
+	repacksuffix=+dfsg,\
+	filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%@PACKAGE at -$1.tar.gz%" \
+   https://github.com/brianreavis/sifter.js/tags \
+   (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/libjs-sifter.js.git



More information about the Pkg-javascript-commits mailing list