# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ #inherit toolchain-funcs eutils 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 media-sound/cdparanoia ((media-sound/vorbis-tools media-sound/vorbisgain) || (media-libs/flac))" # May also want to get: # >=media-sound/sox-12.17.4 # (not required with crip's default settings though) src_unpack() { unpack ${A} cd ${S} } src_install() { dobin crip editfilenames editcomment dodoc Changelog LICENSE README TODO criprc_example } pkg_postinst() { einfo # 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 einfo "You can use /usr/share/doc/${PF}/criprc_example.gz" einfo "to create your .criprc config file. Do the following" einfo "(as the user you intend to run crip under):" einfo "# zcat /usr/share/doc/${PF}/criprc_example.gz > ~/.criprc" einfo }