# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ # NOTE: The comments in this file are for instruction and documentation. # They're not meant to appear with your final, production ebuild. Please # remember to remove them before submitting or committing your ebuild. That # doesn't mean you can't add your own comments though. MY_P="${P/_/}" DESCRIPTION="Micro Linux distro to boot from a CD and play every video file localized in the CD root." HOMEPAGE="http://movix.sourceforge.net/" CODEC_URI="http://www1.mplayerhq.hu/MPlayer/releases/codecs/" SRC_URI="mirror://sourceforge/movix/${MY_P}.tar.gz codecs? ( ${CODEC_URI}qt6dlls.tar.bz2 ${CODEC_URI}rp9codecs.tar.bz2 ${CODEC_URI}rp9win32codecs.tar.bz2 ${CODEC_URI}win32codecs.tar.bz2 ${CODEC_URI}xanimdlls.tar.bz2 )" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="codecs" DEPEND="" S="${WORKDIR}/${MY_P}" src_unpack() { local MY_A; MY_A=($A) unpack ${MY_A[0]} } src_compile() { econf || die "configure failed" emake || die "emake failed" } src_install() { make DESTDIR=${D} install || die dodoc AUTHORS ChangeLog COPYING INSTALL README* TODO if [ `use codecs` ] then insinto /usr/share/emovix/codecs newins "${DISTDIR}/qt6dlls.tar.bz2" qt6dlls.tar.bz2 newins "${DISTDIR}/rp9codecs.tar.bz2" rp9codecs.tar.bz2 newins "${DISTDIR}/rp9win32codecs.tar.bz2" rp9win32codecs.tar.bz2 newins "${DISTDIR}/win32codecs.tar.bz2" win32codecs.tar.bz2 newins "${DISTDIR}/xanimdlls.tar.bz2" xanimdlls.tar.bz2 fi }