summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/jpegoptim/jpegoptim-1.5.4.ebuild')
-rw-r--r--media-gfx/jpegoptim/jpegoptim-1.5.4.ebuild38
1 files changed, 38 insertions, 0 deletions
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
+}