From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C1EB315817D for ; Thu, 6 Jun 2024 00:45:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 998F0E2B43; Thu, 6 Jun 2024 00:45:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7BEBDE2B41 for ; Thu, 6 Jun 2024 00:45:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 16297342FA7 for ; Thu, 6 Jun 2024 00:45:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8A2BB1C86 for ; Thu, 6 Jun 2024 00:45:41 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1717634685.14a3f6ab9d97f7f2723d62d1379cd5d54db9cbf6.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/jbig2dec/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/jbig2dec/jbig2dec-0.19-r1.ebuild X-VCS-Directories: media-libs/jbig2dec/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 14a3f6ab9d97f7f2723d62d1379cd5d54db9cbf6 X-VCS-Branch: master Date: Thu, 6 Jun 2024 00:45:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 76be60a7-fe92-49d3-8b56-7cc9466d94c9 X-Archives-Hash: c1f58f305accd910251e1f353145632b commit: 14a3f6ab9d97f7f2723d62d1379cd5d54db9cbf6 Author: Eli Schwartz gmail com> AuthorDate: Wed Jun 5 01:50:27 2024 +0000 Commit: Sam James gentoo org> CommitDate: Thu Jun 6 00:44:45 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14a3f6ab media-libs/jbig2dec: update EAPI 7 -> 8 Signed-off-by: Eli Schwartz gmail.com> Signed-off-by: Sam James gentoo.org> media-libs/jbig2dec/jbig2dec-0.19-r1.ebuild | 67 +++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) 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 +}