Hello, I'm trying to create a port for xapian-ruby which is needed to build other stuff.
This is my first try so don't get mad, anyway I've got into troubles... checking for library containing zlibVersion... -lz checking for uuid/uuid.h... no configure: error: uuid/uuid.h not found - required for chert and flint (you may need to install the uuid-dev, libuuid-devel or e2fsprogs-devel package) rake aborted! /data/objdir/ports/xapian-ruby/fake-i386/usr/local/lib/ruby/gems/1.8/gems/xapian-full-1.1.3.1/Rakefile:6:in `system!' (See full trace by running task with --trace) Gem files will remain installed in /data/objdir/ports/xapian-ruby/fake-i386/usr/local/lib/ruby/gems/1.8/gems/xapian-full-1.1.3.1 for inspection. Results logged to /data/objdir/ports/xapian-ruby/fake-i386/usr/local/lib/ruby/gems/1.8/gems/xapian-full-1.1.3.1/gem_make.out *** Error code 1 Stop in /data/myports/databases/xapian-ruby (line 82 of /usr/ports/lang/ruby/ruby.port.mk). *** Error code 1 Stop in /data/myports/databases/xapian-ruby (line 2335 of /usr/ports/infrastructure/mk/bsd.port.mk). al/lib/ruby/gems/1.8/gems/xapian-full-1.1.3.1/Rakefile # pkg_info -L uuid | grep uuid.h /usr/local/include/uuid.h How to modify Rakefile so it could find uuid.h? # cat /data/objdir/ports/xapian-ruby/fake-i386/usr/local/lib/ruby/gems/1.8/gems/xapian-full-1.1.3.1/Rakefil> require 'rbconfig' c = Config::CONFIG def system!(cmd) puts cmd system(cmd) or raise end ver = '1.1.3' core = "xapian-core-#{ver}" bindings = "xapian-bindings-#{ver}" xapian_config = "#{Dir.pwd}/#{core}/xapian-config" task :default do [core,bindings].each do |x| system! "tar -xzvf #{x}.tar.gz" end Dir.chdir core do system! "./configure" system! "make clean all" end Dir.chdir bindings do ENV['RUBY'] ||= "#{c['bindir']}/#{c['RUBY_INSTALL_NAME']}" ENV['XAPIAN_CONFIG'] = xapian_config system! "./configure --with-ruby" system! "make clean all" end system! "mkdir -p lib" system! "cp #{bindings}/ruby/.libs/_xapian.so lib" system! "cp #{bindings}/ruby/xapian.rb lib" end Thanks for tip. jirib