[svn:parrot] r37745 - trunk/ports/macports

coke at svn.parrot.org coke at svn.parrot.org
Thu Mar 26 16:12:34 UTC 2009


Author: coke
Date: Thu Mar 26 16:12:34 2009
New Revision: 37745
URL: https://trac.parrot.org/parrot/changeset/37745

Log:
Get a working 1.0.0 Portfile!

Thanks to https://trac.macports.org/ticket/18917 (jdfrens++) for the vital clue.

Modified:
   trunk/ports/macports/Portfile

Modified: trunk/ports/macports/Portfile
==============================================================================
--- trunk/ports/macports/Portfile	Thu Mar 26 11:58:42 2009	(r37744)
+++ trunk/ports/macports/Portfile	Thu Mar 26 16:12:34 2009	(r37745)
@@ -3,25 +3,26 @@
 PortSystem              1.0
 
 name			parrot
-version			0.9.0
+version			1.0.0
 categories		lang devel
-maintainers             bfulgham coleda.com:will
-description		Open source virtual machine
+maintainers		bfulgham coleda.com:will
+description		Open source virtual machine (for Perl6 et al.)
 long_description	\
-        Parrot is a virtual machine designed to efficiently compile and \
-        execute bytecode for dynamic languages. Parrot currently hosts a \
-        variety of language implementations in various stages of completion, \
-        including Tcl, Javascript, Ruby, Lua, Scheme, PHP, Python, Perl 6, \
-        and a .NET bytecode translator.
+ 	Parrot is the new interpreter being designed from scratch to support \
+	the upcoming Perl 6 language.  It is being designed as a standalone \
+	virtual machine that can be used to execute bytecode-compiled \
+	dynamic languages such as Perl 6, Perl 5, Python, Tcl, etc.
 
 platforms		darwin
-homepage		http://www.parrot.org/
-master_sites		ftp://ftp.parrot.org/pub/parrot/releases/devel/0.9.0
+homepage		http://www.parrotcode.org/
+master_sites		ftp://ftp.parrot.org/pub/parrot/releases/stable/${version}/
 
-checksums		md5 7b70d9b8708e5ed01c210692a7afda0a
+checksums		md5 649ce1fb7c0edaf89dc1cd52ff267b1a \
+			sha1 9e028f5fff38a332c13ad4389652a016d7a824f7 \
+			rmd160 46f60accd33f16cc910f4ea03840badc358d22c7
 
 depends_build		bin:perl:perl5
-depends_lib			port:gmp port:icu
+depends_lib		port:gmp port:icu
 
 configure.cmd		perl Configure.pl
 configure.pre_args	--prefix=${prefix}/lib/parrot
@@ -30,25 +31,31 @@
 destroot.target         install
 
 build.type		gnu
-build.target		
+build.target
 
 test.run		yes
 test.target		test
 
 destroot.destdir	 PREFIX=${destroot}${prefix}/lib/parrot
 
-# install the docs and create shortcuts for the executables.
 post-destroot {
 	set bindir	${destroot}${prefix}/bin
-	system "cd ${bindir} && ln -sf ${prefix}/lib/parrot/bin/parrot"
-	system "cd ${bindir} && ln -sf ${prefix}/lib/parrot/bin/parrot_config"
-	system "cd ${bindir} && ln -sf ${prefix}/lib/parrot/bin/parrot_debugger"
-	system "cd ${bindir} && ln -sf ${prefix}/lib/parrot/bin/pbc_disassemble"
-	system "cd ${bindir} && ln -sf ${prefix}/lib/parrot/bin/pbc_info"
-	system "cd ${bindir} && ln -sf ${prefix}/lib/parrot/bin/pbc_merge"
-	system "cd ${bindir} && ln -sf ${prefix}/lib/parrot/bin/pbc_to_exe"
-	system "cd ${bindir} && ln -sf ${prefix}/lib/parrot/bin/pbc_dump"
-
 	set docdir      ${destroot}${prefix}/share/doc/${name}
+
+        set executables {
+            parrot parrot_config parrot_debugger
+            pbc_disassemble pbc_info pbc_merge pbc_to_exe pbc_dump
+        }
+
+        foreach exe $executables { 
+            # fixup the library path
+            set old_path "${workpath}/parrot-${version}/blib/lib/libparrot.dylib"
+            set new_path "${prefix}/lib/parrot/lib/libparrot.${version}.dylib"
+	    system "cd ${prefix}/lib/parrot/bin && \
+                install_name_tool -change \"$old_path\" \"$new_path\" ${exe}"
+
+            # install into the common area.
+            system "cd ${bindir} && ln -sf ${prefix}/lib/parrot/bin/${exe}"
+        }
 	xinstall -m 755 -d ${docdir}
 }


More information about the parrot-commits mailing list