[Pkg-ruby-extras-commits] r1063 - packages-wip/librevolution-ruby/trunk/debian

Arnaud Cornet nohar-guest at alioth.debian.org
Thu Nov 9 11:10:45 CET 2006


Author: nohar-guest
Date: 2006-11-09 11:10:45 +0100 (Thu, 09 Nov 2006)
New Revision: 1063

Modified:
   packages-wip/librevolution-ruby/trunk/debian/rules
Log:
Fix debian/rules so that dummy packages actually are dummy packages.

Here is the magic: ruby-common.mk sets variables that are then used by
ruby-extconf-rb.mk to create makefile targets (such as packagename/install:
...). Thus if we let ruby-extconf-rb.mk load ruby-common.mk for us, we don't
have the chance to overwrite the variables we want before they are used.  So we
need to load ruby-common.mk ourselves, change the variable and then include
ruby-ext-conf-rt.mk so only really required rules are built.



Modified: packages-wip/librevolution-ruby/trunk/debian/rules
===================================================================
--- packages-wip/librevolution-ruby/trunk/debian/rules	2006-11-08 22:30:39 UTC (rev 1062)
+++ packages-wip/librevolution-ruby/trunk/debian/rules	2006-11-09 10:10:45 UTC (rev 1063)
@@ -4,9 +4,15 @@
 # CDBS file to build the Ruby package.
 
 include /usr/share/cdbs/1/rules/debhelper.mk
+
+# Exception: this time, libevolution-ruby1.8 _is_ a dummy package.
+# We need to change those variables after loading ruby-common.mk and before
+# ruby-extconf-rb.mk
+include /usr/share/ruby-pkg-tools/1/class/ruby-common.mk
+DEB_RUBY_REAL_LIB_PACKAGES = librevolution-ruby1.8
+DEB_RUBY_DUMMY_LIB_PACKAGES = libevolution-ruby librevolution-ruby \
+			      libevolution-ruby1.8
 include /usr/share/ruby-pkg-tools/1/class/ruby-extconf-rb.mk
+
 include /usr/share/ruby-pkg-tools/1/rules/uploaders.mk
 
-# Exception: this time, libevolution-ruby1.8 _is_ a dummy package.
-DEB_RUBY_REAL_LIB_PACKAGES = librevolution-ruby1.8
-DEB_RUBY_DUMMY_LIB_PACKAGES = libevolution-ruby librevolution-ruby libevolution-ruby1.8




More information about the Pkg-ruby-extras-commits mailing list