| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/icoutils/icoutils-0.29.1-r2.ebuild,v 1.4 2012/07/03 16:19:54 ranger Exp $
|
| 4 |
|
| 5 |
EAPI="2"
|
| 6 |
|
| 7 |
inherit autotools eutils
|
| 8 |
|
| 9 |
DESCRIPTION="A set of programs for extracting and converting images in icon and cursor files (.ico, .cur)"
|
| 10 |
HOMEPAGE="http://www.nongnu.org/icoutils/"
|
| 11 |
SRC_URI="http://savannah.nongnu.org/download/icoutils/${P}.tar.bz2"
|
| 12 |
|
| 13 |
KEYWORDS="amd64 ppc x86"
|
| 14 |
LICENSE="GPL-2"
|
| 15 |
SLOT="0"
|
| 16 |
IUSE="nls"
|
| 17 |
|
| 18 |
RDEPEND="media-libs/libpng
|
| 19 |
nls? ( virtual/libintl )
|
| 20 |
>=dev-lang/perl-5.6
|
| 21 |
>=dev-perl/libwww-perl-5.64"
|
| 22 |
|
| 23 |
DEPEND="${RDEPEND}
|
| 24 |
nls? ( sys-devel/gettext )"
|
| 25 |
|
| 26 |
src_prepare() {
|
| 27 |
epatch "${FILESDIR}"/${P}-locale.patch
|
| 28 |
epatch "${FILESDIR}"/${P}-gettext.patch
|
| 29 |
AT_M4DIR=m4 eautoreconf
|
| 30 |
}
|
| 31 |
|
| 32 |
src_configure() {
|
| 33 |
econf \
|
| 34 |
`use_enable nls` \
|
| 35 |
--disable-dependency-tracking || die
|
| 36 |
}
|
| 37 |
|
| 38 |
src_install() {
|
| 39 |
emake DESTDIR="${D}" mkinstalldirs="mkdir -p" install || die
|
| 40 |
dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed"
|
| 41 |
}
|