[Pkg-ruby-extras-maintainers] r689 - tools/gemsd
Daigo Moriwaki
daigo-guest at costa.debian.org
Tue Jul 18 13:23:44 UTC 2006
Author: daigo-guest
Date: 2006-07-18 13:23:43 +0000 (Tue, 18 Jul 2006)
New Revision: 689
Added:
tools/gemsd/debian-specific.yaml
Modified:
tools/gemsd/dh_rubygems.rb
Log:
developing a way to write build-depends.
Added: tools/gemsd/debian-specific.yaml
===================================================================
--- tools/gemsd/debian-specific.yaml 2006-07-17 16:34:07 UTC (rev 688)
+++ tools/gemsd/debian-specific.yaml 2006-07-18 13:23:43 UTC (rev 689)
@@ -0,0 +1,47 @@
+---
+cast:
+ build-depends: []
+chemruby:
+ build-depends: []
+ctapi:
+ build-depends: []
+digest-m4p:
+ build-depends: []
+dnssd:
+ build-depends:
+ - libavahi-client-dev
+gettext:
+ build-depends: []
+icu4r:
+ build-depends:
+ - libicu34-dev
+imlib2-ruby:
+ debianized: libimlib2-ruby
+posixtimer:
+ build-depends: []
+random:
+ build-depends: []
+ruby-gdchart:
+ build-depends:
+ - libgd2-xpm-dev
+ - libfreetype6-dev
+ - libjpeg62-dev
+ - libpng3-dev
+ - zlib1g-dev
+ - libgdchart-gd2-dev
+ruby-odeum:
+ build-depends:
+ - zlib1g-dev
+ruby-prof:
+ build-depends: []
+sys-uname:
+ build-depends: []
+sendfile:
+ build-depends: []
+uuid4r:
+ build-depends:
+ - libossp-uuid-dev
+x10-cm17a:
+ build-depends: []
+mongrel:
+ build-depends: []
Modified: tools/gemsd/dh_rubygems.rb
===================================================================
--- tools/gemsd/dh_rubygems.rb 2006-07-17 16:34:07 UTC (rev 688)
+++ tools/gemsd/dh_rubygems.rb 2006-07-18 13:23:43 UTC (rev 689)
@@ -35,6 +35,18 @@
require 'fileutils'
require 'rbconfig'
+# debian-specific.yaml
+def load_debian_specific(gem_name)
+ file = File.join(File.dirname(__FILE__), "debian-specific.yaml")
+ if File.exists?(file)
+ yaml = YAML::load_file(file)
+ return yaml[gem_name.downcase]
+ else
+ return {}
+ end
+end
+
+
gem_file = ARGV.shift || Dir.glob('*.gem').first
begin
spec = Gem::Format.from_file_by_path(gem_file).spec
@@ -43,6 +55,8 @@
exit(1)
end
+options = load_debian_specific(spec.name)
+
deb_name_prefix = 'rubygems-'
deb_version_suffix = '-1' # '-0+0' + (ENV['USER'] || ENV['LOGNAME'] || '') + '.1'
@@ -53,7 +67,9 @@
spec.dependencies.collect {|dep| deb_name_prefix + dep.to_s.downcase}
deb_builddeps =
['debhelper (>> 5)', 'dh-make', 'ruby1.8', 'ruby1.8-dev', 'rubygems (>= 0.9.0-2)'] # + deb_depends
+deb_builddeps += options['build-depends'] if options['build-depends'] && !options['build-depends'].empty?
+
deb_summary = spec.summary
deb_description = spec.description
if deb_description.nil? || deb_description.empty?
More information about the pkg-ruby-extras-maintainers
mailing list