svn commit: r377721 - in head/devel/newfile: . files

Johannes Jost Meixner xmj at FreeBSD.org
Fri Jan 23 10:39:35 UTC 2015


Author: xmj
Date: Fri Jan 23 10:39:33 2015
New Revision: 377721
URL: https://svnweb.freebsd.org/changeset/ports/377721
QAT: https://qat.redports.org/buildarchive/r377721/

Log:
  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)

Added:
  head/devel/newfile/files/patch-src_newfile.rb.in   (contents, props changed)
Modified:
  head/devel/newfile/Makefile
  head/devel/newfile/files/patch-src-Makefile.in

Modified: head/devel/newfile/Makefile
==============================================================================
--- head/devel/newfile/Makefile	Fri Jan 23 10:35:08 2015	(r377720)
+++ head/devel/newfile/Makefile	Fri Jan 23 10:39:33 2015	(r377721)
@@ -3,7 +3,7 @@
 
 PORTNAME=	newfile
 PORTVERSION=	1.0.14
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	devel
 MASTER_SITES=	SF
 

Modified: head/devel/newfile/files/patch-src-Makefile.in
==============================================================================
--- head/devel/newfile/files/patch-src-Makefile.in	Fri Jan 23 10:35:08 2015	(r377720)
+++ head/devel/newfile/files/patch-src-Makefile.in	Fri Jan 23 10:39:33 2015	(r377721)
@@ -1,6 +1,6 @@
---- src/Makefile.in.orig	2003-11-03 20:49:37.000000000 +0800
-+++ src/Makefile.in	2014-08-30 04:12:00.646368587 +0800
-@@ -279,12 +279,12 @@
+--- src/Makefile.in.orig	2003-11-03 12:49:37 UTC
++++ src/Makefile.in
+@@ -279,12 +279,12 @@ uninstall-am: uninstall-info-am uninstal
  
  
  install-data-hook:

Added: head/devel/newfile/files/patch-src_newfile.rb.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/newfile/files/patch-src_newfile.rb.in	Fri Jan 23 10:39:33 2015	(r377721)
@@ -0,0 +1,11 @@
+--- 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}" +


More information about the svn-ports-all mailing list