Date: Thu, 16 Apr 2015 06:17:59 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r384082 - in head/math/gracetmpl: . files Message-ID: <201504160617.t3G6HxXf058038@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Thu Apr 16 06:17:58 2015 New Revision: 384082 URL: https://svnweb.freebsd.org/changeset/ports/384082 Log: - Add LICENSE - Fix install wrt PREFIX/LOCALBASE - Fix build on >= 10.0 - Strip library Added: head/math/gracetmpl/files/patch-gracetmpldemo.cpp (contents, props changed) Modified: head/math/gracetmpl/Makefile head/math/gracetmpl/files/patch-gracetmpl.cc Modified: head/math/gracetmpl/Makefile ============================================================================== --- head/math/gracetmpl/Makefile Thu Apr 16 02:05:18 2015 (r384081) +++ head/math/gracetmpl/Makefile Thu Apr 16 06:17:58 2015 (r384082) @@ -3,6 +3,7 @@ PORTNAME= gracetmpl PORTVERSION= 0.3.2 +PORTREVISION= 1 CATEGORIES= math print MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} @@ -12,6 +13,9 @@ COMMENT= Provide an easy way to use exis BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/numarray/__init__.py:${PORTSDIR}/math/py-numarray RUN_DEPENDS= ${PYTHON_SITELIBDIR}/numarray/__init__.py:${PORTSDIR}/math/py-numarray +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + USES= gmake python tar:bzip2 MAKE_ARGS= PREFIX="${PREFIX}" \ BIN_PREFIX="${PREFIX}/bin" \ @@ -25,6 +29,7 @@ MAKE_ARGS= PREFIX="${PREFIX}" \ PYTHON="${PYTHON_CMD}" ALL_TARGET= all pythonwrap INSTALL_TARGET= install +USE_GCC= yes PLIST_SUB+= PYTHON_VER=${PYTHON_VER} @@ -36,7 +41,8 @@ post-patch: post-install: @(cd ${INSTALL_WRKSRC}/python; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py \ - install --root=${STAGEDIR} --prefix=${LOCALBASE} -c -O1) + install --root=${STAGEDIR} --prefix=${PREFIX} -c -O1) + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/graceTMPL/graceTMPL.so @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/html/* ${STAGEDIR}${DOCSDIR} Modified: head/math/gracetmpl/files/patch-gracetmpl.cc ============================================================================== --- head/math/gracetmpl/files/patch-gracetmpl.cc Thu Apr 16 02:05:18 2015 (r384081) +++ head/math/gracetmpl/files/patch-gracetmpl.cc Thu Apr 16 06:17:58 2015 (r384082) @@ -1,6 +1,11 @@ ---- gracetmpl.cpp.bak Fri Sep 24 21:56:02 2004 -+++ gracetmpl.cpp Sat Jun 18 00:18:52 2005 -@@ -24,7 +24,7 @@ +--- gracetmpl.cpp.orig 2004-09-24 16:56:02.000000000 +0400 ++++ gracetmpl.cpp +@@ -21,10 +21,12 @@ + #include <vector> + #include <map> + #include <iostream> ++#include <cstring> ++#include <cstdlib> extern "C" { #include <math.h> @@ -9,7 +14,7 @@ #include <ctype.h> #include <time.h> #include <sys/time.h> -@@ -981,7 +981,7 @@ +@@ -981,7 +983,7 @@ string time2string (const string &format gettimeofday(&tv,0); size= (tm==0) ? Added: head/math/gracetmpl/files/patch-gracetmpldemo.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/gracetmpl/files/patch-gracetmpldemo.cpp Thu Apr 16 06:17:58 2015 (r384082) @@ -0,0 +1,16 @@ +--- gracetmpldemo.cpp.orig 2003-03-04 10:32:45 UTC ++++ gracetmpldemo.cpp +@@ -3,11 +3,13 @@ extern "C" { + #include <stdlib.h> + #include <stdio.h> + #include <getopt.h> ++#include <sys/syslimits.h> + } + #include <iostream> + #include <string> + #include <vector> + #include <map> ++#include <cstring> + + #include "gracetmpl.h" +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504160617.t3G6HxXf058038>