diff options
Diffstat (limited to 'media-gfx/imageworsener/imageworsener-0.9.2.ebuild')
-rw-r--r-- | media-gfx/imageworsener/imageworsener-0.9.2.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/media-gfx/imageworsener/imageworsener-0.9.2.ebuild b/media-gfx/imageworsener/imageworsener-0.9.2.ebuild new file mode 100644 index 000000000000..fa478129fa0a --- /dev/null +++ b/media-gfx/imageworsener/imageworsener-0.9.2.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit toolchain-funcs + +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="" + +DEPEND="media-libs/libpng:0 + virtual/jpeg" +RDEPEND="${DEPEND}" + +src_compile() { + $(tc-getCC) ${LDFLAGS} ${CFLAGS} "${S}/src/"*.c -lpng -ljpeg -lm -lz -o ${MY_PN} \ + || die "Compile failed." +} + +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}" +} |