[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[DebianGIS] ruby mapscript patch



Hi all!

Thank you for great work on Debian GIS packages!
I hope I can help you make it even better :)

As suggested by Paul, I would like to join debian gis team. I want
to get better ruby support in debian gis packages.

The first target for me is ruby-mapscript. The patch for
it is attached. This is my first experience with deb packaging.
So I would appreciate if someone review it.

Regards,
 Dmitry

diff -ruN mapserver-4.10.3.orig/debian/changelog mapserver-4.10.3/debian/changelog
--- mapserver-4.10.3.orig/debian/changelog	2007-08-28 13:49:31.000000000 +0400
+++ mapserver-4.10.3/debian/changelog	2007-09-27 01:33:14.000000000 +0400
@@ -1,3 +1,10 @@
+mapserver (4.10.3-2) unstable; urgency=low
+
+  [ Dmitry Kurochkin ]
+  * Add ruby mapscript support. Closes: #428247
+
+ -- Dmitry Kurochkin <dmitry.kurochkin@gmail.com>  Thu, 27 Sep 2007 01:29:27 +0400
+
 mapserver (4.10.3-1) unstable; urgency=high
 
   [ Andreas Putzo ]
diff -ruN mapserver-4.10.3.orig/debian/control mapserver-4.10.3/debian/control
--- mapserver-4.10.3.orig/debian/control	2007-08-28 13:46:46.000000000 +0400
+++ mapserver-4.10.3/debian/control	2007-09-26 23:08:00.000000000 +0400
@@ -7,7 +7,8 @@
 Build-Depends: debhelper (>= 5.0.37.2), dpatch, libcurl4-gnutls-dev, libpng12-dev,
  zlib1g-dev (>= 1.1.4), libgd2-xpm-dev (>= 2.0.1-10), libfreetype6-dev (>= 2.0.9),
  libjpeg62-dev, libgdal1-dev (>=1.4.0), proj, libwww-dev, libpq-dev, php5-dev, swig,
- python-all, python-all-dev, python-central (>= 0.5), libgeos-dev (>= 2.2.3-2)
+ python-all, python-all-dev, python-central (>= 0.5), libgeos-dev (>= 2.2.3-2),
+ ruby1.8, ruby1.8-dev, ruby1.9, ruby1.9-dev
 Build-Depends-Indep: python-docutils
 Build-Conflicts: libcurl3-openssl-dev
 XS-Python-Version: all
@@ -84,3 +85,21 @@
  library packages.
  .
   Homepage: http://mapserver.gis.umn.edu
+
+Package: ruby1.8-mapscript
+Section: devel
+Architecture: any
+Depends: ${shlibs:Depends}
+Suggests: mapserver-bin, mapserver-doc
+Provides: ruby-mapscript
+Description: Ruby MapServer library
+ Ruby MapScript provides MapServer functions for Ruby scripts.
+
+Package: ruby1.9-mapscript
+Section: devel
+Architecture: any
+Depends: ${shlibs:Depends}
+Suggests: mapserver-bin, mapserver-doc
+Provides: ruby-mapscript
+Description: Ruby MapServer library
+ Ruby MapScript provides MapServer functions for Ruby scripts.
diff -ruN mapserver-4.10.3.orig/debian/ruby1.8-mapscript.docs mapserver-4.10.3/debian/ruby1.8-mapscript.docs
--- mapserver-4.10.3.orig/debian/ruby1.8-mapscript.docs	1970-01-01 03:00:00.000000000 +0300
+++ mapserver-4.10.3/debian/ruby1.8-mapscript.docs	2007-09-26 21:23:45.000000000 +0400
@@ -0,0 +1 @@
+mapscript/ruby/README
diff -ruN mapserver-4.10.3.orig/debian/ruby1.8-mapscript.examples mapserver-4.10.3/debian/ruby1.8-mapscript.examples
--- mapserver-4.10.3.orig/debian/ruby1.8-mapscript.examples	1970-01-01 03:00:00.000000000 +0300
+++ mapserver-4.10.3/debian/ruby1.8-mapscript.examples	2007-09-26 21:25:23.000000000 +0400
@@ -0,0 +1 @@
+mapscript/ruby/examples/*
diff -ruN mapserver-4.10.3.orig/debian/ruby1.9-mapscript.docs mapserver-4.10.3/debian/ruby1.9-mapscript.docs
--- mapserver-4.10.3.orig/debian/ruby1.9-mapscript.docs	1970-01-01 03:00:00.000000000 +0300
+++ mapserver-4.10.3/debian/ruby1.9-mapscript.docs	2007-09-26 23:56:25.000000000 +0400
@@ -0,0 +1 @@
+mapscript/ruby/README
diff -ruN mapserver-4.10.3.orig/debian/ruby1.9-mapscript.examples mapserver-4.10.3/debian/ruby1.9-mapscript.examples
--- mapserver-4.10.3.orig/debian/ruby1.9-mapscript.examples	1970-01-01 03:00:00.000000000 +0300
+++ mapserver-4.10.3/debian/ruby1.9-mapscript.examples	2007-09-26 23:56:36.000000000 +0400
@@ -0,0 +1 @@
+mapscript/ruby/examples/*
diff -ruN mapserver-4.10.3.orig/debian/rules mapserver-4.10.3/debian/rules
--- mapserver-4.10.3.orig/debian/rules	2007-06-24 14:26:36.000000000 +0400
+++ mapserver-4.10.3/debian/rules	2007-10-01 03:18:26.000000000 +0400
@@ -14,6 +14,7 @@
 version_major=$(shell expr `pwd` : '.*-\([0-9]*\).[0-9.]*')
 CURDIR := $(shell pwd)
 PYVERS=$(shell pyversions -r debian/control)
+RUBYVERS=1.8 1.9
 PHP5API=$(shell php-config5 --phpapi)
 PHP5DIR=$(shell php-config5 --extension-dir)
 
@@ -132,6 +133,8 @@
 	-cd mapscript/python && \
 	  for python in $(PYVERS); do $$python setup.py clean; done
 	-$(RM) -rf mapscript/python/build
+	-$(MAKE) distclean -C $(CURDIR)/mapscript/ruby
+	-$(RM) -rf $(CURDIR)/mapscript/ruby/mapscript_wrap.c
 	-$(RM) mapscriptvars
 
 	-$(RM) mapscript/perl/mapscript.i \
@@ -188,6 +191,14 @@
 	    $$python setup.py install --root=$(CURDIR)/debian/python-mapscript ; \
 	  done
 
+	# Ruby mapscript
+	cd $(CURDIR)/mapscript/ruby && set -e ; \
+	  for v in $(RUBYVERS) ; do \
+	    ruby$$v extconf.rb ; \
+	    $(MAKE) install sitedir=$(CURDIR)/debian/ruby$$v-mapscript/usr/lib/ruby ; \
+	    $(MAKE) distclean ; \
+	  done
+
 	# Mapserver  Binary
 	install -m755 legend scalebar shp2img shptree \
 		shptreetst shptreevis sortshp tile4ms \


Reply to: