Re: git: 850ef4f5a5e2 - main - math/R-cran-metafor: New port: Meta-analysis package for R

From: Christos Longros <longros_at_FreeBSD.org>
Date: Fri, 16 Oct 2026 15:16:37 UTC
Hey Yusuf,

thanks for the feedback. I will consider implementing the changes you 
suggest.

Regards,

Christos

On 16/10/2026 17:10, Yusuf Yaman wrote:
> Hi Christos,
>
> Thank you for your work.
>
> I think two things can be improved (don't have to make them 
> immediately, maybe in next update to the port).
>
> 1. I see that both BUILD and RUN depends are same, in this case, you 
> can use BUILD_RUN_DEPENDS that is recently added to the framework.
>
> 2. As jrm@ asked as optional, you could have added test dependencies 
> and see if it passes, if possible.
>
> On 10/16/26 18:06, Christos Longros wrote:
>> The branch main has been updated by longros:
>>
>> URL: 
>> https://cgit.FreeBSD.org/ports/commit/?id=850ef4f5a5e2238586582e9fed00fcde310b6fe0
>>
>> commit 850ef4f5a5e2238586582e9fed00fcde310b6fe0
>> Author:     Christos Longros <longros@FreeBSD.org>
>> AuthorDate: 2026-10-13 20:15:19 +0000
>> Commit:     Christos Longros <longros@FreeBSD.org>
>> CommitDate: 2026-10-16 15:04:18 +0000
>>
>>      math/R-cran-metafor: New port: Meta-analysis package for R
>>           Reviewed by:    jrm
>>      Approved by:    jrm (mentor)
>>      Differential Revision:  https://reviews.freebsd.org/D60718
>> ---
>>   math/Makefile                 |  1 +
>>   math/R-cran-metafor/Makefile  | 22 ++++++++++++++++++++++
>>   math/R-cran-metafor/distinfo  |  3 +++
>>   math/R-cran-metafor/pkg-descr | 18 ++++++++++++++++++
>>   4 files changed, 44 insertions(+)
>>
>> diff --git a/math/Makefile b/math/Makefile
>> index af323dbf0c87..74123b7946d0 100644
>> --- a/math/Makefile
>> +++ b/math/Makefile
>> @@ -102,6 +102,7 @@
>>       SUBDIR += R-cran-mcmc
>>       SUBDIR += R-cran-memisc
>>       SUBDIR += R-cran-metadat
>> +    SUBDIR += R-cran-metafor
>>       SUBDIR += R-cran-minqa
>>       SUBDIR += R-cran-misc3d
>>       SUBDIR += R-cran-miscTools
>> diff --git a/math/R-cran-metafor/Makefile b/math/R-cran-metafor/Makefile
>> new file mode 100644
>> index 000000000000..3383ab2c5b7a
>> --- /dev/null
>> +++ b/math/R-cran-metafor/Makefile
>> @@ -0,0 +1,22 @@
>> +PORTNAME=    metafor
>> +DISTVERSION=    5.2-1
>> +CATEGORIES=    math
>> +DISTNAME=    ${PORTNAME}_${DISTVERSION}
>> +
>> +MAINTAINER=    longros@FreeBSD.org
>> +COMMENT=    Meta-analysis package for R
>> +WWW= https://cran.r-project.org/web/packages/metafor/index.html
>> +
>> +LICENSE=    GPLv2+
>> +
>> +CRAN_DEPENDS=    R-cran-digest>0:security/R-cran-digest \
>> +        R-cran-mathjaxr>0:math/R-cran-mathjaxr \
>> +        R-cran-metadat>0:math/R-cran-metadat \
>> +        R-cran-numDeriv>0:math/R-cran-numDeriv \
>> +        R-cran-pbapply>0:devel/R-cran-pbapply
>> +BUILD_DEPENDS=    ${CRAN_DEPENDS}
>> +RUN_DEPENDS=    ${CRAN_DEPENDS}
>> +
>> +USES=        cran:auto-plist
>> +
>> +.include <bsd.port.mk>
>> diff --git a/math/R-cran-metafor/distinfo b/math/R-cran-metafor/distinfo
>> new file mode 100644
>> index 000000000000..20cec8a459a2
>> --- /dev/null
>> +++ b/math/R-cran-metafor/distinfo
>> @@ -0,0 +1,3 @@
>> +TIMESTAMP = 1791922518
>> +SHA256 (metafor_5.2-1.tar.gz) = 
>> 25c421cf52279294b11ab3166adfeb327dd22034a03a46487f081a19a163339b
>> +SIZE (metafor_5.2-1.tar.gz) = 5037964
>> diff --git a/math/R-cran-metafor/pkg-descr 
>> b/math/R-cran-metafor/pkg-descr
>> new file mode 100644
>> index 000000000000..b4773a9987c8
>> --- /dev/null
>> +++ b/math/R-cran-metafor/pkg-descr
>> @@ -0,0 +1,18 @@
>> +A comprehensive collection of functions for conducting meta-analyses in
>> +R. The package includes functions to calculate various effect sizes or
>> +outcome measures, fit equal-, fixed-, random-, and mixed-effects models
>> +to such data, carry out moderator and meta-regression analyses, and
>> +create various types of meta-analytical plots (e.g., forest, funnel,
>> +radial, L'Abbe, Baujat, bubble, and GOSH plots). For meta-analyses of
>> +binomial and person-time data, the package also provides functions that
>> +implement specialized methods, including the Mantel-Haenszel method,
>> +Peto's method, and a variety of suitable generalized linear
>> +(mixed-effects) models (i.e., mixed-effects logistic and Poisson
>> +regression models). Finally, the package provides functionality for
>> +fitting meta-analytic multivariate/multilevel models that account for
>> +non-independent sampling errors and/or true effects (e.g., due to the
>> +inclusion of multiple treatment studies, multiple endpoints, or other
>> +forms of clustering). Network meta-analyses and meta-analyses 
>> accounting
>> +for known correlation structures (e.g., due to phylogenetic 
>> relatedness)
>> +can also be conducted. An introduction to the package can be found in
>> +Viechtbauer (2010) <doi:10.18637/jss.v036.i03>.
>>