summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsalo <salo>2003-02-16 03:42:36 +0000
committersalo <salo>2003-02-16 03:42:36 +0000
commit4300eb647b6d236224bd7205bd3513e3a742b098 (patch)
tree6d696ee8d1ffb4283927681ca517fe871670a022
parent5ba24231c8c73d3c599173e603b52d34e3716046 (diff)
downloadpkgsrc-4300eb647b6d236224bd7205bd3513e3a742b098.tar.gz
Newfile is a tool for creating starter files in various languages.
It uses a full-featured preprocessor (like the C preprocessor) to transform templates into customized starter files. It can also generate trees of files for a specific purpose, such as a project using automake and autoconf, license files or a FreeBSD port. Based on a patch from Miguel Mendez via PR pkg/20313 modified by me.
-rw-r--r--devel/newfile/DESCR6
-rw-r--r--devel/newfile/Makefile28
-rw-r--r--devel/newfile/PLIST50
-rw-r--r--devel/newfile/distinfo5
-rw-r--r--devel/newfile/patches/patch-aa13
5 files changed, 102 insertions, 0 deletions
diff --git a/devel/newfile/DESCR b/devel/newfile/DESCR
new file mode 100644
index 00000000000..052459b9619
--- /dev/null
+++ b/devel/newfile/DESCR
@@ -0,0 +1,6 @@
+Newfile is a tool for creating starter files in various languages.
+
+It uses a full-featured preprocessor (like the C preprocessor) to transform
+templates into customized starter files. It can also generate trees of files
+for a specific purpose, such as a project using automake and autoconf, license
+files or a FreeBSD port.
diff --git a/devel/newfile/Makefile b/devel/newfile/Makefile
new file mode 100644
index 00000000000..2023f66db36
--- /dev/null
+++ b/devel/newfile/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/02/16 03:42:36 salo Exp $
+#
+
+DISTNAME= newfile-1.0.3
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=newfile/}
+
+MAINTAINER= flynn@energyhq.homeip.net
+HOMEPAGE= http://newfile.sourceforge.net/
+COMMENT= Tool for creating starter files in various languages
+
+DEPENDS+= ruby-optparse>=0.8.6:../../devel/ruby-optparse
+
+USE_RUBY= YES
+NO_BUILD= YES
+GNU_CONFIGURE= YES
+USE_BUILDLINK2= YES
+
+REPLACE_RUBY= src/newfile.rb
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/src/newfile.rb ${PREFIX}/bin/newfile
+ ${INSTALL_DATA} ${WRKSRC}/src/fileproc.rb ${WRKSRC}/src/sytab.rb \
+ ${PREFIX}/share/newfile/
+ ${INSTALL_MAN} ${WRKSRC}/doc/newfile.1 ${PREFIX}/man/man1/
+
+.include "../../lang/ruby-base/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/newfile/PLIST b/devel/newfile/PLIST
new file mode 100644
index 00000000000..b889fb2d95e
--- /dev/null
+++ b/devel/newfile/PLIST
@@ -0,0 +1,50 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/02/16 03:42:36 salo Exp $
+bin/newfile
+man/man1/newfile.1
+share/newfile/fileproc.rb
+share/newfile/licenses/Artistic@Artistic
+share/newfile/licenses/Artistic@README
+share/newfile/licenses/Artistic@license.inc
+share/newfile/licenses/BSD@LICENSE
+share/newfile/licenses/BSD@README
+share/newfile/licenses/BSD@license.inc
+share/newfile/licenses/GPL@COPYING
+share/newfile/licenses/GPL@README
+share/newfile/licenses/GPL@license.inc
+share/newfile/licenses/default@license.inc
+share/newfile/licenses/minimal@LICENSE
+share/newfile/licenses/minimal@README
+share/newfile/licenses/minimal@license.inc
+share/newfile/licenses/no@license.inc
+share/newfile/projects/auto@Makefile.am
+share/newfile/projects/auto@Makefile.cvs
+share/newfile/projects/auto@acinclude.m4
+share/newfile/projects/auto@configure.ac
+share/newfile/projects/auto@doc!Makefile.am
+share/newfile/projects/auto@doc-src!Makefile.am
+share/newfile/projects/auto@doc-src!alane.pod.mk
+share/newfile/projects/auto@doc-src!alane.tex.mk
+share/newfile/projects/auto@src!Makefile.am
+share/newfile/projects/port@Makefile
+share/newfile/projects/port@distinfo
+share/newfile/projects/port@pkg-comment
+share/newfile/projects/port@pkg-descr
+share/newfile/projects/port@pkg-plist
+share/newfile/sytab.rb
+share/newfile/templates/body.inc@sh
+share/newfile/templates/tmpl@c
+share/newfile/templates/tmpl@c++
+share/newfile/templates/tmpl@generic
+share/newfile/templates/tmpl@h
+share/newfile/templates/tmpl@h++
+share/newfile/templates/tmpl@mgp
+share/newfile/templates/tmpl@mk
+share/newfile/templates/tmpl@pl
+share/newfile/templates/tmpl@pod
+share/newfile/templates/tmpl@py
+share/newfile/templates/tmpl@rb
+share/newfile/templates/tmpl@sh
+@dirrm share/newfile/templates
+@dirrm share/newfile/projects
+@dirrm share/newfile/licenses
+@dirrm share/newfile
diff --git a/devel/newfile/distinfo b/devel/newfile/distinfo
new file mode 100644
index 00000000000..80b0e0fc3ba
--- /dev/null
+++ b/devel/newfile/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/02/16 03:42:36 salo Exp $
+
+SHA1 (newfile-1.0.3.tar.gz) = 30d4cc7c0db20ddc93b24a8ae610398282a2b914
+Size (newfile-1.0.3.tar.gz) = 136863 bytes
+SHA1 (patch-aa) = 95be72f2f3784fa70e5d444d5c14f61c66124eca
diff --git a/devel/newfile/patches/patch-aa b/devel/newfile/patches/patch-aa
new file mode 100644
index 00000000000..73922402732
--- /dev/null
+++ b/devel/newfile/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/02/16 03:42:36 salo Exp $
+
+--- Makefile.in.orig Fri Feb 7 19:01:54 2003
++++ Makefile.in Sun Feb 16 03:49:33 2003
+@@ -119,7 +119,7 @@
+ am__quote = @am__quote@
+ install_sh = @install_sh@
+
+-SUBDIRS = src doc data doc-src www
++SUBDIRS = data
+ EXTRA_DIST = LICENSE README Makefile.cvs
+ subdir = .
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4