Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mutt recipe #699

Merged
merged 1 commit into from
Dec 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
97 changes: 97 additions & 0 deletions mail-client/mutt/mutt-1.7.2.recipe
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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