summaryrefslogtreecommitdiff
path: root/dev-libs/libtomcrypt
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 16:24:49 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 16:24:49 -0500
commita3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch)
tree0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-libs/libtomcrypt
parentbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff)
downloadbaldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz
baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz
baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip
Adding metadata
Diffstat (limited to 'dev-libs/libtomcrypt')
-rw-r--r--dev-libs/libtomcrypt/Manifest1
-rw-r--r--dev-libs/libtomcrypt/files/libtomcrypt-1.18.2-slibtool.patch117
-rw-r--r--dev-libs/libtomcrypt/libtomcrypt-1.18.2-r4.ebuild124
-rw-r--r--dev-libs/libtomcrypt/metadata.xml19
4 files changed, 0 insertions, 261 deletions
diff --git a/dev-libs/libtomcrypt/Manifest b/dev-libs/libtomcrypt/Manifest
deleted file mode 100644
index 71ae48ee0d7c..000000000000
--- a/dev-libs/libtomcrypt/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST libtomcrypt-1.18.2.tar.xz 2638064 BLAKE2B fad67e9e2a2002425488db9987a853bda631d6638c2cb1052a1d0d1f393945e38037cc75c54cd3a4bf87bb2e13b1e868e81da054a84bbdb393519ddef5e27300 SHA512 f6117a12a42b07f8de4a8aedbccf6ff4ee94b4b81cb7263af99627c32eae646ca8ead7d3063737918db4aa118673001fcf2cfa8e4ca8b528fb00045fda7cc893
diff --git a/dev-libs/libtomcrypt/files/libtomcrypt-1.18.2-slibtool.patch b/dev-libs/libtomcrypt/files/libtomcrypt-1.18.2-slibtool.patch
deleted file mode 100644
index b783ed1d2440..000000000000
--- a/dev-libs/libtomcrypt/files/libtomcrypt-1.18.2-slibtool.patch
+++ /dev/null
@@ -1,117 +0,0 @@
-https://github.com/libtom/libtomcrypt/pull/433
-(and then https://github.com/libtom/libtomcrypt/commit/4b3ef7890156a55889b6657e4b295a77907c1f0f)
-
-https://bugs.gentoo.org/777084
-
-From ccc18b9eda52c31cc70a3e46eb33b87b3c076d65 Mon Sep 17 00:00:00 2001
-From: orbea <orbea@fredslev.dk>
-Date: Mon, 13 Aug 2018 19:20:37 -0700
-Subject: [PATCH] makefile.shared: Support rlibtool.
-
-When building libtomcrypt with rlibtool instead of libtool it will fail
-when rlibtool fails to parse the generated libtool which does not exist.
-
-Since rlibtool should be the default choice for most slibtool users in
-the future this patch will use slibtool-shared instead which will
-correctly build the shared library.
-
-This could also help build the shared library on additional targets and
-hosts where the stock libtool does not have shared libraries enabled.
----
- makefile.shared | 17 +++++++++++------
- 1 file changed, 11 insertions(+), 6 deletions(-)
-
-diff --git a/makefile.shared b/makefile.shared
-index 98ec2b501..c72f2ac8d 100644
---- a/makefile.shared
-+++ b/makefile.shared
-@@ -16,19 +16,24 @@
-
- PLATFORM := $(shell uname | sed -e 's/_.*//')
-
-+ifeq ($(LIBTOOL),rlibtool)
-+ TGTLIBTOOL:=slibtool-shared
-+endif
-+
- ifndef LIBTOOL
- ifeq ($(PLATFORM), Darwin)
- LIBTOOL:=glibtool
- else
- LIBTOOL:=libtool
- endif
-+ TGTLIBTOOL=$(LIBTOOL)
- endif
- ifeq ($(PLATFORM), CYGWIN)
- NO_UNDEFINED:=-no-undefined
- endif
--LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC)
--INSTALL_CMD = $(LIBTOOL) --mode=install install
--UNINSTALL_CMD = $(LIBTOOL) --mode=uninstall rm
-+LTCOMPILE = $(TGTLIBTOOL) --mode=compile --tag=CC $(CC)
-+INSTALL_CMD = $(TGTLIBTOOL) --mode=install install
-+UNINSTALL_CMD = $(TGTLIBTOOL) --mode=uninstall rm
-
- #Output filenames for various targets.
- ifndef LIBNAME
-@@ -49,15 +54,15 @@ src/ciphers/aes/aes_enc.o: src/ciphers/aes/aes.c src/ciphers/aes/aes_tab.c
- LOBJECTS = $(OBJECTS:.o=.lo)
-
- $(LIBNAME): $(OBJECTS)
-- $(LIBTOOL) --mode=link --tag=CC $(CC) $(LTC_LDFLAGS) $(LOBJECTS) $(EXTRALIBS) -o $@ -rpath $(LIBPATH) -version-info $(VERSION_LT) $(NO_UNDEFINED)
-+ $(TGTLIBTOOL) --mode=link --tag=CC $(CC) $(LTC_LDFLAGS) $(LOBJECTS) $(EXTRALIBS) -o $@ -rpath $(LIBPATH) -version-info $(VERSION_LT) $(NO_UNDEFINED)
-
- test: $(call print-help,test,Builds the library and the 'test' application to run all self-tests) $(LIBNAME) $(TOBJECTS)
-- $(LIBTOOL) --mode=link --tag=CC $(CC) $(LTC_LDFLAGS) -o $(TEST) $(TOBJECTS) $(LIBNAME) $(EXTRALIBS)
-+ $(TGTLIBTOOL) --mode=link --tag=CC $(CC) $(LTC_LDFLAGS) -o $(TEST) $(TOBJECTS) $(LIBNAME) $(EXTRALIBS)
-
- # build the demos from a template
- define DEMO_template
- $(1): $(call print-help,$(1),Builds the library and the '$(1)' demo) demos/$(1).o $$(LIBNAME)
-- $$(LIBTOOL) --mode=link --tag=CC $$(CC) $$(LTC_LDFLAGS) $$^ $$(EXTRALIBS) -o $(1)
-+ $$(TGTLIBTOOL) --mode=link --tag=CC $$(CC) $$(LTC_LDFLAGS) $$^ $$(EXTRALIBS) -o $(1)
- endef
-
- $(foreach demo, $(strip $(DEMOS)), $(eval $(call DEMO_template,$(demo))))
-From 4b3ef7890156a55889b6657e4b295a77907c1f0f Mon Sep 17 00:00:00 2001
-From: Steffen Jaeckel <s@jaeckel.eu>
-Date: Mon, 3 Jun 2019 09:32:06 +0200
-Subject: [PATCH] TGTLIBTOOL wasn't always defined
-
----
- makefile.shared | 17 ++++++++++-------
- 1 file changed, 10 insertions(+), 7 deletions(-)
-
-diff --git a/makefile.shared b/makefile.shared
-index c72f2ac8d..e63d77032 100644
---- a/makefile.shared
-+++ b/makefile.shared
-@@ -18,19 +18,22 @@ PLATFORM := $(shell uname | sed -e 's/_.*//')
-
- ifeq ($(LIBTOOL),rlibtool)
- TGTLIBTOOL:=slibtool-shared
--endif
--
--ifndef LIBTOOL
-- ifeq ($(PLATFORM), Darwin)
-- LIBTOOL:=glibtool
-+else
-+ ifndef LIBTOOL
-+ ifeq ($(PLATFORM), Darwin)
-+ TGTLIBTOOL:=glibtool
-+ else
-+ TGTLIBTOOL:=libtool
-+ endif
- else
-- LIBTOOL:=libtool
-+ TGTLIBTOOL=$(LIBTOOL)
- endif
-- TGTLIBTOOL=$(LIBTOOL)
- endif
-+
- ifeq ($(PLATFORM), CYGWIN)
- NO_UNDEFINED:=-no-undefined
- endif
-+
- LTCOMPILE = $(TGTLIBTOOL) --mode=compile --tag=CC $(CC)
- INSTALL_CMD = $(TGTLIBTOOL) --mode=install install
- UNINSTALL_CMD = $(TGTLIBTOOL) --mode=uninstall rm
diff --git a/dev-libs/libtomcrypt/libtomcrypt-1.18.2-r4.ebuild b/dev-libs/libtomcrypt/libtomcrypt-1.18.2-r4.ebuild
deleted file mode 100644
index 845681a9d8bb..000000000000
--- a/dev-libs/libtomcrypt/libtomcrypt-1.18.2-r4.ebuild
+++ /dev/null
@@ -1,124 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit toolchain-funcs
-
-DESCRIPTION="LibTomCrypt is a comprehensive, modular and portable cryptographic toolkit"
-HOMEPAGE="
- https://www.libtom.net/LibTomCrypt/
- https://github.com/libtom/libtomcrypt/
-"
-SRC_URI="
- https://github.com/libtom/${PN}/releases/download/v${PV}/crypt-${PV}.tar.xz
- -> ${P}.tar.xz
-"
-
-LICENSE="|| ( WTFPL-2 public-domain )"
-# SONAME -- Please bump when the ABI changes upstream
-# https://abi-laboratory.pro/index.php?view=timeline&l=libtomcrypt
-SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris"
-IUSE="+gmp +libtommath tomsfastmath"
-# Enforce at least one math provider, bug #772935
-REQUIRED_USE="|| ( gmp libtommath tomsfastmath )"
-
-RDEPEND="
- gmp? ( dev-libs/gmp:= )
- libtommath? ( dev-libs/libtommath:= )
- tomsfastmath? ( dev-libs/tomsfastmath:= )
-"
-DEPEND="
- ${RDEPEND}
- dev-build/libtool
-"
-BDEPEND="
- dev-build/libtool
- virtual/pkgconfig
-"
-
-PATCHES=(
- "${FILESDIR}"/${P}-slibtool.patch
-)
-
-mymake() {
- # Standard boilerplate
- # Upstream use homebrewed makefiles
- # Best to use same args for all, for consistency,
- # in case behaviour changes (v possible).
- local enabled_features=()
- local extra_libs=()
-
- # Build support as appropriate for consumers (MPI)
- if use gmp; then
- enabled_features+=( -DGMP_DESC=1 )
- extra_libs+=( -lgmp )
- fi
- if use libtommath; then
- enabled_features+=( -DLTM_DESC=1 )
- extra_libs+=( -ltommath )
- fi
- if use tomsfastmath; then
- enabled_features+=( -DTFM_DESC=1 )
- extra_libs+=( -ltfm )
- fi
-
- # For the test and example binaries, we have to choose
- # which MPI we want to use.
- # For now (see src_test), arbitrarily choose:
- # gmp > libtommath > tomsfastmath > none
- if use gmp ; then
- enabled_features+=( -DUSE_GMP=1 )
- elif use libtommath ; then
- enabled_features+=( -DUSE_LTM=1 )
- elif use tomsfastmath ; then
- enabled_features+=( -DUSE_TFM=1 )
- fi
-
- # Fix cross-compiling, but allow manual overrides for slibtool, which works.
- if [[ -z ${LIBTOOL} ]] ; then
- local pfx=
- [[ ${CHOST} == *-darwin* ]] && pfx=g # Darwin libtool != glibtool
- declare -x LIBTOOL="${BASH} ${ESYSROOT}/usr/bin/${pfx}libtool"
- fi
-
- # IGNORE_SPEED=1 is needed to respect CFLAGS
- EXTRALIBS="${extra_libs[*]}" emake \
- CFLAGS="${CFLAGS} ${enabled_features[*]}" \
- CC="$(tc-getCC)" \
- AR="$(tc-getAR)" \
- RANLIB="$(tc-getRANLIB)" \
- LIBPATH="${EPREFIX}/usr/$(get_libdir)" \
- INCPATH="${EPREFIX}/usr/include" \
- IGNORE_SPEED=1 \
- PREFIX="${EPREFIX}/usr" \
- "${@}"
-}
-
-src_compile() {
- # Replace hard-coded libdir=${exec_prefix}/lib.
- sed -i -e "/libdir=/s:/lib:/$(get_libdir):" libtomcrypt.pc.in || die
-
- mymake -f makefile.shared library
-}
-
-src_test() {
- # libtomcrypt can build with several MPI providers
- # but the tests can only be built with one at a time.
- # When the next release (> 1.18.2) containing
- # 1) https://github.com/libtom/libtomcrypt/commit/a65cfb8dbe4
- # 2) https://github.com/libtom/libtomcrypt/commit/fdc6cd20137
- # is made, we can run tests for each provider.
- mymake test
- ./test || die "Running tests failed"
-}
-
-src_install() {
- mymake -f makefile.shared \
- DATAPATH="${EPREFIX}/usr/share/doc/${PF}" \
- DESTDIR="${D}" \
- install install_docs
-
- find "${ED}" '(' -name '*.la' -o -name '*.a' ')' -delete || die
-}
diff --git a/dev-libs/libtomcrypt/metadata.xml b/dev-libs/libtomcrypt/metadata.xml
deleted file mode 100644
index 828e919db73c..000000000000
--- a/dev-libs/libtomcrypt/metadata.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>sam@gentoo.org</email>
- <name>Sam James</name>
- </maintainer>
- <maintainer type="person">
- <email>mgorny@gentoo.org</email>
- <name>Michał Górny</name>
- </maintainer>
- <use>
- <flag name="libtommath">Uses <pkg>dev-libs/libtommath</pkg> for mathematical operations</flag>
- <flag name="tomsfastmath">Uses <pkg>dev-libs/tomsfastmath</pkg> for mathematical operations</flag>
- </use>
- <upstream>
- <remote-id type="github">libtom/libtomcrypt</remote-id>
- </upstream>
-</pkgmetadata>