9c04ee7
--- alexandria-0.6.5+0.6.6alpha/Rakefile.prefix	2009-12-17 02:21:21.000000000 +0900
9c04ee7
+++ alexandria-0.6.5+0.6.6alpha/Rakefile	2009-12-17 02:30:48.000000000 +0900
9c04ee7
@@ -19,8 +19,9 @@
9c04ee7
 
9c04ee7
 stage_dir = ENV['DESTDIR'] || 'tmp'
9c04ee7
 
9c04ee7
+INSTALL_PREFIX = ENV['install_prefix']
9c04ee7
 PROJECT='alexandria'
9c04ee7
-PREFIX='/usr'
9c04ee7
+PREFIX="#{INSTALL_PREFIX}/usr"
9c04ee7
 SHARE = "#{PREFIX}/share"
9c04ee7
 
9c04ee7
 DATA_VERSION = '0.6.3'
9c04ee7
@@ -41,7 +42,7 @@
9c04ee7
 debinstall = FileInstallTask.new(:debian_install, stage_dir, true) do |i|
9c04ee7
 
9c04ee7
   i.install_exe('bin', 'bin/*', "#{PREFIX}/bin")
9c04ee7
-  i.install('lib', 'lib/**/*.rb', i.rubylib)
9c04ee7
+  i.install('lib', 'lib/**/*.rb', "#{INSTALL_PREFIX}" + i.rubylib)
9c04ee7
 
9c04ee7
   share_files = ['data/alexandria/**/*', 'data/gnome/**/*.*',
9c04ee7
                  'data/locale/**/*.mo', 'data/omf/**/*.omf',