diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2024-06-04 21:50:27 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-06-06 01:44:45 +0100 |
commit | 14a3f6ab9d97f7f2723d62d1379cd5d54db9cbf6 (patch) | |
tree | d7f599ce8e3cc1f0151f15d514b3f2b75753ac9f /media-libs/jbig2dec | |
parent | media-libs/jbig2dec: update SRC_URI to use https (diff) | |
download | gentoo-14a3f6ab9d97f7f2723d62d1379cd5d54db9cbf6.tar.gz gentoo-14a3f6ab9d97f7f2723d62d1379cd5d54db9cbf6.tar.bz2 gentoo-14a3f6ab9d97f7f2723d62d1379cd5d54db9cbf6.zip |
media-libs/jbig2dec: update EAPI 7 -> 8
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/jbig2dec')
-rw-r--r-- | media-libs/jbig2dec/jbig2dec-0.19-r1.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/media-libs/jbig2dec/jbig2dec-0.19-r1.ebuild b/media-libs/jbig2dec/jbig2dec-0.19-r1.ebuild new file mode 100644 index 000000000000..32d59d523ce2 --- /dev/null +++ b/media-libs/jbig2dec/jbig2dec-0.19-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit autotools python-any-r1 + +DESCRIPTION="A decoder implementation of the JBIG2 image compression format" +HOMEPAGE="https://jbig2dec.com/" +SRC_URI=" + https://github.com/ArtifexSoftware/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + test? ( https://jbig2dec.sourceforge.net/ubc/jb2streams.zip ) +" + +LICENSE="AGPL-3" +SLOT="0/$(ver_cut 1-2)" #698428 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="png static-libs test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + app-arch/unzip + ${PYTHON_DEPS} + ) +" +RDEPEND="png? ( media-libs/libpng:= )" +DEPEND="${RDEPEND}" + +DOCS=( CHANGES README ) + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + default + + if use test; then + mkdir "${WORKDIR}/ubc" || die + mv -v "${WORKDIR}"/*.jb2 "${WORKDIR}/ubc/" || die + mv -v "${WORKDIR}"/*.bmp "${WORKDIR}/ubc/" || die + fi + + # We only need configure.ac and config_types.h.in + sed -i \ + -e '/^# do we need automake?/,/^autoheader/d' \ + -e '/echo " $AUTOM.*/,$d' \ + autogen.sh \ + || die "failed to modify autogen.sh" + + ./autogen.sh || die + eautoreconf +} + +src_configure() { + econf \ + $(use_enable static-libs static) \ + $(use_with png libpng) +} + +src_install() { + default + + find "${ED}" -name '*.la' -exec rm {} + || die +} |