diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
| commit | 290aebdea65a02557706eaeda477fef0437b6a48 (patch) | |
| tree | f87a939169a508a2e943570501b64cc16b411cda /dev-libs/libtommath | |
| parent | 6783ddcd4b73d9ce586a71770caed352bec93b16 (diff) | |
| download | baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.gz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.xz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.zip | |
Adding metadata
Diffstat (limited to 'dev-libs/libtommath')
| -rw-r--r-- | dev-libs/libtommath/Manifest | 2 | ||||
| -rw-r--r-- | dev-libs/libtommath/files/libtommath-1.2.0-sparc.patch | 22 | ||||
| -rw-r--r-- | dev-libs/libtommath/libtommath-1.2.1.ebuild | 96 | ||||
| -rw-r--r-- | dev-libs/libtommath/libtommath-1.3.0.ebuild | 96 | ||||
| -rw-r--r-- | dev-libs/libtommath/metadata.xml | 62 |
5 files changed, 0 insertions, 278 deletions
diff --git a/dev-libs/libtommath/Manifest b/dev-libs/libtommath/Manifest deleted file mode 100644 index 4f61cf9e15f6..000000000000 --- a/dev-libs/libtommath/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST ltm-1.2.1.tar.xz 635728 BLAKE2B b1464843af4a33f2ba0c824fe2dd080227c6b761b3f8059bbc5229f36d601aecc8bcb20c386718c71a1bc01f69e532647689b43252bd15143f809f7072de449e SHA512 50c9459357aa7f5076af93de6701c617da0dbbf2230a2f4468062704a6cd6e9d3c2fbb27016f68a7e1d6b35d6ddb2088630b24ea6acc20ed8c19594913d36e95 -DIST ltm-1.3.0.tar.xz 642776 BLAKE2B 86d29886b4cfefe4bc81a7bcab6066a99328f9407c55bccc8c47ee5aafe9e0779136acbb8f6fc6e842bc5f373e9262f646ddd39f832114e2fe5ba25e8818af7d SHA512 6e90ba918d2589525b6b2247edb50f1b90b228854ffc817686d27e0bdc4c0ffbb861d67d90ce5f61e2601a426d6d7cb0ee35e68b5e17695eb06ea734d4fe5fe5 diff --git a/dev-libs/libtommath/files/libtommath-1.2.0-sparc.patch b/dev-libs/libtommath/files/libtommath-1.2.0-sparc.patch deleted file mode 100644 index 3ed8aedf398c..000000000000 --- a/dev-libs/libtommath/files/libtommath-1.2.0-sparc.patch +++ /dev/null @@ -1,22 +0,0 @@ -https://bugs.gentoo.org/781938 -https://github.com/libtom/libtommath/issues/509 -https://github.com/libtom/libtommath/pull/510 (didn't apply) -https://github.com/tcltk/tcl/commit/dadb2c18d0b1b2bd26628aded323e9df4566d463 - -From: "jan.nijtmans" <nijtmans@users.sourceforge.net> -Date: Wed, 14 Jul 2021 15:54:56 +0000 -Subject: [PATCH] Fix build on Linux/Sparc with 32 bit userspace. See: - [https://github.com/libtom/libtommath/issues/509] for the upstream libtommath - fix - ---- a/tommath.h -+++ b/tommath.h -@@ -45,7 +45,7 @@ extern "C" { - defined(__ia64) || defined(__ia64__) || defined(__itanium__) || defined(_M_IA64) || \ - defined(__LP64__) || defined(_LP64) || defined(__64BIT__) - # if !(defined(MP_64BIT) || defined(MP_32BIT) || defined(MP_16BIT) || defined(MP_8BIT)) --# if defined(__GNUC__) && !defined(__hppa) -+# if defined(__GNUC__) && defined(__SIZEOF_INT128__) && !defined(__hppa) - /* we support 128bit integers only via: __attribute__((mode(TI))) */ - # define MP_64BIT - # else diff --git a/dev-libs/libtommath/libtommath-1.2.1.ebuild b/dev-libs/libtommath/libtommath-1.2.1.ebuild deleted file mode 100644 index c4a29f12967b..000000000000 --- a/dev-libs/libtommath/libtommath-1.2.1.ebuild +++ /dev/null @@ -1,96 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools toolchain-funcs - -DESCRIPTION="Optimized and portable routines for integer theoretic applications" -HOMEPAGE="https://www.libtom.net/" -SRC_URI="https://github.com/libtom/libtommath/releases/download/v${PV}/ltm-${PV}.tar.xz" - -LICENSE="Unlicense" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris" -IUSE="doc examples static-libs" - -BDEPEND="dev-build/libtool" - -PATCHES=( - "${FILESDIR}"/${PN}-1.2.0-sparc.patch -) - -src_prepare() { - default - - # need libtool for cross compilation, bug #376643 - cat <<-EOF > configure.ac - AC_INIT(libtommath, 0) - AM_INIT_AUTOMAKE - LT_INIT - AC_CONFIG_FILES(Makefile) - AC_OUTPUT - EOF - - touch NEWS README AUTHORS ChangeLog Makefile.am || die - - eautoreconf - - export LIBTOOL="${S}"/libtool -} - -src_configure() { - econf $(use_enable static-libs static) -} - -_emake() { - emake \ - CC="$(tc-getCC)" \ - AR="$(tc-getAR)" \ - RANLIB="$(tc-getRANLIB)" \ - IGNORE_SPEED=1 \ - DESTDIR="${ED}" \ - PREFIX="${EPREFIX}/usr" \ - LIBPATH="/usr/$(get_libdir)" \ - INCPATH="/usr/include" \ - "$@" -} - -src_compile() { - # Replace hard-coded libdir=${exec_prefix}/lib. - sed -i -e "/libdir=/s:/lib:/$(get_libdir):" libtommath.pc.in || die - - _emake -f makefile.shared -} - -src_test() { - # Tests must be built statically - # (i.e. without -f makefile.shared) - _emake test - - ./test || die -} - -src_install() { - _emake -f makefile.shared install - - if [[ ${CHOST} == *-darwin* ]] ; then - local path="usr/$(get_libdir)/libtommath.${PV}.dylib" - install_name_tool -id "${EPREFIX}/${path}" "${ED}/${path}" || die "Failed to adjust install_name" - fi - - # We only link against -lc, so drop the .la file. - find "${ED}" -name '*.la' -delete || die - if ! use static-libs ; then - find "${ED}" -name "*.a" -delete || die - fi - - dodoc changes.txt - - use doc && dodoc doc/*.pdf - - if use examples ; then - docinto demo - dodoc demo/*.c - fi -} diff --git a/dev-libs/libtommath/libtommath-1.3.0.ebuild b/dev-libs/libtommath/libtommath-1.3.0.ebuild deleted file mode 100644 index c4a29f12967b..000000000000 --- a/dev-libs/libtommath/libtommath-1.3.0.ebuild +++ /dev/null @@ -1,96 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools toolchain-funcs - -DESCRIPTION="Optimized and portable routines for integer theoretic applications" -HOMEPAGE="https://www.libtom.net/" -SRC_URI="https://github.com/libtom/libtommath/releases/download/v${PV}/ltm-${PV}.tar.xz" - -LICENSE="Unlicense" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris" -IUSE="doc examples static-libs" - -BDEPEND="dev-build/libtool" - -PATCHES=( - "${FILESDIR}"/${PN}-1.2.0-sparc.patch -) - -src_prepare() { - default - - # need libtool for cross compilation, bug #376643 - cat <<-EOF > configure.ac - AC_INIT(libtommath, 0) - AM_INIT_AUTOMAKE - LT_INIT - AC_CONFIG_FILES(Makefile) - AC_OUTPUT - EOF - - touch NEWS README AUTHORS ChangeLog Makefile.am || die - - eautoreconf - - export LIBTOOL="${S}"/libtool -} - -src_configure() { - econf $(use_enable static-libs static) -} - -_emake() { - emake \ - CC="$(tc-getCC)" \ - AR="$(tc-getAR)" \ - RANLIB="$(tc-getRANLIB)" \ - IGNORE_SPEED=1 \ - DESTDIR="${ED}" \ - PREFIX="${EPREFIX}/usr" \ - LIBPATH="/usr/$(get_libdir)" \ - INCPATH="/usr/include" \ - "$@" -} - -src_compile() { - # Replace hard-coded libdir=${exec_prefix}/lib. - sed -i -e "/libdir=/s:/lib:/$(get_libdir):" libtommath.pc.in || die - - _emake -f makefile.shared -} - -src_test() { - # Tests must be built statically - # (i.e. without -f makefile.shared) - _emake test - - ./test || die -} - -src_install() { - _emake -f makefile.shared install - - if [[ ${CHOST} == *-darwin* ]] ; then - local path="usr/$(get_libdir)/libtommath.${PV}.dylib" - install_name_tool -id "${EPREFIX}/${path}" "${ED}/${path}" || die "Failed to adjust install_name" - fi - - # We only link against -lc, so drop the .la file. - find "${ED}" -name '*.la' -delete || die - if ! use static-libs ; then - find "${ED}" -name "*.a" -delete || die - fi - - dodoc changes.txt - - use doc && dodoc doc/*.pdf - - if use examples ; then - docinto demo - dodoc demo/*.c - fi -} diff --git a/dev-libs/libtommath/metadata.xml b/dev-libs/libtommath/metadata.xml deleted file mode 100644 index 4936289166ef..000000000000 --- a/dev-libs/libtommath/metadata.xml +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>sam@gentoo.org</email> - <name>Sam James</name> - </maintainer> - <longdescription> - LibTomMath is a free open source portable number theoretic multiple-precision - integer library written entirely in C. (phew!). The library is designed to - provide a simple to work with API that provides fairly efficient routines that - build out of the box without configuration. - - The library builds out of the box with GCC 2.95 [and up] as well as Visual C++ - v6.00 [with SP5] without configuration. The source code is arranged to make it - easy to dive into a particular area very quickly. The code is also littered with - comments [This is one of the on going goals] that help explain the algorithms and - their implementations. Ideally the code will serve as an educational tool in the - future for CS students studying number theory. - - The library provides a vast array of highly optimized routines from various - branches of number theory. - - * Simple Algebraic - o Addition - o Subtraction - o Multiplication - o Squaring - o Division - * Digit Manipulation - o Shift left/right whole digits (mult by 2b by moving digits) - o Fast multiplication/division by 2 and 2k for k>1 - o Binary AND, OR and XOR gates - * Modular Reductions - o Barrett Reduction (fast for any p) - o Montgomery Reduction (faster for any odd p) - o DR Reduction (faster for any restricted p see manual) - o 2k Reduction (fast reduction modulo 2p - k) - o The exptmod logic can use any of the four reduction algorithms when - appropriate with a single function call. - * Number Theoretic - o Greatest Common Divisor - o Least Common Multiple - o Jacobi Symbol Computation (falls back to Legendre for prime moduli) - o Multiplicative Inverse - o Extended Euclidean Algorithm - o Modular Exponentiation - o Fermat and Miller-Rabin Primality Tests, utility function such as - is_prime and next_prime - * Miscellaneous - o Root finding over Z - o Pseudo-random integers - o Signed and Unsigned comparisons - * Optimizations - o Fast Comba based Multiplier, Squaring and Montgomery routines. - o Montgomery, Diminished Radix and Barrett based modular - exponentiation. - o Karatsuba and Toom-Cook multiplication algorithms. - o Many pointer aliasing optimiztions throughout the entire library. - </longdescription> - <origin>baldeagleos-repo</origin> -</pkgmetadata> |
