pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/math/ltm
Module Name: pkgsrc
Committed By: wiz
Date: Fri Jan 24 10:08:20 UTC 2020
Modified Files:
pkgsrc/math/ltm: Makefile PLIST distinfo
Log Message:
ltm: update to 1.2.0.
Partially based on diff sent by Kai-Uwe Eckhardt in private mail.
v1.2.0
-- A huge refactoring of the library happened - renaming,
deprecating and replacing existing functions by improved API's.
All deprecated functions, macros and symbols are only marked as such
so this version is still API and ABI compatible to v1.x.
-- Daniel Mendler was pushing for those changes and contributing a load of patches,
refactorings, code reviews and whatnotelse.
-- Christoph Zurnieden re-worked internals of the library, improved the performance,
did code reviews and wrote documentation.
-- Francois Perrad did some refactoring and took again care of linting the sources and
provided all fixes.
-- Jan Nijtmans, Karel Miko and Joachim Breitner contributed various patches.
-- Private symbols can now be hidden for the shared library builds, disabled by default.
-- All API's follow a single code style, are prefixed the same etc.
-- Unified, safer and improved API's
-- Less magic numbers - return values (where appropriate) and most flags are now enums,
this was implemented in a backwards compatible way where return values were int.
-- API's with return values are now by default marked as "warn on unsused result", this
can be disabled if required (which will most likely hide bugs), c.f. MP_WUR in tommath.h
-- Provide a whole set of setters&getters for different primitive types (long, uint32_t, etc.)
-- All those primitive setters are now optimized.
-- It's possible to automatically tune the cutoff values for Karatsuba&Toom-Cook
-- The custom allocators which were formerly known as XMALLOC(), XFREE() etc. are now available
as MP_MALLOC(), MP_REALLOC(), MP_CALLOC() and MP_FREE(). MP_REALLOC() and MP_FREE() now also
provide the allocated size to ease the usage of simple allocators without tracking.
-- Building is now also possible with MSVC 2015, 2017 and 2019 (use makefile.msvc)
-- Added mp_decr() and mp_incr()
-- Added mp_log_u32()
-- Improved prime-checking
-- Improved Toom-Cook multiplication
-- Removed the LTM book (`make docs` now builds the user manual)
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 pkgsrc/math/ltm/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/math/ltm/PLIST
cvs rdiff -u -r1.10 -r1.11 pkgsrc/math/ltm/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/math/ltm/Makefile
diff -u pkgsrc/math/ltm/Makefile:1.23 pkgsrc/math/ltm/Makefile:1.24
--- pkgsrc/math/ltm/Makefile:1.23 Tue Jul 9 11:27:16 2019
+++ pkgsrc/math/ltm/Makefile Fri Jan 24 10:08:20 2020
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.23 2019/07/09 11:27:16 nia Exp $
+# $NetBSD: Makefile,v 1.24 2020/01/24 10:08:20 wiz Exp $
-DISTNAME= ltm-1.1.0
+DISTNAME= ltm-1.2.0
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GITHUB:=libtom/}
GITHUB_PROJECT= libtommath
@@ -8,27 +8,26 @@ GITHUB_RELEASE= v${PKGVERSION_NOREV}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE= http://libtom.net/
+HOMEPAGE= https://www.libtom.net/LibTomMath/
COMMENT= Number theoretic multiple-precision integer library
-LICENSE= public-domain
+LICENSE= unlicense
WRKSRC= ${WRKDIR}/libtommath-${PKGVERSION_NOREV}
USE_LIBTOOL= yes
MAKE_FILE= makefile.shared
-MAKE_ENV+= LIBPATH=${PREFIX}/lib
BUILD_TARGET= default
USE_TOOLS+= gmake
-INSTALLATION_DIRS= include lib share/doc/ltm
+PKGCONFIG_OVERRIDE+= libtommath.pc.in
-do-install:
- ${INSTALL_DATA} ${WRKSRC}/tommath.h ${DESTDIR}${PREFIX}/include
- ${INSTALL_DATA} ${WRKSRC}/tommath_class.h ${DESTDIR}${PREFIX}/include
- ${INSTALL_DATA} ${WRKSRC}/tommath_superclass.h ${DESTDIR}${PREFIX}/include
- ${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/libtommath.la \
- ${DESTDIR}${PREFIX}/lib
+INSTALLATION_DIRS= share/doc/ltm
+
+do-test:
+ (cd ${WRKSRC}; \
+ gmake -f makefile mtest/mtest test; \
+ ./mtest/mtest | ./test)
+
+post-install:
${INSTALL_DATA} ${WRKSRC}/doc/bn.pdf ${DESTDIR}${PREFIX}/share/doc/ltm
- ${INSTALL_DATA} ${WRKSRC}/doc/poster.pdf ${DESTDIR}${PREFIX}/share/doc/ltm
- ${INSTALL_DATA} ${WRKSRC}/doc/tommath.pdf ${DESTDIR}${PREFIX}/share/doc/ltm
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/math/ltm/PLIST
diff -u pkgsrc/math/ltm/PLIST:1.4 pkgsrc/math/ltm/PLIST:1.5
--- pkgsrc/math/ltm/PLIST:1.4 Thu Mar 10 09:52:24 2011
+++ pkgsrc/math/ltm/PLIST Fri Jan 24 10:08:20 2020
@@ -1,8 +1,5 @@
-@comment $NetBSD: PLIST,v 1.4 2011/03/10 09:52:24 drochner Exp $
+@comment $NetBSD: PLIST,v 1.5 2020/01/24 10:08:20 wiz Exp $
include/tommath.h
-include/tommath_class.h
-include/tommath_superclass.h
lib/libtommath.la
+lib/pkgconfig/libtommath.pc
share/doc/ltm/bn.pdf
-share/doc/ltm/poster.pdf
-share/doc/ltm/tommath.pdf
Index: pkgsrc/math/ltm/distinfo
diff -u pkgsrc/math/ltm/distinfo:1.10 pkgsrc/math/ltm/distinfo:1.11
--- pkgsrc/math/ltm/distinfo:1.10 Tue Jul 9 11:27:16 2019
+++ pkgsrc/math/ltm/distinfo Fri Jan 24 10:08:20 2020
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.10 2019/07/09 11:27:16 nia Exp $
+$NetBSD: distinfo,v 1.11 2020/01/24 10:08:20 wiz Exp $
-SHA1 (ltm-1.1.0.tar.xz) = ce7a27614ff4c25cc281e43d8607eef0154ba833
-RMD160 (ltm-1.1.0.tar.xz) = 0ec39b8089a7fccf7b10c064be9e440a37aa1ad7
-SHA512 (ltm-1.1.0.tar.xz) = 6d1b8b09d5b975a2b84ef6ab9cb1cc63db2f0503a906e499cb9d7eaba3f487be6e7f69bf692b188f888418c61ea563aa7e2411638d8979eac426b3d603ad1b91
-Size (ltm-1.1.0.tar.xz) = 2125456 bytes
+SHA1 (ltm-1.2.0.tar.xz) = f0a9bcf805b6eb2ba3606bcb70989517eef58635
+RMD160 (ltm-1.2.0.tar.xz) = fe6b5cbc12191a492efb2999cb88b765bc984b5d
+SHA512 (ltm-1.2.0.tar.xz) = 6f9ccd0691831f07f86ddc81cb6145504b3d5da66dd3e92312c64cce0ea986fa4e08ba65ca8991aaebe56702c2d7c15f309696785b813dffb4c112a4ad04b203
+Size (ltm-1.2.0.tar.xz) = 622120 bytes
Home |
Main Index |
Thread Index |
Old Index