# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Tool to rip, encode, and properly tag ogg/flac files" HOMEPAGE="http://bach.dynet.com/crip" SRC_URI="http://bach.dynet.com/crip/src/${P}.tar.gz" LICENSE="GPL" SLOT="0" KEYWORDS="x86 amd64 ppc ppc64 sparc hppa alpha arm ~mips ~ia64 ~x86-fbsd" IUSE="" DEPEND="" RDEPEND="dev-lang/perl dev-perl/CDDB_get virtual/perl-Getopt-Long media-sound/cdparanoia ((media-sound/vorbis-tools media-sound/vorbisgain) || (media-libs/flac))" # normalize? trim_silence? (ufed lists neither such flag though...) # ( >=media-sound/sox-12.17.4 ) # (not required with crip's default settings though) # I think I'd rather leave this out of the RDEPEND list. # crip will test & ask for SoX anyway if it's configured for it. # Is the following src_unpack section necessary? src_unpack() { unpack ${A} cd ${S} } src_install() { dobin crip editfilenames editcomment dodoc Changelog LICENSE README TODO criprc_example } pkg_postinst() { # If app-editors/vim not installed, give warning to change $editor if [ ! -x "${ROOT}/usr/bin/vim" ]; then einfo "It appears you do not have vim installed so you will" einfo "have to change the default editor to something you have." einfo fi elog "A sample .criprc file has been installed as ${ROOT}usr/share/doc/${PF}/criprc_example.gz" }