Re: [DebianGIS] ruby mapscript patch
Hi Francesco.
Here is updated patch for ruby mapscript for svn head. It took me a
little longer than I expected because of hardware issues...
In this patch I have renamed ruby-mapscript packages to
libmapscript-ruby[X.Y] accoring to Debian Ruby policy draft. Besides
examples are installed in libmapscript-ruby package only.
Please let me know what you think about it.
Regards,
Dmitry
Index: control
===================================================================
--- control (revision 1169)
+++ control (working copy)
@@ -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
@@ -79,3 +80,29 @@
supports Open Geospatial Consortium (OGC) standards. Scripting
functionality in MapScript is provided by the suggested mapscript
library packages.
+
+Package: libmapscript-ruby
+Section: devel
+Architecture: all
+Depends: libmapscript-ruby1.8
+Description: Ruby MapServer library
+ Ruby MapScript provides MapServer functions for Ruby scripts.
+ .
+ This package conains exapmles and depends on package for Debian
+ default version of Ruby.
+
+Package: libmapscript-ruby1.8
+Section: devel
+Architecture: any
+Depends: ${shlibs:Depends}
+Suggests: mapserver-bin, mapserver-doc
+Description: Ruby MapServer library
+ Ruby MapScript provides MapServer functions for Ruby scripts.
+
+Package: libmapscript-ruby1.9
+Section: devel
+Architecture: any
+Depends: ${shlibs:Depends}
+Suggests: mapserver-bin, mapserver-doc
+Description: Ruby MapServer library
+ Ruby MapScript provides MapServer functions for Ruby scripts.
Index: libmapscript-ruby.examples
===================================================================
--- libmapscript-ruby.examples (revision 0)
+++ libmapscript-ruby.examples (revision 0)
@@ -0,0 +1 @@
+mapscript/ruby/examples/*
Index: libmapscript-ruby.docs
===================================================================
--- libmapscript-ruby.docs (revision 0)
+++ libmapscript-ruby.docs (revision 0)
@@ -0,0 +1 @@
+mapscript/ruby/README
Index: changelog
===================================================================
--- changelog (revision 1169)
+++ changelog (working copy)
@@ -12,8 +12,11 @@
[ Paul Wise ]
* Switch to the new Homepage field
- -- Paul Wise <pabs@debian.org> Thu, 27 Sep 2007 10:56:13 +1000
+ [ Dmitry Kurochkin ]
+ * Add ruby mapscript support. Closes: #428247
+ -- Dmitry Kurochkin <dmitry.kurochkin@gmail.com> Fri, 05 Oct 2007 23:40:39 +0400
+
mapserver (4.10.3-1) unstable; urgency=high
[ Andreas Putzo ]
Index: rules
===================================================================
--- rules (revision 1169)
+++ rules (working copy)
@@ -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/libmapscript-ruby$$v/usr/lib/ruby ; \
+ $(MAKE) distclean ; \
+ done
+
# Mapserver Binary
install -m755 legend scalebar shp2img shptree \
shptreetst shptreevis sortshp tile4ms \
@@ -214,6 +225,7 @@
dh_testroot -i
dh_installchangelogs -i HISTORY.TXT
dh_installdocs -i
+ dh_installexamples -i
dh_installdebconf -i
dh_compress -i
dh_link -i
Reply to: