You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-gfx/imageworsener/imageworsener-0.9.5.ebuild

52 lines
1.1 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/imageworsener/imageworsener-0.9.5.ebuild,v 1.2 2011/10/21 22:03:00 sping Exp $
EAPI="2"
CMAKE_IN_SOURCE_BUILD=1
CMAKE_VERBOSE=1
inherit eutils cmake-utils
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}/${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test webp"
WEBP_DEPEND='>=media-libs/libwebp-0.1.3'
DEPEND="media-libs/libpng:0
virtual/jpeg
webp? ( ${WEBP_DEPEND} )
test? ( ${WEBP_DEPEND} )"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}"/${P}-webp.patch
}
src_configure() {
local webp=0
use webp && webp=1
use test && webp=1
mycmakeargs=( -DIW_SUPPORT_WEBP=${webp} )
cmake-utils_src_configure
}
src_install() {
dobin ${MY_PN} || die "dobin failed."
dodoc readme.txt technical.txt changelog.txt || die
}
src_test() {
cd "${S}/tests" || die
./runtest "${S}/${MY_PN}"
}