| 1 |
rockspec_format = "3.0" |
| 2 |
package = "patch_create_delete" |
| 3 |
version = "0.1-1" |
| 4 |
source = { |
| 5 |
-- any valid URL |
| 6 |
url = "git://github.com/luarocks/luarocks" |
| 7 |
} |
| 8 |
description = { |
| 9 |
summary = "A rockspec with a patch that creates and deletes files", |
| 10 |
} |
| 11 |
dependencies = { |
| 12 |
"lua >= 5.1" |
| 13 |
} |
| 14 |
build = { |
| 15 |
type = "builtin", |
| 16 |
modules = { |
| 17 |
["luarocks.loader"] = "src/luarocks/loader.lua" |
| 18 |
}, |
| 19 |
patches = { |
| 20 |
["create_delete.patch"] = |
| 21 |
[[ |
| 22 |
diff -Naur luarocks/spec/fixtures/patch_create_delete/a_file.txt luarocks-patch/spec/fixtures/patch_create_delete/a_file.txt |
| 23 |
--- luarocks/spec/fixtures/patch_create_delete/a_file.txt 2017-10-04 15:39:44.179306674 -0300 |
| 24 |
+++ luarocks-patch/spec/fixtures/patch_create_delete/a_file.txt 1969-12-31 21:00:00.000000000 -0300 |
| 25 |
@@ -1 +0,0 @@ |
| 26 |
-I am a file. |
| 27 |
diff -Naur luarocks/spec/fixtures/patch_create_delete/another_file.txt luarocks-patch/spec/fixtures/patch_create_delete/another_file.txt |
| 28 |
--- luarocks/spec/fixtures/patch_create_delete/another_file.txt 1969-12-31 21:00:00.000000000 -0300 |
| 29 |
+++ luarocks-patch/spec/fixtures/patch_create_delete/another_file.txt 2017-10-04 15:40:12.836306564 -0300 |
| 30 |
@@ -0,0 +1 @@ |
| 31 |
+I am another file. |
| 32 |
]] |
| 33 |
} |
| 34 |
} |