aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2015-05-16 21:34:46 +0800
committersunpoet <sunpoet@FreeBSD.org>2015-05-16 21:34:46 +0800
commitc68ed408f477402bce477ce04a9939fa3ca9e89a (patch)
treee29c3626e6845685a389ab648f1a3da096b8cfb6
parent6ceeb06246f3b5d1e09f3e60e9d8e4cfb8121117 (diff)
downloadfreebsd-ports-gnome-c68ed408f477402bce477ce04a9939fa3ca9e89a.tar.gz
freebsd-ports-gnome-c68ed408f477402bce477ce04a9939fa3ca9e89a.tar.zst
freebsd-ports-gnome-c68ed408f477402bce477ce04a9939fa3ca9e89a.zip
- Add rubygem-nokogiri-diff 0.2.0
nokogiri-diff adds the ability to calculate the differences (added or removed nodes) between two XML/HTML documents. Features: - Performs a breadth-first comparison between children nodes. - Compares XML/HTML Elements, Attributes, Text nodes and DTD nodes. - Allows calculating differences between documents, or just enumerating the added or removed nodes. WWW: https://github.com/postmodern/nokogiri-diff RG: https://rubygems.org/gems/nokogiri-diff
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/rubygem-nokogiri-diff/Makefile21
-rw-r--r--textproc/rubygem-nokogiri-diff/distinfo2
-rw-r--r--textproc/rubygem-nokogiri-diff/pkg-descr11
4 files changed, 35 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 9fbca6e90da3..799b442086c8 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1370,6 +1370,7 @@
SUBDIR += rubygem-markaby
SUBDIR += rubygem-multi_xml
SUBDIR += rubygem-nokogiri
+ SUBDIR += rubygem-nokogiri-diff
SUBDIR += rubygem-nokogiri14
SUBDIR += rubygem-nokogumbo
SUBDIR += rubygem-opml
diff --git a/textproc/rubygem-nokogiri-diff/Makefile b/textproc/rubygem-nokogiri-diff/Makefile
new file mode 100644
index 000000000000..2b7266d4ff2f
--- /dev/null
+++ b/textproc/rubygem-nokogiri-diff/Makefile
@@ -0,0 +1,21 @@
+# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= nokogiri-diff
+PORTVERSION= 0.2.0
+CATEGORIES= textproc rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Calculate the differences between two XML/HTML documents
+
+LICENSE= MIT
+
+RUN_DEPENDS= rubygem-nokogiri>=1.5:${PORTSDIR}/textproc/rubygem-nokogiri \
+ rubygem-tdiff>=0.3.2:${PORTSDIR}/devel/rubygem-tdiff
+
+USE_RUBY= yes
+USE_RUBYGEMS= yes
+RUBYGEM_AUTOPLIST= yes
+
+.include <bsd.port.mk>
diff --git a/textproc/rubygem-nokogiri-diff/distinfo b/textproc/rubygem-nokogiri-diff/distinfo
new file mode 100644
index 000000000000..566fba397ae7
--- /dev/null
+++ b/textproc/rubygem-nokogiri-diff/distinfo
@@ -0,0 +1,2 @@
+SHA256 (rubygem/nokogiri-diff-0.2.0.gem) = 81d150ac59ac613c194fe9e4cf9122872632b7d457acae825c202b2e880e595a
+SIZE (rubygem/nokogiri-diff-0.2.0.gem) = 8704
diff --git a/textproc/rubygem-nokogiri-diff/pkg-descr b/textproc/rubygem-nokogiri-diff/pkg-descr
new file mode 100644
index 000000000000..5d58e3221784
--- /dev/null
+++ b/textproc/rubygem-nokogiri-diff/pkg-descr
@@ -0,0 +1,11 @@
+nokogiri-diff adds the ability to calculate the differences (added or removed
+nodes) between two XML/HTML documents.
+
+Features:
+- Performs a breadth-first comparison between children nodes.
+- Compares XML/HTML Elements, Attributes, Text nodes and DTD nodes.
+- Allows calculating differences between documents, or just enumerating the
+ added or removed nodes.
+
+WWW: https://github.com/postmodern/nokogiri-diff
+RG: https://rubygems.org/gems/nokogiri-diff