From b32019f8714332a228e6f1eaeb08e6f262118183 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Wed, 26 Sep 2012 07:44:18 +0200 Subject: libraries/libvmime-zarafa: Updated for version 0.9.2_svn603. Modified library name to libvmime_zarafa, rewritten name.patch Signed-off-by: Matteo Bernardini --- .../libvmime-zarafa/libvmime-zarafa.SlackBuild | 33 +++++++++------------- 1 file changed, 13 insertions(+), 20 deletions(-) (limited to 'libraries/libvmime-zarafa/libvmime-zarafa.SlackBuild') diff --git a/libraries/libvmime-zarafa/libvmime-zarafa.SlackBuild b/libraries/libvmime-zarafa/libvmime-zarafa.SlackBuild index 3080456b97dc6..16102861f7174 100644 --- a/libraries/libvmime-zarafa/libvmime-zarafa.SlackBuild +++ b/libraries/libvmime-zarafa/libvmime-zarafa.SlackBuild @@ -27,7 +27,7 @@ # revision date 2011/09/16 PRGNAM=libvmime-zarafa -VERSION=${VERSION:-0.9.1_p20110328} +VERSION=${VERSION:-0.9.2_svn603} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -41,6 +41,7 @@ fi PRGSRC=libvmime SRCVERSION=$(echo $VERSION | cut -f1 -d_) +TARVERSION=$(echo $VERSION | tr _ +) CWD=$(pwd) TMP=${TMP:-/tmp/SBo} @@ -66,27 +67,21 @@ set -e rm -rf $TMP/$PRGSRC-$SRCVERSION $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -tar xvf $CWD/$PRGSRC-$SRCVERSION.tar.bz2 +tar xvf $CWD/$PRGSRC-$TARVERSION.tar.bz2 cd $PRGSRC-$SRCVERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . # Apply zarafa patches in order of release-date patches="\ - 0.8.1-charset-catch \ - 0.8.1-attachfnamelen \ - 0.8.1-header-value-on-next-line \ - highchar-filename \ - 0.8.1-unicode-1-1-utf-7-charset \ - fullname-without-email-address \ - 0.9.0-undisclosed-recipients \ - 0.9.2-infinite-loop \ - flush-iconv" + mixed-qp-in-parameter \ + 0.9.2-header-value-on-next-line \ + 0.9.2-qp-in-buffers" for patch in $patches; do - patch -p1 < $CWD/vmime-$patch.diff + patch -p1 < $CWD/patches/vmime-$patch.diff done -# Patch "configure" & src/Makefile.in to rename the library to "libvmime-zarafa" +# Patch to rename the library to "libvmime_zarafa" patch -p1 < $CWD/name.patch EXTRA_CFLAGS=$SLKCFLAGS \ @@ -106,13 +101,11 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ # correct program name. # We're moving some files so that this special version of libvmime # can coexist with the standard version, if needed. -mkdir -p $PKG/usr/include/vmime-zarafa -mv $PKG/usr/include/vmime $PKG/usr/include/vmime-zarafa - -mv $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/vmime.pc \ - $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/vmime-zarafa.pc -sed -i "s/vmime/vmime-zarafa/g" \ - $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/vmime-zarafa.pc +mkdir -p $PKG/usr/include/vmime +mv $PKG/usr/include/vmime_zarafa/* $PKG/usr/include/vmime/ +mv $PKG/usr/include/vmime $PKG/usr/include/vmime_zarafa/ +sed -i "s|{includedir}/|{includedir}/vmime_zarafa|" \ + $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/vmime_zarafa.pc cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -- cgit v1.2.3