summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textproc/ruby-format/Makefile17
-rw-r--r--textproc/ruby-format/distinfo2
-rw-r--r--textproc/ruby-format/pkg-plist9
3 files changed, 19 insertions, 9 deletions
diff --git a/textproc/ruby-format/Makefile b/textproc/ruby-format/Makefile
index 71a187397085..1a5c76b10844 100644
--- a/textproc/ruby-format/Makefile
+++ b/textproc/ruby-format/Makefile
@@ -6,29 +6,30 @@
#
PORTNAME= format
-PORTVERSION= 1.02
+PORTVERSION= 1.03
CATEGORIES= textproc ruby
-#MASTER_SITES= http://www.crhc.uiuc.edu/~rubel/
-MASTER_SITES= ${MASTER_SITE_LOCAL}
-MASTER_SITE_SUBDIR= knu
+MASTER_SITES= http://www.crhc.uiuc.edu/~rubel/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
-DISTNAME= FormatR-${PORTVERSION}
+DISTNAME= FormatR.${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
USE_RUBY= yes
-WRKSRC= ${WRKDIR}/FormatR
NO_BUILD= yes
+post-patch:
+ ${RUBY} -i.orig -pe 'gsub(/"(format_test\.pl)/, "\"./\\1")' ${WRKSRC}/test_format.rb
+
do-install:
${INSTALL_DATA} ${WRKSRC}/format.rb ${RUBY_SITELIBDIR}/
.if !defined(NOPORTDOCS)
- ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}/test
.for f in test_format.rb format_test.pl
- ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_EXAMPLESDIR}/${PORTNAME}/
+ ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${RUBY_EXAMPLESDIR}/${PORTNAME}/
.endfor
+ ${INSTALL_DATA} ${WRKSRC}/test/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/test/
.endif
.include <bsd.port.mk>
diff --git a/textproc/ruby-format/distinfo b/textproc/ruby-format/distinfo
index fbd6c30fc896..644973d665bf 100644
--- a/textproc/ruby-format/distinfo
+++ b/textproc/ruby-format/distinfo
@@ -1 +1 @@
-MD5 (ruby/FormatR-1.02.tar.gz) = 22a4f686c64798ff0c81bd4fed9c2b1e
+MD5 (ruby/FormatR.1.03.tar.gz) = 13debc3f3d247a5d5eebe99651bb6a02
diff --git a/textproc/ruby-format/pkg-plist b/textproc/ruby-format/pkg-plist
index c97bf0544ead..dcd2c0f2e8e2 100644
--- a/textproc/ruby-format/pkg-plist
+++ b/textproc/ruby-format/pkg-plist
@@ -1,4 +1,13 @@
%%RUBY_SITELIBDIR%%/format.rb
%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/format/format_test.pl
%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/format/test_format.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/format/test/1
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/format/test/2
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/format/test/3
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/format/test/4
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/format/test/5
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/format/test/6
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/format/test/7
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/format/test/8
+%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/format/test
%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/format