Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add sample nqp port
- Loading branch information
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # $Id$ | ||
|
|
||
| PortSystem 1.0 | ||
|
|
||
| name nqp | ||
| version 2015.05 | ||
| depends_lib port:MoarVM | ||
| depends_build port:MoarVM | ||
| depends_run port:MoarVM | ||
| categories lang devel | ||
| platforms darwin | ||
| license Artistic-2 | ||
| maintainers coleda.com:will | ||
| description A lightweight Perl-6 like language for virtual machines. | ||
| long_description Unlike a full-fledged implementation of Perl 6, NQP \ | ||
| strives to have as small a runtime footprint as it can, \ | ||
| while still providing a Perl 6 object model and regular \ | ||
| expression engine for the virtual machine. | ||
|
|
||
| homepage https://github.com/perl6/nqp | ||
| master_sites http://rakudo.org/downloads/nqp/ | ||
|
|
||
| # To find the correct checksums for the given release, use: | ||
| # openssl dgst -rmd160 <file> | ||
| # openssl dgst -sha256 <file> | ||
| checksums rmd160 8fc571c56d222b0d57984199643918e54af259c2 \ | ||
| sha256 790bfc3fa1af7f88f039d170875d69e6e17a9b03cd2119887e5df20834374316 | ||
|
|
||
| # FIXME: may need ExtUtil::Command if by chance our default perl5 binary | ||
| # does not match what Apple ships. | ||
| depends_build port:perl5 | ||
|
|
||
| # Unsupported by configure.pl. | ||
| configure.universal_args-delete --disable-dependency-tracking | ||
|
|
||
| universal_variant yes | ||
|
|
||
| configure.cmd ${prefix}/bin/perl Configure.pl --backends=moar --with-moar=${prefix}/bin/moar | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| When updating the Portfile to reflect the new release: | ||
|
|
||
| First, update the portfile | ||
|
|
||
| 1) update the version | ||
| 2) remove the revision, if any is currently specified. | ||
| 3) Recalculate the checksums (commands given in the file for this.) Keep the trailing \ on the first line. | ||
|
|
||
| Then, test out the portfile locally. | ||
|
|
||
| 4) Setup a local portfile directory. Edit /opt/local/etc/macports/sources.conf, adding a reference to a local directory, like: file:///Users/bob/sandbox/macports/ | ||
| 5) In that folder, create a subdir lang/nqp | ||
| 6) copy the updated Portfile to that folder. | ||
| 7) Reindex to pick up the new portfile: `portindex` | ||
| 8) From the top level of that folder, verify that we still build with our declared dependencies with, e.g. `port -t build nqp@2015.04` | ||
| 9) Install the port, e.g. `sudo port install nqp@2015.04` | ||
|
|
||
| Finally, open a ticket to update the portfile | ||
|
|
||
| 10) Create a unified diff from | ||
| https://trac.macports.org/browser/trunk/dports/lang/nqp/Portfile?format=txt | ||
| to our most recent copy. | ||
| 11) create an "update" ticket in http://trac.macports.org/ - you'll need a trac account to open the ticket. Be sure to attach the diff, and list "nqp" as the port. Additionally, set keywords to "haspatch", and if you're listed as a maintainer, "maintainer" | ||
| 12) git push the updated Portfile | ||
| 13) hang out in #macports on freenode and mention the ticket. |