Bug 50614 - quake3-1.32b-r3.ebuild cosmetic error
Bug#: 50614 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: trivial Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: dizzy@roedu.net
Component: Games
URL: 
Summary: quake3-1.32b-r3.ebuild cosmetic error
Keywords:  
Status Whiteboard: 
Opened: 2004-05-10 02:47 0000
Description:   Opened: 2004-05-10 02:47 0000
Hi

Please apply this little patch to quake3-1.32b-r3.ebuild to fix it:
# diff -u quake3-1.32b-r3.ebuild quake3-1.32b-r4.ebuild 
--- quake3-1.32b-r3.ebuild      2004-04-20 01:07:11.000000000 +0300
+++ quake3-1.32b-r4.ebuild      2004-05-10 12:50:14.178101048 +0300
@@ -32,7 +32,7 @@
 }
 
 src_install() {
-       local dir=${GAMES_PREFIX_OPT}/${PN}
+       dir=${GAMES_PREFIX_OPT}/${PN}
        dodir ${dir}
 
        insinto ${dir}/baseq3



Reasoning: defining dir local to src_install() and then using it later into pkg_postinst() isnt good:

pkg_postinst() {
        games_pkg_postinst

        einfo "You need to copy pak0.pk3 from your Quake3 CD into ${dir}/baseq3."

------- Comment #1 From Mr. Bones. 2004-05-10 02:54:48 0000 -------
Fixed in CVS.  Thanks for the bug report.