Changeset 40
Legend:
- Unmodified
- Added
- Removed
-
trunk/INSTALL
r38 r40 7 7 already have it installed. If you use Rubygems, it should be as simple as: 8 8 9 $ sudo gem install mkrf9 $ sudo gem install mkrf 10 10 11 11 Once you have that installed, patch and install the Abiword link-grammar 12 12 library that comes with this source (or download it yourself if you wish): 13 13 14 $ tar -xvzf link-grammar-4.3.9.tar.gz15 $ cd link-grammar-4.3.916 17 # If you want the LinkParser::Linkage#current_sublinkage method to work, you18 # must apply the included patch. If you don't care about that method, you19 # can skip the next step:20 21 $ patch -p1 < ../link-grammar-4.3.9.patch22 $ ./configure; make; sudo make install23 $ cd ..14 $ tar -xvzf link-grammar-4.3.9.tar.gz 15 $ cd link-grammar-4.3.9 16 17 # If you want the LinkParser::Linkage#current_sublinkage method to work, you 18 # must apply the included patch. If you don't care about that method, you 19 # can skip the next step: 20 21 $ patch -p1 < ../link-grammar-4.3.9.patch 22 $ ./configure; make; sudo make install 23 $ cd .. 24 24 25 25 Now build, test, and install the Ruby library: 26 26 27 $ rake28 $ sudo rake install27 $ rake 28 $ sudo rake install 29 29 30 30 That's it! -
trunk/Rakefile
r39 r40 50 50 PKG_FILE_NAME = "#{PKG_NAME.downcase}-#{PKG_VERSION}" 51 51 GEM_FILE_NAME = "#{PKG_FILE_NAME}.gem" 52 53 EXTCONF = EXTDIR + 'extconf.rb' 52 54 53 55 ARTIFACTS_DIR = Pathname.new( ENV['CC_BUILD_ARTIFACTS'] || 'artifacts' ) … … 194 196 gem.bindir = BINDIR.relative_path_from(BASEDIR).to_s 195 197 196 if (EXTDIR + 'extconf.rb').exist?197 gem.extensions << EXT DIR + 'extconf.rb'198 if EXTCONF.exist? 199 gem.extensions << EXTCONF.relative_path_from( BASEDIR ).to_s 198 200 end 199 201
