[144009] trunk/dports/lang
mojca at macports.org
mojca at macports.org
Tue Dec 29 17:09:28 PST 2015
Revision: 144009
https://trac.macports.org/changeset/144009
Author: mojca at macports.org
Date: 2015-12-29 17:09:28 -0800 (Tue, 29 Dec 2015)
Log Message:
-----------
panda: initial attempt to bring a package manager for Perl 6 to MacPorts (#50158)
Added Paths:
-----------
trunk/dports/lang/panda/
trunk/dports/lang/panda/Portfile
trunk/dports/lang/panda/files/
trunk/dports/lang/panda/files/patch-lib-Panda-App.pm.diff
Added: trunk/dports/lang/panda/Portfile
===================================================================
--- trunk/dports/lang/panda/Portfile (rev 0)
+++ trunk/dports/lang/panda/Portfile 2015-12-30 01:09:28 UTC (rev 144009)
@@ -0,0 +1,51 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup github 1.0
+
+github.setup tadzik panda 2015.12
+description Perl 6 module installer
+long_description ${description}
+maintainers mojca coleda.com:will openmaintainer
+categories lang
+license Artistic-2
+platforms darwin
+
+checksums rmd160 6c81ee9e32552b4c06d3e8a5c5256c06a51d347a \
+ sha256 d326393cc8499780663abfee849ca334411d8001646209f96c9f691cc94f2ec9
+
+patchfiles patch-lib-Panda-App.pm.diff
+
+# probably also MoarVM, nqp
+depends_build port:rakudo
+depends_run port:rakudo
+
+# not sure if this is considered configure or build
+use_configure no
+build.cmd ${prefix}/bin/perl6 bootstrap.pl
+# this doesn't really work anyway
+build.target --prefix=${prefix}
+
+# there must be a better way to do this
+destroot {
+ set perl6_share ${prefix}/share/perl6
+ set src ${workpath}/.home/.perl6/${version}
+
+ # sources
+ xinstall -d -m 0755 ${destroot}/${perl6_share}
+ foreach d {dist resources short sources} {
+ xinstall -d -m 0755 ${destroot}/${perl6_share}/${d}
+ foreach f [glob -type f ${src}/${d}/*] {
+ xinstall -W ${src}/${d} ${f} ${destroot}/${perl6_share}/${d}
+ }
+ }
+
+ # bin
+ foreach f [glob -type f ${src}/bin/*] {
+ # reinplace "s|/usr/bin/env perl6|${prefix}/bin/perl6|g" ${f}
+ xinstall ${f} ${destroot}/${prefix}/bin
+ }
+
+ # TODO: state file inside panda
+}
Property changes on: trunk/dports/lang/panda/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/lang/panda/files/patch-lib-Panda-App.pm.diff
===================================================================
--- trunk/dports/lang/panda/files/patch-lib-Panda-App.pm.diff (rev 0)
+++ trunk/dports/lang/panda/files/patch-lib-Panda-App.pm.diff 2015-12-30 01:09:28 UTC (rev 144009)
@@ -0,0 +1,13 @@
+# https://github.com/tadzik/panda/pull/275
+
+--- lib/Panda/App.pm.orig
++++ lib/Panda/App.pm
+@@ -12,7 +12,7 @@ sub make-default-ecosystem(Str $prefix? is copy) is export {
+ for grep(*.defined, flat $prefix, @custom-lib) -> $target {
+ $prefix = $target;
+ $pandadir = "$target/panda".IO;
+- try mkpath $pandadir unless $pandadir ~~ :d;
++ try $pandadir.mkdir;
+ last if $pandadir.w;
+ }
+ unless $pandadir.w {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151229/fb54aae2/attachment.html>
More information about the macports-changes
mailing list