diff options
author | Niels Horn <niels.horn@gmail.com> | 2010-06-12 14:50:56 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-06-12 22:14:27 -0500 |
commit | 96418c030230b61d6c7dcd6c40feff336827a705 (patch) | |
tree | d1b10cb71b2bfc62f96e4f636436b069b0e196bb /libraries | |
parent | 0b9284970cf7a776292e5f57f4fc03b181b4ffb7 (diff) |
libraries/libvmime: Added (mail library in C++)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/libvmime/README | 4 | ||||
-rw-r--r-- | libraries/libvmime/flags.patch | 13 | ||||
-rw-r--r-- | libraries/libvmime/gcc44.patch | 10 | ||||
-rw-r--r-- | libraries/libvmime/gnutls-28.patch | 21 | ||||
-rw-r--r-- | libraries/libvmime/libvmime.SlackBuild | 84 | ||||
-rw-r--r-- | libraries/libvmime/libvmime.info | 10 | ||||
-rw-r--r-- | libraries/libvmime/slack-desc | 19 |
7 files changed, 161 insertions, 0 deletions
diff --git a/libraries/libvmime/README b/libraries/libvmime/README new file mode 100644 index 000000000000..19331bcf3cf3 --- /dev/null +++ b/libraries/libvmime/README @@ -0,0 +1,4 @@ +VMime is a free mail library for C++, an open-source solution for working +with MIME messages and Internet messaging services like IMAP, POP or SMTP. + +This requires libgsasl. diff --git a/libraries/libvmime/flags.patch b/libraries/libvmime/flags.patch new file mode 100644 index 000000000000..a7032f3792ac --- /dev/null +++ b/libraries/libvmime/flags.patch @@ -0,0 +1,13 @@ +--- libvmime-0.9.0_orig/configure 2008-10-19 10:36:19.000000000 -0200 ++++ libvmime-0.9.0/configure 2009-12-17 09:17:29.000000000 -0200 +@@ -32224,8 +32224,8 @@ + EXTRA_CFLAGS="$EXTRA_CFLAGS -D_REENTRANT=1 -D_THREAD_SAFE=1 $LIBGNUTLS_CFLAGS" + EXTRA_LIBS="$GSASL_LIBS $LIBGNUTLS_LIBS" + +-CFLAGS="" +-CXXFLAGS="" ++#CFLAGS="" ++#CXXFLAGS="" + + # -- Debug + if test x$VMIME_DEBUG = x1 ; then diff --git a/libraries/libvmime/gcc44.patch b/libraries/libvmime/gcc44.patch new file mode 100644 index 000000000000..a081c15e8d91 --- /dev/null +++ b/libraries/libvmime/gcc44.patch @@ -0,0 +1,10 @@ +--- libvmime-0.9.0/src/platforms/posix/posixFile.cpp 2008-10-12 06:42:23.000000000 -0300 ++++ libvmime-0.9.0_patched/src/platforms/posix/posixFile.cpp 2010-05-28 00:13:50.000000000 -0300 +@@ -32,6 +32,7 @@ + + #include <dirent.h> + ++#include <stdio.h> + #include <string.h> + + #include "vmime/exception.hpp" diff --git a/libraries/libvmime/gnutls-28.patch b/libraries/libvmime/gnutls-28.patch new file mode 100644 index 000000000000..d502868b926e --- /dev/null +++ b/libraries/libvmime/gnutls-28.patch @@ -0,0 +1,21 @@ +--- libvmime-0.9.0.orig/configure ++++ libvmime-0.9.0/configure +@@ -30792,12 +30792,14 @@ + { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5 + echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; } + no_libgnutls="" +- if test "$LIBGNUTLS_CONFIG" = "no" ; then ++# if test "$LIBGNUTLS_CONFIG" = "no" ; then ++ if [ ! $(pkg-config --modversion gnutls-extra 2> /dev/null) ]; then + no_libgnutls=yes + else +- LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags` +- LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs` +- libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version` ++ LIBGNUTLS_CONFIG="" ++ LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args pkg-config --cflags gnutls-extra` ++ LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args pkg-config --libs gnutls-extra` ++ libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args pkg-config --modversion gnutls-extra` + + + ac_save_CFLAGS="$CFLAGS" diff --git a/libraries/libvmime/libvmime.SlackBuild b/libraries/libvmime/libvmime.SlackBuild new file mode 100644 index 000000000000..640b4104348c --- /dev/null +++ b/libraries/libvmime/libvmime.SlackBuild @@ -0,0 +1,84 @@ +#!/bin/sh + +# Slackware build script for libvmime: +# a library for working with MIME messages + +# Written by Niels Horn <niels.horn@gmail.com> +# revision date 2010/05/28 + +PRGNAM=libvmime +VERSION=${VERSION:-0.9.0} +BUILD=${BUILD:-2} +TAG=${TAG:-_SBo} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $TMP/$PRGNAM-$VERSION $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +# Patch "configure" to accept gnutls-2.8 +# Based on: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=529834 +patch -p1 < $CWD/gnutls-28.patch + +# Force "configure" to respect our CFLAGS / CXXFLAGS +patch -p1 < $CWD/flags.patch + +# Patch to avoid "::rename has not been declared" error w/ new gcc +patch -p1 < $CWD/gcc44.patch + +CFLAGS=$SLKCFLAGS \ +CXXFLAGS=$SLKCFLAGS \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --localstatedir=/var \ + --mandir=/usr/man \ + --build=$ARCH-slackware-linux + +make docdir=/usr/doc/$PRGNAM-$VERSION +make docdir=/usr/doc/$PRGNAM-$VERSION install DESTDIR=$PKG + +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/libraries/libvmime/libvmime.info b/libraries/libvmime/libvmime.info new file mode 100644 index 000000000000..cdfb5f3b470a --- /dev/null +++ b/libraries/libvmime/libvmime.info @@ -0,0 +1,10 @@ +PRGNAM="libvmime" +VERSION="0.9.0" +HOMEPAGE="http://www.vmime.org/" +DOWNLOAD="http://downloads.sourceforge.net/project/vmime/vmime/0.9/libvmime-0.9.0.tar.bz2" +MD5SUM="23feb9cff7ba3961c0693926e21448cf" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Niels Horn" +EMAIL="niels.horn@gmail.com" +APPROVED="rworkman" diff --git a/libraries/libvmime/slack-desc b/libraries/libvmime/slack-desc new file mode 100644 index 000000000000..064f18aa4380 --- /dev/null +++ b/libraries/libvmime/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +libvmime: libvmime (library for working with MIME messages) +libvmime: +libvmime: VMime is a free mail library for C++, an open-source solution for +libvmime: working with MIME messages and Internet messaging services like IMAP, +libvmime: POP or SMTP. +libvmime: +libvmime: http://www.vmime.org/ +libvmime: +libvmime: +libvmime: +libvmime: |