Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
real audio/media in gentoo
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Darthanubis
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2002
Posts: 77

PostPosted: Thu Nov 14, 2002 2:26 am    Post subject: Reply with quote

:o
Thank you!
Back to top
View user's profile Send private message
Delphiki
Guru
Guru


Joined: 04 Oct 2002
Posts: 337
Location: A2

PostPosted: Thu Nov 14, 2002 2:50 am    Post subject: Reply with quote

Ok, this works for me, but this is my first ebuild so... yeah. If you have problems or suggestions then send them my way. This is a fairly small modification.. also, since this is my first ebuild, assuming this works for other people how do I go about submitting it so it can be included in portage?

Code:

# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/media-video/realplayer/realplayer-8-r2.ebuild,v 1.5 2002/11/08 22:03:45 seemant Exp $

S=${WORKDIR}/usr
DESCRIPTION="Real Player 8 basic"
SRC_URI="rp8_linux20_libc6_i386_cs2_rpm"
HOMEPAGE="http://forms.real.com/real/player/unix/unix.html"

DEPEND="app-arch/rpm2targz"
RDEPEND="virtual/x11"
RESTRICT="fetch"

LICENSE="realplayer8"
SLOT="0"
KEYWORDS="x86 -ppc -sparc -sparc64"

dyn_fetch() {
   for y in ${A}
   do
      digest_check ${y}
         if [ $? -ne 0 ]; then
            einfo "Please download this yourself from www.real.com"
            einfo "and place it in ${DISTDIR}"
            exit 1
         fi
   done
}

src_unpack() {
   # You must download rp8_linux20_libc6_i386_cs2_rpm
   # from real.com and put it in ${DISTDIR}
   rpm2targz ${DISTDIR}/${A}
   tar -xvzf rp8_linux20_libc6_i386_cs2_rpm.tar.gz

}

src_install () {

   
   insinto /opt/RealPlayer8/Codecs
   doins ${WORKDIR}/usr/lib/RealPlayer8/Codecs/*
   insinto /opt/RealPlayer8/Common
   doins ${WORKDIR}/usr/lib/RealPlayer8/Common/*
   insinto /opt/RealPlayer8/Plugins
   doins ${WORKDIR}/usr/lib/RealPlayer8/Plugins/*
   insinto /opt/RealPlayer8/Plugins/netscape
   doins ${WORKDIR}/usr/lib/netscape/plugins/*
   insinto /opt/RealPlayer8/
   doins ${WORKDIR}/usr/lib/RealPlayer8/*.xpm
   doins ${WORKDIR}/usr/lib/RealPlayer8/*.rm
   doins ${WORKDIR}/usr/lib/RealPlayer8/rpminstalled
   doins ${WORKDIR}/usr/lib/RealPlayer8/LICENSE
   exeinto /opt/RealPlayer8
   doexe ${WORKDIR}/usr/lib/RealPlayer8/*.sh
   doexe ${WORKDIR}/usr/lib/RealPlayer8/realplay
   #cd ${D}/lib/netscape/plugins
   #unzip raclass.zip
   #rm raclass.zip
   insinto /etc/env.d
   doins ${FILESDIR}/10realplayer   

   dodir /opt/netscape/plugins
   for x in raclass.zip rpnp.so
   do
      dosym /opt/RealPlayer8/Plugins/netscape/${x} \
         /opt/netscape/plugins/${x}
   done

   if [ "`use mozilla`" ]
   then
      dodir /usr/lib/mozilla/plugins
      for x in raclass.zip rpnp.so
      do
         dosym /opt/RealPlayer8/Plugins/netscape/${x} \
            /usr/lib/mozilla/plugins/${x}
      done
   fi
}


_________________
Excellent..
Back to top
View user's profile Send private message
Darthanubis
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2002
Posts: 77

PostPosted: Thu Nov 14, 2002 3:06 am    Post subject: Reply with quote

How about telling us what you changed?
Back to top
View user's profile Send private message
Delphiki
Guru
Guru


Joined: 04 Oct 2002
Posts: 337
Location: A2

PostPosted: Thu Nov 14, 2002 3:10 am    Post subject: Reply with quote

I added an instruction to actually extract the tar.gz after making it out of the rpm and then I added ${WORKDIR}/usr/ in all of the places it is so that it would be trying to install from the place.
_________________
Excellent..
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Mon Nov 18, 2002 7:39 pm    Post subject: Reply with quote

Moved to Multimedia (thread predated Multimedia).
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum