From 218884d2e0cc4ae4c3e6b8b1f49985d2776ebbb9 Mon Sep 17 00:00:00 2001 From: Akinori Hattori Date: Sun, 14 Apr 2024 14:44:20 +0900 Subject: media-libs/libsixel: fix bash completion Closes: https://bugs.gentoo.org/925581 Signed-off-by: Akinori Hattori --- media-libs/libsixel/libsixel-1.10.3-r1.ebuild | 93 +++++++++++++++++++++++++++ media-libs/libsixel/libsixel-1.10.3.ebuild | 91 -------------------------- 2 files changed, 93 insertions(+), 91 deletions(-) create mode 100644 media-libs/libsixel/libsixel-1.10.3-r1.ebuild delete mode 100644 media-libs/libsixel/libsixel-1.10.3.ebuild (limited to 'media-libs') diff --git a/media-libs/libsixel/libsixel-1.10.3-r1.ebuild b/media-libs/libsixel/libsixel-1.10.3-r1.ebuild new file mode 100644 index 000000000000..1c009850c585 --- /dev/null +++ b/media-libs/libsixel/libsixel-1.10.3-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" +PYTHON_COMPAT=( python3_{9..12} ) +DISTUTILS_USE_PEP517="setuptools" +DISTUTILS_OPTIONAL="1" + +inherit bash-completion-r1 distutils-r1 meson + +DESCRIPTION="A lightweight, fast implementation of DEC SIXEL graphics codec" +HOMEPAGE="https://github.com/libsixel/libsixel" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT public-domain" +SLOT="0" +KEYWORDS="amd64 ~arm arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv x86" +IUSE="curl gd gtk jpeg png python test" +RESTRICT="!test? ( test )" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="curl? ( net-misc/curl ) + gd? ( media-libs/gd ) + gtk? ( x11-libs/gdk-pixbuf:2 ) + jpeg? ( virtual/jpeg:0 ) + png? ( media-libs/libpng:0 ) + python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig + python? ( + ${PYTHON_DEPS} + ${DISTUTILS_DEPS} + )" + +PATCHES=( + "${FILESDIR}"/${PN}-meson.patch + "${FILESDIR}"/${PN}-musl.patch + "${FILESDIR}"/${PN}-static-libs.patch +) + +src_prepare() { + sed -i '/^have/d' converters/shell-completion/bash/img2sixel + + default + if use python; then + cd python || die + distutils-r1_src_prepare + cd - >/dev/null || die + fi +} + +src_configure() { + emesonargs=( + $(meson_feature curl libcurl) + $(meson_feature gd) + $(meson_feature gtk gdk-pixbuf2) + $(meson_feature jpeg) + $(meson_feature png) + $(meson_feature test tests) + -Dbashcompletiondir="$(get_bashcompdir)" + ) + meson_src_configure + if use python; then + cd python || die + distutils-r1_src_configure + cd - >/dev/null || die + fi +} + +src_compile() { + meson_src_compile + if use python; then + cd python || die + distutils-r1_src_compile + cd - >/dev/null || die + fi +} + +src_install() { + meson_src_install + + cd images || die + docompress -x /usr/share/doc/${PF}/images + docinto images + dodoc egret.jpg map{8,16}.png snake.jpg vimperator3.png + cd - >/dev/null || die + + if use python; then + cd python || die + distutils-r1_src_install + cd - >/dev/null || die + fi +} diff --git a/media-libs/libsixel/libsixel-1.10.3.ebuild b/media-libs/libsixel/libsixel-1.10.3.ebuild deleted file mode 100644 index f64089d2966d..000000000000 --- a/media-libs/libsixel/libsixel-1.10.3.ebuild +++ /dev/null @@ -1,91 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="8" -PYTHON_COMPAT=( python3_{9..12} ) -DISTUTILS_USE_PEP517="setuptools" -DISTUTILS_OPTIONAL="1" - -inherit bash-completion-r1 distutils-r1 meson - -DESCRIPTION="A lightweight, fast implementation of DEC SIXEL graphics codec" -HOMEPAGE="https://github.com/libsixel/libsixel" -SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT public-domain" -SLOT="0" -KEYWORDS="amd64 ~arm arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv x86" -IUSE="curl gd gtk jpeg png python test" -RESTRICT="!test? ( test )" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -RDEPEND="curl? ( net-misc/curl ) - gd? ( media-libs/gd ) - gtk? ( x11-libs/gdk-pixbuf:2 ) - jpeg? ( virtual/jpeg:0 ) - png? ( media-libs/libpng:0 ) - python? ( ${PYTHON_DEPS} )" -DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig - python? ( - ${PYTHON_DEPS} - ${DISTUTILS_DEPS} - )" - -PATCHES=( - "${FILESDIR}"/${PN}-meson.patch - "${FILESDIR}"/${PN}-musl.patch - "${FILESDIR}"/${PN}-static-libs.patch -) - -src_prepare() { - default - if use python; then - cd python || die - distutils-r1_src_prepare - cd - >/dev/null || die - fi -} - -src_configure() { - emesonargs=( - $(meson_feature curl libcurl) - $(meson_feature gd) - $(meson_feature gtk gdk-pixbuf2) - $(meson_feature jpeg) - $(meson_feature png) - $(meson_feature test tests) - -Dbashcompletiondir="$(get_bashcompdir)" - ) - meson_src_configure - if use python; then - cd python || die - distutils-r1_src_configure - cd - >/dev/null || die - fi -} - -src_compile() { - meson_src_compile - if use python; then - cd python || die - distutils-r1_src_compile - cd - >/dev/null || die - fi -} - -src_install() { - meson_src_install - - cd images || die - docompress -x /usr/share/doc/${PF}/images - docinto images - dodoc egret.jpg map{8,16}.png snake.jpg vimperator3.png - cd - >/dev/null || die - - if use python; then - cd python || die - distutils-r1_src_install - cd - >/dev/null || die - fi -} -- cgit v1.2.3-65-gdbad