[Pkg-javascript-commits] [underscore.string] 01/01: Added intial debian version

Marcelo Jorge Vieira metal at alioth.debian.org
Thu Aug 15 03:50:00 UTC 2013


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

metal pushed a commit to branch master
in repository underscore.string.

commit 5d692961f094da65a0e9b84e2c5cd43e66717d8e
Author: Marcelo Jorge Vieira <metal at alucinados.com>
Date:   Wed Aug 7 22:53:13 2013 -0300

    Added intial debian version
---
 debian/changelog                             |    5 ++
 debian/compat                                |    1 +
 debian/control                               |   31 +++++++++++++
 debian/copyright                             |   64 ++++++++++++++++++++++++++
 debian/libjs-underscore.string.README.Debian |   26 +++++++++++
 debian/libjs-underscore.string.install       |    1 +
 debian/node-underscore.string.links          |    1 +
 debian/rules                                 |   31 +++++++++++++
 debian/source/format                         |    1 +
 debian/watch                                 |    4 ++
 10 files changed, 165 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..5ac8765
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+underscore.string (2.3.3+dfsg-1) unstable; urgency=low
+
+  * Initial release (Closes: #718937)
+
+ -- Marcelo Jorge Vieira (metal) <metal at debian.org>  Tue, 06 Aug 2013 23:08:13 -0300
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..8da9d2a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,31 @@
+Source: underscore.string
+Section: web
+Priority: optional
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Marcelo Jorge Vieira (metal) <metal at debian.org>,
+  Gustavo Noronha Silva <kov at debian.org>
+Build-Depends: debhelper (>= 8)
+Standards-Version: 3.9.4
+Homepage: https://github.com/epeli/underscore.string
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/underscore.string.git
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/underscore.string.git
+
+
+Package: libjs-underscore.string
+Architecture: all
+Depends: ${misc:Depends}
+Recommends: javascript-common
+Description: String manipulation extensions - browser library
+ JavaScript lacks complete string manipulation operations, this an
+ attempt to fill that gap.
+ .
+ This package contains underscore.string usable directly in web browsers.
+
+Package: node-underscore.string
+Architecture: all
+Depends: ${misc:Depends}, nodejs (>= 0.6.19~dfsg1-3), libjs-underscore.string
+Description: String manipulation extensions - node module
+ JavaScript lacks complete string manipulation operations, this an
+ attempt to fill that gap.
+ .
+ This package contains underscore.string usable with Node.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..9a74712
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,64 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Underscore.string
+Source: https://github.com/epeli/underscore.string
+
+Files: *
+Copyright: 2010 Esa-Matti Suuronen <esa-matti at suuronen.org>
+License: MIT
+
+Files: lib/underscore.string.js
+Copyright: Alexandru Marasteanu <alexaholic at gmail.com>
+ 2010 Esa-Matti Suuronen <esa-matti at suuronen.org>,
+License: MIT or BSD
+
+Files: debian/*
+Copyright: 2013 Marcelo Jorge Vieira <metal at debian.org>
+License: MIT
+
+License: MIT
+  Copyright (c) 2011 Esa-Matti Suuronen <esa-matti at suuronen.org>
+  .
+  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.ARE.
+
+License: BSD
+  Copyright (c) 2007-2013, Alexandru Marasteanu <hello at alexei.ro>
+  All rights reserved.
+  .
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions are met:
+  .
+  * Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+  * Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+  * Neither the name of this software nor the names of its contributors may be
+    used to endorse or promote products derived from this software without
+    specific prior written permission.
+  .
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+  DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
+  ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/libjs-underscore.string.README.Debian b/debian/libjs-underscore.string.README.Debian
new file mode 100644
index 0000000..d3fce11
--- /dev/null
+++ b/debian/libjs-underscore.string.README.Debian
@@ -0,0 +1,26 @@
+libjs-underscore.string for Debian
+----------------------------------
+
+In order to make use of underscore.string in your html, include the following
+lines in your html header:
+
+    <script language="javascript" type="text/javascript"
+    src="/javascript/underscore.string/underscore.string.min.js"></script>
+
+
+If you're generating files which are going to be served via the
+filesystem (such that no HTTP server is used) instead you should
+access underscore.string via the filesystem path:
+
+    <script language="javascript" type="text/javascript"
+    src="/usr/share/javascript/underscore.string/underscore.string.min.js"></script>
+
+
+Explain why dfsg-packaging
+--------------------------
+
+underscore.string originally comes with minified files. However, it violates
+the Debian Policy.
+
+
+ -- Marcelo Jorge Vieira (metal) <metal at alucinados.com>  Wed, 07 Aug 2013 22:58:23 -0300
diff --git a/debian/libjs-underscore.string.install b/debian/libjs-underscore.string.install
new file mode 100644
index 0000000..7be9d64
--- /dev/null
+++ b/debian/libjs-underscore.string.install
@@ -0,0 +1 @@
+lib/* /usr/share/javascript/underscore.string/
diff --git a/debian/node-underscore.string.links b/debian/node-underscore.string.links
new file mode 100644
index 0000000..611a59b
--- /dev/null
+++ b/debian/node-underscore.string.links
@@ -0,0 +1 @@
+/usr/share/javascript/underscore.string/underscore.string.js /usr/lib/nodejs/underscore.string.js
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..0d1a886
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,31 @@
+#!/usr/bin/make -f
+%:
+	dh $@
+
+override_dh_auto_build:
+	uglifyjs -o lib/underscore.string.min.js lib/underscore.string.js
+
+override_dh_auto_clean:
+	rm -f lib/*.min.js
+
+get-orig-source:
+	OUTDIR=$$PWD ; \
+	MAKEFILE=`echo $(MAKEFILE_LIST) | awk '{ print $$1 }'` ; \
+	FILE=`readlink -f $$MAKEFILE` ; \
+	DIR=`dirname $$FILE` ; \
+	cd $$DIR/.. ; \
+	TMP=`mktemp -d` ; \
+	if ! USCAN=`uscan --destdir $$TMP` ; then exit 1 ; fi ; \
+	VERSION=`echo $$USCAN | sed -n 's/.*Newer version (\(.*\)) available.*/\1/p'` ; \
+	cd $$TMP ; \
+	tar xzf underscore.string-$$VERSION.tar.gz ; \
+	cd underscore.string-$$VERSION ; \
+	rm -rf dist ; \
+	rm -rf test ; \
+	cd .. ; \
+	tar c underscore.string-$$VERSION | gzip -9 > underscore.string_$$VERSION+dfsg.orig.tar.gz ; \
+	rm -rf underscore.string-$$VERSION ; \
+	mv underscore.string_$$VERSION+dfsg.orig.tar.gz $$OUTDIR ; \
+	cd $$OUTDIR ; \
+	rm -rf $$TMP ; \
+	echo Saved file at underscore.string_$$VERSION+dfsg.orig.tar.gz
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..e7b62eb
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts="dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\
+filenamemangle=s/.+\/v?(.*)\.tar\.gz/underscore.string-$1.tar.gz/" \
+ https://github.com/epeli/underscore.string/tags .*/v?(\d[\d\.]+)\.tar\.gz

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



More information about the Pkg-javascript-commits mailing list