git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
appliance: udev-174 moves udevd to /lib/udev/udevd (instead of /sbin/udevd)
[libguestfs.git]
/
ruby
/
Rakefile.in
diff --git
a/ruby/Rakefile.in
b/ruby/Rakefile.in
index
fc95f3f
..
ccbcae1
100644
(file)
--- a/
ruby/Rakefile.in
+++ b/
ruby/Rakefile.in
@@
-24,26
+24,24
@@
require 'rake/gempackagetask'
PKG_NAME='@PACKAGE_NAME@'
PKG_VERSION='@PACKAGE_VERSION@'
PKG_NAME='@PACKAGE_NAME@'
PKG_VERSION='@PACKAGE_VERSION@'
-EXT_CONF='ext/guestfs/extconf.rb'
-MAKEFILE='ext/guestfs/Makefile'
-GUESTFS_MODULE='ext/guestfs/_guestfs.so'
-GUESTFS_SRC='ext/guestfs/_guestfs.c'
+EXT_CONF='
@srcdir@/
ext/guestfs/extconf.rb'
+MAKEFILE='
@builddir@/
ext/guestfs/Makefile'
+GUESTFS_MODULE='
@builddir@/
ext/guestfs/_guestfs.so'
+GUESTFS_SRC='
@srcdir@/
ext/guestfs/_guestfs.c'
-CLEAN.include [ "ext/**/*.o", GUESTFS_MODULE,
- "ext/**/depend" ]
+CLEAN.include [ "
@builddir@/
ext/**/*.o", GUESTFS_MODULE,
+ "
@builddir@/
ext/**/depend" ]
-CLOBBER.include [ "
config.save", "
ext/**/mkmf.log",
+CLOBBER.include [ "
@builddir@/config.save", "@builddir@/
ext/**/mkmf.log",
MAKEFILE ]
# Build locally
file MAKEFILE => EXT_CONF do |t|
MAKEFILE ]
# Build locally
file MAKEFILE => EXT_CONF do |t|
- Dir::chdir(File::dirname(EXT_CONF)) do
- unless sh "ruby #{File::basename(EXT_CONF)}"
- $stderr.puts "Failed to run extconf"
- break
- end
- end
+ unless sh "top_srcdir=$(pwd)/@top_srcdir@; top_builddir=$(pwd)/@top_builddir@; export ARCHFLAGS=\"-arch $(uname -m)\"; cd #{File::dirname(EXT_CONF)}; ruby #{File::basename(EXT_CONF)} --with-_guestfs-include=$top_srcdir/src --with-_guestfs-lib=$top_builddir/src/.libs"
+ $stderr.puts "Failed to run extconf"
+ break
+ end
end
file GUESTFS_MODULE => [ MAKEFILE, GUESTFS_SRC ] do |t|
Dir::chdir(File::dirname(EXT_CONF)) do
end
file GUESTFS_MODULE => [ MAKEFILE, GUESTFS_SRC ] do |t|
Dir::chdir(File::dirname(EXT_CONF)) do
@@
-62,10
+60,23
@@
Rake::TestTask.new(:test) do |t|
end
task :test => :build
end
task :test => :build
+RDOC_FILES = FileList[
+ "README.rdoc",
+ "lib/**/*.rb",
+ "ext/**/*.[ch]"
+]
+
Rake::RDocTask.new do |rd|
rd.main = "README.rdoc"
rd.rdoc_dir = "doc/site/api"
Rake::RDocTask.new do |rd|
rd.main = "README.rdoc"
rd.rdoc_dir = "doc/site/api"
- rd.rdoc_files.include("README.rdoc", "lib/**/*.rb", "ext/**/*.[ch]")
+ rd.rdoc_files.include(RDOC_FILES)
+end
+
+Rake::RDocTask.new(:ri) do |rd|
+ rd.main = "README.rdoc"
+ rd.rdoc_dir = "doc/ri"
+ rd.options << "--ri-system"
+ rd.rdoc_files.include(RDOC_FILES)
end
# Package tasks
end
# Package tasks
@@
-86,7
+97,7
@@
SPEC = Gem::Specification.new do |s|
s.name = PKG_NAME
s.version = PKG_VERSION
s.email = "rjones@redhat.com"
s.name = PKG_NAME
s.version = PKG_VERSION
s.email = "rjones@redhat.com"
- s.homepage = "http://
et.redhat.com/~rjones/libguestfs
/"
+ s.homepage = "http://
libguestfs.org
/"
s.summary = "Ruby bindings for libguestfs"
s.files = PKG_FILES
s.autorequire = "guestfs"
s.summary = "Ruby bindings for libguestfs"
s.files = PKG_FILES
s.autorequire = "guestfs"