all the things
This commit is contained in:
59
mail/mu/Makefile
Normal file
59
mail/mu/Makefile
Normal file
@@ -0,0 +1,59 @@
|
||||
# $OpenBSD: Makefile,v 1.19 2020/01/24 10:36:41 sthen Exp $
|
||||
|
||||
COMMENT= maildir indexer and searcher with emacs frontend
|
||||
|
||||
V= 1.4.10
|
||||
|
||||
DISTNAME= mu-$V
|
||||
|
||||
FLAVORS= guile
|
||||
FLAVOR ?=
|
||||
|
||||
CATEGORIES= mail
|
||||
HOMEPAGE= http://www.djcbsoftware.nl/code/mu/
|
||||
|
||||
MAINTAINER= Stefan Hagen <sh+ports@codevoid.de>
|
||||
|
||||
# GPLv3+
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
WANTLIB += ${COMPILER_LIBCXX} assuan c ffi gio-2.0 glib-2.0 gmime-3.0
|
||||
WANTLIB += gmodule-2.0 gobject-2.0 gpg-error gpgme gthread-2.0
|
||||
WANTLIB += iconv idn2 intl json-glib-1.0 m pcre unistring uuid
|
||||
WANTLIB += xapian z curses readline
|
||||
|
||||
|
||||
MASTER_SITES= https://github.com/djcb/mu/releases/download/${V}/
|
||||
EXTRACT_SUFX= .tar.xz
|
||||
|
||||
BUILD_DEPENDS= emacs->=24:editors/emacs
|
||||
|
||||
LIB_DEPENDS= databases/xapian-core \
|
||||
devel/glib2 \
|
||||
devel/json-glib \
|
||||
mail/gmime30 \
|
||||
security/gpgme
|
||||
|
||||
# C++14
|
||||
COMPILER= base-clang ports-gcc
|
||||
|
||||
AUTOCONF_VERSION= 2.69
|
||||
AUTOMAKE_VERSION= 1.15
|
||||
CONFIGURE_STYLE= autoreconf
|
||||
|
||||
CONFIGURE_ARGS= --disable-gtk \
|
||||
--disable-webkit
|
||||
|
||||
.if ${FLAVOR} == "guile"
|
||||
WANTLIB += guile-2.2 gc ltdl gmp
|
||||
LIB_DEPENDS += lang/guile2
|
||||
SHARED_LIBS= guile-mu 0.0
|
||||
.else
|
||||
CONFIGURE_ARGS += --disable-guile
|
||||
.endif
|
||||
|
||||
USE_GMAKE= Yes
|
||||
|
||||
SEPARATE_BUILD= Yes
|
||||
|
||||
.include <bsd.port.mk>
|
||||
2
mail/mu/distinfo
Normal file
2
mail/mu/distinfo
Normal file
@@ -0,0 +1,2 @@
|
||||
SHA256 (mu-1.4.10.tar.xz) = RnXxSkO0hT4Uo+CJIFF4fRuC30jqG9Q3UXKJNnbNfm0=
|
||||
SIZE (mu-1.4.10.tar.xz) = 873328
|
||||
15
mail/mu/patches/patch-configure_ac
Normal file
15
mail/mu/patches/patch-configure_ac
Normal file
@@ -0,0 +1,15 @@
|
||||
$OpenBSD$
|
||||
Look for guile-snarf as guile-snarf2.2
|
||||
(lang/guile2 installs it that way)
|
||||
Index: configure.ac
|
||||
--- configure.ac.orig
|
||||
+++ configure.ac
|
||||
@@ -230,7 +230,7 @@ AS_IF([test "x$enable_guile" != "xno"],[
|
||||
GUILE_FLAGS
|
||||
AC_DEFINE_UNQUOTED([GUILE_BINARY],"$GUILE",[guile binary])
|
||||
AC_DEFINE(BUILD_GUILE,[1], [Do we support Guile?])
|
||||
- AC_SUBST(GUILE_SNARF, [guile-snarf])
|
||||
+ AC_SUBST(GUILE_SNARF, [guile-snarf2.2])
|
||||
guile_version=$($PKG_CONFIG guile-2.2 --modversion)
|
||||
])
|
||||
])
|
||||
12
mail/mu/patches/patch-guile_scripts_find-dups_scm
Normal file
12
mail/mu/patches/patch-guile_scripts_find-dups_scm
Normal file
@@ -0,0 +1,12 @@
|
||||
$OpenBSD$
|
||||
look for guile interpreter as guile2.2
|
||||
Index: guile/scripts/find-dups.scm
|
||||
--- guile/scripts/find-dups.scm.orig
|
||||
+++ guile/scripts/find-dups.scm
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
-exec guile -e main -s $0 $@
|
||||
+exec guile2.2 -e main -s $0 $@
|
||||
!#
|
||||
;;
|
||||
;; Copyright (C) 2013-2015 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
12
mail/mu/patches/patch-guile_scripts_msgs-count_scm
Normal file
12
mail/mu/patches/patch-guile_scripts_msgs-count_scm
Normal file
@@ -0,0 +1,12 @@
|
||||
$OpenBSD$
|
||||
look for guile interpreter as guile2.2
|
||||
Index: guile/scripts/msgs-count.scm
|
||||
--- guile/scripts/msgs-count.scm.orig
|
||||
+++ guile/scripts/msgs-count.scm
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
-exec guile -e main -s $0 $@
|
||||
+exec guile2.2 -e main -s $0 $@
|
||||
!#
|
||||
;;
|
||||
;; Copyright (C) 2013 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
12
mail/mu/patches/patch-guile_scripts_msgs-per-day_scm
Normal file
12
mail/mu/patches/patch-guile_scripts_msgs-per-day_scm
Normal file
@@ -0,0 +1,12 @@
|
||||
$OpenBSD$
|
||||
look for guile interpreter as guile2.2
|
||||
Index: guile/scripts/msgs-per-day.scm
|
||||
--- guile/scripts/msgs-per-day.scm.orig
|
||||
+++ guile/scripts/msgs-per-day.scm
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
-exec guile -e main -s $0 $@
|
||||
+exec guile2.2 -e main -s $0 $@
|
||||
!#
|
||||
;;
|
||||
;; Copyright (C) 2012-2013 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
12
mail/mu/patches/patch-guile_scripts_msgs-per-hour_scm
Normal file
12
mail/mu/patches/patch-guile_scripts_msgs-per-hour_scm
Normal file
@@ -0,0 +1,12 @@
|
||||
$OpenBSD$
|
||||
look for guile interpreter as guile2.2
|
||||
Index: guile/scripts/msgs-per-hour.scm
|
||||
--- guile/scripts/msgs-per-hour.scm.orig
|
||||
+++ guile/scripts/msgs-per-hour.scm
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
-exec guile -e main -s $0 $@
|
||||
+exec guile2.2 -e main -s $0 $@
|
||||
!#
|
||||
;;
|
||||
;; Copyright (C) 2012-2013 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
12
mail/mu/patches/patch-guile_scripts_msgs-per-month_scm
Normal file
12
mail/mu/patches/patch-guile_scripts_msgs-per-month_scm
Normal file
@@ -0,0 +1,12 @@
|
||||
$OpenBSD$
|
||||
look for guile interpreter as guile2.2
|
||||
Index: guile/scripts/msgs-per-month.scm
|
||||
--- guile/scripts/msgs-per-month.scm.orig
|
||||
+++ guile/scripts/msgs-per-month.scm
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
-exec guile -e main -s $0 $@
|
||||
+exec guile2.2 -e main -s $0 $@
|
||||
!#
|
||||
;;
|
||||
;; Copyright (C) 2012-2013 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
12
mail/mu/patches/patch-guile_scripts_msgs-per-year-month_scm
Normal file
12
mail/mu/patches/patch-guile_scripts_msgs-per-year-month_scm
Normal file
@@ -0,0 +1,12 @@
|
||||
$OpenBSD$
|
||||
look for guile interpreter as guile2.2
|
||||
Index: guile/scripts/msgs-per-year-month.scm
|
||||
--- guile/scripts/msgs-per-year-month.scm.orig
|
||||
+++ guile/scripts/msgs-per-year-month.scm
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
-exec guile -e main -s $0 $@
|
||||
+exec guile2.2 -e main -s $0 $@
|
||||
!#
|
||||
;;
|
||||
;; Copyright (C) 2012-2013 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
12
mail/mu/patches/patch-guile_scripts_msgs-per-year_scm
Normal file
12
mail/mu/patches/patch-guile_scripts_msgs-per-year_scm
Normal file
@@ -0,0 +1,12 @@
|
||||
$OpenBSD$
|
||||
look for guile interpreter as guile2.2
|
||||
Index: guile/scripts/msgs-per-year.scm
|
||||
--- guile/scripts/msgs-per-year.scm.orig
|
||||
+++ guile/scripts/msgs-per-year.scm
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
-exec guile -e main -s $0 $@
|
||||
+exec guile2.2 -e main -s $0 $@
|
||||
!#
|
||||
;;
|
||||
;; Copyright (C) 2012-2013 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
12
mail/mu/patches/patch-guile_tests_test-mu-guile_scm
Normal file
12
mail/mu/patches/patch-guile_tests_test-mu-guile_scm
Normal file
@@ -0,0 +1,12 @@
|
||||
$OpenBSD$
|
||||
look for guile interpreter as guile2.2
|
||||
Index: guile/tests/test-mu-guile.scm
|
||||
--- guile/tests/test-mu-guile.scm.orig
|
||||
+++ guile/tests/test-mu-guile.scm
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
-exec guile -e main -s $0 $@
|
||||
+exec guile2.2 -e main -s $0 $@
|
||||
!#
|
||||
|
||||
;; Copyright (C) 2012-2013 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
14
mail/mu/patches/patch-lib_utils_mu-str_c
Normal file
14
mail/mu/patches/patch-lib_utils_mu-str_c
Normal file
@@ -0,0 +1,14 @@
|
||||
$OpenBSD$
|
||||
make this function compile correctly under clang
|
||||
Index: lib/utils/mu-str.c
|
||||
--- lib/utils/mu-str.c.orig
|
||||
+++ lib/utils/mu-str.c
|
||||
@@ -49,7 +49,7 @@ mu_str_size_s (size_t s)
|
||||
char*
|
||||
mu_str_size (size_t s)
|
||||
{
|
||||
- return g_strdup (mu_str_size_s(s));
|
||||
+ return g_format_size_for_display ((goffset)s);
|
||||
}
|
||||
|
||||
|
||||
15
mail/mu/patches/patch-lib_utils_mu-utils_cc
Normal file
15
mail/mu/patches/patch-lib_utils_mu-utils_cc
Normal file
@@ -0,0 +1,15 @@
|
||||
$OpenBSD$
|
||||
Bring g_vasprintf into scope
|
||||
Index: lib/utils/mu-utils.cc
|
||||
--- lib/utils/mu-utils.cc.orig
|
||||
+++ lib/utils/mu-utils.cc
|
||||
@@ -18,7 +18,8 @@
|
||||
*/
|
||||
|
||||
|
||||
-#define _XOPEN_SOURCE
|
||||
+//#define _XOPEN_SOURCE 500
|
||||
+//#define _POSIX_SOURCE
|
||||
#include <time.h>
|
||||
|
||||
#define GNU_SOURCE
|
||||
14
mail/mu/patches/patch-man_mu_1
Normal file
14
mail/mu/patches/patch-man_mu_1
Normal file
@@ -0,0 +1,14 @@
|
||||
$OpenBSD$
|
||||
reference mu-script(1) instead of nonexistent mu-guile(1)
|
||||
Index: man/mu.1
|
||||
--- man/mu.1.orig
|
||||
+++ man/mu.1
|
||||
@@ -54,7 +54,7 @@ remove specific messages from the database. See
|
||||
|
||||
.B mu script [options]
|
||||
run a mu (Guile) script. See
|
||||
-.BR mu-guile(1)
|
||||
+.BR mu-script(1)
|
||||
|
||||
.B mu server [options]
|
||||
start a server process (for \fBmu4e\fR-internal use). See
|
||||
4
mail/mu/pkg/DESCR
Normal file
4
mail/mu/pkg/DESCR
Normal file
@@ -0,0 +1,4 @@
|
||||
mu is a tool for dealing with e-mail messages stored in the Maildir-format, on
|
||||
Unix-like systems. mu's main purpose is to help you to find the messages you
|
||||
need, quickly; in addition, it allows you to view messages, extract
|
||||
attachments and create new maildirs.
|
||||
22
mail/mu/pkg/PFRAG.guile
Normal file
22
mail/mu/pkg/PFRAG.guile
Normal file
@@ -0,0 +1,22 @@
|
||||
@comment $OpenBSD: PFRAG-guile,v$
|
||||
@info info/mu-guile.info
|
||||
@static-lib lib/libguile-mu.a
|
||||
lib/libguile-mu.la
|
||||
@lib lib/libguile-mu.so.${LIBguile-mu_VERSION}
|
||||
share/guile/
|
||||
share/guile/site/
|
||||
share/guile/site/2.2/
|
||||
share/guile/site/2.2/mu/
|
||||
share/guile/site/2.2/mu.scm
|
||||
share/guile/site/2.2/mu/plot.scm
|
||||
share/guile/site/2.2/mu/script.scm
|
||||
share/guile/site/2.2/mu/stats.scm
|
||||
share/mu/
|
||||
share/mu/scripts/
|
||||
share/mu/scripts/find-dups.scm
|
||||
share/mu/scripts/msgs-count.scm
|
||||
share/mu/scripts/msgs-per-day.scm
|
||||
share/mu/scripts/msgs-per-hour.scm
|
||||
share/mu/scripts/msgs-per-month.scm
|
||||
share/mu/scripts/msgs-per-year-month.scm
|
||||
share/mu/scripts/msgs-per-year.scm
|
||||
71
mail/mu/pkg/PLIST
Normal file
71
mail/mu/pkg/PLIST
Normal file
@@ -0,0 +1,71 @@
|
||||
@comment $OpenBSD: PLIST-main,v$
|
||||
@bin bin/mu
|
||||
@info info/mu4e.info
|
||||
@man man/man1/mu-add.1
|
||||
@man man/man1/mu-cfind.1
|
||||
@man man/man1/mu-easy.1
|
||||
@man man/man1/mu-extract.1
|
||||
@man man/man1/mu-find.1
|
||||
@man man/man1/mu-help.1
|
||||
@man man/man1/mu-index.1
|
||||
@man man/man1/mu-info.1
|
||||
@man man/man1/mu-init.1
|
||||
@man man/man1/mu-mkdir.1
|
||||
@man man/man1/mu-remove.1
|
||||
@man man/man1/mu-script.1
|
||||
@man man/man1/mu-server.1
|
||||
@man man/man1/mu-verify.1
|
||||
@man man/man1/mu-view.1
|
||||
@man man/man1/mu.1
|
||||
@man man/man5/mu-bookmarks.5
|
||||
@man man/man7/mu-query.7
|
||||
%%guile%%
|
||||
@comment mu is compiled without gtk
|
||||
@comment man/man1/mug.1
|
||||
share/doc/mu/
|
||||
share/doc/mu/NEWS.org
|
||||
share/doc/mu/mu4e-about.org
|
||||
share/doc/pkg-readmes/${PKGSTEM}
|
||||
share/emacs/
|
||||
share/emacs/site-lisp/
|
||||
share/emacs/site-lisp/mu4e/
|
||||
share/emacs/site-lisp/mu4e/mu4e-actions.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-actions.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e-compose.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-compose.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e-context.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-context.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e-contrib.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-contrib.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e-draft.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-draft.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e-headers.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-headers.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e-icalendar.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-icalendar.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e-lists.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-lists.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e-main.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-main.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e-mark.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-mark.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e-message.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-message.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e-meta.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-meta.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e-org.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-org.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e-proc.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-proc.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e-speedbar.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-speedbar.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e-utils.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-utils.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e-vars.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-vars.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e-view.el
|
||||
share/emacs/site-lisp/mu4e/mu4e-view.elc
|
||||
share/emacs/site-lisp/mu4e/mu4e.el
|
||||
share/emacs/site-lisp/mu4e/mu4e.elc
|
||||
share/emacs/site-lisp/mu4e/org-mu4e.el
|
||||
share/emacs/site-lisp/mu4e/org-mu4e.elc
|
||||
28
mail/mu/pkg/README
Normal file
28
mail/mu/pkg/README
Normal file
@@ -0,0 +1,28 @@
|
||||
Breaking Changes from 1.2. to 1.4.
|
||||
══════════════════════════════════
|
||||
|
||||
A description of all changes and features can be found the release
|
||||
notes (NEWS.org). Breaking changes below:
|
||||
|
||||
mu changes:
|
||||
-----------
|
||||
* Base path has changed from ~/.mu to ~/.cache/mu. You may want to
|
||||
delete the old cache location.
|
||||
* A new command `mu init` needs to be run once to save the maildir
|
||||
location and email adresses in the database.
|
||||
|
||||
mu init --maildir=~/Maildir --my-address=jim@example.com \
|
||||
--my-address=bob@example.com
|
||||
|
||||
mu4e changes:
|
||||
-------------
|
||||
* Variables `mu4e-maildir` and `mu4e-user-mail-address-list`
|
||||
are obsolete. The information is taken from the Xapian database now.
|
||||
Run `mu init` with the appropiate parameters to create these
|
||||
entries.
|
||||
* Contact sorting is done by `mu` now. As a side effect the following
|
||||
variables have been obsoleted:
|
||||
- mu4e-contacts-rewrite-function
|
||||
- mu4e-compose-complete-ignore-address-regexp
|
||||
You can use `mu4e-contact-process-function` instead.
|
||||
|
||||
Reference in New Issue
Block a user