mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
- 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
This commit is contained in:
parent
50cb74b54b
commit
ddebd27959
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=437181
1
MOVED
1
MOVED
@ -6661,7 +6661,6 @@ math/jsmath-fonts-sprite||2014-09-01|Not staged
|
||||
math/jsmath||2014-09-01|Not staged
|
||||
math/kash3||2014-09-01|Not staged
|
||||
math/matrix||2014-09-01|Not staged
|
||||
math/mprime||2014-09-01|Not staged
|
||||
math/petsc||2014-09-01|Not staged
|
||||
math/sdpa-gmp||2014-09-01|Not staged
|
||||
math/sedumi||2014-09-01|Not staged
|
||||
|
@ -286,6 +286,7 @@
|
||||
SUBDIR += mpexpr
|
||||
SUBDIR += mpfr
|
||||
SUBDIR += mpir
|
||||
SUBDIR += mprime
|
||||
SUBDIR += msieve
|
||||
SUBDIR += mtl
|
||||
SUBDIR += mtrxmath
|
||||
|
31
math/mprime/Makefile
Normal file
31
math/mprime/Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
||||
# $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 <bsd.port.mk>
|
3
math/mprime/distinfo
Normal file
3
math/mprime/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1302303090
|
||||
SHA256 (mprime266-FreeBSD.tar.gz) = d4c2c044cfa45311dd7f2c41574f59a0519c989fd6e0ca723505dea12b2ff1fd
|
||||
SIZE (mprime266-FreeBSD.tar.gz) = 4233056
|
10
math/mprime/files/pkg-message.in
Normal file
10
math/mprime/files/pkg-message.in
Normal file
@ -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.
|
23
math/mprime/files/wrapper.sh.in
Normal file
23
math/mprime/files/wrapper.sh.in
Normal file
@ -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
|
||||
}
|
12
math/mprime/pkg-descr
Normal file
12
math/mprime/pkg-descr
Normal file
@ -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/
|
7
math/mprime/pkg-plist
Normal file
7
math/mprime/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user