diff options
author | Sebastian Pipping <sping@gentoo.org> | 2017-08-20 23:07:33 +0200 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2017-08-20 23:07:33 +0200 |
commit | 24a26007d019d296ebb2bb071c7e36ec2d21ac4a (patch) | |
tree | 0ad00a11514bbfa00f3cad1e611bd4f512ac1511 /media-gfx/imageworsener/imageworsener-1.3.2.ebuild | |
parent | media-libs/openjpeg: stable 2.2.0 for ia64, bug #602180 (diff) | |
download | gentoo-24a26007d019d296ebb2bb071c7e36ec2d21ac4a.tar.gz gentoo-24a26007d019d296ebb2bb071c7e36ec2d21ac4a.tar.bz2 gentoo-24a26007d019d296ebb2bb071c7e36ec2d21ac4a.zip |
media-gfx/imageworsener: 1.3.2
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'media-gfx/imageworsener/imageworsener-1.3.2.ebuild')
-rw-r--r-- | media-gfx/imageworsener/imageworsener-1.3.2.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/media-gfx/imageworsener/imageworsener-1.3.2.ebuild b/media-gfx/imageworsener/imageworsener-1.3.2.ebuild new file mode 100644 index 000000000000..c03573408ae1 --- /dev/null +++ b/media-gfx/imageworsener/imageworsener-1.3.2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils + +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" +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 )" + +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 + prune_libtool_files +} + +src_test() { + cd "${S}"/tests || die + ./runtest "${S}"/${MY_PN} +} |