[proj4js] 01/07: Javascript policy changes.

Bas Couwenberg sebastic at xs4all.nl
Sat Jan 3 03:00:16 UTC 2015


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

sebastic-guest pushed a commit to branch master
in repository proj4js.

commit 26c54a0025f13357843706cb3579b87e1c3ffb34
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sun Dec 28 23:11:26 2014 +0100

    Javascript policy changes.
    
    Javascript policy changes:
    - Renaming package to libjs-proj4
    - Add Recommends: javascript-common
    - Add node-proj4 package
---
 debian/control             | 35 ++++++++++++++++++++++++++++++-----
 debian/docs                |  2 ++
 debian/libjs-proj4.install |  3 +++
 debian/node-proj4.install  |  3 +++
 debian/rules               |  9 +++++++++
 debian/tests/control       |  2 ++
 debian/tests/require       |  3 +++
 7 files changed, 52 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index 6677baf..59dfc46 100644
--- a/debian/control
+++ b/debian/control
@@ -3,16 +3,21 @@ Section: science
 Priority: optional
 Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
 Uploaders: Bas Couwenberg <sebastic at xs4all.nl>
-Build-Depends: debhelper (>= 9)
+Build-Depends: debhelper (>= 9),
+               dh-buildinfo,
+               nodejs,
+               node-uglify
 Standards-Version: 3.9.6
 Vcs-Browser: http://anonscm.debian.org/cgit/pkg-grass/proj4js.git/
 Vcs-Git: git://anonscm.debian.org/pkg-grass/proj4js.git
 Homepage: http://proj4js.org/
+XS-Testsuite: autopkgtest
 
-Package: proj4js
-Architecture: any
-Depends: ${shlibs:Depends},
-         ${misc:Depends}
+Package: libjs-proj4
+Architecture: all
+Depends: ${misc:Depends},
+         libjs-mgrs
+Recommends: javascript-common
 Description: JavaScript library to transform point coordinates systems
  Proj4js is a JavaScript library to transform point coordinates from one
  coordinate system to another, including datum transformations.
@@ -24,3 +29,23 @@ Description: JavaScript library to transform point coordinates systems
  Proj4js is a part of the MetaCRS group of projects and uses the same MIT style
  license as PROJ.4. 
 
+Package: node-proj4
+Architecture: all
+Depends: ${misc:Depends},
+         nodejs,
+         node-mgrs
+Description: Node.js module to transform point coordinates systems
+ Proj4js is a JavaScript library to transform point coordinates from one
+ coordinate system to another, including datum transformations.
+ .
+ This library is a port of both the PROJ.4 and GCTCP C libraries to JavaScript.
+ Enabling these transformations in the browser allows geographic data stored in
+ different projections to be combined in browser-based web mapping applications.
+ .
+ Proj4js is a part of the MetaCRS group of projects and uses the same MIT style
+ license as PROJ.4. 
+ .
+ This package contains the proj4 module for Node.js.
+ .
+ Node.js is an event-based server-side JavaScript engine.
+
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..b81cfb8
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+README.md
+REFERENCES.md
diff --git a/debian/libjs-proj4.install b/debian/libjs-proj4.install
new file mode 100644
index 0000000..4fa945e
--- /dev/null
+++ b/debian/libjs-proj4.install
@@ -0,0 +1,3 @@
+dist/proj4-src.js usr/share/javascript/proj4/proj4.js
+dist/proj4.min.js usr/share/javascript/proj4/proj4.min.js
+lib/              usr/share/javascript/proj4/
diff --git a/debian/node-proj4.install b/debian/node-proj4.install
new file mode 100644
index 0000000..2d132d9
--- /dev/null
+++ b/debian/node-proj4.install
@@ -0,0 +1,3 @@
+dist/proj4-src.js usr/lib/nodejs/proj4/proj4.js
+package.json      usr/lib/nodejs/proj4/
+lib/              usr/lib/nodejs/proj4/
diff --git a/debian/rules b/debian/rules
index 440a381..7309979 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,3 +5,12 @@
 %:
 	dh $@
 
+override_dh_clean:
+	dh_clean dist/proj4.min.js
+
+override_dh_auto_build:
+	dh_auto_build
+
+	# Minify Javascript
+	uglifyjs -o dist/proj4.min.js dist/proj4-src.js
+
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..e983245
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-proj4
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..745e965
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('proj4');"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/proj4js.git



More information about the Pkg-grass-devel mailing list