SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "evolution-data-server"

# SliTaz package receipt.

PACKAGE="evolution-data-server"
VERSION="2.28.1"
CATEGORY="network"
SHORT_DESC="Integrated mail, addressbook and calendaring, server."
MAINTAINER="erjo@slitaz.org"
LICENSE="LGPL2"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://projects.gnome.org/evolution/download.shtml"
WGET_URL="http://ftp.gnome.org/pub/gnome/sources/evolution-data-server/${VERSION%.*}/$TARBALL"

DEPENDS="libgnomeui libsoup"
BUILD_DEPENDS="libglade-dev libsoup-dev gtk+-dev ORBit2-dev libbonobo-dev \
GConf-dev libical-dev firefox-dev db-dev libxcb-dev popt-dev bison flex \
glib-dev sqlite-dev dbus-glib-dev"

current_version()
{
    wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|\([idt].*\)->is_utc = \(.*\);|icaltime_set_timezone(\1,\2 ? icaltimezone_get_utc_timezone() : NULL);|' \
        calendar/libecal/e-cal-*.c
    sed -i 's|\([idt].*\)\.is_utc = \(.*\);|icaltime_set_timezone(\&\1,\2 ? icaltimezone_get_utc_timezone() : NULL);|' \
        calendar/libecal/e-cal-*.c
    sed -i 's|dt->value->is_utc)$|icaltime_is_utc(*dt->value))|' \
        calendar/libecal/e-cal-component.c
    sed -i -e 's|buf->buffer->content|xmlOutputBufferGetContent(buf)|' \
        -e 's|buf->conv->content|xmlBufferContent(buf->conv)|' \
        -e 's|buf->buffer->use|xmlOutputBufferGetSize(buf)|' \
            servers/google/libgdata/gdata-entry.c \
            calendar/backends/caldav/e-cal-backend-caldav.c
    sed -i 's|icaltime_from_timet\([ (].*\))|icaltime_from_timet_with_zone\1, NULL)|' \
        calendar/libecal/e-cal*.c
    sed -i 's|ret.is_utc = FALSE|icaltime_set_timezone(\&ret,NULL)|' \
        calendar/backends/contacts/e-cal-backend-contacts.c
    sed -i 's|itt.is_utc = itt_u->is_utc|icaltime_set_timezone(\&itt,icaltime_is_utc(*itt_u) ? icaltimezone_get_utc_timezone() : NULL)|' \
        calendar/backends/google/e-cal-backend-google-utils.c
    sed -i 's|icalproperty_remove_parameter|&_by_kind|' \
        calendar/backends/groupwise/e-cal-backend-groupwise-utils.c \
        calendar/libecal/e-cal-component.c
    ./configure \
        --prefix=/usr \
        --infodir=/usr/share/info \
        --libexecdir=/usr/lib/evolution-data-server-1.2 \
        --mandir=/usr/share/man \
        --without-weather \
        --enable-ipv6=no \
        --enable-libdb \
        --with-db=/usr/lib \
        --with-nspr-include=/usr/include/firefox-3.5.3/stable \
        --with-nspr-libs=/usr/lib/firefox-devel-3.5.3/sdk/lib \
        $CONFIGURE_ARGS &&
    make && make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib $fs/usr/share

    cp -a $install/usr/share/pixmaps $fs/usr/share
    cp -a $install/usr/share/evolution-data-server-2.28 $fs/usr/share
    cp -a $install/usr/share/idl $fs/usr/share
    
    cp -a $install/usr/lib/bonobo $fs/usr/lib
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    cp -a $install/usr/lib/evolution-data-server-1.2 $fs/usr/lib
    
        # Clean unwated files
    cd $fs/usr/lib  ; find . -name "*.*a" -exec rm -f {} \;
    
    # Stripping all
    find . -name "*.so" -exec strip -s {} \;
    
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)