From 9d1e3bc469a07819011923fc4e952b6cfcfd3a95 Mon Sep 17 00:00:00 2001 From: rudson Date: Tue, 22 Jan 2008 19:47:12 +0000 Subject: git-svn-id: svn+slack://slack.fluxo.info/var/svn/mkbuilds@59 18ef50b8-d735-4ccd-97c1-689132df3dd9 --- app/dicts/babytrans/babytrans.mkbuild | 118 ++++++++++++++++------------------ 1 file changed, 54 insertions(+), 64 deletions(-) (limited to 'app/dicts') diff --git a/app/dicts/babytrans/babytrans.mkbuild b/app/dicts/babytrans/babytrans.mkbuild index 8236b6f..d9b8239 100644 --- a/app/dicts/babytrans/babytrans.mkbuild +++ b/app/dicts/babytrans/babytrans.mkbuild @@ -148,72 +148,62 @@ off: postinstall_script #>slackdesc babytrans: babytrans by Slack.Sarava babytrans: -babytrans: BabyTrans is a graphical interface for the Babylon Translator dictionaries (available -babytrans: under Windows). (More information: ) -babytrans: -babytrans: Copy the dictionary files from Babylon Translator either in the /usr/share/babytrans -babytrans: directory or in another directory that you indicate in the configuration. -babytrans: +babytrans: BabyTrans is a graphical interface for the Babylon Translator +babytrans: dictionaries (available under Windows). (More information: +babytrans: ) +babytrans: Copy the dictionary files from Babylon Translator either in the +babytrans: /usr/share/babytrans directory or in another directory that you +babytrans: indicate in the configuration. babytrans: The files to copy are: babytrans: - english.dic (common for all languages) babytrans: - Engto***.dic (with *** depending on the language) #make_package -# Add assert.h include -sed -i '/^#include "fred_sstream"/ { p; s/.*/#include /; }' src/main.cc -# Compile -make $NUMJOBS || exit $ERROR_MAKE -#download_source -# Dowload source if necessary -SRC="[[SOURCE NAME CONSTRUCTION STRING]]" -URL="[[DOWNLOAD FOLDER URL]]/$SRC" -DIC_URL=ftp://ftp.ac-grenoble.fr/ge/languages/babylon_dict - -if [ ! -s "$SRC_DIR/$SRC" ] || ! [[DECOMPRESSOR]] [[DECOMPRESSOR TEST FLAG]] "$SRC_DIR/$SRC" 2> /dev/null; then - wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET -fi - -# Get dictionaries -DIC_LIST="EngtoDut.dic.gz EngtoEng.dic.gz EngtoFre.dic.gz - EngtoGer.dic.gz EngtoHeb.dic.gz EngtoIta.dic.gz EngtoJpn.dic.gz - EngtoPor.dic.gz EngtoSpa.dic.gz english.dic.gz english2.dic.gz" - -for i in $DIC_LIST; do - [ ! -e $SRC_DIR/$i ] && wget $DIC_URL/$i -P $SRC_DIR/ -done - -[ ! -e $SRC_DIR/dictionary ] && wget $DIC_URL/dictionary -P $SRC_DIR/ -#install_package -# Install -make install DESTDIR="$PKG" || exit $ERROR_INSTALL - -mkdir -p $PKG/usr/local/lib/babytrans -mkdir -p $PKG/usr/share/babytrans -mkdir -p $PKG/usr/share/applications -rm -rf $PKG/usr/share/applets - -cp $SRC_DIR/*.dic.gz $PKG/usr/local/lib/babytrans/ -cp $SRC_DIR/dictionary $PKG/usr/share/babytrans/ - -gunzip $PKG/usr/local/lib/babytrans/*.gz - -cat << KDE_DESK > $PKG/usr/share/applications/babytrans.desktop -[Desktop Entry] -Comment=An interface for babylon translator -Categories=Education;Languages; -Exec=babytrans --activate-goad-server babytrans -GenericName=Babytrans -Icon=kbabel -Name=Babytrans -StartupNotify=true -Terminal=False -Type=Application -X-KDE-SubstituteUID=false -KDE_DESK - -# + URL="[[DOWNLOAD FOLDER URL]]/$SRC" ++DIC_URL=ftp://ftp.ac-grenoble.fr/ge/languages/babylon_dict +=== + wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET + fi ++ ++# Get dictionaries ++DIC_LIST="EngtoDut.dic.gz EngtoEng.dic.gz EngtoFre.dic.gz ++ EngtoGer.dic.gz EngtoHeb.dic.gz EngtoIta.dic.gz EngtoJpn.dic.gz ++ EngtoPor.dic.gz EngtoSpa.dic.gz english.dic.gz english2.dic.gz" ++ ++for i in $DIC_LIST; do ++ [ ! -e $SRC_DIR/$i ] && wget $DIC_URL/$i -P $SRC_DIR/ ++done ++ ++[ ! -e $SRC_DIR/dictionary ] && wget $DIC_URL/dictionary -P $SRC_DIR/ +=== + off ++# Add assert.h include ++sed -i '/^#include "fred_sstream"/ { p; s/.*/#include /; }' src/main.cc +=== + make install DESTDIR="$PKG" || exit $ERROR_INSTALL ++ ++mkdir -p $PKG/usr/local/lib/babytrans ++mkdir -p $PKG/usr/share/babytrans ++mkdir -p $PKG/usr/share/applications ++rm -rf $PKG/usr/share/applets ++ ++cp $SRC_DIR/*.dic.gz $PKG/usr/local/lib/babytrans/ ++cp $SRC_DIR/dictionary $PKG/usr/share/babytrans/ ++ ++gunzip $PKG/usr/local/lib/babytrans/*.gz ++ ++cat << KDE_DESK > $PKG/usr/share/applications/babytrans.desktop ++[Desktop Entry] ++Comment=An interface for babylon translator ++Categories=Education;Languages; ++Exec=babytrans --activate-goad-server babytrans ++GenericName=Babytrans ++Icon=kbabel ++Name=Babytrans ++StartupNotify=true ++Terminal=False ++Type=Application ++X-KDE-SubstituteUID=false ++KDE_DESK +#p< -- cgit v1.2.3