summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James (sam_c) <sam@cmpct.info>2020-05-24 05:03:33 +0000
committerMichael Orlitzky <mjo@gentoo.org>2020-05-25 19:08:31 -0400
commitf0b24a07e3b298277be4362cf56b33d591610c1f (patch)
tree1c33d8e1b855c99c5ffa4e7fa3d28eb14ef88bec /dev-libs/tomsfastmath/files
parentdev-go/go-md2man: remove old (diff)
downloadgentoo-f0b24a07e3b298277be4362cf56b33d591610c1f.tar.gz
gentoo-f0b24a07e3b298277be4362cf56b33d591610c1f.tar.bz2
gentoo-f0b24a07e3b298277be4362cf56b33d591610c1f.zip
dev-libs/tomsfastmath: New package
"TomsFastMath is a fast public domain, open source, large integer arithmetic library written in portable ISO C." app-antivirus/clamav currently bundles this, and the new dev-libs/libtomcrypto can optionally make use of it. Introduce it as a new package to keep track of security issues. Bug: https://bugs.gentoo.org/649394 Closes: https://bugs.gentoo.org/723856 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sam James (sam_c) <sam@cmpct.info> Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'dev-libs/tomsfastmath/files')
-rw-r--r--dev-libs/tomsfastmath/files/tomsfastmath-0.13.1-makefile-fix.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-libs/tomsfastmath/files/tomsfastmath-0.13.1-makefile-fix.patch b/dev-libs/tomsfastmath/files/tomsfastmath-0.13.1-makefile-fix.patch
new file mode 100644
index 000000000000..7239178e5dde
--- /dev/null
+++ b/dev-libs/tomsfastmath/files/tomsfastmath-0.13.1-makefile-fix.patch
@@ -0,0 +1,45 @@
+diff --git a/makefile.shared b/makefile.shared
+index 47c35d9..cebaa04 100644
+--- a/makefile.shared
++++ b/makefile.shared
+@@ -1,7 +1,8 @@
+ #makefile for TomsFastMath
+ #
+ #
+-VERSION=1:0:0
++VERSION=0.13.1
++VERSION_LIB=1:0:0
+
+ LT ?= libtool
+ LTCOMPILE = $(LT) --mode=compile --tag=CC $(CC)
+@@ -89,13 +90,16 @@ $(OBJECTS): $(HEADERS)
+ $(LTCOMPILE) $(CFLAGS) $(LDFLAGS) -o $@ -c $<
+
+ $(LIBNAME): $(OBJECTS)
+- libtool --mode=link --tag=CC $(CC) $(CFLAGS) $(LDFLAGS) `find . -type f | LC_ALL=C sort | grep "[.]lo" | xargs` -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) -export-symbols libtfm.symbols
++ libtool --mode=link --tag=CC $(CC) $(CFLAGS) $(LDFLAGS) `find . -type f | LC_ALL=C sort | grep "[.]lo" | xargs` -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION_LIB) -export-symbols libtfm.symbols
+
+ install: $(LIBNAME)
+ install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
+ libtool --mode=install install -c $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNAME)
+ install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
+ install -g $(GROUP) -o $(USER) $(HEADERS_PUB) $(DESTDIR)$(INCPATH)
++ sed -e 's,^Version:.*,Version: $(VERSION),' tomsfastmath.pc.in > tomsfastmath.pc
++ install -d $(DESTDIR)$(LIBPATH)/pkgconfig
++ install -m 644 tomsfastmath.pc $(DESTDIR)$(LIBPATH)/pkgconfig/
+
+ HEADER_FILES=$(notdir $(HEADERS_PUB))
+ uninstall:
+diff --git a/tomsfastmath.pc.in b/tomsfastmath.pc.in
+new file mode 100644
+index 0000000..a0275ab
+--- /dev/null
++++ b/tomsfastmath.pc.in
+@@ -0,0 +1,7 @@
++# TomsFastMath, a fast ISO C bignum library. -- Tom St Denis
++# SPDX-License-Identifier: Unlicense
++
++Name: TomFastMath
++Description: Fast multiple-precision integer library
++Version: @VERSION@
++Libs: -ltfm