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) |
---|
-
Portfile
4 4 PortSystem 1.0 5 5 PortGroup github 1.0 6 6 7 github.setup jashkenas coffee-script 1.3.3 7 github.setup jashkenas coffeescript 1.10.0 8 name coffee-script 8 9 platforms darwin 9 10 categories lang 10 11 maintainers ryandesign openmaintainer … … 19 20 CoffeeScript is an attempt to expose the good parts \ 20 21 of JavaScript in a simple way. 21 22 22 homepage http://jashkenas.github.com/coffee-script/ 23 checksums rmd160 6adf1753f30024ff22668d3aca2163b71dd54654 \ 24 sha256 b72cab8d5b2cb4ba944170889e3deb3d91673212cb1c8ca168d23900b39f971d 23 25 24 checksums rmd160 22cf20180c06c92f5fdc223180ba94bb96b6ff7b \ 25 sha256 21b6782b23e09e768ff8b440eeddb0c42c7ad94990d120a348bfd4ffaf6511e0 26 depends_lib path:bin/node:nodejs path:bin/npm:npm 26 27 27 depends_lib path:bin/node:nodejs 28 28 patch.pre_args -p1 29 29 patchfiles patch-Cakefile.diff patch-prefix.diff 30 30 31 31 post-patch { … … 34 34 35 35 use_configure no 36 36 37 build.cmd bin/cake37 build.cmd "npm install underscore; bin/cake" 38 38 build.target build 39 39 40 40 destroot.destdir … … 45 45 xinstall -d ${docdir} 46 46 xinstall -m 644 -W ${worksrcpath} \ 47 47 LICENSE \ 48 README \48 README.md \ 49 49 ${docdir} 50 50 } 51 51 -
files/patch-Cakefile.diff
1 --- Cakefile.orig 2011-11-08 17:01:45.000000000 -06002 +++ Cakefile 2011-11-09 19:41:16.000000000 -06003 @@ - 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 @@ 4 4 base = options.prefix or '/usr/local' 5 5 lib = "#{base}/lib/coffee-script" 6 6 bin = "#{base}/bin" … … 10 10 console.log "Linking 'coffee' to #{bin}/coffee" 11 11 exec([ 12 12 "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}" 14 14 - "ln -sfn #{lib}/bin/coffee #{bin}/coffee" 15 15 - "ln -sfn #{lib}/bin/cake #{bin}/cake" 16 16 - "mkdir -p ~/.node_libraries" -
files/patch-prefix.diff
1 --- bin/cake.orig2011-05-10 09:04:25.000000000 -05002 +++ b in/cake 2011-05-16 21:29:29.000000000 -05001 --- a/bin/cake 2011-05-10 09:04:25.000000000 -0500 2 +++ b/bin/cake 2011-05-16 21:29:29.000000000 -0500 3 3 @@ -1,4 +1,4 @@ 4 4 -#!/usr/bin/env node 5 5 +#!@PREFIX@/bin/node … … 6 6 7 7 var path = require('path'); 8 8 var fs = require('fs'); 9 --- bin/coffee.orig2011-05-10 09:04:25.000000000 -050010 +++ b in/coffee 2011-05-16 21:29:25.000000000 -05009 --- a/bin/coffee 2011-05-10 09:04:25.000000000 -0500 10 +++ b/bin/coffee 2011-05-16 21:29:25.000000000 -0500 11 11 @@ -1,4 +1,4 @@ 12 12 -#!/usr/bin/env node 13 13 +#!@PREFIX@/bin/node