Skip to content

Commit

Permalink
math/gmp-ecm: upgrade to 7.0.5
Browse files Browse the repository at this point in the history
Changelog at <https://gitlab.inria.fr/zimmerma/ecm/-/blob/master/ChangeLog>.

Also add a test target.

PR:		268927
Reported by:	dclarke (at) blastwave.org
  • Loading branch information
thierry-FreeBSD committed Nov 19, 2023
1 parent 5425c34 commit c696d5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
16 changes: 5 additions & 11 deletions math/gmp-ecm/Makefile
@@ -1,8 +1,7 @@
PORTNAME= gmp-ecm
DISTVERSION= 7.0.4
PORTREVISION= 1
DISTVERSION= 7.0.5
CATEGORIES= math
MASTER_SITES= https://gforge.inria.fr/frs/download.php/file/36224/
MASTER_SITES= https://gitlab.inria.fr/zimmerma/ecm/uploads/${GL_TAG}/
DISTNAME= ecm-${DISTVERSION}

MAINTAINER= ports@FreeBSD.org
Expand All @@ -17,25 +16,20 @@ LICENSE_FILE_LGPL21+ = ${WRKSRC}/COPYING.LIB
LIB_DEPENDS= libgmp.so:math/gmp

USES= gmake libtool

GL_TAG= 89f6f0d65d3e980cef33dc922004e4b2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= ac_cv_prog_XSLTPROC=no \
--with-gmp=${LOCALBASE} \
--enable-shared \
--disable-static
INSTALL_TARGET= install-strip
TEST_TARGET= check

PLIST_FILES= bin/ecm include/ecm.h \
lib/libecm.so \
lib/libecm.so.1 \
lib/libecm.so.1.0.0 \
man/man1/ecm.1.gz

post-patch:
@${REINPLACE_CMD} s/__GMP_BITS_PER_MP_LIMB/GMP_NUMB_BITS/g \
${WRKSRC}/*.c ${WRKSRC}/*.h
@${REINPLACE_CMD} s/GMP_BITS_PER_LIMB/GMP_NUMB_BITS/g \
${WRKSRC}/*.c ${WRKSRC}/*.h
@${REINPLACE_CMD} s/mp_bits_per_limb/GMP_NUMB_BITS/g \
${WRKSRC}/*.c ${WRKSRC}/*.h

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions math/gmp-ecm/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1522429265
SHA256 (ecm-7.0.4.tar.gz) = 0cf7b3eee8462cc6f98b418b47630e1eb6b3f4f8c3fc1fb005b08e2a1811ba43
SIZE (ecm-7.0.4.tar.gz) = 1101899
TIMESTAMP = 1700324792
SHA256 (ecm-7.0.5.tar.gz) = c721dd22e557c4a5dac9ac7e156a400cd2298812dd1f9b56e89966de01471ba8
SIZE (ecm-7.0.5.tar.gz) = 1159568

0 comments on commit c696d5b

Please sign in to comment.