Changeset 40

Show
Ignore:
Timestamp:
11/18/08 08:53:56 (7 weeks ago)
Author:
deveiant
Message:

Updated the build system to fix the problems with building the Gem.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/INSTALL

    r38 r40  
    77already have it installed. If you use Rubygems, it should be as simple as: 
    88 
    9   $ sudo gem install mkrf 
     9    $ sudo gem install mkrf 
    1010 
    1111Once you have that installed, patch and install the Abiword link-grammar 
    1212library that comes with this source (or download it yourself if you wish): 
    1313 
    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 .. 
     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 .. 
    2424 
    2525Now build, test, and install the Ruby library: 
    2626 
    27   $ rake 
    28   $ sudo rake install 
     27    $ rake 
     28    $ sudo rake install 
    2929 
    3030That's it! 
  • trunk/Rakefile

    r39 r40  
    5050PKG_FILE_NAME = "#{PKG_NAME.downcase}-#{PKG_VERSION}" 
    5151GEM_FILE_NAME = "#{PKG_FILE_NAME}.gem" 
     52 
     53EXTCONF       = EXTDIR + 'extconf.rb' 
    5254 
    5355ARTIFACTS_DIR = Pathname.new( ENV['CC_BUILD_ARTIFACTS'] || 'artifacts' ) 
     
    194196    gem.bindir            = BINDIR.relative_path_from(BASEDIR).to_s 
    195197 
    196     if (EXTDIR + 'extconf.rb').exist? 
    197         gem.extensions << EXTDIR + 'extconf.rb' 
     198    if EXTCONF.exist? 
     199        gem.extensions << EXTCONF.relative_path_from( BASEDIR ).to_s 
    198200    end 
    199201