[PC-BSD Commits] r1005 - in pbibuild/modules/k3b: . overlay-dir
svn at pcbsd.org
svn at pcbsd.org
Wed Dec 12 11:17:57 PST 2007
Author: kris
Date: 2007-12-12 11:17:51 -0800 (Wed, 12 Dec 2007)
New Revision: 1005
Modified:
pbibuild/modules/k3b/build.sh
pbibuild/modules/k3b/overlay-dir/PBI.RemoveScript.sh
pbibuild/modules/k3b/overlay-dir/PBI.SetupScript.sh
pbibuild/modules/k3b/pbi.conf
Log:
Fixed up the K3b module to include the k3b-i18n package, and copy these
language files into the PBI
Modified: pbibuild/modules/k3b/build.sh
===================================================================
--- pbibuild/modules/k3b/build.sh 2007-12-12 18:44:28 UTC (rev 1004)
+++ pbibuild/modules/k3b/build.sh 2007-12-12 19:17:51 UTC (rev 1005)
@@ -13,3 +13,23 @@
sed -e "s,CHANGEME,K3B${PORTVER},g" ${PBIDIR}/scripts/removepbi.sh > /tmp/removepbi.sh
mv /tmp/removepbi.sh ${PBIDIR}/scripts/removepbi.sh
chmod 755 ${PBIDIR}/scripts/removepbi.sh
+
+
+# Get all the various language files and copy them to the PBI
+LANGFILE="k3b.mo"
+LANGFILE1="k3bsetup.mo"
+LANGFILE2="libk3b.mo"
+LANGFILE3="libk3bdevice.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}/
+ cp /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE1} ${PBIDIR}/locale/${i}/
+ cp /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE2} ${PBIDIR}/locale/${i}/
+ cp /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE3} ${PBIDIR}/locale/${i}/
+ fi
+done
Modified: pbibuild/modules/k3b/overlay-dir/PBI.RemoveScript.sh
===================================================================
--- pbibuild/modules/k3b/overlay-dir/PBI.RemoveScript.sh 2007-12-12 18:44:28 UTC (rev 1004)
+++ pbibuild/modules/k3b/overlay-dir/PBI.RemoveScript.sh 2007-12-12 19:17:51 UTC (rev 1005)
@@ -26,6 +26,20 @@
rm /usr/local/share/sounds/${i}
done
+# Remove the old locale files since we are uninstalling
+LANGFILE="k3b.mo"
+LANGFILE1="k3bsetup.mo"
+LANGFILE2="libk3b.mo"
+LANGFILE3="libk3bdevice.mo"
+cd /Programs/${PROGDIR}/locale
+for i in `ls`
+do
+ rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}
+ rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE1}
+ rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE2}
+ rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE3}
+done
+
cd /home
for i in `ls`
do
Modified: pbibuild/modules/k3b/overlay-dir/PBI.SetupScript.sh
===================================================================
--- pbibuild/modules/k3b/overlay-dir/PBI.SetupScript.sh 2007-12-12 18:44:28 UTC (rev 1004)
+++ pbibuild/modules/k3b/overlay-dir/PBI.SetupScript.sh 2007-12-12 19:17:51 UTC (rev 1005)
@@ -35,4 +35,20 @@
ln -s /Programs/${PROGDIR}/share/sounds/${i} /usr/local/share/sounds/${i}
done
-echo "LAUNCHCLOSE: /usr/local/bin/k3b"
\ No newline at end of file
+# Copy over all the LANG files
+LANGFILE="k3b.mo"
+LANGFILE1="k3bsetup.mo"
+LANGFILE2="libk3b.mo"
+LANGFILE3="libk3bdevice.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}
+ cp /Programs/${PROGDIR}/locale/${i}/${LANGFILE1} /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE1}
+ cp /Programs/${PROGDIR}/locale/${i}/${LANGFILE2} /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE2}
+ cp /Programs/${PROGDIR}/locale/${i}/${LANGFILE3} /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE3}
+done
+
+
+echo "LAUNCHCLOSE: /usr/local/bin/k3b"
Modified: pbibuild/modules/k3b/pbi.conf
===================================================================
--- pbibuild/modules/k3b/pbi.conf 2007-12-12 18:44:28 UTC (rev 1004)
+++ pbibuild/modules/k3b/pbi.conf 2007-12-12 19:17:51 UTC (rev 1005)
@@ -25,13 +25,13 @@
PBIUPDATE="http://update.pbidir.com"
# Other Ports we need built (One per line)
-OTHERPORT=""
+OTHERPORT="/usr/ports/misc/k3b-i18n"
# Enter your custom make options here
MAKEOPTS=""
# 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="05"
+BUILDKEY="27"
export PBIPORT MAKEOPTS PROGNAME PROGWEB PROGAUTHOR OTHERPORT PROGICON PROGLIBS PBIUPDATE BUILDKEY
More information about the Commits
mailing list