[PC-BSD Commits] r12807 - in pbi/modules/emulators/vba: . resources/bin scripts

svn at pcbsd.org svn at pcbsd.org
Thu Sep 15 11:57:02 PDT 2011


Author: kenmoore
Date: 2011-09-15 11:57:01 -0700 (Thu, 15 Sep 2011)
New Revision: 12807

Added:
   pbi/modules/emulators/vba/scripts/post-install.sh
Removed:
   pbi/modules/emulators/vba/scripts/pre-remove.sh
Modified:
   pbi/modules/emulators/vba/pbi.conf
   pbi/modules/emulators/vba/resources/bin/editvbaconfig
   pbi/modules/emulators/vba/resources/bin/vba
Log:
Fix the wrapper scripts for VisualBoyAdvance, remove legacy uninstall script, and add a post-install script


Modified: pbi/modules/emulators/vba/pbi.conf
===================================================================
--- pbi/modules/emulators/vba/pbi.conf	2011-09-15 17:57:56 UTC (rev 12806)
+++ pbi/modules/emulators/vba/pbi.conf	2011-09-15 18:57:01 UTC (rev 12807)
@@ -25,6 +25,6 @@
 PBI_MKPORTBEFORE=""
 PBI_MKPORTAFTER="x11-themes/qtcurve-gtk2"
 
-PBI_BUILDKEY="01"; export PBI_BUILDKEY
+PBI_BUILDKEY="02"; export PBI_BUILDKEY
  
 export PBI_PROGNAME PBI_PROGWEB PBI_PROGAUTHOR PBI_PROGICON PBI_MAKEPORT PBI_MKPORTBEFORE PBI_MKPORTAFTER

Modified: pbi/modules/emulators/vba/resources/bin/editvbaconfig
===================================================================
--- pbi/modules/emulators/vba/resources/bin/editvbaconfig	2011-09-15 17:57:56 UTC (rev 12806)
+++ pbi/modules/emulators/vba/resources/bin/editvbaconfig	2011-09-15 18:57:01 UTC (rev 12807)
@@ -2,10 +2,12 @@
 # Helper script to run GBA roms, since GTK Gui is broken
 ##############################################################
 
+PROGDIR=CHANGEME
+
 # Check if we have the config file in the users homedir
 if [ ! -e "${HOME}/.VisualBoyAdvance.cfg" ]
 then
-  cp /Programs/VisualBoyAdvance*/VisualBoyAdvance.cfg ~/.VisualBoyAdvance.cfg
+  cp ${PROGDIR}/VisualBoyAdvance.cfg ~/.VisualBoyAdvance.cfg
 fi
 
 kwrite ~/.VisualBoyAdvance.cfg

Modified: pbi/modules/emulators/vba/resources/bin/vba
===================================================================
--- pbi/modules/emulators/vba/resources/bin/vba	2011-09-15 17:57:56 UTC (rev 12806)
+++ pbi/modules/emulators/vba/resources/bin/vba	2011-09-15 18:57:01 UTC (rev 12807)
@@ -2,10 +2,12 @@
 # Helper script to run GBA roms, since GTK Gui is broken
 ##############################################################
 
+PROGDIR=CHANGEME
+
 # Check if we have the config file in the users homedir
 if [ ! -e "${HOME}/.VisualBoyAdvance.cfg" ]
 then
-  cp /Programs/VisualBoyAdvance*/VisualBoyAdvance.cfg ~/.VisualBoyAdvance.cfg
+  cp ${PROGDIR}/VisualBoyAdvance.cfg ~/.VisualBoyAdvance.cfg
 fi
 
 # Check if the user specified a ROM to run
@@ -14,12 +16,12 @@
    ROM=`kdialog --title "Select.GBA ROM to run" --getopenfilename "~" "*.gba *.GBA *.zip *.ZIP"`
    if [ ! -z "${ROM}" ]
    then
-     /Programs/VisualBoyAdvance*/bin/VisualBoyAdvance --config=${HOME}/.VisualBoyAdvance.cfg "${ROM}"
+     ${PROGDIR}/bin/VisualBoyAdvance --config=${HOME}/.VisualBoyAdvance.cfg "${ROM}"
    else
      kdialog --error "Error: No GBA ROM selcted!"
    fi
 
 else
-   /Programs/VisualBoyAdvance*/bin/VisualBoyAdvance --config=${HOME}/.VisualBoyAdvance.cfg "${@}"
+   ${PROGDIR}/bin/VisualBoyAdvance --config=${HOME}/.VisualBoyAdvance.cfg "${@}"
 fi
 



More information about the Commits mailing list