Skip to content

Commit

Permalink
Mutt: new recipe (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
miqlas authored and waddlesplash committed Dec 26, 2016
1 parent 4b29b0a commit 6661b5e
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 0 deletions.
97 changes: 97 additions & 0 deletions mail-client/mutt/mutt-1.7.2.recipe
@@ -0,0 +1,97 @@
SUMMARY="Small but very powerful text-based mail client"
DESCRIPTION="A text-based email client for Unix-like systems. \
It was originally written by Michael Elkins in 1995 and released \
under the GNU General Public License version 2 or any later version.
The Mutt slogan is All mail clients suck. This one just sucks less."
HOMEPAGE="http://www.mutt.org/"
COPYRIGHT="1996-2016 Michael R. Elkins
1996-2002 Brandon Long
1997-2009 Thomas Roessler
1998-2005 Werner Koch
1999-2014 Brendan Cully
1999-2002 Tommi Komulainen
2000-2004 Edmund Grimley Evans
2006-2009 Rocco Rutte
2014-2015 Kevin J. McCarthy"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="ftp://ftp.mutt.org/pub/mutt/mutt-$portVersion.tar.gz"
CHECKSUM_SHA256="1553501687cd22d5b8aaee4dc5a7d9dcf6cc61d7956f6aabaadd252d10cd5ff9"
PATCHES="mutt-$portVersion.patchset"

ARCHITECTURES="?x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="?x86_gcc2 x86 x86_64"

PROVIDES="
mutt$secondaryArchSuffix = $portVersion
cmd:mutt$secondaryArchSuffix = $portVersion
cmd:flea$secondaryArchSuffix = $portVersion
cmd:muttbug$secondaryArchSuffix = $portVersion
cmd:pgpewrap$secondaryArchSuffix = $portVersion
cmd:pgpring$secondaryArchSuffix = $portVersion
cmd:smime_keys$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgpgme$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libgpgme$secondaryArchSuffix
lib:libgpg_error$secondaryArch >= 0
lib:libgettextpo$secondaryArch
lib:libassuan$secondaryArch
lib:libintl$secondaryArch
lib:libassuan$secondaryArchSuffix
"

BUILD_REQUIRES="
devel:libncurses$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libgpgme$secondaryArchSuffix
devel:libgpg_error$secondaryArchSuffix
devel:libgettextlib$secondaryArchSuffix
devel:libassuan$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:autoreconf
cmd:bison
cmd:gawk
cmd:gcc$secondaryArchSuffix
cmd:gpgme_config$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:m4
"

GLOBAL_WRITABLE_FILES="
settings/Muttrc keep-old
settings/Muttrc.dist keep-old
settings/mime.types keep-old
settings/mime.types.dist keep-old
"

BUILD()
{
export CFLAGS="-D_BSD_SOURCE"
export LDFLAGS="-lnetwork -lbsd"

libtoolize --force --copy --install
autoreconf -vfi

runConfigure configure \
--enable-gpgme \
--enable-pop \
--enable-imap \
--enable-smtp \
--with-regex \
--with-mailpath=/boot/home/mail/mutt

make $jobArgs
}

INSTALL()
{
make install
}
27 changes: 27 additions & 0 deletions mail-client/mutt/patches/mutt-1.7.2.patchset
@@ -0,0 +1,27 @@
From 71de919e2ba5b93d8004047e32adc0186241827b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Mon, 26 Dec 2016 21:43:34 +0100
Subject: [PATCH] Haiku patch

---
getdomain.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/getdomain.c b/getdomain.c
index 15803af..8abd415 100644
--- a/getdomain.c
+++ b/getdomain.c
@@ -28,6 +28,10 @@

#include "mutt.h"

+#ifdef __HAIKU__
+#define _SC_HOST_NAME_MAX 72
+#endif
+

int getdnsdomainname (char *d, size_t len)
{
--
2.10.2

0 comments on commit 6661b5e

Please sign in to comment.