summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2017-06-04 16:49:35 +0000
committertaca <taca@pkgsrc.org>2017-06-04 16:49:35 +0000
commit9f2614b7c92bff7b50950422c813e9270bfd8cd2 (patch)
tree36b3f9d9eec34d76c2a2863dcaadaae7b0b15b89 /textproc
parentd44fac5075a8cf498399a9a1c561ae64030cc0ec (diff)
downloadpkgsrc-9f2614b7c92bff7b50950422c813e9270bfd8cd2.tar.gz
Add ruby-xhtmldiff.
This is rename of textproc/xhtmldiff with these changes. * Prefix PKGNAME with ${RUBY_PKGPREFIX} confirmed by MAINTAINER. * A few change to fix gemspec file and do not contain extra gemspec file in the binary package.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/ruby-xhtmldiff/ALTERNATIVES1
-rw-r--r--textproc/ruby-xhtmldiff/DESCR3
-rw-r--r--textproc/ruby-xhtmldiff/Makefile23
-rw-r--r--textproc/ruby-xhtmldiff/PLIST12
-rw-r--r--textproc/ruby-xhtmldiff/distinfo7
-rw-r--r--textproc/ruby-xhtmldiff/patches/patch-packaging_xhtmldiff.gemspec14
6 files changed, 60 insertions, 0 deletions
diff --git a/textproc/ruby-xhtmldiff/ALTERNATIVES b/textproc/ruby-xhtmldiff/ALTERNATIVES
new file mode 100644
index 00000000000..49b46290ec6
--- /dev/null
+++ b/textproc/ruby-xhtmldiff/ALTERNATIVES
@@ -0,0 +1 @@
+bin/xhtmldiff @PREFIX@/bin/xhtmldiff20@RUBY_SUFFIX@ \ No newline at end of file
diff --git a/textproc/ruby-xhtmldiff/DESCR b/textproc/ruby-xhtmldiff/DESCR
new file mode 100644
index 00000000000..448de8db7a9
--- /dev/null
+++ b/textproc/ruby-xhtmldiff/DESCR
@@ -0,0 +1,3 @@
+XHTMLDiff is a tool and library for taking valid XHTML documents as
+input, and generating redlined, valid XHTML text highlighting the
+changes between them as output.
diff --git a/textproc/ruby-xhtmldiff/Makefile b/textproc/ruby-xhtmldiff/Makefile
new file mode 100644
index 00000000000..1c3b3f294db
--- /dev/null
+++ b/textproc/ruby-xhtmldiff/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2017/06/04 16:49:35 taca Exp $
+
+DISTNAME= xhtmldiff-1.2.2
+PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME}
+CATEGORIES= textproc
+MASTER_SITES= http://theinternetco.net/projects/ruby/
+# necessary since it will be overwritten by gem.mk
+EXTRACT_SUFX= .tar.gz
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= # http://theinternetco.net/projects/ruby/xhtmldiff.html
+COMMENT= Tool for generating valid XHTML redline documents
+
+DEPENDS+= ${RUBY_PKGPREFIX}-diff-lcs>=1.1.1:../../textproc/ruby-diff-lcs
+
+RUBYGEM_OPTIONS+= --format-executable
+
+pre-configure:
+ ${CP} ${WRKSRC}/packaging/xhtmldiff.gemspec ${GEM_SPECFILE}
+ ${RM} -fr ${WRKSRC}/packaging
+
+.include "../../lang/ruby/gem.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/ruby-xhtmldiff/PLIST b/textproc/ruby-xhtmldiff/PLIST
new file mode 100644
index 00000000000..cdca0c9efe3
--- /dev/null
+++ b/textproc/ruby-xhtmldiff/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1 2017/06/04 16:49:35 taca Exp $
+bin/xhtmldiff${RUBY_SUFFIX}
+${GEM_HOME}/cache/xhtmldiff-${PKGVERSION}.gem
+${GEM_LIBDIR}/CHANGES
+${GEM_LIBDIR}/README
+${GEM_LIBDIR}/bin/xhtmldiff
+${GEM_LIBDIR}/examples/a.html
+${GEM_LIBDIR}/examples/b.html
+${GEM_LIBDIR}/examples/example.css
+${GEM_LIBDIR}/lib/xhtmldiff.rb
+${GEM_LIBDIR}/setup.rb
+${GEM_HOME}/specifications/xhtmldiff-${PKGVERSION}.gemspec
diff --git a/textproc/ruby-xhtmldiff/distinfo b/textproc/ruby-xhtmldiff/distinfo
new file mode 100644
index 00000000000..e352c9990d4
--- /dev/null
+++ b/textproc/ruby-xhtmldiff/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2017/06/04 16:49:35 taca Exp $
+
+SHA1 (xhtmldiff-1.2.2.tar.gz) = 72692677f214c5e275077b7ce7b32a8fe59436f5
+RMD160 (xhtmldiff-1.2.2.tar.gz) = 81bca58acfd60f985a66564e4fbbc63d6a7af39d
+SHA512 (xhtmldiff-1.2.2.tar.gz) = 4f3edd60060744dd37078937b449f893ae35f016347bc662046effc7f97c9fa2eb62d323f0631456b1f040fde55e4e02de47160ae13751ce18069d120740b7f9
+Size (xhtmldiff-1.2.2.tar.gz) = 10457 bytes
+SHA1 (patch-packaging_xhtmldiff.gemspec) = 0dfacc055e27e2ca248fa43e0b649c2198869582
diff --git a/textproc/ruby-xhtmldiff/patches/patch-packaging_xhtmldiff.gemspec b/textproc/ruby-xhtmldiff/patches/patch-packaging_xhtmldiff.gemspec
new file mode 100644
index 00000000000..4e9dc56155b
--- /dev/null
+++ b/textproc/ruby-xhtmldiff/patches/patch-packaging_xhtmldiff.gemspec
@@ -0,0 +1,14 @@
+$NetBSD: patch-packaging_xhtmldiff.gemspec,v 1.1 2017/06/04 16:49:36 taca Exp $
+
+Fix versuion in gemspec.
+
+--- packaging/xhtmldiff.gemspec.orig 2006-09-07 00:15:50.000000000 +0000
++++ packaging/xhtmldiff.gemspec
+@@ -1,6 +1,6 @@
+ Gem::Specification.new do |s|
+ s.name = %q{xhtmldiff}
+- s.version = "1.0.0"
++ s.version = "1.2.2"
+ s.date = Time.now
+ s.summary = %q{XHTMLDiff is a tool and library for taking valid XHTML documents as input, and generating redlined valid XHTML text highlighting the changes between them as output.}
+ s.author = %q{Aredridel}