[DRE-commits] r2341 - in packages/libxtemplate-ruby1.8/trunk/debian: . patches

lucas at alioth.debian.org lucas at alioth.debian.org
Mon Dec 24 14:42:01 UTC 2007


Author: lucas
Date: 2007-12-24 14:42:01 +0000 (Mon, 24 Dec 2007)
New Revision: 2341

Added:
   packages/libxtemplate-ruby1.8/trunk/debian/patches/
   packages/libxtemplate-ruby1.8/trunk/debian/patches/00list
   packages/libxtemplate-ruby1.8/trunk/debian/patches/10_fix-ruby-path.dpatch
Modified:
   packages/libxtemplate-ruby1.8/trunk/debian/control
   packages/libxtemplate-ruby1.8/trunk/debian/rules
Log:
started to convert libxtemplate-ruby to dpatch

Modified: packages/libxtemplate-ruby1.8/trunk/debian/control
===================================================================
--- packages/libxtemplate-ruby1.8/trunk/debian/control	2007-12-24 14:25:48 UTC (rev 2340)
+++ packages/libxtemplate-ruby1.8/trunk/debian/control	2007-12-24 14:42:01 UTC (rev 2341)
@@ -8,6 +8,23 @@
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-ruby-extras/packages/libxtemplate-ruby1.8/trunk/
 Vcs-Svn: svn://svn.debian.org/pkg-ruby-extras/packages/libxtemplate-ruby1.8/trunk/
 
+Package: libxtemplate-ruby
+Architecture: all
+Depends: libxtemplate-ruby1.8
+Description: Lightweight XML templating engine like Amrita and XSLT
+ XTemplate is a package of Ruby libraries and programs which formats a
+ XML/HTML document according to a Ruby's data structure which consists of
+ Hash and Array.  This idea comes from Amrita.  So we do not need to
+ explicitly write iterations like for-loop in a template.  Such iterations
+ are indicated by an expansion data.  We can specify a data ID in XPath like
+ expression,  and reconstruct a given data in a template without writing
+ Ruby programs.  This mechanism provides interoperablity between a template
+ and a Ruby script.  We can use XML/YAML documents as an expansion data,
+ since it is automatically converted to a Ruby's Hash object.
+ .
+ This is a dummy package to install the Mahoro library bindings for
+ the default version of Ruby.
+
 Package: libxtemplate-ruby1.8
 Architecture: any
 Depends: ruby1.8, librexml-ruby1.8

Added: packages/libxtemplate-ruby1.8/trunk/debian/patches/00list
===================================================================
--- packages/libxtemplate-ruby1.8/trunk/debian/patches/00list	                        (rev 0)
+++ packages/libxtemplate-ruby1.8/trunk/debian/patches/00list	2007-12-24 14:42:01 UTC (rev 2341)
@@ -0,0 +1 @@
+10_fix-ruby-path

Added: packages/libxtemplate-ruby1.8/trunk/debian/patches/10_fix-ruby-path.dpatch
===================================================================
--- packages/libxtemplate-ruby1.8/trunk/debian/patches/10_fix-ruby-path.dpatch	                        (rev 0)
+++ packages/libxtemplate-ruby1.8/trunk/debian/patches/10_fix-ruby-path.dpatch	2007-12-24 14:42:01 UTC (rev 2341)
@@ -0,0 +1,15 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10_fix-ruby-path.dpatch by Lucas Nussbaum <lucas at lucas-nussbaum.net>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix ruby's path in xtemplate's binary.
+
+ at DPATCH@
+--- ../tarballs/xtemplate-0.8.0/bin/xtemplate	2003-10-19 17:32:00.000000000 +0200
++++ bin/xtemplate	2007-12-08 13:06:50.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby-1.8
++#!/usr/bin/ruby1.8
+ 
+ require 'xtemplate'
+ 

Modified: packages/libxtemplate-ruby1.8/trunk/debian/rules
===================================================================
--- packages/libxtemplate-ruby1.8/trunk/debian/rules	2007-12-24 14:25:48 UTC (rev 2340)
+++ packages/libxtemplate-ruby1.8/trunk/debian/rules	2007-12-24 14:42:01 UTC (rev 2341)
@@ -2,21 +2,17 @@
 
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/ruby-pkg-tools/1/class/ruby-setup-rb.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
 
-#RUBY     := ruby1.8
+RUBY     := ruby1.8
 
-#destdir  := $(shell pwd)/debian/tmp
-#bindir   := $(shell $(RUBY) -r rbconfig -e 'print Config::CONFIG["bindir"]')
-#libdir   := $(shell $(RUBY) -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
-#archdir  := $(shell $(RUBY) -r rbconfig -e 'print Config::CONFIG["archdir"]')
+destdir  := $(shell pwd)/debian/tmp
+bindir   := $(shell $(RUBY) -r rbconfig -e 'print Config::CONFIG["bindir"]')
+libdir   := $(shell $(RUBY) -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
+archdir  := $(shell $(RUBY) -r rbconfig -e 'print Config::CONFIG["archdir"]')
 
-DEB_RUBY_SETUP_CMD = install.rb
-#DEB_RUBY_CONFIG_ARGS = --prefix=/usr \
-#	--site-ruby=/usr/lib/ruby/1.8 \
-#	--with-ext
-#DEB_RUBY_CONFIG_ARGS = --prefix=/usr \
-#	--with-ext \
-#	--bin-dir=$(bindir) \
-#	--rb-dir=$(libdir) \
-#	--so-dir=$(archdir)
-DEB_RUBY_CLEAN_TARGET = clean
+DEB_RUBY_CONFIG_ARGS = --prefix=/usr \
+	--bin-dir=$(bindir) \
+	--rb-dir=$(libdir) \
+	--so-dir=$(archdir)
+#DEB_RUBY_CLEAN_TARGET = clean




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