From ddebd2795922b2682efeffea1de2f9c8b7391046 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Wed, 29 Mar 2017 05:18:30 +0000 Subject: - Resurrect `math/mprime' and unbreak (stagify) - Update to version 26.6, the latest for the i386 binary - Do not mangle version with `0.0.'-prefix, use official one - Add missing LIB_DEPENDS against `misc/compat9x' - Define DOCS option and use target helper target to install - Make installation commands vocal (unmute them) - Update and tidy up port description text while here - Drop deprecated @dirrm entry from pkg-plist TIMESTAMP (mprime266-FreeBSD.tar.gz) = 1302303090 --- math/Makefile | 1 + math/mprime/Makefile | 31 +++++++++++++++++++++++++++++++ math/mprime/distinfo | 3 +++ math/mprime/files/pkg-message.in | 10 ++++++++++ math/mprime/files/wrapper.sh.in | 23 +++++++++++++++++++++++ math/mprime/pkg-descr | 12 ++++++++++++ math/mprime/pkg-plist | 7 +++++++ 7 files changed, 87 insertions(+) create mode 100644 math/mprime/Makefile create mode 100644 math/mprime/distinfo create mode 100644 math/mprime/files/pkg-message.in create mode 100644 math/mprime/files/wrapper.sh.in create mode 100644 math/mprime/pkg-descr create mode 100644 math/mprime/pkg-plist (limited to 'math') diff --git a/math/Makefile b/math/Makefile index e0d8c4c52ef9..a5bd1c0306f3 100644 --- a/math/Makefile +++ b/math/Makefile @@ -286,6 +286,7 @@ SUBDIR += mpexpr SUBDIR += mpfr SUBDIR += mpir + SUBDIR += mprime SUBDIR += msieve SUBDIR += mtl SUBDIR += mtrxmath diff --git a/math/mprime/Makefile b/math/mprime/Makefile new file mode 100644 index 000000000000..d51476d5ddcf --- /dev/null +++ b/math/mprime/Makefile @@ -0,0 +1,31 @@ +# Created by: Mario Sergio Fujikawa Ferreira +# $FreeBSD$ + +PORTNAME= mprime +PORTVERSION= 26.6 +CATEGORIES= math benchmarks net +MASTER_SITES= http://www.mersenne.org/ftp_root/gimps/ +DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}-${OPSYS} + +MAINTAINER= ports@FreeBSD.org +COMMENT= mersenne.org distributed Great Internet Mersenne Prime Search + +LIB_DEPENDS= libcrypto.so.6:misc/compat9x + +ONLY_FOR_ARCHS= i386 +NO_BUILD= yes +NO_WRKSUBDIR= yes + +SUB_FILES= pkg-message wrapper.sh + +OPTIONS_DEFINE= DOCS + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/mprime ${STAGEDIR}${PREFIX}/bin/mprime-real + ${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${STAGEDIR}${PREFIX}/bin/mprime + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/*.txt ${STAGEDIR}${DOCSDIR} + +.include diff --git a/math/mprime/distinfo b/math/mprime/distinfo new file mode 100644 index 000000000000..07f683d4ece0 --- /dev/null +++ b/math/mprime/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1302303090 +SHA256 (mprime266-FreeBSD.tar.gz) = d4c2c044cfa45311dd7f2c41574f59a0519c989fd6e0ca723505dea12b2ff1fd +SIZE (mprime266-FreeBSD.tar.gz) = 4233056 diff --git a/math/mprime/files/pkg-message.in b/math/mprime/files/pkg-message.in new file mode 100644 index 000000000000..46a39c0949cd --- /dev/null +++ b/math/mprime/files/pkg-message.in @@ -0,0 +1,10 @@ + ATTENTIONATTENTION: + +Please, make sure that you read +%%DOCSDIR%%/license.txt +and agree to the licensing terms before running this application. + +Furthermore, read +%%DOCSDIR%%/readme.txt +It contains important information about both configuring and running +mprime. You will have problems running it if you do not read it. diff --git a/math/mprime/files/wrapper.sh.in b/math/mprime/files/wrapper.sh.in new file mode 100644 index 000000000000..3276091dc060 --- /dev/null +++ b/math/mprime/files/wrapper.sh.in @@ -0,0 +1,23 @@ +#!/bin/sh + +PREFIX="%%PREFIX%%" +PROGRAM="${0}" +DIRNAME=${HOME}/.mprime + +if [ ! -d ${DIRNAME} ] +then + mkdir -p ${DIRNAME} +fi + +if [ ! -h ${DIRNAME}/${PROGRAM##*/} ] +then + ln -sf ${PREFIX}/bin/${PROGRAM##*/}-real ${DIRNAME}/${PROGRAM##*/} +fi + +echo " ${*} " | grep " \-createdironly " || +{ + cd ${DIRNAME} && + echo Running under ${DIRNAME} && + exec ./${PROGRAM##*/} "${@}" || + echo PROBLEM. Cannot create directory ${DIRNAME}, make sure you have the proper permissions to create it and try again +} diff --git a/math/mprime/pkg-descr b/math/mprime/pkg-descr new file mode 100644 index 000000000000..71fb8376317d --- /dev/null +++ b/math/mprime/pkg-descr @@ -0,0 +1,12 @@ +This program is used to find Mersenne Prime numbers as part of Great +Internet Mersenne Prime Search initiative (GIMPS) since 1996. See +http://www.utm.edu/research/primes/mersenne.shtml for a description +of Mersenne primes. + +Mersenne number can be proved composite (not prime) by either finding +a factor or by running a Lucas-Lehmer primality test. + +To use this program you must agree to the terms and conditions, prize +rules, etc. at http://mersenne.org/legal/. + +WWW: http://www.mersenne.org/ diff --git a/math/mprime/pkg-plist b/math/mprime/pkg-plist new file mode 100644 index 000000000000..dc8c8dae1333 --- /dev/null +++ b/math/mprime/pkg-plist @@ -0,0 +1,7 @@ +bin/mprime +bin/mprime-real +%%PORTDOCS%%%%DOCSDIR%%/license.txt +%%PORTDOCS%%%%DOCSDIR%%/readme.txt +%%PORTDOCS%%%%DOCSDIR%%/stress.txt +%%PORTDOCS%%%%DOCSDIR%%/undoc.txt +%%PORTDOCS%%%%DOCSDIR%%/whatsnew.txt -- cgit v1.2.3