[PC-BSD Commits] r958 - in pbibuild/modules/yakuake: . overlay-dir

svn at pcbsd.org svn at pcbsd.org
Wed Dec 5 17:24:27 PST 2007


Author: gonzalo
Date: 2007-12-05 17:24:27 -0800 (Wed, 05 Dec 2007)
New Revision: 958

Modified:
   pbibuild/modules/yakuake/build.sh
   pbibuild/modules/yakuake/copy-files
   pbibuild/modules/yakuake/overlay-dir/PBI.RemoveScript.sh
   pbibuild/modules/yakuake/overlay-dir/PBI.SetupScript.sh
   pbibuild/modules/yakuake/pbi.conf
Log:
New .mo files script manager

Modified: pbibuild/modules/yakuake/build.sh
===================================================================
--- pbibuild/modules/yakuake/build.sh	2007-12-05 18:55:25 UTC (rev 957)
+++ pbibuild/modules/yakuake/build.sh	2007-12-06 01:24:27 UTC (rev 958)
@@ -8,3 +8,15 @@
 # MODULEDIR = The location of the module directory for this PBI
 #   PORTVER = Version number of the port we used to build
 ##############################################################################
+# Get all the various language files and copy them to the PBI
+LANGFILE="yakuake.mo"
+mkdir ${PBIDIR}/locale/
+cd /usr/local/share/locale
+for i in `ls`
+do
+  if [ -e "/usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}" ]
+  then
+    mkdir ${PBIDIR}/locale/${i}
+    cp /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE} ${PBIDIR}/locale/${i}/
+  fi
+done

Modified: pbibuild/modules/yakuake/copy-files
===================================================================
--- pbibuild/modules/yakuake/copy-files	2007-12-05 18:55:25 UTC (rev 957)
+++ pbibuild/modules/yakuake/copy-files	2007-12-06 01:24:27 UTC (rev 958)
@@ -3,16 +3,4 @@
 /usr/local/share/apps/yakuake share/apps/
 /usr/local/share/config.kcfg/yakuake.kcfg share/config.kcfg/
 /usr/local/share/icons/hicolor/16x16/apps/yakuake.png share/icons/hicolor/16x16/apps/
-/usr/local/share/icons/hicolor/32x32/apps/yakuake.png share/icons/hicolor/32x32/apps/
-/usr/local/share/locale/de/LC_MESSAGES/yakuake.mo share/locale/de/LC_MESSAGES/
-/usr/local/share/locale/el/LC_MESSAGES/yakuake.mo share/locale/el/LC_MESSAGES/
-/usr/local/share/locale/es/LC_MESSAGES/yakuake.mo share/locale/es/LC_MESSAGES/
-/usr/local/share/locale/et/LC_MESSAGES/yakuake.mo share/locale/et/LC_MESSAGES/
-/usr/local/share/locale/it/LC_MESSAGES/yakuake.mo share/locale/it/LC_MESSAGES/
-/usr/local/share/locale/ja/LC_MESSAGES/yakuake.mo share/locale/ja/LC_MESSAGES/
-/usr/local/share/locale/nl/LC_MESSAGES/yakuake.mo share/locale/nl/LC_MESSAGES/
-/usr/local/share/locale/pa/LC_MESSAGES/yakuake.mo share/locale/pa/LC_MESSAGES/
-/usr/local/share/locale/pt/LC_MESSAGES/yakuake.mo share/locale/pt/LC_MESSAGES/
-/usr/local/share/locale/pt_BR/LC_MESSAGES/yakuake.mo share/locale/pt_BR/LC_MESSAGES/
-/usr/local/share/locale/sv/LC_MESSAGES/yakuake.mo share/locale/sv/LC_MESSAGES/
-/usr/local/share/locale/tr/LC_MESSAGES/yakuake.mo share/locale/tr/LC_MESSAGES/
\ No newline at end of file
+/usr/local/share/icons/hicolor/32x32/apps/yakuake.png share/icons/hicolor/32x32/apps/
\ No newline at end of file

Modified: pbibuild/modules/yakuake/overlay-dir/PBI.RemoveScript.sh
===================================================================
--- pbibuild/modules/yakuake/overlay-dir/PBI.RemoveScript.sh	2007-12-05 18:55:25 UTC (rev 957)
+++ pbibuild/modules/yakuake/overlay-dir/PBI.RemoveScript.sh	2007-12-06 01:24:27 UTC (rev 958)
@@ -9,5 +9,12 @@
 rm -fR /usr/local/bin/yakuake
 rm -fR /usr/local/share/apps/yakuake 
 rm -fR /usr/local/share/config.kcfg/yakuake.kcfg
-rm -fR /usr/local/share/locale/*/LC_MESSAGES/yakuake.mo
-rm -fR /usr/local/share/icons/hicolor/*/apps/yakuake.png
\ No newline at end of file
+rm -fR /usr/local/share/icons/hicolor/*/apps/yakuake.png
+
+# Remove the old locale files since we are uninstalling
+LANGFILE="yakuake.mo"
+cd /Programs/${PROGDIR}/locale
+for i in `ls`
+do
+  rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}
+done
\ No newline at end of file

Modified: pbibuild/modules/yakuake/overlay-dir/PBI.SetupScript.sh
===================================================================
--- pbibuild/modules/yakuake/overlay-dir/PBI.SetupScript.sh	2007-12-05 18:55:25 UTC (rev 957)
+++ pbibuild/modules/yakuake/overlay-dir/PBI.SetupScript.sh	2007-12-06 01:24:27 UTC (rev 958)
@@ -18,18 +18,16 @@
 ln -s /Programs/${PROGDIR}/.sbin/yakuake /usr/local/bin/yakuake
 ln -s /Programs/${PROGDIR}/share/apps/yakuake /usr/local/share/apps/yakuake 
 ln -s /Programs/${PROGDIR}/share/config.kcfg/yakuake.kcfg /usr/local/share/config.kcfg/yakuake.kcfg
-ln -s /Programs/${PROGDIR}/share/locale/de/LC_MESSAGES/yakuake.mo /usr/local/share/locale/de/LC_MESSAGES/
-ln -s /Programs/${PROGDIR}/share/locale/el/LC_MESSAGES/yakuake.mo /usr/local/share/locale/el/LC_MESSAGES/
-ln -s /Programs/${PROGDIR}/share/locale/es/LC_MESSAGES/yakuake.mo /usr/local/share/locale/es/LC_MESSAGES/
-ln -s /Programs/${PROGDIR}/share/locale/et/LC_MESSAGES/yakuake.mo /usr/local/share/locale/et/LC_MESSAGES/
-ln -s /Programs/${PROGDIR}/share/locale/it/LC_MESSAGES/yakuake.mo /usr/local/share/locale/it/LC_MESSAGES/
-ln -s /Programs/${PROGDIR}/share/locale/ja/LC_MESSAGES/yakuake.mo /usr/local/share/locale/ja/LC_MESSAGES/
-ln -s /Programs/${PROGDIR}/share/locale/nl/LC_MESSAGES/yakuake.mo /usr/local/share/locale/nl/LC_MESSAGES/
-ln -s /Programs/${PROGDIR}/share/locale/pa/LC_MESSAGES/yakuake.mo /usr/local/share/locale/pa/LC_MESSAGES/
-ln -s /Programs/${PROGDIR}/share/locale/pt/LC_MESSAGES/yakuake.mo /usr/local/share/locale/pt/LC_MESSAGES/
-ln -s /Programs/${PROGDIR}/share/locale/pt_BR/LC_MESSAGES/yakuake.mo /usr/local/share/locale/pt_BR/LC_MESSAGES/
-ln -s /Programs/${PROGDIR}/share/locale/sv/LC_MESSAGES/yakuake.mo /usr/local/share/locale/sv/LC_MESSAGES/
-ln -s /Programs/${PROGDIR}/share/locale/tr/LC_MESSAGES/yakuake.mo /usr/local/share/locale/tr/LC_MESSAGES/
 ln -s /Programs/${PROGDIR}/share/icons/hicolor/16x16/apps/yakuake.png /usr/local/share/icons/hicolor/16x16/apps/yakuake.png
 ln -s /Programs/${PROGDIR}/share/icons/hicolor/32x32/apps/yakuake.png /usr/local/share/icons/hicolor/32x32/apps/yakuake.png
-kdialog --msgbox "Yakuake has been installed. This application its a service, so you have to execute it to start the service. In order to use it, once the service has been started, you have to press F12 (by default)."
+
+# Copy over all the LANG files
+LANGFILE="yakuake.mo"
+cd /Programs/${PROGDIR}/locale
+for i in `ls`
+do
+  mkdir -p /usr/local/share/locale/${i}/LC_MESSAGES >/dev/null 2>/dev/null
+  cp /Programs/${PROGDIR}/locale/${i}/${LANGFILE} /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}
+done
+
+echo "LAUNCHCLOSE: /usr/local/bin/yakuake"

Modified: pbibuild/modules/yakuake/pbi.conf
===================================================================
--- pbibuild/modules/yakuake/pbi.conf	2007-12-05 18:55:25 UTC (rev 957)
+++ pbibuild/modules/yakuake/pbi.conf	2007-12-06 01:24:27 UTC (rev 958)
@@ -32,6 +32,6 @@
 
 # Build Key - Change this to anything else to trigger a rebuild 
 #           - The rebuild will take place even if port is still the same ver
-BUILDKEY="33"
+BUILDKEY="34"
 
 export PBIPORT MAKEOPTS PROGNAME PROGWEB PROGAUTHOR OTHERPORT PROGICON PROGLIBS PBIUPDATE BUILDKEY



More information about the Commits mailing list