[Pkg-javascript-commits] [typeahead.js] 02/02: initial packaging

Alexandre Viau aviau at moszumanska.debian.org
Wed Dec 30 01:59:02 UTC 2015


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

aviau pushed a commit to branch master
in repository typeahead.js.

commit 1947b4f6708febd3a87c3e214f30a7e69ab265d2
Author: aviau <alexandre at alexandreviau.net>
Date:   Tue Dec 29 20:46:05 2015 -0500

    initial packaging
---
 debian/changelog     |  5 +++++
 debian/compat        |  1 +
 debian/control       | 25 +++++++++++++++++++++++++
 debian/copyright     | 33 +++++++++++++++++++++++++++++++++
 debian/gbp.conf      |  2 ++
 debian/install       |  6 ++++++
 debian/rules         | 40 ++++++++++++++++++++++++++++++++++++++++
 debian/source/format |  1 +
 debian/watch         |  3 +++
 9 files changed, 116 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..11e16bd
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+typeahead.js (0.11.1~dfsg1-1) unstable; urgency=medium
+
+  * Initial release. (Closes: #809381)
+
+ -- Alexandre Viau <aviau at debian.org>  Tue, 29 Dec 2015 20:05:26 -0500
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..9fe62f9
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,25 @@
+Source: typeahead.js
+Section: web
+Priority: extra
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Alexandre Viau <aviau at debian.org>
+Build-Depends: debhelper (>= 9), uglifyjs
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/typeahead.js.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/typeahead.js.git
+Homepage: http://twitter.github.io/typeahead.js/
+
+Package: libjs-typeahead.js
+Architecture: all
+Depends: ${misc:Depends}
+Recommends: javascript-common
+Description: fast and fully-featured autocomplete library
+ typeahead.js is a flexible JavaScript library that provides a strong
+ foundation for building robust typeaheads.
+ .
+ The typeahead.js library consists of 2 components: the suggestion
+ engine, Bloodhound, and the UI view, Typeahead. The suggestion engine
+ is responsible for computing suggestions for a given query. The UI
+ view is responsible for rendering suggestions and handling DOM
+ interactions. Both components can be used separately, but when used
+ together, they can provide a rich typeahead experience.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..b91e4d5
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,33 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: typeahead.js
+Source: https://github.com/twitter/typeahead.js
+Files-Excluded: dist/*
+
+
+Files: *
+Copyright: 2013-2014 Twitter, Inc
+License: Expat
+
+Files: debian/*
+Copyright: 2015 Alexandre Viau <aviau at debian.org>
+License: Expat
+Comment: Debian packaging is licensed under the same terms as upstream
+
+License: Expat
+ 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.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..cec628c
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+pristine-tar = True
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..32bbffa
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,6 @@
+build/bloodhound.js usr/share/javascript/typeahead.js
+build/bloodhound.min.js usr/share/javascript/typeahead.js
+build/typeahead.jquery.js usr/share/javascript/typeahead.js
+build/typeahead.jquery.min.js usr/share/javascript/typeahead.js
+build/typeahead.bundle.js usr/share/javascript/typeahead.js
+build/typeahead.bundle.min.js usr/share/javascript/typeahead.js
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..eb7a8e9
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,40 @@
+#!/usr/bin/make -f
+%:
+	dh $@
+
+override_dh_auto_build:
+	mkdir build
+	cat src/common/utils.js \
+	    src/bloodhound/version.js \
+	    src/bloodhound/tokenizers.js \
+	    src/bloodhound/lru_cache.js \
+	    src/bloodhound/persistent_storage.js \
+	    src/bloodhound/transport.js \
+	    src/bloodhound/search_index.js \
+	    src/bloodhound/prefetch.js \
+	    src/bloodhound/remote.js \
+	    src/bloodhound/options_parser.js \
+	    src/bloodhound/bloodhound.js \
+	    > build/bloodhound.js
+	uglifyjs -o build/bloodhound.min.js build/bloodhound.js
+	cat src/common/utils.js \
+	    src/typeahead/www.js \
+	    src/typeahead/event_bus.js \
+	    src/typeahead/event_emitter.js \
+	    src/typeahead/highlight.js \
+	    src/typeahead/input.js \
+	    src/typeahead/dataset.js \
+	    src/typeahead/menu.js \
+	    src/typeahead/default_menu.js \
+	    src/typeahead/typeahead.js \
+	    src/typeahead/plugin.js \
+	    > build/typeahead.jquery.js
+	uglifyjs -o build/typeahead.jquery.min.js build/typeahead.jquery.js
+	cat build/typeahead.jquery.js \
+		build/bloodhound.js \
+		> build/typeahead.bundle.js
+	uglifyjs -o build/typeahead.bundle.min.js build/typeahead.bundle.js
+
+override_dh_auto_clean:
+	dh_clean
+	rm -rf build
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..fb01fe3
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/typeahead.js-$1\.tar\.gz/,repacksuffix=~dfsg1,dversionmangle=s/\~dfsg\d*$// \
+ https://github.com/twitter/typeahead.js/releases .*/archive/v?(\d[\d\.]+)\.tar\.gz

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



More information about the Pkg-javascript-commits mailing list