summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2021-11-08 21:57:38 -0500
committerMichael Orlitzky <mjo@gentoo.org>2021-11-08 22:37:21 -0500
commit0a4cdd3089d1152a58428ce7f4f8b9f710c0c4f4 (patch)
tree7c68123d4ea3eda8ff187fb1b120a26568ff0d36 /dev-libs/ntl
parentdev-libs/ntl: add 11.4.4-r1 (diff)
downloadgentoo-0a4cdd3089d1152a58428ce7f4f8b9f710c0c4f4.tar.gz
gentoo-0a4cdd3089d1152a58428ce7f4f8b9f710c0c4f4.tar.bz2
gentoo-0a4cdd3089d1152a58428ce7f4f8b9f710c0c4f4.zip
dev-libs/ntl: support LIBTOOL="slibtool-shared".
When using slibtool-shared, no static archives (*.a) are created. To tolerate their absence, we add an "-f" to the "rm" that tries to remove them. Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'dev-libs/ntl')
-rw-r--r--dev-libs/ntl/ntl-11.4.4-r1.ebuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/dev-libs/ntl/ntl-11.4.4-r1.ebuild b/dev-libs/ntl/ntl-11.4.4-r1.ebuild
index 1b184a8a48c0..05f9388f8c54 100644
--- a/dev-libs/ntl/ntl-11.4.4-r1.ebuild
+++ b/dev-libs/ntl/ntl-11.4.4-r1.ebuild
@@ -64,7 +64,10 @@ src_install() {
if ! use static-libs; then
# bug #775884
find "${ED}" -name '*.la' -delete || die
- rm "${ED}/usr/$(get_libdir)"/libntl.a || die
+
+ # Use rm -f because the static archive may not be created when
+ # using (for example) slibtool-shared.
+ rm -f "${ED}/usr/$(get_libdir)"/libntl.a || die
fi
rm -r "${ED}"/usr/share/doc/NTL || die