From f54864c9670d3198369cf0aa0d2a189aba02152e Mon Sep 17 00:00:00 2001 From: steven Date: Fri, 8 Dec 2006 23:01:17 +0000 Subject: [PATCH] import p5-Inline 0.44 The Inline module allows you to put source code from other programming languages directly "inline" in a Perl script or module. The code is automatically compiled as needed, and then loaded for immediate access from Perl. from Andreas Bihlmaier --- devel/p5-Inline/Makefile | 19 +++ devel/p5-Inline/distinfo | 4 + devel/p5-Inline/patches/patch-C_Makefile_PL | 16 +++ devel/p5-Inline/pkg/DESCR | 17 +++ devel/p5-Inline/pkg/PLIST | 130 ++++++++++++++++++++ 5 files changed, 186 insertions(+) create mode 100644 devel/p5-Inline/Makefile create mode 100644 devel/p5-Inline/distinfo create mode 100644 devel/p5-Inline/patches/patch-C_Makefile_PL create mode 100644 devel/p5-Inline/pkg/DESCR create mode 100644 devel/p5-Inline/pkg/PLIST diff --git a/devel/p5-Inline/Makefile b/devel/p5-Inline/Makefile new file mode 100644 index 00000000000..a76e3410eb2 --- /dev/null +++ b/devel/p5-Inline/Makefile @@ -0,0 +1,19 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/12/08 23:01:17 steven Exp $ + +COMMENT= "write Perl subroutines in other programming languages" + +MODULES= cpan +DISTNAME= Inline-0.44 +CATEGORIES= devel + +MAINTAINER= Andreas Bihlmaier + +# perl +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +RUN_DEPENDS= ::devel/p5-Parse-RecDescent + +.include diff --git a/devel/p5-Inline/distinfo b/devel/p5-Inline/distinfo new file mode 100644 index 00000000000..f57a42a935f --- /dev/null +++ b/devel/p5-Inline/distinfo @@ -0,0 +1,4 @@ +MD5 (Inline-0.44.tar.gz) = 840f47d9b6cef39e68370faf9dceab2c +RMD160 (Inline-0.44.tar.gz) = ed7b0c1a8d63d021501699a1bcb0916a1dbe1a5b +SHA1 (Inline-0.44.tar.gz) = a6bfcf271325cb8c4bfca497427d67b2b2f795ef +SIZE (Inline-0.44.tar.gz) = 91450 diff --git a/devel/p5-Inline/patches/patch-C_Makefile_PL b/devel/p5-Inline/patches/patch-C_Makefile_PL new file mode 100644 index 00000000000..d2a75376638 --- /dev/null +++ b/devel/p5-Inline/patches/patch-C_Makefile_PL @@ -0,0 +1,16 @@ +--- C/Makefile.PL.orig Mon Dec 4 17:14:45 2006 ++++ C/Makefile.PL Mon Dec 4 17:15:46 2006 +@@ -55,12 +55,7 @@ + # ' + } + +-my $answer = ''; +-my $default = $found ? "y" : "n"; +-while (1) { +- $answer = prompt ('Do you want to install Inline::C?', $default); +- last if $answer =~ /^(y|yes|n|no)$/i; +-} ++my $answer = 'y'; + + if ($answer =~ /^(y|yes)$/i) { + WriteMakefile( diff --git a/devel/p5-Inline/pkg/DESCR b/devel/p5-Inline/pkg/DESCR new file mode 100644 index 00000000000..6c903b03ba3 --- /dev/null +++ b/devel/p5-Inline/pkg/DESCR @@ -0,0 +1,17 @@ +The Inline module allows you to put source code from other programming +languages directly "inline" in a Perl script or module. The code is +automatically compiled as needed, and then loaded for immediate access +from Perl. + +Inline saves you from the hassle of having to write and compile your own +glue code using facilities like XS or SWIG. Simply type the code where you +want it and run your Perl as normal. All the hairy details are handled for +you. The compilation and installation of your code chunks all happen +transparently; all you will notice is the delay of compilation on the +first run. + +The Inline code only gets compiled the first time you run it (or whenever +it is modified) so you only take the performance hit once. Code that is +Inlined into distributed modules (like on the CPAN) will get compiled when +the module is installed, so the end user will never notice the compilation +time. diff --git a/devel/p5-Inline/pkg/PLIST b/devel/p5-Inline/pkg/PLIST new file mode 100644 index 00000000000..1f2a6466ac9 --- /dev/null +++ b/devel/p5-Inline/pkg/PLIST @@ -0,0 +1,130 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2006/12/08 23:01:17 steven Exp $ +${P5SITE}/Inline/ +${P5SITE}/Inline-API.pod +${P5SITE}/Inline-FAQ.pod +${P5SITE}/Inline-Support.pod +${P5SITE}/Inline.pm +${P5SITE}/Inline.pod +${P5SITE}/Inline/C/ +${P5SITE}/Inline/C-Cookbook.pod +${P5SITE}/Inline/C.pm +${P5SITE}/Inline/C.pod +${P5SITE}/Inline/C/ParseRecDescent.pm +${P5SITE}/Inline/C/ParseRegExp.pm +${P5SITE}/Inline/Foo.pm +${P5SITE}/Inline/MakeMaker/ +${P5SITE}/Inline/MakeMaker.pm +${P5SITE}/Inline/MakeMaker/Changes +${P5SITE}/Inline/denter.pm +${P5SITE}/auto/ +${P5SITE}/auto/Inline/ +${P5SITE}/auto/Inline/M01_usage_use.al +${P5SITE}/auto/Inline/M02_usage.al +${P5SITE}/auto/Inline/M03_usage_bind.al +${P5SITE}/auto/Inline/M04_error_nocode.al +${P5SITE}/auto/Inline/M05_error_eval.al +${P5SITE}/auto/Inline/M06_code_file_failed_open.al +${P5SITE}/auto/Inline/M07_code_file_does_not_exist.al +${P5SITE}/auto/Inline/M08_no_DATA_source_code.al +${P5SITE}/auto/Inline/M09_marker_mismatch.al +${P5SITE}/auto/Inline/M10_usage_WITH_USING.al +${P5SITE}/auto/Inline/M11_usage_DIRECTORY.al +${P5SITE}/auto/Inline/M12_usage_NAME.al +${P5SITE}/auto/Inline/M13_usage_VERSION.al +${P5SITE}/auto/Inline/M14_usage_Config.al +${P5SITE}/auto/Inline/M15_usage_install_directory.al +${P5SITE}/auto/Inline/M16_DIRECTORY_mkdir_failed.al +${P5SITE}/auto/Inline/M17_config_open_failed.al +${P5SITE}/auto/Inline/M18_error_old_version.al +${P5SITE}/auto/Inline/M19_usage_language.al +${P5SITE}/auto/Inline/M20_config_creation_failed.al +${P5SITE}/auto/Inline/M21_opendir_failed.al +${P5SITE}/auto/Inline/M22_usage_register.al +${P5SITE}/auto/Inline/M23_usage_alias_used.al +${P5SITE}/auto/Inline/M24_open_for_output_failed.al +${P5SITE}/auto/Inline/M25_no_WITH_support.al +${P5SITE}/auto/Inline/M26_error_version_without_name.al +${P5SITE}/auto/Inline/M27_module_not_indexed.al +${P5SITE}/auto/Inline/M28_error_grokking_path.al +${P5SITE}/auto/Inline/M29_error_relative_path.al +${P5SITE}/auto/Inline/M30_error_no_obj.al +${P5SITE}/auto/Inline/M31_inline_open_failed.al +${P5SITE}/auto/Inline/M32_error_md5_validation.al +${P5SITE}/auto/Inline/M33_error_old_inline_version.al +${P5SITE}/auto/Inline/M34_error_incorrect_version.al +${P5SITE}/auto/Inline/M35_error_no_object_file.al +${P5SITE}/auto/Inline/M36_usage_install_main.al +${P5SITE}/auto/Inline/M37_usage_install_auto.al +${P5SITE}/auto/Inline/M38_usage_install_name.al +${P5SITE}/auto/Inline/M39_usage_install_version.al +${P5SITE}/auto/Inline/M40_usage_install_badname.al +${P5SITE}/auto/Inline/M41_usage_install_version_mismatch.al +${P5SITE}/auto/Inline/M42_usage_loader.al +${P5SITE}/auto/Inline/M43_error_bootstrap.al +${P5SITE}/auto/Inline/M45_usage_with.al +${P5SITE}/auto/Inline/M46_usage_with_bad.al +${P5SITE}/auto/Inline/M47_invalid_config_option.al +${P5SITE}/auto/Inline/M48_usage_shortcuts.al +${P5SITE}/auto/Inline/M49_usage_unsafe.al +${P5SITE}/auto/Inline/M51_unused_DATA.al +${P5SITE}/auto/Inline/M52_invalid_filter.al +${P5SITE}/auto/Inline/M53_mkdir_failed.al +${P5SITE}/auto/Inline/M54_rmdir_failed.al +${P5SITE}/auto/Inline/M55_unlink_failed.al +${P5SITE}/auto/Inline/M56_no_DIRECTORY_found.al +${P5SITE}/auto/Inline/M57_wrong_architecture.al +${P5SITE}/auto/Inline/M58_site_install.al +${P5SITE}/auto/Inline/M59_bad_inline_file.al +${P5SITE}/auto/Inline/M60_no_inline_files.al +${P5SITE}/auto/Inline/M61_not_parsed.al +${P5SITE}/auto/Inline/M62_invalid_config_file.al +${P5SITE}/auto/Inline/M63_no_source.al +${P5SITE}/auto/Inline/M64_install_not_c.al +${P5SITE}/auto/Inline/_mkdir.al +${P5SITE}/auto/Inline/_rmtree.al +${P5SITE}/auto/Inline/autosplit.ix +${P5SITE}/auto/Inline/check_config_file.al +${P5SITE}/auto/Inline/check_module.al +${P5SITE}/auto/Inline/clean_build.al +${P5SITE}/auto/Inline/create_config_file.al +${P5SITE}/auto/Inline/denter/ +${P5SITE}/auto/Inline/denter/M01_invalid_indent_width.al +${P5SITE}/auto/Inline/denter/M02_no_key_end_marker.al +${P5SITE}/auto/Inline/denter/M03_no_value_end_marker.al +${P5SITE}/auto/Inline/denter/M04_mismatched_quotes.al +${P5SITE}/auto/Inline/denter/M05_invalid_key_value.al +${P5SITE}/auto/Inline/denter/M06_invalid_indent_level.al +${P5SITE}/auto/Inline/denter/M07_invalid_scalar_value.al +${P5SITE}/auto/Inline/denter/_print_ref.al +${P5SITE}/auto/Inline/denter/autosplit.ix +${P5SITE}/auto/Inline/denter/indent.al +${P5SITE}/auto/Inline/denter/indent_array.al +${P5SITE}/auto/Inline/denter/indent_data.al +${P5SITE}/auto/Inline/denter/indent_hash.al +${P5SITE}/auto/Inline/denter/indent_name.al +${P5SITE}/auto/Inline/denter/indent_ref.al +${P5SITE}/auto/Inline/denter/indent_scalar.al +${P5SITE}/auto/Inline/denter/indent_undef.al +${P5SITE}/auto/Inline/denter/indent_value.al +${P5SITE}/auto/Inline/env_untaint.al +${P5SITE}/auto/Inline/filter.al +${P5SITE}/auto/Inline/find_temp_dir.al +${P5SITE}/auto/Inline/install.al +${P5SITE}/auto/Inline/maker_utils.al +${P5SITE}/auto/Inline/mkpath.al +${P5SITE}/auto/Inline/obj_untaint.al +${P5SITE}/auto/Inline/print_info.al +${P5SITE}/auto/Inline/read_inline_file.al +${P5SITE}/auto/Inline/receive_code.al +${P5SITE}/auto/Inline/reportbug.al +${P5SITE}/auto/Inline/rmpath.al +${P5SITE}/auto/Inline/with_configs.al +${P5SITE}/auto/Inline/write_inl_file.al +@man man/man3p/Inline-API.3p +@man man/man3p/Inline-FAQ.3p +@man man/man3p/Inline-Support.3p +@man man/man3p/Inline.3p +@man man/man3p/Inline::C-Cookbook.3p +@man man/man3p/Inline::C.3p +@man man/man3p/Inline::C::ParseRecDescent.3p +@man man/man3p/Inline::C::ParseRegExp.3p