math/libRmath: upgrade to 4.2.2

Also remove the FLANG option (it does not exist).
This commit is contained in:
Thierry Thomas 2022-12-28 16:55:40 +01:00
parent 6959b33b7f
commit 0d238969f0
2 changed files with 5 additions and 22 deletions

View file

@ -1,5 +1,5 @@
PORTNAME= libRmath
DISTVERSION= 4.1.2
DISTVERSION= 4.2.2
CATEGORIES= math lang
MASTER_SITES= CRAN/src/base/R-${PORTVERSION:C|\..*||}
DISTNAME= R-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
@ -15,7 +15,7 @@ ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc64 powerpc64le
LIB_DEPENDS= libcurl.so:ftp/curl \
libpcre2-8.so:devel/pcre2
USES= localbase
USES= fortran localbase pathfix
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
@ -36,25 +36,8 @@ BUILD_WRKSRC= ${WRKSRC}/src/nmath/standalone
PLIST_SUB= RMATH_SOVERSION="${_RMATH_SOVERSION}"
OPTIONS_DEFINE= FLANG
OPTIONS_EXCLUDE_aarch64= FLANG
OPTIONS_EXCLUDE_armv6= FLANG
OPTIONS_EXCLUDE_armv7= FLANG
OPTIONS_EXCLUDE_i386= FLANG
FLANG_DESC= Use experimental flang instead of default Fortran compiler
FLANG_USES= fortran:flang
FLANG_USES_OFF= fortran
_RMATH_SOVERSION= ${DISTVERSION:R}
post-patch:
@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|g'\
${WRKSRC}/src/nmath/standalone/Makefile.in \
${WRKSRC}/src/unix/Makefile.in
@${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|g" \
${WRKSRC}/configure
do-install:
${INSTALL_DATA} ${WRKSRC}/src/include/Rmath.h ${STAGEDIR}${PREFIX}/include
${INSTALL_DATA} ${BUILD_WRKSRC}/libRmath.a ${STAGEDIR}${PREFIX}/lib

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1641419692
SHA256 (R-4.1.2.tar.gz) = 2036225e9f7207d4ce097e54972aecdaa8b40d7d9911cd26491fac5a0fab38af
SIZE (R-4.1.2.tar.gz) = 34009074
TIMESTAMP = 1672236901
SHA256 (R-4.2.2.tar.gz) = 0ff62b42ec51afa5713caee7c4fde7a0c45940ba39bef8c5c9487fef0c953df5
SIZE (R-4.2.2.tar.gz) = 33987014