Permalink
Browse files

Full implementation of popen. Remove old extensions, update Rakefile.

  • Loading branch information...
1 parent 712644d commit 6517d46ac3beb04b0ff16a57ab03dd7a74fa321a @tnm committed Jul 4, 2012
Showing with 410 additions and 818 deletions.
  1. +0 −11 Rakefile
  2. +0 −14 ext/extconf.rb
  3. +0 −466 ext/pygments.c
  4. +0 −54 lib/pygments/c.rb
  5. +0 −155 lib/pygments/ffi.rb
  6. +224 −0 lib/pygments/mentos.py
  7. +0 −90 lib/pygments/popen.py
  8. +142 −28 lib/pygments/popen.rb
  9. +44 −0 test/test_pygments.rb
View
@@ -11,16 +11,6 @@ Rake::GemPackageTask.new(GEMSPEC) do |pkg|
end
# ==========================================================
-# Ruby Extension
-# ==========================================================
-
-require 'rake/extensiontask'
-Rake::ExtensionTask.new('pygments_ext', GEMSPEC) do |ext|
- ext.ext_dir = 'ext'
-end
-task :build => :compile
-
-# ==========================================================
# Testing
# ==========================================================
@@ -29,7 +19,6 @@ Rake::TestTask.new 'test' do |t|
t.test_files = FileList['test/test_*.rb']
t.ruby_opts = ['-rubygems']
end
-task :test => :build
# ==========================================================
# Vendor
View
@@ -1,14 +0,0 @@
-require 'mkmf'
-
-python = %w[ 2.7 2.6 2.5 2.4 ].find do |version|
- have_library("python#{version}", 'Py_Initialize', "python#{version}/Python.h")
-end
-
-$CFLAGS << " -Wall "
-
-unless python
- $stderr.puts '*** could not find libpython or Python.h'
-else
- $defs << "-DPYGMENTS_PYTHON_VERSION=#{python.gsub('.','')}"
- create_makefile('pygments_ext')
-end
Oops, something went wrong.

0 comments on commit 6517d46

Please sign in to comment.