summaryrefslogtreecommitdiff
path: root/dev-perl/HTML-TableContentParser
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-perl/HTML-TableContentParser
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-perl/HTML-TableContentParser')
-rw-r--r--dev-perl/HTML-TableContentParser/HTML-TableContentParser-0.130.0.ebuild20
-rw-r--r--dev-perl/HTML-TableContentParser/Manifest6
-rw-r--r--dev-perl/HTML-TableContentParser/files/0.13-test.patch74
-rw-r--r--dev-perl/HTML-TableContentParser/metadata.xml16
4 files changed, 116 insertions, 0 deletions
diff --git a/dev-perl/HTML-TableContentParser/HTML-TableContentParser-0.130.0.ebuild b/dev-perl/HTML-TableContentParser/HTML-TableContentParser-0.130.0.ebuild
new file mode 100644
index 000000000000..642f69822aaa
--- /dev/null
+++ b/dev-perl/HTML-TableContentParser/HTML-TableContentParser-0.130.0.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MODULE_AUTHOR=SDRABBLE
+MODULE_VERSION=0.13
+inherit perl-module
+
+DESCRIPTION="Parse the content of tables in HTML"
+
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE=""
+
+RDEPEND="dev-perl/HTML-Parser"
+DEPEND="${RDEPEND}"
+
+SRC_TEST=do
+PATCHES=( "${FILESDIR}"/0.13-test.patch )
diff --git a/dev-perl/HTML-TableContentParser/Manifest b/dev-perl/HTML-TableContentParser/Manifest
new file mode 100644
index 000000000000..49404c163418
--- /dev/null
+++ b/dev-perl/HTML-TableContentParser/Manifest
@@ -0,0 +1,6 @@
+AUX 0.13-test.patch 2076 SHA256 c17971f5b04398590928b1927809b36b8db90a7aea7c980751fd57b281a005ca SHA512 39037bc38e5bd95f710dbfe005b05f2a355fa075b3f6de3681e6fc812e18850f9ab727ec9012761c6167b35302462223f4d2543dce6135ba63320b0751600bf9 WHIRLPOOL 481dda27c63dc458147f56f3f5283c9a6bac9ed81ce4b4ea3d6d28e12e69ca9e6367a12da5ca0af69e9084387e882e1a6720ce70dfd0236ef3d95f281d5b08d2
+DIST HTML-TableContentParser-0.13.tar.gz 4664 SHA256 3eb9c80f65adf508300a95f591d8c58dcb7d74e90b1b7e5d4d9908599c5b5568 SHA512 0707a0059a7d885052615ee7badecc8915d5f8c67fd8683a226e23a0690f1872519475c32f51f299333c3208c20ea15380624fd0ebd1dc0b11457febfb3db585 WHIRLPOOL 3a446787d8998ea38d971082b3b74a459a64f80ad71c64b0e89767bf9536380594e2a891d524fd075ec8dfd76b3a1bc0a845895c927d6cb86ec3558ba450ecab
+EBUILD HTML-TableContentParser-0.130.0.ebuild 377 SHA256 2bfcd7623d7a53c235c0970f55d5e7790b926468f213619b3141c513579dfbc6 SHA512 c318fb523b0a654ea8ab89dcb2e9c36bba77365843f6d3b1479397dd9f3e0ec136a36483a3cdb26e2625919ce39fac273d0e674d336d101705e8fe2c41811b9f WHIRLPOOL db25811fa3cd54172e095e96edf963021f69df2d3fd69be6194bb9aef5f52cc95c2cd15788c1002c80b67d8d1ec3a3cd4f7273cc5c1562451a82a0916e4efebf
+MISC ChangeLog 2505 SHA256 acb6374e7c3bbdf5e65cb00986973355fbc356e8783ac1baeec0b97278e02820 SHA512 e93428f633e5e88fa4e5e8d4e6ed2af4904c98d448ca7eb0aea340e834ffe7d2657bb4ea3829c39a03c888716050ffde7afae48db18572d587ad3c672ec64863 WHIRLPOOL 9967348ebd8eac5d3b9993b8c89c56eebd2b2dd987e8bfbd8b2474c7ea4efb84ddaab09cf54af6354125e9260042438b98cfd50ecf255ac23a7d5478c12cfd80
+MISC ChangeLog-2015 1775 SHA256 ff2af924c40cfed59f01e81bc1dcfa5c4eee81f07dc33baa0a6bf6eaee895c2e SHA512 f3e60440adf9bf95566b011c4d3a749e07935a40f13a502b07e9f57ede6d0229c4fdfcde8897503520b2eb1ada4331dc84afe5c2b2aded271fde0c6bdcc88005 WHIRLPOOL 464990bb6c0ee6ff4fb9e479cc67bf7c13fc885c744100ded9cd27996db471e26ec1e8c3890f0ab7502ed09efbea7858e0ed4302886c1ea1f4f742b305774512
+MISC metadata.xml 534 SHA256 006d868cf051e5504199a00a0156bf9ef6c002e3db558bf814f0b0359a98d289 SHA512 8afdcb73c8dc04924721658d39ec4d853f3a96501d8e5a0998270890ce33db877328bb4520839ed5a354a72793d26e8f944127bd48fa28ba68e290f52f827c99 WHIRLPOOL 30e1c96ad723d8576abae6502af8c20d3fcc39e44fb2e94cda1f61283b63a8260a6993c2e789eb617fd58cc0dff6ab6e310c126253164be68ea55ba9d8c695ae
diff --git a/dev-perl/HTML-TableContentParser/files/0.13-test.patch b/dev-perl/HTML-TableContentParser/files/0.13-test.patch
new file mode 100644
index 000000000000..79916acc1e1c
--- /dev/null
+++ b/dev-perl/HTML-TableContentParser/files/0.13-test.patch
@@ -0,0 +1,74 @@
+--- t/1.t
++++ t/1.t
+@@ -2,6 +2,8 @@
+
+
+ use Test;
++use strict;
++use warnings;
+
+ BEGIN { plan tests => 34 }
+
+@@ -20,7 +22,7 @@
+
+ ## Test object creation
+
+-$obj = HTML::TableContentParser->new();
++my $obj = HTML::TableContentParser->new();
+ ok(defined $obj, 1, $@);
+
+
+@@ -29,14 +31,14 @@
+ ## the correct values to the callback.
+
+
+-$table_caption = 'This is a caption';
+-$table_content1 = 'This is table cell content 1';
+-$table_content2 = 'This is table cell content 2';
+-$table_content3 = '<a href="SomeLink">This is table cell content 3, a link</a>';
+-$table_content4 = 'Some more text wrapping <a href="SomeLink">This is table cell content 4</a> a link.';
+-$header_text = 'Header text';
++my $table_caption = 'This is a caption';
++my $table_content1 = 'This is table cell content 1';
++my $table_content2 = 'This is table cell content 2';
++my $table_content3 = '<a href="SomeLink">This is table cell content 3, a link</a>';
++my $table_content4 = 'Some more text wrapping <a href="SomeLink">This is table cell content 4</a> a link.';
++my $header_text = 'Header text';
+
+-$html = qq{
++my $html = qq{
+ <html>
+ <head>
+ </head>
+@@ -59,7 +61,7 @@
+
+
+ $HTML::TableContentParser::DEBUG = 0;
+-$tables = $obj->parse($html);
++my $tables = $obj->parse($html);
+ ok($tables->[0]->{caption}->{data}, $table_caption, $@);
+ ok($tables->[0]->{rows}->[0]->{cells}->[0]->{data}, $table_content1, $@);
+ ok($tables->[0]->{rows}->[1]->{cells}->[0]->{data}, $table_content2, $@);
+@@ -124,16 +126,17 @@
+ ok(@$tables, 2, @_);
+
+ ## and three headers for each table
+-for $t (0..$#{@$tables}) {
+- for (0..$#hdrs) {
+- ok($tables->[$t]->{headers}->[$_]->{data}, $hdrs[$_], $@);
++for my $t (0..(@$tables-1)) {
++ for (0..2) {
++ # ok($t, $t);
++ ok($tables->[$t]->{headers}->[$_]->{data}, $hdrs[$_], $@);
+ }
+ }
+
+
+ ## and three rows of three cells each, for each table.. (18 total).
+-for $t (0..$#{@$tables}) {
+- for $r (0..$#rows) {
++for my $t (0..1) {
++ for my $r (0..$#rows) {
+ for (0..2) {
+ ok($tables->[$t]->{rows}->[$r]->{cells}->[$_]->{data}, $rows[$r]->[$_], $@);
+ }
diff --git a/dev-perl/HTML-TableContentParser/metadata.xml b/dev-perl/HTML-TableContentParser/metadata.xml
new file mode 100644
index 000000000000..7ee48c34292c
--- /dev/null
+++ b/dev-perl/HTML-TableContentParser/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>vdr@gentoo.org</email>
+ <name>Gentoo VDR Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="cpan">HTML-TableContentParser</remote-id>
+ <remote-id type="cpan-module">HTML::TableContentParser</remote-id>
+ </upstream>
+</pkgmetadata>