Ticket #49170: patch-coffee-script.1.10.0.diff

File patch-coffee-script.1.10.0.diff, 3.2 KB (added by pixilla (Bradley Giesbrecht), 9 years ago)

install underscore npm module into worksrcpath

  • Portfile

     
    44PortSystem          1.0
    55PortGroup           github 1.0
    66
    7 github.setup        jashkenas coffee-script 1.3.3
     7github.setup        jashkenas coffeescript 1.10.0
     8name                coffee-script
    89platforms           darwin
    910categories          lang
    1011maintainers         ryandesign openmaintainer
     
    1920                    CoffeeScript is an attempt to expose the good parts \
    2021                    of JavaScript in a simple way.
    2122
    22 homepage            http://jashkenas.github.com/coffee-script/
     23checksums           rmd160  6adf1753f30024ff22668d3aca2163b71dd54654 \
     24                    sha256  b72cab8d5b2cb4ba944170889e3deb3d91673212cb1c8ca168d23900b39f971d
    2325
    24 checksums           rmd160  22cf20180c06c92f5fdc223180ba94bb96b6ff7b \
    25                     sha256  21b6782b23e09e768ff8b440eeddb0c42c7ad94990d120a348bfd4ffaf6511e0
     26depends_lib         path:bin/node:nodejs path:bin/npm:npm
    2627
    27 depends_lib         path:bin/node:nodejs
    28 
     28patch.pre_args      -p1
    2929patchfiles          patch-Cakefile.diff patch-prefix.diff
    3030
    3131post-patch {
     
    3434
    3535use_configure       no
    3636
    37 build.cmd           bin/cake
     37build.cmd           "npm install underscore; bin/cake"
    3838build.target        build
    3939
    4040destroot.destdir
     
    4545    xinstall -d ${docdir}
    4646    xinstall -m 644 -W ${worksrcpath} \
    4747        LICENSE \
    48         README \
     48        README.md \
    4949        ${docdir}
    5050}
    5151
  • files/patch-Cakefile.diff

     
    1 --- Cakefile.orig       2011-11-08 17:01:45.000000000 -0600
    2 +++ Cakefile    2011-11-09 19:41:16.000000000 -0600
    3 @@ -50,17 +50,13 @@
     1--- a/Cakefile  2015-10-07 14:20:11.000000000 -0700
     2+++ b/Cakefile  2015-10-07 14:24:26.000000000 -0700
     3@@ -98,17 +98,13 @@
    44   base = options.prefix or '/usr/local'
    55   lib  = "#{base}/lib/coffee-script"
    66   bin  = "#{base}/bin"
     
    1010   console.log   "Linking 'coffee' to #{bin}/coffee"
    1111   exec([
    1212     "mkdir -p #{lib} #{bin}"
    13 -    "cp -rf bin lib LICENSE README package.json src #{lib}"
     13-    "cp -rf bin lib LICENSE README.md package.json src #{lib}"
    1414-    "ln -sfn #{lib}/bin/coffee #{bin}/coffee"
    1515-    "ln -sfn #{lib}/bin/cake #{bin}/cake"
    1616-    "mkdir -p ~/.node_libraries"
  • files/patch-prefix.diff

     
    1 --- bin/cake.orig       2011-05-10 09:04:25.000000000 -0500
    2 +++ bin/cake    2011-05-16 21:29:29.000000000 -0500
     1--- a/bin/cake  2011-05-10 09:04:25.000000000 -0500
     2+++ b/bin/cake  2011-05-16 21:29:29.000000000 -0500
    33@@ -1,4 +1,4 @@
    44-#!/usr/bin/env node
    55+#!@PREFIX@/bin/node
     
    66 
    77 var path = require('path');
    88 var fs   = require('fs');
    9 --- bin/coffee.orig     2011-05-10 09:04:25.000000000 -0500
    10 +++ bin/coffee  2011-05-16 21:29:25.000000000 -0500
     9--- a/bin/coffee        2011-05-10 09:04:25.000000000 -0500
     10+++ b/bin/coffee        2011-05-16 21:29:25.000000000 -0500
    1111@@ -1,4 +1,4 @@
    1212-#!/usr/bin/env node
    1313+#!@PREFIX@/bin/node