pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/ruby-pycall



Module Name:    pkgsrc
Committed By:   ryoon
Date:           Sun Sep 20 08:34:37 UTC 2020

Added Files:
        pkgsrc/devel/ruby-pycall: DESCR Makefile PLIST distinfo
        pkgsrc/devel/ruby-pycall/patches: patch-lib_pycall_libpython_finder.rb

Log Message:
devel/ruby-pycall: import ruby27-pycall-1.3.1

This library provides the features to directly call and partially
interoperate with Python from the Ruby language. You can import
arbitrary Python modules into Ruby modules, call Python functions
with automatic type conversion from Ruby to Python.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/ruby-pycall/DESCR \
    pkgsrc/devel/ruby-pycall/Makefile pkgsrc/devel/ruby-pycall/PLIST \
    pkgsrc/devel/ruby-pycall/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/ruby-pycall/patches/patch-lib_pycall_libpython_finder.rb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/ruby-pycall/DESCR
diff -u /dev/null pkgsrc/devel/ruby-pycall/DESCR:1.1
--- /dev/null   Sun Sep 20 08:34:37 2020
+++ pkgsrc/devel/ruby-pycall/DESCR      Sun Sep 20 08:34:37 2020
@@ -0,0 +1,4 @@
+This library provides the features to directly call and partially
+interoperate with Python from the Ruby language. You can import
+arbitrary Python modules into Ruby modules, call Python functions
+with automatic type conversion from Ruby to Python.
Index: pkgsrc/devel/ruby-pycall/Makefile
diff -u /dev/null pkgsrc/devel/ruby-pycall/Makefile:1.1
--- /dev/null   Sun Sep 20 08:34:37 2020
+++ pkgsrc/devel/ruby-pycall/Makefile   Sun Sep 20 08:34:37 2020
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2020/09/20 08:34:37 ryoon Exp $
+
+DISTNAME=      pycall-1.3.1
+
+MAINTAINER=    ryoon%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/mrkn/pycall.rb
+COMMENT=       Calling Python functions from Ruby
+LICENSE=       mit
+
+SUBST_CLASSES+=                python
+SUBST_STAGE.python=    pre-configure
+SUBST_MESSAGE.python=  USe python command from pkgsrc
+SUBST_FILES.python=    lib/pycall/libpython/finder.rb
+SUBST_VARS.python=     PYTHONBIN
+
+.include "../../lang/ruby/gem.mk"
+.include "../../lang/python/pyversion.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/ruby-pycall/PLIST
diff -u /dev/null pkgsrc/devel/ruby-pycall/PLIST:1.1
--- /dev/null   Sun Sep 20 08:34:37 2020
+++ pkgsrc/devel/ruby-pycall/PLIST      Sun Sep 20 08:34:37 2020
@@ -0,0 +1,78 @@
+@comment $NetBSD: PLIST,v 1.1 2020/09/20 08:34:37 ryoon Exp $
+${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_EXTSDIR}/gem.build_complete
+${GEM_EXTSDIR}/pycall.${RUBY_DLEXT}
+${GEM_LIBDIR}/.github/workflows/ci.yml
+${GEM_LIBDIR}/.gitignore
+${GEM_LIBDIR}/.rspec
+${GEM_LIBDIR}/.travis.yml
+${GEM_LIBDIR}/CHANGES.md
+${GEM_LIBDIR}/Gemfile
+${GEM_LIBDIR}/LICENSE.txt
+${GEM_LIBDIR}/README.md
+${GEM_LIBDIR}/Rakefile
+${GEM_LIBDIR}/appveyor.yml
+${GEM_LIBDIR}/bin/console
+${GEM_LIBDIR}/bin/guard
+${GEM_LIBDIR}/bin/rspec
+${GEM_LIBDIR}/bin/runner
+${GEM_LIBDIR}/bin/setup
+${GEM_LIBDIR}/ci/travis_before_script.sh
+${GEM_LIBDIR}/ci/travis_install.sh
+${GEM_LIBDIR}/ci/travis_retry.sh
+${GEM_LIBDIR}/config/Guardfile
+${GEM_LIBDIR}/docker/Dockerfile
+${GEM_LIBDIR}/docker/Gemfile
+${GEM_LIBDIR}/docker/README.md
+${GEM_LIBDIR}/examples/classifier_comparison.rb
+${GEM_LIBDIR}/examples/datascience_rb_20170519.ipynb
+${GEM_LIBDIR}/examples/hist.rb
+${GEM_LIBDIR}/examples/notebooks/classifier_comparison.ipynb
+${GEM_LIBDIR}/examples/notebooks/forest_importances.ipynb
+${GEM_LIBDIR}/examples/notebooks/iruby_integration.ipynb
+${GEM_LIBDIR}/examples/notebooks/lorenz_attractor.ipynb
+${GEM_LIBDIR}/examples/notebooks/polar_axes.ipynb
+${GEM_LIBDIR}/examples/notebooks/sum_benchmarking.ipynb
+${GEM_LIBDIR}/examples/notebooks/xkcd_style.ipynb
+${GEM_LIBDIR}/examples/plot_forest_importances_faces.rb
+${GEM_LIBDIR}/examples/sum_benchmarking.rb
+${GEM_LIBDIR}/ext/pycall/extconf.rb
+${GEM_LIBDIR}/ext/pycall/gc.c
+${GEM_LIBDIR}/ext/pycall/libpython.c
+${GEM_LIBDIR}/ext/pycall/pycall.c
+${GEM_LIBDIR}/ext/pycall/pycall.h
+${GEM_LIBDIR}/ext/pycall/pycall_internal.h
+${GEM_LIBDIR}/ext/pycall/range.c
+${GEM_LIBDIR}/ext/pycall/ruby_wrapper.c
+${GEM_LIBDIR}/ext/pycall/thread.c
+${GEM_LIBDIR}/images/pycallrb_logo.png
+${GEM_LIBDIR}/images/pycallrb_logo_200.png
+${GEM_LIBDIR}/lib/pycall.rb
+${GEM_LIBDIR}/lib/pycall.${RUBY_DLEXT}
+${GEM_LIBDIR}/lib/pycall/dict.rb
+${GEM_LIBDIR}/lib/pycall/error.rb
+${GEM_LIBDIR}/lib/pycall/gc_guard.rb
+${GEM_LIBDIR}/lib/pycall/import.rb
+${GEM_LIBDIR}/lib/pycall/init.rb
+${GEM_LIBDIR}/lib/pycall/iruby_helper.rb
+${GEM_LIBDIR}/lib/pycall/libpython.rb
+${GEM_LIBDIR}/lib/pycall/libpython/finder.rb
+${GEM_LIBDIR}/lib/pycall/libpython/pyobject_struct.rb
+${GEM_LIBDIR}/lib/pycall/libpython/pytypeobject_struct.rb
+${GEM_LIBDIR}/lib/pycall/list.rb
+${GEM_LIBDIR}/lib/pycall/pretty_print.rb
+${GEM_LIBDIR}/lib/pycall/pyerror.rb
+${GEM_LIBDIR}/lib/pycall/pymodule_wrapper.rb
+${GEM_LIBDIR}/lib/pycall/pyobject_wrapper.rb
+${GEM_LIBDIR}/lib/pycall/python/PyCall/__init__.py
+${GEM_LIBDIR}/lib/pycall/python/PyCall/six.py
+${GEM_LIBDIR}/lib/pycall/python/investigator.py
+${GEM_LIBDIR}/lib/pycall/pytypeobject_wrapper.rb
+${GEM_LIBDIR}/lib/pycall/set.rb
+${GEM_LIBDIR}/lib/pycall/slice.rb
+${GEM_LIBDIR}/lib/pycall/version.rb
+${GEM_LIBDIR}/lib/pycall/wrapper_object_cache.rb
+${GEM_LIBDIR}/pycall.gemspec
+${GEM_LIBDIR}/tasks/docker.rake
+${GEM_LIBDIR}/tasks/pycall.rake
+${GEM_HOME}/specifications/${GEM_NAME}.gemspec
Index: pkgsrc/devel/ruby-pycall/distinfo
diff -u /dev/null pkgsrc/devel/ruby-pycall/distinfo:1.1
--- /dev/null   Sun Sep 20 08:34:37 2020
+++ pkgsrc/devel/ruby-pycall/distinfo   Sun Sep 20 08:34:37 2020
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/09/20 08:34:37 ryoon Exp $
+
+SHA1 (pycall-1.3.1.gem) = c42bf7d95baadd0e4c7c1f0361e3218fa3c683ea
+RMD160 (pycall-1.3.1.gem) = 643a59c8c6d56c356a4c1359e10d78c85be6b51f
+SHA512 (pycall-1.3.1.gem) = 9fb65b0e9659455ae90f4b34d12f13c45e4d7e4c4efab5df9630ab4bfbef941cc3ee4d31ad535f256a8a8e6945d69b15fd9db11f949876800b7743e1d3c3d495
+Size (pycall-1.3.1.gem) = 1577984 bytes
+SHA1 (patch-lib_pycall_libpython_finder.rb) = 5f2903481232920acdb394e7b278d8afbe0b6ee5

Index: pkgsrc/devel/ruby-pycall/patches/patch-lib_pycall_libpython_finder.rb
diff -u /dev/null pkgsrc/devel/ruby-pycall/patches/patch-lib_pycall_libpython_finder.rb:1.1
--- /dev/null   Sun Sep 20 08:34:37 2020
+++ pkgsrc/devel/ruby-pycall/patches/patch-lib_pycall_libpython_finder.rb       Sun Sep 20 08:34:37 2020
@@ -0,0 +1,14 @@
+$NetBSD: patch-lib_pycall_libpython_finder.rb,v 1.1 2020/09/20 08:34:37 ryoon Exp $
+
+* Detect Python command from pkgsrc.
+
+--- lib/pycall/libpython/finder.rb.orig        2020-09-18 09:47:08.145777201 +0000
++++ lib/pycall/libpython/finder.rb
+@@ -20,6 +20,7 @@ module PyCall
+ 
+       class << self
+         DEFAULT_PYTHON = [
++          -'@PYTHONBIN@',
+           -'python3',
+           -'python',
+         ].freeze



Home | Main Index | Thread Index | Old Index