From a80b5b5e5e52aeb0c9b2938bc2dda890734fffe3 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 9 Dec 2009 17:19:59 +0700 Subject: [PATCH] build with libotf ; allow building a specific Signed-off-by: Gwenhael Le Moine --- e/emacs/emacs-git.SlackBuild | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/e/emacs/emacs-git.SlackBuild b/e/emacs/emacs-git.SlackBuild index d918b71b..499dd869 100755 --- a/e/emacs/emacs-git.SlackBuild +++ b/e/emacs/emacs-git.SlackBuild @@ -7,7 +7,7 @@ CWD=$(pwd) APP_NAME=emacs PKG=$TMP/package-$APP_NAME -VERSION=cvs$(date +"%Y%m%d") +VERSION=${VERSION:-git$(date +"%Y%m%d")} ARCH=x86_64 BUILD=1cyco @@ -24,20 +24,24 @@ mkdir -p $PKG # mise en place cd $TMP -mkdir $APP_NAME-$VERSION -if [ ! -e $REPOSITORY ] ; then +if [ ! -e $CWD/$APP_NAME-$VERSION.tar.?z* ] ; then + mkdir $APP_NAME-$VERSION + if [ ! -e $REPOSITORY ] ; then mkdir -p $(dirname $REPOSITORY) cd $(dirname $REPOSITORY) - #cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs ; git clone http://git.sv.gnu.org/r/emacs.git + fi + + cd $REPOSITORY + make distclean + + git pull +else + tar xvf $CWD/$APP_NAME-$VERSION.tar.?z* + cd $APP_NAME-$VERSION + REPOSITORY=. fi -cd $REPOSITORY -make distclean - -git pull -#cvs update - CFLAGS=$SLCKFLAGS \ CXXFLAGS=$SLCKFLAGS \ $REPOSITORY/configure \ @@ -48,6 +52,7 @@ CFLAGS=$SLCKFLAGS \ --enable-font-backend \ --with-x-toolkit=gtk \ --with-freetype \ + --with-libotf \ --with-xft make bootstrap