summaryrefslogtreecommitdiff
blob: 413f1e305c2a5b54e4e9922ec2949a4abcc85c94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/convmv/convmv-1.10.ebuild,v 1.13 2007/06/10 21:57:06 kumba Exp $

inherit eutils

DESCRIPTION="convert filenames to utf8 or any other charset"
HOMEPAGE="http://j3e.de/linux/convmv"
SRC_URI="http://j3e.de/linux/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 mips ppc ppc64 sparc x86"
IUSE=""

DEPEND="dev-lang/perl"

src_compile() {
	emake || die "emake failed"
}

src_install() {
	einstall DESTDIR=${D} PREFIX=/usr || die "einstall failed"
	dodoc CREDITS Changes TODO VERSION
}

src_test() {
	cd ${S}
	unpack ./testsuite.tar
	# Never make assumptions as to the ordering of files inside a directory!
	epatch ${FILESDIR}/${PN}-1.10-testcase-cleanup.patch
	cd ${S}/suite
	./dotests.sh || die "Tests failed"
}