Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Oct 2016 18:18:57 +0000 (UTC)
From:      Joseph Mingrone <jrm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r424642 - head/math/libRmath
Message-ID:  <201610251818.u9PIIv3M000227@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jrm
Date: Tue Oct 25 18:18:56 2016
New Revision: 424642
URL: https://svnweb.freebsd.org/changeset/ports/424642

Log:
  math/libRmath: make standalone (free from math/R) and unmark as
  BROKEN
  
  Approved by:	swills (mentor)
  Differential Revision:	https://reviews.freebsd.org/D8289

Added:
  head/math/libRmath/distinfo   (contents, props changed)
Modified:
  head/math/libRmath/Makefile

Modified: head/math/libRmath/Makefile
==============================================================================
--- head/math/libRmath/Makefile	Tue Oct 25 17:57:29 2016	(r424641)
+++ head/math/libRmath/Makefile	Tue Oct 25 18:18:56 2016	(r424642)
@@ -1,17 +1,44 @@
 # Created by: Eric van Gyzen <vangyzen@stat.duke.edu>
 # $FreeBSD$
 
-PORTNAME=	libRmath
+PORTNAME=		libRmath
+PORTVERSION=		3.3.1
+CATEGORIES=		math lang
+MASTER_SITES=		CRAN/src/base/R-${PORTVERSION:C|\..*||}
+DISTNAME=		R-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
+
+MAINTAINER=		jrm@FreeBSD.org
+COMMENT=		Standalone math library from R
+
+LICENSE=		GPLv2
+
+LIB_DEPENDS=		libcurl.so:ftp/curl \
+			libpcre.so:devel/pcre
+
+BUILD_WRKSRC=		${WRKSRC}/src/nmath/standalone
+CONFIGURE_ARGS=		--disable-nls --with-ICU=no --with-cairo=no \
+			--with-jpeglib=no --with-libpng=no --with-libtiff=no \
+			--with-readline=no --with-tcltk=no --with-x=no \
+			--without-libintl-prefix
+CONFIGURE_ENV+=		ac_cv_header_iconv_h=no
+GNU_CONFIGURE=		yes
+RMATH_SOVERSION=	1
+USES=			fortran localbase
+USE_LDCONFIG=		yes
+
+PLIST_SUB=		RMATH_SOVERSION="${RMATH_SOVERSION}"
+
+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
+	${INSTALL_LIB} ${BUILD_WRKSRC}/libRmath.so ${STAGEDIR}${PREFIX}/lib/libRmath.so
+	(cd ${STAGEDIR}${PREFIX}/lib; ${LN} -sf libRmath.so libRmath.so.${RMATH_SOVERSION})
 
-COMMENT=	The standalone math library from R
-
-BROKEN=		fails to configure
-
-DESCR=	${.CURDIR}/pkg-descr
-LIBRMATH_SLAVEPORT=	yes
-MASTERDIR=	${.CURDIR}/../R
-PLIST=	${.CURDIR}/pkg-plist
-
-BROKEN_powerpc64=	Does not build
-
-.include "${MASTERDIR}/Makefile"
+.include <bsd.port.mk>

Added: head/math/libRmath/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/libRmath/distinfo	Tue Oct 25 18:18:56 2016	(r424642)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1476901394
+SHA256 (R-3.3.1.tar.gz) = 3dc59ae5831f5380f83c169bac2103ad052efe0ecec4ffa74bde4d85a0fda9e2
+SIZE (R-3.3.1.tar.gz) = 29848329



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610251818.u9PIIv3M000227>