Repository 32bit  Forum
Repository 64bit  Wiki

Enlightenment DR17 from svn: differenze tra le versioni

Da Slacky.eu.
Riga 110: Riga 110:
imlib2|eina|eet|imlib2_loaders|imlib2_tools|evas|ecore|efreet|embryo|edje|e_dbus|e|exml|esmart|ethumb|exquisite|expedite|emotion|emprint|ewl|exalt|estickies) cd $TMP/e/trunk/$i;;
imlib2|eina|eet|imlib2_loaders|imlib2_tools|evas|ecore|efreet|embryo|edje|e_dbus|e|exml|esmart|ethumb|exquisite|expedite|emotion|emprint|ewl|exalt|estickies) cd $TMP/e/trunk/$i;;
eterm) cd $TMP/e/trunk/$i/Eterm;;
eterm) cd $TMP/e/trunk/$i/Eterm;;
etk|etk_extra|engrave|enhance|edata|ecore_li|edb|emphasis|epsilon|evolve|exhibit|e_utils|epeg) cd $TMP/e/trunk/OLD/$i;;
+
etk|etk_extra|engrave|enhance|edata|ecore_li|edb|emphasis|epsilon|evolve|exhibit|e_utils|epeg) cd $TMP/e/OLD/$i;;
elementary|elementary-alarm|elementary-presenter|elementary-sms|waker) cd $TMP/e/trunk/TMP/st/$i;;
elementary|elementary-alarm|elementary-presenter|elementary-sms|waker) cd $TMP/e/trunk/TMP/st/$i;;
alarm|bling|calendar|configmenu|cpu|deskshow|diskio|drawer|emu|exalt-client|execwatch|flame|forecasts|iiirk|language|mail|mem|moon|mpdule|net|news|notification|penguins|photo|places|rain|screenshot|skel|slideshow|snow|taskbar|tclock|tiling|uptime|weather|winselector|wlan) cd $TMP/e/trunk/E-MODULES-EXTRA/$i;;
alarm|bling|calendar|configmenu|cpu|deskshow|diskio|drawer|emu|exalt-client|execwatch|flame|forecasts|iiirk|language|mail|mem|moon|mpdule|net|news|notification|penguins|photo|places|rain|screenshot|skel|slideshow|snow|taskbar|tclock|tiling|uptime|weather|winselector|wlan) cd $TMP/e/trunk/E-MODULES-EXTRA/$i;;
Riga 184: Riga 184:
cd $DEPPKG
cd $DEPPKG
makepkg -l y -c n $TMP/$i\_dep_inst.txz
makepkg -l y -c n $TMP/$i\_dep_inst.txz
installpkg $TMP/$i\_dep_inst.txz
+
upgradepkg --install-new $TMP/$i\_dep_inst.txz
done
done

Versione delle 01:10, 7 feb 2010

Semplice script che scarica enlightenment da svn, lo compila e lo pacchettizza e installa ;)

#!/bin/sh
# e17 Slackware Builder
# This simple script download lastest trunk from e17's SVN and packages it ;)
# Compatible with Slackware 13.0 and (hopefully) later
# Copyright jimmy_page_89 ( email jimmy_page_89 AT hotmail DOT it )
# Heavily changed by albatros_la aka AsPh4lTo
# Thanks to Conraid for SVN help :D
set -e

echo "##e17 Slackware Builder##"
TMP=${TMP:-/tmp/txz/e17}
NAME=enlightenment
PKG=$TMP/package-$NAME
DEPPKG=$TMP/dep-package-$NAME
TAG=1jim
CWD=`pwd`
OUTPUT=$CWD
ARCH="x86_64"
JOBS="-j2"

if [ ! -d $PKG ]
then
   mkdir -p $PKG || exit 1
fi

if [ "$ARCH" = "i486" ]; then
   SLKCFLAGS="-O2 -march=i486 -mtune=i686"
   LIBDIRSUFFIX=""
   SLKLDFLAGS=""
elif [ "$ARCH" = "i686" ]; then
   SLKCFLAGS="-O2 -march=i686 -mtune=i686"
   LIBDIRSUFFIX=""
   SLKLDFLAGS=""
elif [ "$ARCH" = "x86_64" ]; then
   SLKCFLAGS="-O2 -fPIC"
   LIBDIRSUFFIX="64"
   SLKLDFLAGS="-L/usr/lib64"
fi

if [ -f $CWD/error.log ]
then
 rm -rf $CWD/error.log
fi

echo "checking dependencies..."
if [ ! -d $OUTPUT ];then
   mkdir -p $OUTPUT
fi
mkdir -p $TMP
cd $OUTPUT
for j in lua libast libmpd;
do
if [ ! -e /var/log/packages/$j-* ];then
   echo "Please install $j, exiting..."
   exit 1
fi
done
cd $TMP
if [ ! -d e ]
then
 echo "Start Downloading..."
 svn co http://svn.enlightenment.org/svn/e || exit 1
fi
wget http://slackbuilds.org/slackbuilds/13.0/desktop/enlightenment/xinitrc.enlightenment17 || exit 1
wget http://slackbuilds.org/slackbuilds/13.0/desktop/enlightenment/slack-desc || exit 1

cd $TMP/e
VERSION=r$(LANG=en_US svn info | awk '/Revision:/{print $2}')

cd $TMP/e/trunk
for i in BINDINGS BROKEN devs DOCS E16 packaging PROTO SCRIPTS THEMES web;
do
   rm -rf $i || exit 1
done

function doinst {
echo "if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database /usr/share/mime &> /dev/null
fi" >> $PKG/install/doinst.sh
echo "" >> $PKG/install/doinst.sh
echo "if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database 1> /dev/null 2> /dev/null
fi" >> $PKG/install/doinst.sh
echo "" >> $PKG/install/doinst.sh
echo "if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache  -f -q /usr/share/icons/hicolor 1> /dev/null 2> /dev/null
fi" >> $PKG/install/doinst.sh
echo "" >> $PKG/install/doinst.sh
}

function stripbin {
( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
           xargs strip --strip-unneeded 2> /dev/null || true
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
           xargs strip --strip-unneeded 2> /dev/null
)
}

mkdir -p $OUTPUT || exit 1
for i in imlib2 eina eet imlib2_loaders imlib2_tools evas ecore efreet embryo edje e_dbus e exml esmart eterm ethumb exquisite expedite emotion emprint etk etk_extra engrave enhance edata ecore_li edb emphasis epsilon evolve exhibit e_utils epeg ewl elementary elementary-alarm elementary-presenter elementary-sms waker alarm bling calendar configmenu cpu deskshow diskio drawer efm-nav efm-path exalt emu exalt-client execwatch flame forecasts iiirk language mail mem moon mpdule net news notification penguins photo places rain screenshot skel slideshow snow taskbar tclock tiling uptime weather winselector wlan estickies
do
   echo "
   --- Building $i... ---
   "
   case $i in
	   imlib2|eina|eet|imlib2_loaders|imlib2_tools|evas|ecore|efreet|embryo|edje|e_dbus|e|exml|esmart|ethumb|exquisite|expedite|emotion|emprint|ewl|exalt|estickies) cd $TMP/e/trunk/$i;;
	   eterm) cd $TMP/e/trunk/$i/Eterm;;
	   etk|etk_extra|engrave|enhance|edata|ecore_li|edb|emphasis|epsilon|evolve|exhibit|e_utils|epeg) cd $TMP/e/OLD/$i;;
           elementary|elementary-alarm|elementary-presenter|elementary-sms|waker) cd $TMP/e/trunk/TMP/st/$i;;
	   alarm|bling|calendar|configmenu|cpu|deskshow|diskio|drawer|emu|exalt-client|execwatch|flame|forecasts|iiirk|language|mail|mem|moon|mpdule|net|news|notification|penguins|photo|places|rain|screenshot|skel|slideshow|snow|taskbar|tclock|tiling|uptime|weather|winselector|wlan) cd $TMP/e/trunk/E-MODULES-EXTRA/$i;;
	   efm-nav|efm-path) cd $TMP/e/trunk/E-MODULES-EXTRA/`echo $i|sed s/-/_/`;;
   esac
   case $i in
	   ecore) ECORE="--enable-ecore-evas-software-buffer --enable-ecore-evas-software-x11 --enable-ecore-evas-xrender-x11  --enable-ecore-evas-opengl-x11 --enable-ecore-evas-software-16-x11 --enable-ecore-evas-xrender-xcb --enable-ecore-evas-software-gdi --enable-ecore-evas-software-ddraw --enable-ecore-evas-direct3d--enable-ecore-evas-opengl-glew --enable-ecore-evas-software-16-ddraw--enable-ecore-evas-quartz --enable-ecore-evas-software-sdl --enable-ecore-evas-directfb --enable-ecore-evas-fb --enable-ecore-evas-software-16-wince --enable-ecore-x --enable-ecore-fb --enable-ecore-evas --enable-ecore-evas-g1 --enable-ecore-job --enable-ecore-con --enable-ecore-ipc --enable-ecore-txt";;
	   imlib2|eina|eet|imlib2_loaders|imlib2_tools|evas|efreet|embryo|edje|e_dbus|e|exml|esmart|eterm|ethumb|exquisite|expedite|emotion|emprint|etk|etk_extra|engrave|enhance|edata|ecore_li|edb|emphasis|epsilon|evolve|exhibit|e_utils|epeg|ewl|elementary|elementary-alarm|elementary-presenter|elementary-sms|waker|alarm|bling|calendar|configmenu|cpu|deskshow|diskio|drawer|efm-nav|efm-path|emu|exalt-client|execwatch|flame|forecasts|iiirk|language|mail|mem|moon|mpdule|net|news|notification|penguins|photo|places|rain|screenshot|skel|slideshow|snow|taskbar|tclock|tiling|uptime|weather|winselector|wlan) ECORE="";;
	   exalt) ECORE="--with-wpa-supplicant=/sbin/wpa_supplicant --with-dhcp=/sbin/dhclient";;
   esac

   chown -R root:root .
   find . \
   \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
   -exec chmod 755 {} \; -o \
   \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
   -exec chmod 644 {} \;


   if [ "$i" = "evfs" ];then
     mv debian/changelog debian/changelog.in
   fi

   case $i in
	   imlib2|eina|eet|imlib2_loaders|imlib2_tools|evas|ecore|efreet|embryo|edje|e_dbus|e|exml|esmart|eterm|ethumb|exquisite|expedite|emotion|emprint|etk|etk_extra|engrave|enhance|edata|ecore_li|edb|emphasis|epsilon|evolve|exhibit|e_utils|epeg|ewl|elementary|elementary-alarm|elementary-presenter|elementary-sms|waker|exalt|alarm|bling|calendar|configmenu|cpu|deskshow|diskio|drawer|efm-nav|efm-path|emu|exalt-client|execwatch|flame|forecasts|iiirk|language|mail|mem|moon|mpdule|net|news|notification|penguins|photo|places|rain|screenshot|skel|slideshow|snow|taskbar|tclock|tiling|uptime|weather|winselector|wlan)
	   	LDFLAGS="$SLKLDFLAGS" \
		CFLAGS="$SLKCFLAGS" \
		CXXFLAGS="$SLKCFLAGS" \
		./autogen.sh \
	     	--prefix=/usr \
		$ECORE \
	     	--libdir=/usr/lib${LIBDIRSUFFIX} \
	     	--sysconfdir=/etc \
	   	--localstatedir=/var \
		--mandir=/usr/man \
      		--disable-static || exit 1
		;;
	   ewl|estickies)
                ECORE_EVAS_LIBS="$SLKLDFLAGS -lecore_evas -lecore_x -lecore_input -lecore_txt -levas -lecore -leina" \
                ECORE_XCB_LIBS="$SLKLDFLAGS -lxcb -lecore_x -lecore_input -lecore_txt -levas -lecore -leina" \
                ECORE_X_LIBS="$SLKLDFLAGS -lecore_x -lecore_input -lecore_txt -levas -lecore -leina" \
                ECORE_LIBS="$SLKLDFLAGS -lecore_txt -lecore_file -lecore_con -lgnutls -lcurl -lecore -leina" \
                EDJE_LIBS="$SLKLDFLAGS -ledje -lecore_imf_evas -llua -lm -lembryo -lecore_job -leet -lecore_imf -levas -lecore -leina" \
                EFREET_LIBS="$SLKLDFLAGS -lefreet -lefreet_mime -lecore_file -lecore_con -lgnutls -lcurl -lecore -leina" \
                EMOTION_LIBS="$SLKLDFLAGS -lemotion -levas -leina" \
                EVAS_LIBS="$SLKLDFLAGS -levas -leina" \
                EPSILON_LIBS="$SLKLDFLAGS -lepsilon" \
                LDFLAGS="$SLKLDFLAGS" \
                CFLAGS=" $SLKCFLAGS" \
                CXXFLAGS="$SLKCFLAGS" \
                ./autogen.sh \
                --prefix=/usr \
                --libdir=/usr/lib${LIBDIRSUFFIX} \
                --sysconfdir=/etc \
                --localstatedir=/var \
                --mandir=/usr/man \
                --libexecdir=/usr/lib${LIBDIRSUFFIX} \
                --disable-static || exit 1
		;;
   esac

   echo "--- $i building error log ---" >> $CWD/error.log
   make $JOBS 2>>$CWD/error.log|| exit 1

   make install DESTDIR=$PKG || exit 1

   if [ -d $DEPPKG ]
   then
           rm -rf $DEPPKG
           mkdir -p $DEPPKG
   fi
   make install DESTDIR=$DEPPKG || exit 1
   cd $DEPPKG
   makepkg -l y -c n $TMP/$i\_dep_inst.txz
   upgradepkg --install-new $TMP/$i\_dep_inst.txz

done

for i in imlib2 eina eet imlib2_loaders imlib2_tools evas ecore efreet embryo edje e_dbus e exml esmart eterm ethumb exquisite expedite emotion emprint etk etk_extra engrave enhance edata ecore_li edb emphasis epsilon evolve exhibit e_utils epeg ewl elementary elementary-alarm elementary-presenter elementary-sms waker alarm bling calendar configmenu cpu deskshow diskio drawer efm-nav efm-path exalt emu exalt-client execwatch flame forecasts iiirk language mail mem moon mpdule net news notification penguins photo places rain screenshot skel slideshow snow taskbar tclock tiling uptime weather winselector wlan estickies
do
	removepkg /var/log/packages/$i\_dep_inst
done

stripbin

mkdir -p $PKG/usr/doc/$NAME || exit 1
cp -a $TMP/e/trunk/e/{AUTHORS,COPYING,INSTALL,NEWS,README} $PKG/usr/doc/$NAME

mkdir -p $PKG/etc/X11/xinit
cp $TMP/xinitrc.enlightenment17 $PKG/etc/X11/xinit/

mkdir -p $PKG/install
cat $TMP/slack-desc > $PKG/install/slack-desc
cat $TMP/slack-desc > $PKG/usr/doc/$NAME/slack-desc
cat $CWD/e17.SlackBuild > $PKG/usr/doc/$NAME/e17.SlackBuild

doinst

cd $PKG
chown -R root:root .

# Dependencies manually added because requiredbuilder
# takes a huge amount of time!
#requiredbuilder -v -y -s $CWD $PKG
echo "lua >= 5.1.4-i486-4as
libast >= 0.7-i486-3ms
libmpd >= 0.19.0-i486-1as" > $CWD/slack-required

makepkg -l y -c n $OUTPUT/$NAME-$VERSION-$ARCH-$TAG.txz || exit 1

if [[ "$1" = "--cleanup" ]]
then
 rm -rf $TMP || exit 1
fi
Strumenti personali
Namespace

Varianti