diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-perl/WordNet-QueryData | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-perl/WordNet-QueryData')
6 files changed, 158 insertions, 0 deletions
diff --git a/dev-perl/WordNet-QueryData/Manifest b/dev-perl/WordNet-QueryData/Manifest new file mode 100644 index 000000000000..e75a75cf47f4 --- /dev/null +++ b/dev-perl/WordNet-QueryData/Manifest @@ -0,0 +1 @@ +DIST WordNet-QueryData-1.49.tar.gz 19656 BLAKE2B 290a214539a689e43d0fbad88af8195af95c54378eece4b2913cbfc8950af7041748dc5c8a2ad2f47770f5fb5b95cd6708a9cff93f91b32aa6c424dcc382655b SHA512 41a092f762da0048367648b1c3bcdfb311b7241329ebfb0569b5bd3d5918304d34319c74e9bf8c60ce7316d084c434bfcc54963e21c4ab0999ab0ba022dcb192 diff --git a/dev-perl/WordNet-QueryData/WordNet-QueryData-1.490.0-r2.ebuild b/dev-perl/WordNet-QueryData/WordNet-QueryData-1.490.0-r2.ebuild new file mode 100644 index 000000000000..c6ffadef6406 --- /dev/null +++ b/dev-perl/WordNet-QueryData/WordNet-QueryData-1.490.0-r2.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=JRENNIE +DIST_VERSION=1.49 +inherit perl-module + +DESCRIPTION="Direct perl interface to WordNet database" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="app-dicts/wordnet" +RDEPEND="${DEPEND}" +PATCHES=( + "${FILESDIR}/${PN}-1.49-paths.patch" + "${FILESDIR}/${PN}-1.49-test-counts.patch" + "${FILESDIR}/${PN}-1.49-harness.patch" +) diff --git a/dev-perl/WordNet-QueryData/files/WordNet-QueryData-1.49-harness.patch b/dev-perl/WordNet-QueryData/files/WordNet-QueryData-1.49-harness.patch new file mode 100644 index 000000000000..c0e4a7ba791e --- /dev/null +++ b/dev-perl/WordNet-QueryData/files/WordNet-QueryData-1.49-harness.patch @@ -0,0 +1,31 @@ +From a29056d2dca8cfb27750e391a95dd2f612a02a87 Mon Sep 17 00:00:00 2001 +From: Kent Fredric <kentnl@gentoo.org> +Date: Wed, 21 Mar 2018 22:28:11 +1300 +Subject: Reorganize into proper test structure to make harness work + +--- + MANIFEST | 2 +- + test.pl => t/wnqd.t | 0 + 2 files changed, 1 insertion(+), 1 deletion(-) + rename test.pl => t/wnqd.t (100%) + +diff --git a/MANIFEST b/MANIFEST +index 6b05bf0..3c8aeaa 100644 +--- a/MANIFEST ++++ b/MANIFEST +@@ -1,7 +1,7 @@ + ChangeLog + Makefile.PL + README +-test.pl ++t/wnqd.t + QueryData.pm + MANIFEST + META.yml Module meta-data (added by MakeMaker) +diff --git a/test.pl b/t/wnqd.t +similarity index 100% +rename from test.pl +rename to t/wnqd.t +-- +2.16.2 + diff --git a/dev-perl/WordNet-QueryData/files/WordNet-QueryData-1.49-paths.patch b/dev-perl/WordNet-QueryData/files/WordNet-QueryData-1.49-paths.patch new file mode 100644 index 000000000000..72cb934ae019 --- /dev/null +++ b/dev-perl/WordNet-QueryData/files/WordNet-QueryData-1.49-paths.patch @@ -0,0 +1,48 @@ +From 4efc840a9f8041c3d08de8e06d5b5386fca94e4a Mon Sep 17 00:00:00 2001 +From: Kent Fredric <kentnl@gentoo.org> +Date: Wed, 21 Mar 2018 22:15:30 +1300 +Subject: Use system wordnet path instead of usr/local + +--- + Makefile.PL | 2 +- + QueryData.pm | 4 ++-- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Makefile.PL b/Makefile.PL +index d192f6d..1932c8f 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -5,7 +5,7 @@ use ExtUtils::MakeMaker; + # $wnHomePC). These need to be synchronized. I need to import those + # variables from QueryData.pm. + +-die "*** Please set the WNHOME environment variable to the location of your\n*** WordNet installation. QueryData.pm will not work otherwise.\n*** Alternatively, you can make the installation in the default\n*** location, C:\\Program Files\\WordNet\\3.0 on Windows, or /usr/local/WordNet-3.0 on unix.\n" unless exists $ENV{WNHOME} or exists $ENV{WNSEARCHDIR} or -d "C:\\Program Files\\WordNet\\3.0" or -d "/usr/local/WordNet-3.0"; ++die "*** Please set the WNHOME environment variable to the location of your\n*** WordNet installation. QueryData.pm will not work otherwise.\n*** Alternatively, you can make the installation in the default\n*** location, C:\\Program Files\\WordNet\\3.0 on Windows, or /usr/share/wordnet on unix.\n" unless exists $ENV{WNHOME} or exists $ENV{WNSEARCHDIR} or -d "C:\\Program Files\\WordNet\\3.0" or -d "/usr/share/wordnet"; + + WriteMakefile( + 'dist' => { 'COMPRESS' => 'gzip', 'SUFFIX' => '.gz', }, +diff --git a/QueryData.pm b/QueryData.pm +index ee27ee6..fc6168a 100644 +--- a/QueryData.pm ++++ b/QueryData.pm +@@ -201,7 +201,7 @@ my @excFile = ("", "noun.exc", "verb.exc", "adj.exc", "adv.exc"); + my @indexFile = ("", "index.noun", "index.verb", "index.adj", "index.adv"); + my @dataFile = ("", "data.noun", "data.verb", "data.adj", "data.adv"); + +-my $wnHomeUnix = defined($ENV{"WNHOME"}) ? $ENV{"WNHOME"} : "/usr/local/WordNet-3.0"; ++my $wnHomeUnix = defined($ENV{"WNHOME"}) ? $ENV{"WNHOME"} : "/usr/share/wordnet"; + my $wnHomePC = defined($ENV{"WNHOME"}) ? $ENV{"WNHOME"} : "C:\\Program Files\\WordNet\\3.0"; + my $wnPrefixUnix = defined($ENV{"WNSEARCHDIR"}) ? $ENV{"WNSEARCHDIR"} : "$wnHomeUnix/dict"; + my $wnPrefixPC = defined($ENV{"WNSEARCHDIR"}) ? $ENV{"WNSEARCHDIR"} : "$wnHomePC\\dict"; +@@ -1113,7 +1113,7 @@ QueryData knows about two environment variables, WNHOME and + WNSEARCHDIR. If WNSEARCHDIR is set, QueryData looks for WordNet data + files there. Otherwise, QueryData looks for WordNet data files in + WNHOME/dict (WNHOME\dict on a PC). If WNHOME is not set, it defaults +-to "/usr/local/WordNet-3.0" on Unix and "C:\Program Files\WordNet\3.0" ++to "/usr/share/wordnet" on Unix and "C:\Program Files\WordNet\3.0" + on a PC. Normally, all you have to do is to set the WNHOME variable + to the location where you unpacked your WordNet distribution. The + database files are normally unpacked to the "dict" subdirectory. +-- +2.16.2 + diff --git a/dev-perl/WordNet-QueryData/files/WordNet-QueryData-1.49-test-counts.patch b/dev-perl/WordNet-QueryData/files/WordNet-QueryData-1.49-test-counts.patch new file mode 100644 index 000000000000..e06c872e0128 --- /dev/null +++ b/dev-perl/WordNet-QueryData/files/WordNet-QueryData-1.49-test-counts.patch @@ -0,0 +1,43 @@ +From fe7f10589ee4da4a834e1f6355bb203de644920e Mon Sep 17 00:00:00 2001 +From: Kent Fredric <kentnl@gentoo.org> +Date: Wed, 21 Mar 2018 22:24:09 +1300 +Subject: Remove tests dependent on specific counts of dictionary terms + +This was never going to be portable against newer wordnet data releases +--- + test.pl | 10 +++------- + 1 file changed, 3 insertions(+), 7 deletions(-) + +diff --git a/test.pl b/test.pl +index 537aa7b..386c66c 100644 +--- a/test.pl ++++ b/test.pl +@@ -5,7 +5,8 @@ + # $Id: test.pl,v 1.40 2007/05/07 01:08:31 jrennie Exp $ + + my $i = 1; +-BEGIN { ++BEGIN { ++ print "1..103\n"; + $| = 1; + } + END { print "not ok 1\n" unless $loaded; } +@@ -162,14 +163,9 @@ $foo[1] == 2 + ? print "ok ", $i++, "\n" : print "not ok ", $i++, "\n"; + ($wn->querySense('acropetal#a#1', 'dmnc'))[0] eq 'botany#n#2' + ? print "ok ", $i++, "\n" : print "not ok ", $i++, "\n"; +-scalar $wn->offset("0#n#1") == 13742358 +- ? print "ok ", $i++, "\n" : print "not ok ", $i++, "\n"; + +-scalar $wn->listAllWords("noun") == 117798 +- ? print "ok ", $i++, "\n" : print "not ok ", $i++, "\n"; +-$wn->offset("child#n#1") == 9917593 +- ? print "ok ", $i++, "\n" : print "not ok ", $i++, "\n"; + my ($foo) = $wn->querySense ("cat#n#1", "glos"); + ($foo eq "feline mammal usually having thick soft fur and no ability to roar: domestic cats; wildcats ") ? print "ok ", $i++, "\n" : print "not ok ", $i++, "\n"; + + } ++print "0..$i\n"; +-- +2.16.2 + diff --git a/dev-perl/WordNet-QueryData/metadata.xml b/dev-perl/WordNet-QueryData/metadata.xml new file mode 100644 index 000000000000..6bd037e96892 --- /dev/null +++ b/dev-perl/WordNet-QueryData/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>perl@gentoo.org</email> + <name>Gentoo Perl Project</name> + </maintainer> + <upstream> + <remote-id type="cpan">WordNet-QueryData</remote-id> + <remote-id type="cpan-module">WordNet::QueryData</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> |
