[DebianGIS-dev] [SCM] saga branch, master, updated. c0800a4623ec01c320e2a85ad00fa400a42221a4

2010-03-09 Thread Francesco Paolo Lovergine
The following commit has been merged in the master branch:
commit 9e9a29b6514c8444dbfce7684096cfad025d5cf2
Author: Francesco Paolo Lovergine fran...@debian.org
Date:   Tue Mar 9 11:48:29 2010 +0100

Added man page for saga-depends and changed installation files.

diff --git a/debian/saga-depends.1 b/debian/saga-depends.1
new file mode 100644
index 000..ed517a2
--- /dev/null
+++ b/debian/saga-depends.1
@@ -0,0 +1,25 @@
+.TH saga-depends 1 2010-03-09 0.1 SAGA packages for Debian GNU/Linux
+.SH NAME
+saga\-depends \- calculates SAGA Gis dependencies
+
+.SH SYNOPSIS
+\\fBsaga-depends\fR [\fIbinary-package ...\fR]
+
+.SH DESCRIPTION
+saga-depends is a debhelper-like program which is responsible for generating
+the ${saga:Depends} substitution variables and adding them to substvars files.
+You should specify one or more binary packages to consider for adding the 
+per-package substvars definition or none to use default debian/substvars.
+.PP
+If you use this program, your package must build-depend on libsaga-dev.
+
+.SH SEE ALSO
+\\fIdebhelper\fR\|(7),
+\\fIdh_shlibdeps\fR\|(1),
+\\fIdpkg-shlibdeps\fR\|(1)
+.PP
+This program is not a part of debhelper.
+
+.SH AUTHOR
+Francesco Paolo Lovergine fran...@debian.org
+

-- 
Saga GIS

___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel


[DebianGIS-dev] [SCM] saga branch, master, updated. c0800a4623ec01c320e2a85ad00fa400a42221a4

2010-03-09 Thread Francesco Paolo Lovergine
The following commit has been merged in the master branch:
commit 5d3833ef41ac1892a94362b4b32608179c7d2800
Author: Francesco Paolo Lovergine fran...@debian.org
Date:   Tue Mar 9 11:31:31 2010 +0100

Adding essential substvars support for third-parties package.

diff --git a/debian/libsaga-dev.README.Debian b/debian/libsaga-dev.README.Debian
new file mode 100644
index 000..f3b6262
--- /dev/null
+++ b/debian/libsaga-dev.README.Debian
@@ -0,0 +1,16 @@
+SAGA Gis for Debian
+---
+
+Libraries provided by SAGA Gis can be used by third-parties modules,
+but currently change at every new release their APIs. Therefore, third-parties 
+source packages should build-depend on libsaga-dev and depend on 
+an additional ${saga:Depends} substvar. This will enforce strict package 
+dependency on the right library version and prevent obscure failure
+due to changes in structures or functions.
+
+Their debian/rules should execute a little debhelper script
+named /usr/bin/saga-depends to append required versioned lib dependencies
+to their control file before executing dh_shlibdeps. That script is
+provided in the libsaga-dev package.
+
+-- Francesco Paolo Lovergine fran...@debian.org  Tue Mar  9 11:30:25 CET 2010
diff --git a/debian/saga-depends b/debian/saga-depends
new file mode 100644
index 000..c1d51a6
--- /dev/null
+++ b/debian/saga-depends
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# This tiny script is a debhelper script that adds substitution vars for 
+# packages that have to depend on the libsaga libraries.
+#
+# Use: saga-depends [binary-name ...]
+#
+
+if [ $# -ne 0 ]; then
+cat debian/${PKG}.substvars EOF
+saga:Depends=libsaga-2.0.4
+EOF
+else
+cat debian/substvars EOF
+saga:Depends=libsaga-2.0.4
+EOF
+
+fi
+
diff --git a/debian/saga-depends.in b/debian/saga-depends.in
new file mode 100644
index 000..d51957d
--- /dev/null
+++ b/debian/saga-depends.in
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# This tiny script is a debhelper script that adds substitution vars for 
+# packages that have to depend on the libsaga libraries.
+#
+# Use: saga-depends [binary-name ...]
+#
+
+if [ $# -ne 0 ]; then
+cat debian/${PKG}.substvars EOF
+saga:depends=libsa...@version@
+EOF
+else
+cat debian/substvars EOF
+saga:depends=libsa...@version@
+EOF
+
+fi
+

-- 
Saga GIS

___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel


[DebianGIS-dev] [SCM] saga branch, master, updated. c0800a4623ec01c320e2a85ad00fa400a42221a4

2010-03-09 Thread Francesco Paolo Lovergine
The following commit has been merged in the master branch:
commit 5435ca96528cb4fca77f3dbda8a95e3b2c7a0ca9
Author: Francesco Paolo Lovergine fran...@debian.org
Date:   Tue Mar 9 11:49:18 2010 +0100

Changed changelog and added saga-depends to installation.

diff --git a/debian/changelog b/debian/changelog
index c71f665..22777e7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -28,5 +28,7 @@ saga (2.0.4-1) unstable; urgency=low
   * Apps - Applications in debian/menu.
   * Now libtool helper files .la are not installed.
   * Added ITP bug number.
+  * Added a templated debhelper saga-depends little script to provide required
+substvars for third-parties packages.
 
- -- Francesco Paolo Lovergine fran...@debian.org  Thu, 25 Feb 2010 15:13:47 
+0100
+ -- Francesco Paolo Lovergine fran...@debian.org  Tue, 09 Mar 2010 11:17:49 
+0100
diff --git a/debian/libsaga-dev.install b/debian/libsaga-dev.install
index 87633ca..5e59365 100644
--- a/debian/libsaga-dev.install
+++ b/debian/libsaga-dev.install
@@ -1,3 +1,3 @@
 src/saga_core/saga_api/*.h /usr/include/saga_api/
 src/saga_core/saga_gdi/*.h /usr/include/saga_gdi/
-
+debian/saga-depends /usr/bin/

-- 
Saga GIS

___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel