# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="DVD Video Creator" HOMEPAGE="http://www.rastersoft.com/programas/devede.html" SRC_URI="http://www.rastersoft.com/descargas/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" LANGS="cs de es fr gl it nb pt pt_BR sk sv" IUSE="doc nls" for i in ${LANGS}; do IUSE="${IUSE} linguas_${i}" done DEPEND="" RDEPEND=">=x11-libs/gtk+-2.6 >=dev-lang/python-2.4 dev-python/pygtk >=media-video/mplayer-1.0_rc1 media-video/dvdauthor media-video/vcdimager virtual/cdrtools" src_install() { newbin devede.py devede doicon ${PN}.png domenu ${PN}.desktop insinto /usr/share/${PN} doins ${PN}.glade insinto /usr/share/${PN} doins pixmaps/* insinto /usr/lib/${PN} doins ${PN}_*.py insinto /usr/share/${PN} doins *.ttf if use doc; then insinto /usr/share/doc/${P}/html dohtml ${S}/docs/* fi if use nls; then cd po/ mv cs_CZ.mo cs.mo mv de_DE.mo de.mo mv nb_NO.mo nb.mo mv pt_PT.mo pt.mo for n in *.mo; do if use linguas_${n/.mo}; then insinto /usr/share/locale/${n/.mo}/LC_MESSAGES newins ${n} ${PN}.mo fi done fi } pkg_postinst() { elog "To create DIVX/MPEG4 files, be sure that MPlayer is compiled with LAME support." elog "In this case you want to check for both the encode and mp3 USE flags." elog "" elog "To change the font used to render the subtitles, choose a TrueType font you like" elog "and copy it in \$HOME/.spumux directory, renaming it to devedesans.ttf." }