r14285 - in /packages/unstable/ghex/debian: changelog rules

lool at users.alioth.debian.org lool at users.alioth.debian.org
Fri Jan 18 14:47:40 UTC 2008


Author: lool
Date: Fri Jan 18 14:47:40 2008
New Revision: 14285

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=14285
Log:
* Don't hardcode the lib package name.

Modified:
    packages/unstable/ghex/debian/changelog
    packages/unstable/ghex/debian/rules

Modified: packages/unstable/ghex/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/ghex/debian/changelog?rev=14285&op=diff
==============================================================================
--- packages/unstable/ghex/debian/changelog (original)
+++ packages/unstable/ghex/debian/changelog Fri Jan 18 14:47:40 2008
@@ -5,6 +5,7 @@
     - Targetted at unstable since the changes seem stable.
     - Bump up shlibs to >= 2.21.4.
     - Fixes incorrect version in the .pc file; thanks Luca Bruno.
+  * Don't hardcode the lib package name.
 
  -- Loic Minier <lool at dooz.org>  Fri, 18 Jan 2008 15:34:01 +0100
 

Modified: packages/unstable/ghex/debian/rules
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/ghex/debian/rules?rev=14285&op=diff
==============================================================================
--- packages/unstable/ghex/debian/rules (original)
+++ packages/unstable/ghex/debian/rules Fri Jan 18 14:47:40 2008
@@ -1,8 +1,9 @@
 #!/usr/bin/make -f
-# -*- mode: makefile; coding: utf-8 -*-
 
-# ensure ghex is built after libgtkhex0
-binary/ghex:: binary/libgtkhex0
+libgtkhexN := $(shell sed -rn 's/Package:[[:space:]]*(libgtkhex[0-9]+)[[:space:]]*$$/\1/p' debian/control | head -n 1)
+
+# ensure ghex is built after libgtkhex
+binary/ghex:: binary/$(libgtkhexN)
 
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
@@ -11,9 +12,9 @@
 include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
 -include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk
 
-DEB_SHLIBDEPS_INCLUDE_ghex := debian/libgtkhex0/usr/lib/
+DEB_SHLIBDEPS_INCLUDE_ghex := debian/$(libgtkhexN)/usr/lib/
 
-DEB_DH_MAKESHLIBS_ARGS_libgtkhex0 += -V"libgtkhex0 (>= 2.21.4)"
+DEB_DH_MAKESHLIBS_ARGS_$(libgtkhexN) += -V"$(libgtkhexN) (>= 2.21.4)"
 
 DEB_INSTALL_MANPAGES_ghex := debian/ghex2.1
 




More information about the pkg-gnome-commits mailing list