summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2023-05-15 11:06:34 -0400
committerIonen Wolkens <ionen@gentoo.org>2023-05-15 11:10:05 -0400
commit9bbea1c5321e2c75a2a0479555d3f93e772b6435 (patch)
tree755a8dd0f527aec8338510479b7b18e4119b5072 /media-gfx/jpegoptim
parentapp-emulation/virtualbox: fix building with dev-libs/libxml2-2.11 (diff)
downloadgentoo-9bbea1c5321e2c75a2a0479555d3f93e772b6435.tar.gz
gentoo-9bbea1c5321e2c75a2a0479555d3f93e772b6435.tar.bz2
gentoo-9bbea1c5321e2c75a2a0479555d3f93e772b6435.zip
media-gfx/jpegoptim: add 1.5.4
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'media-gfx/jpegoptim')
-rw-r--r--media-gfx/jpegoptim/Manifest1
-rw-r--r--media-gfx/jpegoptim/jpegoptim-1.5.4.ebuild38
2 files changed, 39 insertions, 0 deletions
diff --git a/media-gfx/jpegoptim/Manifest b/media-gfx/jpegoptim/Manifest
index 6c2759353bc9..c1455f4eaac8 100644
--- a/media-gfx/jpegoptim/Manifest
+++ b/media-gfx/jpegoptim/Manifest
@@ -1 +1,2 @@
DIST jpegoptim-1.5.3.tar.gz 121006 BLAKE2B 8fd54eb3e08268b080efb1747f5090a5a21500cea695483f1c892f1848155d3afc7b40304390d903cd3d7433e7811a0a77caa0747108be6e2e7535e7d664d3de SHA512 2e198636a7028d1781a00efed881e77af1324cf1906838ead9ffbb027c085cd287b26c3207e8b4f53e2f53ecb4dd2c035101b345a241a472288ba175e27d9423
+DIST jpegoptim-1.5.4.tar.gz 124040 BLAKE2B 0109c6bf7a608f894aab8005988d6192df2d3fde1b2ae28892bd2d7734aafc26a40f6ad812c3829b227ecefdf9d0d9b88f5c4f54a96057628e973125c3c9f8a9 SHA512 0e177cd316e7f5590f79bbde356f580b1a4f3113a2cbeb884aefc5671ce964e622264e1df1edb43abbb87d4afb2e5962bd0d6964f6910fe257775c594ff882f2
diff --git a/media-gfx/jpegoptim/jpegoptim-1.5.4.ebuild b/media-gfx/jpegoptim/jpegoptim-1.5.4.ebuild
new file mode 100644
index 000000000000..33c335ee285c
--- /dev/null
+++ b/media-gfx/jpegoptim/jpegoptim-1.5.4.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Utility to optimize JPEG files"
+HOMEPAGE="https://www.kokkonen.net/tjko/projects.html"
+SRC_URI="https://github.com/tjko/jpegoptim/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+# TODO: switch back to this if tarballs become available in a timely fashion
+#SRC_URI="https://www.kokkonen.net/tjko/src/${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+
+RDEPEND="media-libs/libjpeg-turbo:="
+DEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.5.3-system-libjpeg-libm.patch
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DUSE_MOZJPEG=no
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ # lacks an install target with cmake
+ dobin "${BUILD_DIR}"/${PN}
+ doman ${PN}.1
+ einstalldocs
+}