ports/devel/newfile/files/patch-src_newfile.rb.in
Johannes Jost Meixner ec52e1a574 devel/newfile: add support for dots in project names.
Fix a bug that would stop `port create` from creating ports
with "dots" in their name -- `port create foo.bar` would
previously yield a directory "foo".

Approved by:    koobs (mentor)
2015-01-23 10:39:33 +00:00

11 lines
372 B
Ruby

--- src/newfile.rb.in.orig 2015-01-23 10:28:31 UTC
+++ src/newfile.rb.in
@@ -431,7 +431,7 @@ class NewfileOpts
|proj|
arr = proj.split(".")
@opts["template"] = arr[0]
- @opts["project"] = arr[1]
+ @opts["project"] = arr.drop(1).join('.')
}
@parser.def_option("-s", "--show",
"Show installed file templates, project#{NL}" +