--- /usr/portage/media-video/vlc/vlc-0.8.1-r3.ebuild 2005-07-12 19:05:45.000000000 +0200 +++ vlc-0.8.1-r4.ebuild 2005-07-29 18:59:29.000000000 +0200 @@ -16,7 +16,7 @@ LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" +KEYWORDS="~amd64 ~ppc ~sparc x86" IUSE="a52 3dfx nls unicode debug altivec httpd vlm gnutls live v4l cdio cddb cdda ogg matroska dvb dvd vcd ffmpeg aac dts flac mpeg vorbis theora X opengl freetype svg fbcon svga oss aalib ggi libcaca esd arts alsa wxwindows ncurses xosd lirc joystick nsplugin hal stream mp3 xv bidi gtk2 sdl ssl" RDEPEND="hal? ( =sys-apps/hal-0.4* ) @@ -48,7 +48,7 @@ libcaca? ( media-libs/libcaca ) arts? ( kde-base/arts ) alsa? ( virtual/alsa ) - wxwindows? ( =x11-libs/wxGTK-2.6* ) + wxwindows? ( =x11-libs/wxGTK-2.4* ) ncurses? ( sys-libs/ncurses ) xosd? ( x11-libs/xosd ) lirc? ( app-misc/lirc ) @@ -71,12 +71,13 @@ >=sys-devel/gettext-0.11.5 =sys-devel/automake-1.6* sys-devel/autoconf - dev-util/pkgconfig" + dev-util/pkgconfig + doc? ( net-misc/wget )" pkg_setup() { if use wxwindows; then - WX_GTK_VER="2.6" + WX_GTK_VER="2.4" if use gtk2; then if use unicode; then need-wxwidgets unicode || die "You need to install wxGTK with unicode support." @@ -218,6 +219,22 @@ src_install() { make DESTDIR="${D}" install || die "Installation failed!" + use doc && { + LNG=en + cd ${S} + for docfile in play-howto/$LNG/play-howto-$LNG \ + streaming-howto/$LNG/streaming-howto-$LNG \ + vls-user-guide/$LNG/vls-user-guide-$LNG \ + faq/$LNG/videolan-faq-$LNG; do + for ending in txt pdf rtf html; do + REL=$docfile.$ending + wget http://www.videolan.org/doc/$REL + dodoc `basename $REL` + rm -f $REL + done + done + } + dodoc ABOUT-NLS AUTHORS MAINTAINERS HACKING THANKS TODO NEWS README \ doc/fortunes.txt doc/intf-cdda.txt doc/intf-vcd.txt