From c6d429acc07716e25afd9f5104e5993865f96d9d Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Mon, 20 Feb 2012 00:06:30 +0000 Subject: [PATCH] - Update to version 1.3.2 PR: 164998 Submitted by: Ports Fury --- math/yacas/Makefile | 23 ++++++++++++++++++----- math/yacas/distinfo | 4 ++-- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/math/yacas/Makefile b/math/yacas/Makefile index 2cf66b979553..8e03a5181c49 100644 --- a/math/yacas/Makefile +++ b/math/yacas/Makefile @@ -7,7 +7,7 @@ # PORTNAME= yacas -PORTVERSION= 1.3.1 +PORTVERSION= 1.3.2 CATEGORIES= math MASTER_SITES= http://yacas.sourceforge.net/backups/ @@ -17,6 +17,8 @@ COMMENT= Yet Another Computer Algebra System LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING +OPTIONS= TESTS "Run bundled self-tests after build" on + USE_PERL5_BUILD=yes USE_GMAKE= yes USE_AUTOTOOLS= libtool @@ -24,17 +26,28 @@ MAKE_JOBS_SAFE= yes .include +.if ${ARCH} == "sparc64" +BROKEN= Does not compile with GCC 4.2 +.endif + .if !defined(NOPORTDOCS) CONFIGURE_ARGS+= --enable-html-doc --with-html-dir=${DOCSDIR} .else CONFIGURE_ARGS+= --disable-html-doc .endif -.if ${ARCH} == "amd64" || ${ARCH} == "sparc64" -BROKEN= Does not compile with GCC 4.2 +.if !defined(WITHOUT_TESTS) +BUILD_DEPENDS+= bash:${PORTSDIR}/shells/bash .endif -test: build - @cd ${WRKSRC} && ${GMAKE} test +post-patch: + @${REINPLACE_CMD} -e \ + 's| /bin/bash| ${LOCALBASE}/bin/bash|' ${WRKSRC}/tests/test-yacas + +post-build: +.if !defined(WITHOUT_TESTS) + @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \ + ${MAKEFILE} check ${MAKE_ARGS}) +.endif .include diff --git a/math/yacas/distinfo b/math/yacas/distinfo index e102e1091342..0dc496e9d34c 100644 --- a/math/yacas/distinfo +++ b/math/yacas/distinfo @@ -1,2 +1,2 @@ -SHA256 (yacas-1.3.1.tar.gz) = 61d10c38af1e450ef325cc874143ceb414a4fdd4d7b4564bd0a65e090aa16b6c -SIZE (yacas-1.3.1.tar.gz) = 1292136 +SHA256 (yacas-1.3.2.tar.gz) = 82c7dc0de492b4290633e6abf18d35a2ec03117e6ea3e0f9418e6e85372c030e +SIZE (yacas-1.3.2.tar.gz) = 1292706