On Tue, 2 Feb 2021 09:26:53 +0000
wen heping <wenheping2...@hotmail.com> wrote:

> Hi, ports@:
> 
>     Here is a patch for textproc/p5-Lingua-Stem:
>     i) Update to 2.31
>     ii) Add devel/p5-Test-Distribution to TEST_DEPENDS and
> add TEST_POD_COVERAGE=1 to MAKE_ENV
>
>    It build well and pass all tests on amd64-6.8 system.
>    Only one port depends on it: textproc/p5-Lingua-EN-Tagger, it
> build well and pass all tests with this patch.
> 
> 
> wen

OK cwen@, but with some changes:

- drop BUILD_DEPENDS = RUN_DEPENDS
- add TEST_POD=1, otherwise it won't pull the proper test depends for
  pod testing
- add version check for some depends, as stated in the meta files
- spacing and casing tweaks

Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/p5-Lingua-Stem/Makefile,v
retrieving revision 1.14
diff -u -p -u -p -r1.14 Makefile
--- Makefile    3 Jul 2020 21:45:47 -0000       1.14
+++ Makefile    2 Feb 2021 13:05:16 -0000
@@ -4,25 +4,26 @@ COMMENT=      stemming of words
 
 MODULES=       cpan
 PKG_ARCH=      *
-DISTNAME=      Lingua-Stem-0.84
+DISTNAME=      Lingua-Stem-2.31
 CATEGORIES=    textproc
-REVISION=      0
 
-# perl
+# Perl
 PERMIT_PACKAGE=        Yes
 
-CONFIGURE_STYLE=modbuild
+CONFIGURE_STYLE=       modbuild
 
-BUILD_DEPENDS= ${RUN_DEPENDS}
 RUN_DEPENDS=   textproc/p5-Lingua-PT-Stemmer \
-               textproc/p5-Lingua-Stem-Fr \
+               textproc/p5-Lingua-Stem-Fr>=0.02 \
                textproc/p5-Lingua-Stem-It \
                textproc/p5-Lingua-Stem-Ru \
-               textproc/p5-Lingua-Stem-Snowball-Da \
+               textproc/p5-Lingua-Stem-Snowball-Da>=1.01 \
                textproc/p5-Lingua-Stem-Snowball-No \
                textproc/p5-Lingua-Stem-Snowball-Se \
                textproc/p5-Text-German
+TEST_DEPENDS=  devel/p5-Test-Distribution
 
 MODCPAN_EXAMPLES=      Yes
+
+MAKE_ENV +=    TEST_POD_COVERAGE=1 TEST_POD=1
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/textproc/p5-Lingua-Stem/distinfo,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 distinfo
--- distinfo    18 Jan 2015 03:15:24 -0000      1.5
+++ distinfo    2 Feb 2021 13:05:16 -0000
@@ -1,2 +1,2 @@
-SHA256 (Lingua-Stem-0.84.tar.gz) = j/VLbhOuloAEXThjanvz241D1lslZ6hrpfQwa6uAW4k=
-SIZE (Lingua-Stem-0.84.tar.gz) = 1358061
+SHA256 (Lingua-Stem-2.31.tar.gz) = qhqZMrZCflmCU+YajM0NBMxVn66dWNh3TCAncItjAmQ=
+SIZE (Lingua-Stem-2.31.tar.gz) = 1354267

Reply via email to