summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2021-09-10 17:07:08 +0200
committerSebastian Pipping <sping@gentoo.org>2021-09-10 17:10:58 +0200
commit81f46a81967274434f9804b2089985344045e446 (patch)
tree3487b355f7042e56d1272ebfe2f48d86ca689b98
parentapp-arch/zip: keyword ~riscv (diff)
downloadgentoo-81f46a81967274434f9804b2089985344045e446.tar.gz
gentoo-81f46a81967274434f9804b2089985344045e446.tar.bz2
gentoo-81f46a81967274434f9804b2089985344045e446.zip
media-gfx/imageworsener: 1.3.4
Signed-off-by: Sebastian Pipping <sping@gentoo.org> Package-Manager: Portage-3.0.22, Repoman-3.0.3
-rw-r--r--media-gfx/imageworsener/Manifest1
-rw-r--r--media-gfx/imageworsener/imageworsener-1.3.4.ebuild48
2 files changed, 49 insertions, 0 deletions
diff --git a/media-gfx/imageworsener/Manifest b/media-gfx/imageworsener/Manifest
index b23e4fa6b634..052f4ea552b4 100644
--- a/media-gfx/imageworsener/Manifest
+++ b/media-gfx/imageworsener/Manifest
@@ -1 +1,2 @@
DIST imageworsener-1.3.3.tar.gz 662243 BLAKE2B 6b34dc111c5b2dcc25fdc717b7ec8d4268ca1b67c31cca58b5e1983643f1e3b78543a3bdba24b3692a05cb83a887bfcf0e7b09307535994d280056a0047c8b0d SHA512 ebe8a31819cf665d8d8d7e789d873de03206e74e100ea99b2d8dc6ac2590025ff0058066daeb17ebfaa6cf49222e33c8a9efa83f39f5e2b9b49d27a3ee1b027f
+DIST imageworsener-1.3.4.tar.gz 665740 BLAKE2B 81e94230871e62dce77e63af7e958058145b1d858380eb9fb2b951c82154d8971eb4ee0a3257f72c519b0b007a23d70c4add70dfdc7e3b77c0f486bfb8c2aed1 SHA512 840cc779496e8279605e94797e27ac60196cf2178b55c8c454e6fab2c64733c057cb51decd7cf99b61dd5d8aef9bb93c397f5f07347b600ad5f996d72300dc3c
diff --git a/media-gfx/imageworsener/imageworsener-1.3.4.ebuild b/media-gfx/imageworsener/imageworsener-1.3.4.ebuild
new file mode 100644
index 000000000000..2520f3a2e199
--- /dev/null
+++ b/media-gfx/imageworsener/imageworsener-1.3.4.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_P=${PN}-src-${PV}
+MY_PN=imagew
+
+DESCRIPTION="Utility for image scaling and processing"
+HOMEPAGE="http://entropymine.com/imageworsener/"
+SRC_URI="http://entropymine.com/${PN}/${P}.tar.gz"
+
+LICENSE="MIT-with-advertising"
+SLOT="0/3" # because of libimageworsener.so.3.*.*
+KEYWORDS="~amd64 ~x86"
+IUSE="jpeg png static-libs test webp zlib"
+
+DEPEND="png? ( media-libs/libpng:0 )
+ jpeg? ( virtual/jpeg:0 )
+ webp? ( >=media-libs/libwebp-0.1.3 )
+ zlib? ( sys-libs/zlib )"
+RDEPEND="${DEPEND}"
+
+REQUIRED_USE="test? ( jpeg png webp zlib )"
+RESTRICT="!test? ( test )"
+
+src_configure() {
+ local switch=''
+ use test && switch=test
+
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with ${switch} jpeg) \
+ $(use_with ${switch} png) \
+ $(use_with ${switch} webp) \
+ $(use_with ${switch} zlib)
+}
+
+src_install() {
+ default
+ dodoc {changelog,readme,technical}.txt
+ find "${D}" -name '*.la' -delete || die
+}
+
+src_test() {
+ cd "${S}"/tests || die
+ ./runtest "${S}"/${MY_PN}
+}