summaryrefslogtreecommitdiff
path: root/lang/parrot
diff options
context:
space:
mode:
authorhe <he>2012-07-31 08:16:06 +0000
committerhe <he>2012-07-31 08:16:06 +0000
commit215d77c6f00f3263300d9a50dce8e6b23b2dd2e2 (patch)
treec435c25a361323d191d40c316d1b40309eed3317 /lang/parrot
parent2e805763583834f56baf5302c5e0565d71d40432 (diff)
downloadpkgsrc-215d77c6f00f3263300d9a50dce8e6b23b2dd2e2.tar.gz
Upgrade parrot to version 4.5.0.
Pkgsrc changes: - Add a patch to track the addition of Parrot_get_cpu_type() to misc.c, which is platform-dependent on NetBSD. - Fix pbc_to_exec.winxed so that there are no rpath build-directory references in installed executables. Reported upstream as issue #803. - Adjust PLIST to match installed files. Upstream changes: - Core + Added .write_bytes and .read_bytes methods to FileHandle and Socket PMCs. + Added Parrot_api_set_stdhandle, Parrot_api_new_call_object and Parrot_api_setup_signature functions to the embedding API + Removed the "can" VTABLE - Languages + Winxed snapshot updated to 1.9.1 - New syntax for parameters in multi - New syntax for initalization with new - Cast to var improved - IMCC + Removed .line, .file, setline and setfile directives from IMCC - Documentation + Fixed up Pod in 240 files to pass 't/codingstd/pod_description.t'. - Tests + Added 'docs/pdds' and 'docs/pdds/draft' as files for 'Parrot::Test::Pod.pm' to exclude. - Build + Reduced number of packages under 'lib/Parrot/Pmc2c/'. + Added method-level documentation to several of the remaining packages. + Added 'docs/pdds' and 'docs/pdds/draft' as files for 'Parrot::Test::Pod.pm' to exclude. - Community + M1, a C-like language that targets M0 had a burst of development and now has many working examples such as recursive Fibonacci and recursive factorial : https://github.com/parrot/m1 + Parrot bindings to LAPACK are being worked on as part of Google Summer of Code: https://github.com/leto/parrot-lapack
Diffstat (limited to 'lang/parrot')
-rw-r--r--lang/parrot/Makefile4
-rw-r--r--lang/parrot/PLIST6
-rw-r--r--lang/parrot/distinfo10
-rw-r--r--lang/parrot/patches/patch-ao52
-rw-r--r--lang/parrot/patches/patch-ap31
5 files changed, 92 insertions, 11 deletions
diff --git a/lang/parrot/Makefile b/lang/parrot/Makefile
index 235729c4b2f..bc4801a90c8 100644
--- a/lang/parrot/Makefile
+++ b/lang/parrot/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.61 2012/07/25 11:41:19 he Exp $
+# $NetBSD: Makefile,v 1.62 2012/07/31 08:16:06 he Exp $
#
-VERSION= 4.4.0
+VERSION= 4.5.0
RTYPE= devel
DISTNAME= parrot-${VERSION}
CATEGORIES= lang
diff --git a/lang/parrot/PLIST b/lang/parrot/PLIST
index 63aa0d8e399..146cf002d96 100644
--- a/lang/parrot/PLIST
+++ b/lang/parrot/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.31 2012/07/25 11:41:19 he Exp $
+@comment $NetBSD: PLIST,v 1.32 2012/07/31 08:16:06 he Exp $
bin/ops2c
bin/parrot
bin/parrot-nqp
@@ -447,7 +447,6 @@ lib/parrot/${PKGVERSION}/tools/build/pmc2c.pl
lib/parrot/${PKGVERSION}/tools/dev/create_language.pl
lib/parrot/${PKGVERSION}/tools/dev/gen_makefile.pl
lib/parrot/${PKGVERSION}/tools/dev/mk_language_shell.pl
-lib/parrot/${PKGVERSION}/tools/dev/pbc_to_exe.pir
lib/parrot/${PKGVERSION}/tools/dev/pprof2cg.pl
lib/parrot/${PKGVERSION}/tools/dev/reconfigure.pl
lib/parrot/${PKGVERSION}/tools/lib/File/Which.pm
@@ -513,13 +512,10 @@ lib/parrot/${PKGVERSION}/tools/lib/Parrot/IO/Path.pm
lib/parrot/${PKGVERSION}/tools/lib/Parrot/Install.pm
lib/parrot/${PKGVERSION}/tools/lib/Parrot/Manifest.pm
lib/parrot/${PKGVERSION}/tools/lib/Parrot/PMC.pm
-lib/parrot/${PKGVERSION}/tools/lib/Parrot/Pmc2c/Attribute.pm
lib/parrot/${PKGVERSION}/tools/lib/Parrot/Pmc2c/Dumper.pm
lib/parrot/${PKGVERSION}/tools/lib/Parrot/Pmc2c/Emitter.pm
lib/parrot/${PKGVERSION}/tools/lib/Parrot/Pmc2c/Library.pm
-lib/parrot/${PKGVERSION}/tools/lib/Parrot/Pmc2c/MULTI.pm
lib/parrot/${PKGVERSION}/tools/lib/Parrot/Pmc2c/Method.pm
-lib/parrot/${PKGVERSION}/tools/lib/Parrot/Pmc2c/Object.pm
lib/parrot/${PKGVERSION}/tools/lib/Parrot/Pmc2c/PCCMETHOD.pm
lib/parrot/${PKGVERSION}/tools/lib/Parrot/Pmc2c/PCCMETHOD_BITS.pm
lib/parrot/${PKGVERSION}/tools/lib/Parrot/Pmc2c/PMC.pm
diff --git a/lang/parrot/distinfo b/lang/parrot/distinfo
index cc78cd3ce34..7b5a4ae3ff2 100644
--- a/lang/parrot/distinfo
+++ b/lang/parrot/distinfo
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.50 2012/07/25 11:41:19 he Exp $
+$NetBSD: distinfo,v 1.51 2012/07/31 08:16:07 he Exp $
-SHA1 (parrot-4.4.0.tar.gz) = 1e33f789497a2326fff21b59ebba82a79ceda881
-RMD160 (parrot-4.4.0.tar.gz) = 9ad28348fb27e7bc234b8e0badc298963a3ec82a
-Size (parrot-4.4.0.tar.gz) = 4528095 bytes
+SHA1 (parrot-4.5.0.tar.gz) = 093f83475a78496c833cc8cd2eae85e6a0193108
+RMD160 (parrot-4.5.0.tar.gz) = 1f6fb14e0eed3df8c6ca81bcfd7086547594812e
+Size (parrot-4.5.0.tar.gz) = 4530120 bytes
SHA1 (patch-ad) = a972d48a879e541f6894f2eeb82a70b1756437d9
+SHA1 (patch-ao) = 0676a88e3a30078fdbb5ed3aa885a50d10db9aff
+SHA1 (patch-ap) = 64088161dc8d5f4c40d9ffa7ffecfa2abc572a44
diff --git a/lang/parrot/patches/patch-ao b/lang/parrot/patches/patch-ao
new file mode 100644
index 00000000000..f2e55449f1e
--- /dev/null
+++ b/lang/parrot/patches/patch-ao
@@ -0,0 +1,52 @@
+$NetBSD: patch-ao,v 1.1 2012/07/31 08:16:07 he Exp $
+
+Add Parrot_get_cpu_type() from generic/, since we have a local
+misc.c for netbsd.
+
+--- src/platform/netbsd/misc.c.orig 2012-06-06 18:03:39.000000000 +0000
++++ src/platform/netbsd/misc.c
+@@ -22,6 +22,10 @@ Miscellaneous helper functions that are
+
+ #include "parrot/parrot.h"
+
++#ifdef PARROT_HAS_HEADER_SYSUTSNAME
++# include <sys/utsname.h>
++#endif
++
+ /* HEADERIZER HFILE: none */
+
+ /*
+@@ -53,6 +57,33 @@ Parrot_platform_init_code(void)
+
+ /*
+
++=item C<STRING *Parrot_get_cpu_type(Parrot_Interp)>
++
++Fetch CPU type for non-win32 systems
++For win32, look in platform/win32/misc.c
++
++=back
++
++=cut
++
++*/
++
++STRING *
++Parrot_get_cpu_type(Parrot_Interp interp) {
++ struct utsname uname_info;
++ char *proc_arch = "";
++
++#ifdef PARROT_HAS_HEADER_SYSUTSNAME
++ uname(&uname_info);
++ proc_arch = uname_info.machine;
++#endif
++ return Parrot_str_new_init(interp, proc_arch, strlen(proc_arch),
++ Parrot_ascii_encoding_ptr, 0);
++
++}
++
++/*
++
+ =back
+
+ =cut
diff --git a/lang/parrot/patches/patch-ap b/lang/parrot/patches/patch-ap
new file mode 100644
index 00000000000..d69a69da7b4
--- /dev/null
+++ b/lang/parrot/patches/patch-ap
@@ -0,0 +1,31 @@
+$NetBSD: patch-ap,v 1.1 2012/07/31 08:16:07 he Exp $
+
+Do not embed rpath_blib into installable executables, as it will
+refer to the build directory via rpath.
+
+--- ./tools/dev/pbc_to_exe.winxed.orig 2012-06-19 05:24:26.000000000 +0000
++++ ./tools/dev/pbc_to_exe.winxed
+@@ -599,9 +599,9 @@ function link_file(string objfile, strin
+ string libparrot = $P0['libparrot_linkflags'];
+ string libs = $P0['libs'];
+ string o = $P0['o'];
+- string rpath = $P0['rpath_blib'];
+ string osname = $P0['osname'];
+ string build_dir = $P0['build_dir'];
++ string rpath = '';
+ string slash = $P0['slash'];
+ string icushared = $P0['icu_shared'];
+ string installed = $P0['installed'];
+@@ -613,9 +613,10 @@ function link_file(string objfile, strin
+ string config = pathquote;
+ if (installed != '1') {
+ config += build_dir + slash + 'src' + slash;
+- if (! install)
++ if (! install) {
+ config += 'parrot_config';
+- else {
++ rpath += $P0['rpath_blib'];
++ } else {
+ config += 'install_config';
+ rpath += $P0['rpath_lib'];
+ }