Import ruby-ffi-inliner 0.2.4

With ffi-inliner you can run C code within your ruby script:
* Mix C snippets in your Ruby code and gulp it on the fly!
* It's based on Ruby-FFI so the C code you inject is portable across
  Ruby implementations!
* Yep, it means that you can run it on JRuby too!
* Fast compilation through tcc
* But it can use the system's compiler (e.g. gcc) on those platforms
  that don't support tcc (e.g. OSX) or that don't have it installed
This commit is contained in:
jeremy 2010-12-20 18:05:12 +00:00
parent 1fed8cfbd5
commit b1b851b687
4 changed files with 73 additions and 0 deletions

View File

@ -0,0 +1,27 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/12/20 18:05:12 jeremy Exp $
COMMENT = embed C code in your ruby script
DISTNAME = ffi-inliner-0.2.4
CATEGORIES = devel
HOMEPAGE = http://github.com/remogatto/ffi-inliner
# MIT
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MODULES = lang/ruby
CONFIGURE_STYLE = ruby gem
BUILD_DEPENDS = ${RUN_DEPENDS}
RUN_DEPENDS = devel/ruby-ffi,${MODRUBY_FLAVOR}
REGRESS_DEPENDS = ${FULLPKGNAME}:${BUILD_PKGPATH}
MODRUBY_REGRESS = rspec
RSPEC_REGRESS_TARGET= spec/ffi-inliner/inliner_spec.rb
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (ffi-inliner-0.2.4.gem) = 8tmGKmF/CmeoFauigH+KhQ==
RMD160 (ffi-inliner-0.2.4.gem) = q+71V/e0tKytdKI0Csne0J4rjYs=
SHA1 (ffi-inliner-0.2.4.gem) = y6vprSyASORZWrtyWcK7AhQaQcI=
SHA256 (ffi-inliner-0.2.4.gem) = Fp+2QhfBWvGKt9wXtsYlJY/mHC152P9Ere/kg2W2XGI=
SIZE (ffi-inliner-0.2.4.gem) = 18432

View File

@ -0,0 +1,8 @@
With ffi-inliner you can run C code within your ruby script:
* Mix C snippets in your Ruby code and gulp it on the fly!
* It's based on Ruby-FFI so the C code you inject is portable across
Ruby implementations!
* Yep, it means that you can run it on JRuby too!
* Fast compilation through tcc
* But it can use the system's compiler (e.g. gcc) on those platforms
that don't support tcc (e.g. OSX) or that don't have it installed

View File

@ -0,0 +1,33 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/12/20 18:05:12 jeremy Exp $
${GEM_LIB}/cache/${DISTNAME}.gem
${GEM_LIB}/gems/${DISTNAME}/
${GEM_LIB}/gems/${DISTNAME}/.gitignore
${GEM_LIB}/gems/${DISTNAME}/History.txt
${GEM_LIB}/gems/${DISTNAME}/README.rdoc
${GEM_LIB}/gems/${DISTNAME}/Rakefile
${GEM_LIB}/gems/${DISTNAME}/examples/
${GEM_LIB}/gems/${DISTNAME}/examples/ex_1.rb
${GEM_LIB}/gems/${DISTNAME}/lib/
${GEM_LIB}/gems/${DISTNAME}/lib/ffi-inliner/
${GEM_LIB}/gems/${DISTNAME}/lib/ffi-inliner.rb
${GEM_LIB}/gems/${DISTNAME}/lib/ffi-inliner/inliner.rb
${GEM_LIB}/gems/${DISTNAME}/lib/ffi-inliner/version.rb
${GEM_LIB}/gems/${DISTNAME}/spec/
${GEM_LIB}/gems/${DISTNAME}/spec/ffi-inliner/
${GEM_LIB}/gems/${DISTNAME}/spec/ffi-inliner/inliner_spec.rb
${GEM_LIB}/gems/${DISTNAME}/spec/spec.opts
${GEM_LIB}/gems/${DISTNAME}/spec/spec_helper.rb
${GEM_LIB}/gems/${DISTNAME}/tasks/
${GEM_LIB}/gems/${DISTNAME}/tasks/ann.rake
${GEM_LIB}/gems/${DISTNAME}/tasks/bones.rake
${GEM_LIB}/gems/${DISTNAME}/tasks/gem.rake
${GEM_LIB}/gems/${DISTNAME}/tasks/notes.rake
${GEM_LIB}/gems/${DISTNAME}/tasks/post_load.rake
${GEM_LIB}/gems/${DISTNAME}/tasks/rdoc.rake
${GEM_LIB}/gems/${DISTNAME}/tasks/rubyforge.rake
${GEM_LIB}/gems/${DISTNAME}/tasks/setup.rb
${GEM_LIB}/gems/${DISTNAME}/tasks/spec.rake
${GEM_LIB}/gems/${DISTNAME}/tasks/svn.rake
${GEM_LIB}/gems/${DISTNAME}/tasks/test.rake
${GEM_LIB}/gems/${DISTNAME}/tasks/zentest.rake
${GEM_LIB}/specifications/${DISTNAME}.gemspec