aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authortz <tz@FreeBSD.org>2017-03-09 22:25:12 +0800
committertz <tz@FreeBSD.org>2017-03-09 22:25:12 +0800
commite79eef8da4d8bda6f7394756a3d1cd9239ea6af4 (patch)
tree458b7d9b8d9087ef8a2ca797fed7973a2821a90b /textproc
parent4d29c9e67f1cf20b2cde7bee9e3d28018eac1a48 (diff)
downloadfreebsd-ports-gnome-e79eef8da4d8bda6f7394756a3d1cd9239ea6af4.tar.gz
freebsd-ports-gnome-e79eef8da4d8bda6f7394756a3d1cd9239ea6af4.tar.zst
freebsd-ports-gnome-e79eef8da4d8bda6f7394756a3d1cd9239ea6af4.zip
New port: textproc/rubygem-html2text
html2text is a very simple script that uses Ruby's DOM methods to load HTML from a string, and then iterates over the resulting DOM to correctly output plain text. WWW: https://github.com/soundasleep/html2text_ruby
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/rubygem-html2text/Makefile21
-rw-r--r--textproc/rubygem-html2text/distinfo3
-rw-r--r--textproc/rubygem-html2text/pkg-descr5
4 files changed, 30 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 122afb609651..82400fc16064 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1474,6 +1474,7 @@
SUBDIR += rubygem-html-pipeline
SUBDIR += rubygem-html-pipeline-gitlab
SUBDIR += rubygem-html-pipeline1
+ SUBDIR += rubygem-html2text
SUBDIR += rubygem-htmlentities
SUBDIR += rubygem-ini
SUBDIR += rubygem-itextomml
diff --git a/textproc/rubygem-html2text/Makefile b/textproc/rubygem-html2text/Makefile
new file mode 100644
index 000000000000..ba82eceefa35
--- /dev/null
+++ b/textproc/rubygem-html2text/Makefile
@@ -0,0 +1,21 @@
+# Created by: Torsten Zuehlsdorff <tz@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= html2text
+PORTVERSION= 0.2.0
+CATEGORIES= textproc rubygems
+MASTER_SITES= RG
+
+MAINTAINER= ruby@FreeBSD.org
+COMMENT= Convert HTML into a plain text format
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.md
+
+RUN_DEPENDS= rubygem-nokogiri>=1.6:textproc/rubygem-nokogiri
+
+NO_ARCH= yes
+USE_RUBY= yes
+USES= gem
+
+.include <bsd.port.mk>
diff --git a/textproc/rubygem-html2text/distinfo b/textproc/rubygem-html2text/distinfo
new file mode 100644
index 000000000000..75a2526f4c37
--- /dev/null
+++ b/textproc/rubygem-html2text/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1489069258
+SHA256 (rubygem/html2text-0.2.0.gem) = 31c2f0be9ab7aa4fc780b07d5f84882ebc22a9024c29a45f4f5adfe42e92ad4f
+SIZE (rubygem/html2text-0.2.0.gem) = 11776
diff --git a/textproc/rubygem-html2text/pkg-descr b/textproc/rubygem-html2text/pkg-descr
new file mode 100644
index 000000000000..3d481b3e67f7
--- /dev/null
+++ b/textproc/rubygem-html2text/pkg-descr
@@ -0,0 +1,5 @@
+html2text is a very simple script that uses Ruby's DOM
+methods to load HTML from a string, and then iterates
+over the resulting DOM to correctly output plain text.
+
+WWW: https://github.com/soundasleep/html2text_ruby