Created
August 24, 2010 08:47
-
-
Save rkumar/547220 to your computer and use it in GitHub Desktop.
gemspec to create ncurses 1.2.4 gem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
PLUGIN = "ncurses" | |
NAME = "ncurses" | |
VERSION = "1.2.4" | |
AUTHOR = "Tobias Peters" | |
EMAIL = "t-peters@users.berlios.de" | |
HOMEPAGE = "http://ncurses-ruby.berlios.de/" | |
SUMMARY = "This wrapper provides access to the functions, macros, global variables and constants of the ncurses library. These are mapped to a Ruby Module named \"Ncurses\": Functions and external variables are implemented as singleton functions of the Module Ncurses." | |
spec = Gem::Specification.new do |s| | |
s.name = NAME | |
s.email = EMAIL | |
s.author = AUTHOR | |
s.version = VERSION | |
s.summary = SUMMARY | |
s.platform = Gem::Platform::RUBY | |
s.has_rdoc = false | |
s.homepage = HOMEPAGE | |
s.description = SUMMARY | |
s.autorequire = PLUGIN | |
s.require_paths = ["lib"] | |
s.files = Dir.glob("[A-Z]*") + Dir.glob("*.{c,h,rb}") + Dir.glob("{examples,lib}/**/*") | |
s.extensions = "extconf.rb" | |
end | |
# adapted by rkumar for ruby 1.9.2 ncurses (rbcurse widget library) | |
# save this file as ncurses.gemspec in same folder | |
# sudo gem build ncurses.gemspec | |
# sudo gem install --local ncurses-1.2.4.gem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order to successfully compile on OS X Snow Leopard, please replace existing CFLAGS line with this (in extconf.rb):
Then run:
ruby ./extconf.rb
make
make install
gem build ncurses124.gemspec
gem install --local ncurses-1.2.4.gem
go to examples folder and run:
Thanks to Ralf Papenkordt for this help.