mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
media-libs/leptonica: Drop old 1.82.0-r1
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST leptonica-1.82.0.tar.gz 14041481 BLAKE2B 2e60a7e14bf9120348460ac122fe0e9a1c696f17fd8f23cd3eb1b1316e13ae7fd25bbaef3fc8531df6e2572fa06e86d757138b11b29dcc24dda9576b9c00f3b0 SHA512 cb0484570bf3921307ab5c805b3f0e08d4aaa811adfb592f3956b563fc145f7a45173e2278fc5d8a9e37f729bb34dbf8068e030e2066d54547f82d26b56aa27d
|
||||
DIST leptonica-1.83.1.tar.gz 14028566 BLAKE2B 56c501f16eb58366e4ed2f168f714adef968c271a0636cc0f3663b762aac29352a508421702e8ab063f78f3faf01e3d9eb72fff43093b05722a1a604beb66a59 SHA512 14c76b8795e494637cd225982cd27a1cd82d22b34c0c0d6ed061530c0ed8cec87fc1c8482bbda8f56a04f240b9fb50d481b8fffe5df846958cb146f9d2d51553
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit libtool multilib-minimal
|
||||
|
||||
DESCRIPTION="C library for image processing and analysis"
|
||||
HOMEPAGE="http://www.leptonica.org/"
|
||||
SRC_URI="https://github.com/DanBloomberg/${PN}/releases/download/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0/5"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~sparc x86 ~ppc-macos"
|
||||
IUSE="gif jpeg jpeg2k png static-libs test tiff utils webp zlib"
|
||||
# N.B. Tests need some features enabled:
|
||||
REQUIRED_USE="test? ( jpeg png tiff zlib )"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
gif? ( >=media-libs/giflib-5.1.3:=[${MULTILIB_USEDEP}] )
|
||||
jpeg? ( media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}] )
|
||||
jpeg2k? ( media-libs/openjpeg:2=[${MULTILIB_USEDEP}] )
|
||||
png? (
|
||||
media-libs/libpng:0=[${MULTILIB_USEDEP}]
|
||||
sys-libs/zlib:=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
tiff? ( media-libs/tiff:=[${MULTILIB_USEDEP}] )
|
||||
webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] )
|
||||
zlib? ( sys-libs/zlib:=[${MULTILIB_USEDEP}] )"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( media-libs/tiff:0[jpeg,zlib] )"
|
||||
|
||||
DOCS=( README version-notes )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
elibtoolize
|
||||
|
||||
# unhtmlize docs
|
||||
local X
|
||||
for X in ${DOCS[@]}; do
|
||||
awk '/<\/pre>/{s--} {if (s) print $0} /<pre>/{s++}' \
|
||||
"${X}.html" > "${X}" || die 'awk failed'
|
||||
rm -f -- "${X}.html"
|
||||
done
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" econf \
|
||||
--enable-shared \
|
||||
$(use_with gif giflib) \
|
||||
$(use_with jpeg) \
|
||||
$(use_with jpeg2k libopenjpeg) \
|
||||
$(use_with png libpng) \
|
||||
$(use_with tiff libtiff) \
|
||||
$(use_with webp libwebp) \
|
||||
$(use_with webp libwebpmux) \
|
||||
$(use_with zlib) \
|
||||
$(use_enable static-libs static) \
|
||||
$(multilib_native_use_enable utils programs)
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
default
|
||||
|
||||
# ${TMPDIR} is not respected. It used to be but it lead to issues
|
||||
# and there have been long debates with upstream about it. :(
|
||||
rm -rf /tmp/lept/ || die
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
|
||||
# libtool archives covered by pkg-config
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
Reference in New Issue
Block a user