Commit c8149285 authored by Ryan Niebur's avatar Ryan Niebur

add a ruby1.9 package (Closes: #528471)

parent 3e29f732
......@@ -3,6 +3,7 @@
#
SHELL = /bin/sh
RUBY = ruby
FRUBY = ruby
RM = rm
#### Start of system configuration section. ####
prefix = $(DESTDIR)/usr
......@@ -21,24 +22,24 @@ distclean: clean
realclean: distclean
install:
@$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' $(bindir)
@$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' $(libdir)
@$(FRUBY) -r ftools -e 'File::makedirs(*ARGV)' $(bindir)
@$(FRUBY) -r ftools -e 'File::makedirs(*ARGV)' $(libdir)
@for b in $(bins); do \
$(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0755, true)' \
$(FRUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0755, true)' \
$$b $(bindir); \
done
@for rb in $(libs); do \
$(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0644, true)'\
$(FRUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0644, true)'\
$$rb $(libdir); \
done
@mkdir $(libdir)/debian/
@for rb in $(libs_debian); do \
$(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0644, true)'\
$(FRUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0644, true)'\
$$rb $(libdir)/debian; \
done
@mkdir -p $(mandir)/man1
@for m in $(man1); do \
$(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0644, true)' \
$(FRUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0644, true)' \
$$m $(mandir)/man1; \
done
......
......@@ -11,8 +11,9 @@ dpkg-ruby (0.3.3) UNRELEASED; urgency=low
* fix README path and move it to libdpkg-ruby1.8 (Closes: 389273)
* set Standards-Version to 3.8.3
* clean up a bit, use dh7, etc
* add a ruby1.9 package (Closes: #528471)
-- Ryan Niebur <ryan@debian.org> Sun, 01 Nov 2009 14:07:55 -0800
-- Ryan Niebur <ryan@debian.org> Sun, 01 Nov 2009 14:20:41 -0800
dpkg-ruby (0.3.2) unstable; urgency=low
......
......@@ -3,7 +3,7 @@ Section: devel
Priority: optional
Maintainer: Ryan Niebur <ryan@debian.org>
Build-Depends: debhelper (>= 7.0.50~)
Build-Depends-Indep: ruby1.8, ruby1.8-dev, libapt-pkg-dev
Build-Depends-Indep: ruby1.8, ruby1.8-dev, libapt-pkg-dev, ruby1.9, ruby1.9-dev
Vcs-Git: git://git.ryan52.info/git/dpkg-ruby
Vcs-Browser: http://git.ryan52.info/?p=dpkg-ruby;a=summary
Standards-Version: 3.8.3
......@@ -24,3 +24,12 @@ Description: modules/classes for dpkg on ruby 1.8
Debian::Deb, Debian::Dsc, Debian::Archives, Debian::Sources,
Debian::Packages and Debian::Status classes on ruby 1.8.
Package: libdpkg-ruby1.9
Section: ruby
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: modules/classes for dpkg on ruby 1.9
It provides Debian::Dpkg and Debian::DpkgDeb modules and
Debian::Deb, Debian::Dsc, Debian::Archives, Debian::Sources,
Debian::Packages and Debian::Status classes on ruby 1.9.
......@@ -11,33 +11,43 @@ EXAMPLES=debian/libdpkg-ruby1.8.examples
%:
dh $@
19VERSION=$(shell ruby1.9 -rrbconfig -e 'puts Config::CONFIG["ruby_version"]')
override_dh_auto_build:
# Add here commands to compile the package.
$(MAKE) RUBY=$(RUBY)
#/usr/bin/docbook-to-man debian/dpkg-ruby.sgml > dpkg-ruby.1
$(RUBY) -C ext ./debian_version/extconf.rb
make -C ext
mkdir -p ext/ruby1.9 ext/ruby1.8
ruby1.9 -C ext/ruby1.9 ../debian_version/extconf.rb
ruby1.8 -C ext/ruby1.8 ../debian_version/extconf.rb
make -C ext/ruby1.9
make -C ext/ruby1.8
override_dh_auto_clean:
$(MAKE) clean RUBY=$(RUBY)
rm -f $(EXAMPLES)
[ ! -f ext/Makefile ] || make -C ext distclean
for i in install docs examples; do rm -f debian/libdpkg-ruby1.9.$$i; done
[ ! -f ext/ruby1.8/Makefile ] || make -C ext/ruby1.8 distclean
[ ! -f ext/ruby1.9/Makefile ] || make -C ext/ruby1.9 distclean
DESTDIR=$(CURDIR)/debian/tmp
override_dh_auto_install:
# mkdir -p `pwd`/debian/dpkg-ruby/`ruby -r mkmf -e 'puts $$libdir'`
# Add here commands to install the package into debian/dpkg-ruby.
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp RUBY=$(RUBY)
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp RUBY=ruby1.9
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp RUBY=ruby1.8
sh ./debian/fixshbang.sh debian/tmp $(RUBY)
# dpkg.rb as example only
-rm -f $(CURDIR)/debian/tmp/usr/bin/dpkg.rb
-rm -f $(CURDIR)/debian/tmp/usr/share/man/man1/dpkg.rb.1*
make -C ext install DESTDIR=$(DESTDIR) sitelibdir=$(DESTDIR)$(shell ruby1.8 -rrbconfig -e 'puts Config::CONFIG["rubylibdir"]')
make -C ext/ruby1.8 install DESTDIR=$(DESTDIR) sitelibdir=$(DESTDIR)$(shell ruby1.8 -rrbconfig -e 'puts Config::CONFIG["rubylibdir"]')
make -C ext/ruby1.9 install DESTDIR=$(DESTDIR) sitelibdir=$(DESTDIR)$(shell ruby1.9 -rrbconfig -e 'puts Config::CONFIG["rubylibdir"]')
ls -1d examples/* | grep -v CVS > $(EXAMPLES)
echo bin/dpkg.rb >> $(EXAMPLES)
override_dh_install:
for i in install docs examples; do cp debian/libdpkg-ruby1.8.$$i debian/libdpkg-ruby1.9.$$i; sed -i s/1.8/$(19VERSION)/g debian/libdpkg-ruby1.9.$$i; done
dh_install --sourcedir=$(CURDIR)/debian/tmp
override_dh_auto_test:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment