openbsd-ports

OpenBSD Ports customizations and WIP
git clone git://git.danielmoch.com/openbsd-ports.git
Log | Files | Refs

commit 5a0e88b534ccb6980f3a6d47210db761a4610fd8
parent aab0c087b06859bdef74c6e66cedc169cf39a1a8
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Fri, 21 Feb 2020 05:43:03 -0500

Add openbsd-wip tree

Diffstat:
Aopenbsd-wip/mail/notmuch/Makefile | 8++++++++
Aopenbsd-wip/mail/notmuch/Makefile.inc | 13+++++++++++++
Aopenbsd-wip/mail/notmuch/notmuch/Makefile | 79+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aopenbsd-wip/mail/notmuch/notmuch/distinfo | 2++
Aopenbsd-wip/mail/notmuch/notmuch/patches/patch-Makefile_global | 14++++++++++++++
Aopenbsd-wip/mail/notmuch/notmuch/patches/patch-Makefile_local | 14++++++++++++++
Aopenbsd-wip/mail/notmuch/notmuch/patches/patch-bindings_python_notmuch_globals_py | 14++++++++++++++
Aopenbsd-wip/mail/notmuch/notmuch/patches/patch-configure | 17+++++++++++++++++
Aopenbsd-wip/mail/notmuch/notmuch/patches/patch-devel_RELEASING | 14++++++++++++++
Aopenbsd-wip/mail/notmuch/notmuch/patches/patch-devel_nmbug_doc_conf_py | 14++++++++++++++
Aopenbsd-wip/mail/notmuch/notmuch/patches/patch-doc_conf_py | 14++++++++++++++
Aopenbsd-wip/mail/notmuch/notmuch/patches/patch-emacs_Makefile_local | 13+++++++++++++
Aopenbsd-wip/mail/notmuch/notmuch/patches/patch-lib_Makefile_local | 45+++++++++++++++++++++++++++++++++++++++++++++
Aopenbsd-wip/mail/notmuch/notmuch/patches/patch-lib_notmuch_h | 16++++++++++++++++
Aopenbsd-wip/mail/notmuch/notmuch/patches/patch-notmuch-dump_c | 31+++++++++++++++++++++++++++++++
Aopenbsd-wip/mail/notmuch/notmuch/patches/patch-notmuch-restore_c | 16++++++++++++++++
Aopenbsd-wip/mail/notmuch/notmuch/patches/patch-test_T360-symbol-hiding_sh | 14++++++++++++++
Aopenbsd-wip/mail/notmuch/notmuch/patches/patch-test_test-lib-OPENBSD_sh | 15+++++++++++++++
Aopenbsd-wip/mail/notmuch/notmuch/pkg/DESCR-emacs | 1+
Aopenbsd-wip/mail/notmuch/notmuch/pkg/DESCR-main | 9+++++++++
Aopenbsd-wip/mail/notmuch/notmuch/pkg/PLIST-emacs | 50++++++++++++++++++++++++++++++++++++++++++++++++++
Aopenbsd-wip/mail/notmuch/notmuch/pkg/PLIST-main | 46++++++++++++++++++++++++++++++++++++++++++++++
Aopenbsd-wip/mail/notmuch/py-notmuch/Makefile | 17+++++++++++++++++
Aopenbsd-wip/mail/notmuch/py-notmuch/distinfo | 2++
Aopenbsd-wip/mail/notmuch/py-notmuch/patches/patch-bindings_python_notmuch_globals_py | 14++++++++++++++
Aopenbsd-wip/mail/notmuch/py-notmuch/pkg/DESCR | 1+
Aopenbsd-wip/mail/notmuch/py-notmuch/pkg/PLIST | 32++++++++++++++++++++++++++++++++
27 files changed, 525 insertions(+), 0 deletions(-)

diff --git a/openbsd-wip/mail/notmuch/Makefile b/openbsd-wip/mail/notmuch/Makefile @@ -0,0 +1,8 @@ +# $OpenBSD: Makefile.template,v 1.54 2008/01/13 16:43:57 espie Exp $ + +SUBDIR = +SUBDIR += notmuch +SUBDIR += py-notmuch +SUBDIR += py-notmuch,python3 + +.include <bsd.port.subdir.mk> diff --git a/openbsd-wip/mail/notmuch/Makefile.inc b/openbsd-wip/mail/notmuch/Makefile.inc @@ -0,0 +1,13 @@ +# $OpenBSD$ + +V = 0.29.3 +DISTNAME = notmuch-$V +EXTRACT_SUFX = .tar.xz + +CATEGORIES = mail databases openbsd-wip + +HOMEPAGE = https://notmuchmail.org/ +MASTER_SITES = https://notmuchmail.org/releases/ + +# GPLv3+ +PERMIT_PACKAGE = Yes diff --git a/openbsd-wip/mail/notmuch/notmuch/Makefile b/openbsd-wip/mail/notmuch/notmuch/Makefile @@ -0,0 +1,79 @@ +# $OpenBSD: Makefile.template,v 1.54 2008/01/13 16:43:57 espie Exp $ + +COMMENT-main = mail indexer, tagger and threader +COMMENT-emacs = Emacs bindings for notmuch + +PKGNAME-main = notmuch-${V} +PKGNAME-emacs = notmuch-emacs-${V} + +SHARED_LIBS += notmuch 0.0 + +MULTI_PACKAGES = -main -emacs +DEBUG_PACKAGES = -main + +COMPILER= base-clang ports-gcc + +WANTLIB-main += ${COMPILER_LIBCXX} c glib-2.0 gmime-3.0 +WANTLIB-main += gobject-2.0 intl m talloc xapian z + +LIB_DEPENDS = databases/xapian-core \ + devel/libtalloc \ + mail/gmime30 + +RUN_DEPENDS-emacs = devel/desktop-file-utils \ + databases/xapian-core \ + editors/emacs \ + ${FULLPKGNAME-main}:${FULLPKGPATH-main} + +BUILD_DEPENDS = devel/doxygen \ + editors/emacs,gtk3 \ + shells/bash \ + textproc/py-sphinx + +TEST_DEPENDS = devel/gdb \ + misc/dtach \ + security/gnupg \ + sysutils/coreutils \ + ${FULLPKGNAME-main}:${FULLPKGPATH-main} + +MODULES = lang/python +MODPY_RUNDEP = No +USE_GMAKE = Yes +CONFIGURE_STYLE = simple +CONFIGURE_ARGS = --mandir=${PREFIX}/man \ + --infodir=${PREFIX}/info \ + --sysconfdir=${SYSCONFDIR} \ + --bashcompletiondir=${PREFIX}/share/notmuch/bash_completion.d +CONFIGURE_ENV = PYTHON=${MODPY_BIN} +MAKE_FLAGS = V=1 + +LIBnotmuch_MAJOR = ${LIBnotmuch_VERSION:R} +LIBnotmuch_MINOR = ${LIBnotmuch_VERSION:E} +SUBST_VARS = LIBnotmuch_MAJOR LIBnotmuch_MINOR NOTMUCH_LIBV + +# known problems: +# - emacs.65 and gzip hang so the tests are disabled below +# - SIGSEGV in various tests (incl. T150-tagging, +# T240-dump-restore, T600-named-queries) +# - T750-user-header hits what looks like a use-after-free +TEST_FLAGS = V=1 \ + NOTMUCH_TEST_SERIALIZE=1 \ + NOTMUCH_SKIP_TESTS="emacs.65 gzip" \ + TEST_CFLAGS="-O0 -g -I${LOCALBASE}/include -L${LOCALBASE}/lib" +TEST_TARGET = test + +post-extract: + cd ${WRKSRC}/test; [ -r test-lib-OPENBSD.sh ] || \ + cp test-lib-FREEBSD.sh test-lib-OPENBSD.sh + +# Avoid conflict with C++20 <version>, also see patches +pre-configure: + cd ${WRKSRC}; mv version version.txt; \ + ${SUBST_CMD} lib/notmuch.h + +post-install: + rm ${PREFIX}/man/man1/notmuch-setup.1.gz + gunzip ${PREFIX}/man/*/*gz + ln -s notmuch.1 ${PREFIX}/man/man1/notmuch-setup.1 + +.include <bsd.port.mk> diff --git a/openbsd-wip/mail/notmuch/notmuch/distinfo b/openbsd-wip/mail/notmuch/notmuch/distinfo @@ -0,0 +1,2 @@ +SHA256 (notmuch-0.29.3.tar.xz) = 1fcEuacjleQzA96bH02OFN0nvzZG/bs3S7Pbt9FQ3DU= +SIZE (notmuch-0.29.3.tar.xz) = 660536 diff --git a/openbsd-wip/mail/notmuch/notmuch/patches/patch-Makefile_global b/openbsd-wip/mail/notmuch/notmuch/patches/patch-Makefile_global @@ -0,0 +1,14 @@ +$OpenBSD$ + +Index: Makefile.global +--- Makefile.global.orig ++++ Makefile.global +@@ -16,7 +16,7 @@ else + DATE:=$(shell date +%F) + endif + +-VERSION:=$(shell cat ${srcdir}/version) ++VERSION:=$(shell cat ${srcdir}/version.txt) + ELPA_VERSION:=$(subst ~,_,$(VERSION)) + ifeq ($(filter release release-message pre-release update-versions,$(MAKECMDGOALS)),) + ifeq ($(IS_GIT),yes) diff --git a/openbsd-wip/mail/notmuch/notmuch/patches/patch-Makefile_local b/openbsd-wip/mail/notmuch/notmuch/patches/patch-Makefile_local @@ -0,0 +1,14 @@ +$OpenBSD$ + +Index: Makefile.local +--- Makefile.local.orig ++++ Makefile.local +@@ -19,7 +19,7 @@ endif + + # Depend (also) on the file 'version'. In case of ifeq ($(IS_GIT),yes) + # this file may already have been updated. +-version.stamp: $(srcdir)/version ++version.stamp: $(srcdir)/version.txt + echo $(VERSION) > $@ + + $(TAR_FILE): diff --git a/openbsd-wip/mail/notmuch/notmuch/patches/patch-bindings_python_notmuch_globals_py b/openbsd-wip/mail/notmuch/notmuch/patches/patch-bindings_python_notmuch_globals_py @@ -0,0 +1,14 @@ +$OpenBSD$ + +Index: bindings/python/notmuch/globals.py +--- bindings/python/notmuch/globals.py.orig ++++ bindings/python/notmuch/globals.py +@@ -27,7 +27,7 @@ try: + if uname()[0] == 'Darwin': + nmlib = CDLL("libnotmuch.{0:s}.dylib".format(SOVERSION)) + else: +- nmlib = CDLL("libnotmuch.so.{0:s}".format(SOVERSION)) ++ nmlib = CDLL("libnotmuch.so") + except: + raise ImportError("Could not find shared 'notmuch' library.") + diff --git a/openbsd-wip/mail/notmuch/notmuch/patches/patch-configure b/openbsd-wip/mail/notmuch/notmuch/patches/patch-configure @@ -0,0 +1,17 @@ +$OpenBSD$ + +Index: configure +--- configure.orig ++++ configure +@@ -588,9 +588,9 @@ if ! pkg-config --exists zlib; then + rm -f compat/gen_zlib_pc + fi + +-printf "Checking for zlib (>= 1.2.5.2)... " ++printf "Checking for zlib (>= 1.2.3)... " + have_zlib=0 +-if pkg-config --atleast-version=1.2.5.2 zlib; then ++if pkg-config --atleast-version=1.2.3 zlib; then + printf "Yes.\n" + have_zlib=1 + zlib_cflags=$(pkg-config --cflags zlib) diff --git a/openbsd-wip/mail/notmuch/notmuch/patches/patch-devel_RELEASING b/openbsd-wip/mail/notmuch/notmuch/patches/patch-devel_RELEASING @@ -0,0 +1,14 @@ +$OpenBSD$ + +Index: devel/RELEASING +--- devel/RELEASING.orig ++++ devel/RELEASING +@@ -62,7 +62,7 @@ repository. From here, there are just a few steps to r + be "1.0.1" and a subsequent bug-fix release would be "1.0.2" + etc. + +- When you are happy with the file 'version', run ++ When you are happy with the file 'version.txt', run + + make update-versions + diff --git a/openbsd-wip/mail/notmuch/notmuch/patches/patch-devel_nmbug_doc_conf_py b/openbsd-wip/mail/notmuch/notmuch/patches/patch-devel_nmbug_doc_conf_py @@ -0,0 +1,14 @@ +$OpenBSD$ + +Index: devel/nmbug/doc/conf.py +--- devel/nmbug/doc/conf.py.orig ++++ devel/nmbug/doc/conf.py +@@ -17,7 +17,7 @@ location = os.path.dirname(__file__) + + dirname = location + while True: +- version_file = os.path.join(dirname, 'version') ++ version_file = os.path.join(dirname, 'version.txt') + if os.path.exists(version_file): + with open(version_file,'r') as f: + version = f.read().strip() diff --git a/openbsd-wip/mail/notmuch/notmuch/patches/patch-doc_conf_py b/openbsd-wip/mail/notmuch/notmuch/patches/patch-doc_conf_py @@ -0,0 +1,14 @@ +$OpenBSD$ + +Index: doc/conf.py +--- doc/conf.py.orig ++++ doc/conf.py +@@ -17,7 +17,7 @@ copyright = u'2009-2019, Carl Worth and many others' + location = os.path.dirname(__file__) + + for pathdir in ['.', '..']: +- version_file = os.path.join(location,pathdir,'version') ++ version_file = os.path.join(location,pathdir,'version.txt') + if os.path.exists(version_file): + with open(version_file,'r') as infile: + version=infile.read().replace('\n','') diff --git a/openbsd-wip/mail/notmuch/notmuch/patches/patch-emacs_Makefile_local b/openbsd-wip/mail/notmuch/notmuch/patches/patch-emacs_Makefile_local @@ -0,0 +1,13 @@ +$OpenBSD$ + +Index: emacs/Makefile.local +--- emacs/Makefile.local.orig ++++ emacs/Makefile.local +@@ -128,7 +128,6 @@ endif + ifeq ($(WITH_DESKTOP),1) + mkdir -p "$(DESTDIR)$(desktop_dir)" + desktop-file-install --mode 0644 --dir "$(DESTDIR)$(desktop_dir)" $(emacs_mua_desktop) +- -update-desktop-database "$(DESTDIR)$(desktop_dir)" + endif + + CLEAN := $(CLEAN) $(emacs_bytecode) $(dir)/notmuch-version.el $(dir)/notmuch-pkg.el \ diff --git a/openbsd-wip/mail/notmuch/notmuch/patches/patch-lib_Makefile_local b/openbsd-wip/mail/notmuch/notmuch/patches/patch-lib_Makefile_local @@ -0,0 +1,45 @@ +$OpenBSD$ + +Index: lib/Makefile.local +--- lib/Makefile.local.orig ++++ lib/Makefile.local +@@ -16,9 +16,15 @@ LIBNAME = libnotmuch.$(LIBNOTMUCH_VERSION_MAJOR).$(LIB + LIBRARY_LINK_FLAG = -dynamiclib -install_name $(libdir)/$(SONAME) -compatibility_version $(LIBNOTMUCH_VERSION_MAJOR).$(LIBNOTMUCH_VERSION_MINOR) -current_version $(LIBNOTMUCH_VERSION_MAJOR).$(LIBNOTMUCH_VERSION_MINOR).$(LIBNOTMUCH_VERSION_RELEASE) + else + LIBRARY_SUFFIX = so ++ifeq ($(PLATFORM),OPENBSD) ++LINKER_NAME = libnotmuch.$(LIBRARY_SUFFIX).$(LIBNOTMUCH_VERSION_MAJOR).$(LIBNOTMUCH_VERSION_MINOR) ++SONAME = $(LINKER_NAME) ++LIBNAME = $(SONAME) ++else + LINKER_NAME = libnotmuch.$(LIBRARY_SUFFIX) + SONAME = $(LINKER_NAME).$(LIBNOTMUCH_VERSION_MAJOR) + LIBNAME = $(SONAME).$(LIBNOTMUCH_VERSION_MINOR).$(LIBNOTMUCH_VERSION_RELEASE) ++endif + LIBRARY_LINK_FLAG = -shared -Wl,--version-script=$(srcdir)/$(lib)/notmuch.sym,-soname=$(SONAME) $(NO_UNDEFINED_LDFLAGS) + ifeq ($(PLATFORM),OPENBSD) + LIBRARY_LINK_FLAG += -lc +@@ -69,19 +75,23 @@ $(dir)/libnotmuch.a: $(libnotmuch_modules) + $(dir)/$(LIBNAME): $(libnotmuch_modules) util/libnotmuch_util.a parse-time-string/libparse-time-string.a + $(call quiet,CXX $(CXXFLAGS)) $(libnotmuch_modules) $(FINAL_LIBNOTMUCH_LDFLAGS) $(LIBRARY_LINK_FLAG) -o $@ util/libnotmuch_util.a parse-time-string/libparse-time-string.a + ++ifneq ($(SONAME),$(LINKER_NAME)) + $(dir)/$(SONAME): $(dir)/$(LIBNAME) + ln -sf $(LIBNAME) $@ + + $(dir)/$(LINKER_NAME): $(dir)/$(SONAME) + ln -sf $(LIBNAME) $@ ++endif + + install: install-$(dir) + + install-$(dir): $(dir)/$(LIBNAME) + mkdir -p "$(DESTDIR)$(libdir)/" + install -m0644 "$(lib)/$(LIBNAME)" "$(DESTDIR)$(libdir)/" ++ifneq ($(SONAME),$(LINKER_NAME)) + ln -sf $(LIBNAME) "$(DESTDIR)$(libdir)/$(SONAME)" + ln -sf $(LIBNAME) "$(DESTDIR)$(libdir)/$(LINKER_NAME)" ++endif + mkdir -p "$(DESTDIR)$(includedir)" + install -m0644 "$(srcdir)/$(lib)/notmuch.h" "$(DESTDIR)$(includedir)/" + $(LIBRARY_INSTALL_POST_COMMAND) diff --git a/openbsd-wip/mail/notmuch/notmuch/patches/patch-lib_notmuch_h b/openbsd-wip/mail/notmuch/notmuch/patches/patch-lib_notmuch_h @@ -0,0 +1,16 @@ +$OpenBSD$ + +Index: lib/notmuch.h +--- lib/notmuch.h.orig ++++ lib/notmuch.h +@@ -57,8 +57,8 @@ NOTMUCH_BEGIN_DECLS + * The library version number. This must agree with the soname + * version in Makefile.local. + */ +-#define LIBNOTMUCH_MAJOR_VERSION 5 +-#define LIBNOTMUCH_MINOR_VERSION 2 ++#define LIBNOTMUCH_MAJOR_VERSION ${LIBnotmuch_MAJOR} ++#define LIBNOTMUCH_MINOR_VERSION ${LIBnotmuch_MINOR} + #define LIBNOTMUCH_MICRO_VERSION 0 + + diff --git a/openbsd-wip/mail/notmuch/notmuch/patches/patch-notmuch-dump_c b/openbsd-wip/mail/notmuch/notmuch/patches/patch-notmuch-dump_c @@ -0,0 +1,31 @@ +$OpenBSD$ + +OpenBSD zlib is too old for gzclose_w + +XXX various problems in gzip-related regression tests. many of them die with +segfaults; suspect the naive s/gzclose_w/gzclose/ may result in use-after-free +with the second gzclose call. some hang and are disabled in the port Makefile +by TEST_FLAGS=NOTMUCH_SKIP_TESTS="[..]" - should be reenabled if testing any +fixes to this. + +Index: notmuch-dump.c +--- notmuch-dump.c.orig ++++ notmuch-dump.c +@@ -329,7 +329,7 @@ notmuch_database_dump (notmuch_database_t *notmuch, + } + } + +- ret = gzclose_w (output); ++ ret = gzclose (output); + if (ret) { + fprintf (stderr, "Error closing %s: %s\n", name_for_error, + gzerror (output, NULL)); +@@ -350,7 +350,7 @@ notmuch_database_dump (notmuch_database_t *notmuch, + } + DONE: + if (ret != EXIT_SUCCESS && output) +- (void) gzclose_w (output); ++ (void) gzclose (output); + + if (ret != EXIT_SUCCESS && output_file_name) + (void) unlink (tempname); diff --git a/openbsd-wip/mail/notmuch/notmuch/patches/patch-notmuch-restore_c b/openbsd-wip/mail/notmuch/notmuch/patches/patch-notmuch-restore_c @@ -0,0 +1,16 @@ +$OpenBSD$ + +OpenBSD zlib is too old for gzclose_r. + +Index: notmuch-restore.c +--- notmuch-restore.c.orig ++++ notmuch-restore.c +@@ -449,7 +449,7 @@ notmuch_restore_command (notmuch_config_t *config, int + if (notmuch) + notmuch_database_destroy (notmuch); + +- if (input && gzclose_r (input)) { ++ if (input && gzclose (input)) { + fprintf (stderr, "Error closing %s: %s\n", + name_for_error, gzerror (input, NULL)); + ret = EXIT_FAILURE; diff --git a/openbsd-wip/mail/notmuch/notmuch/patches/patch-test_T360-symbol-hiding_sh b/openbsd-wip/mail/notmuch/notmuch/patches/patch-test_T360-symbol-hiding_sh @@ -0,0 +1,14 @@ +$OpenBSD$ + +Index: test/T360-symbol-hiding.sh +--- test/T360-symbol-hiding.sh.orig ++++ test/T360-symbol-hiding.sh +@@ -26,7 +26,7 @@ test_begin_subtest 'checking output' + test_expect_equal "$result" "$output" + + test_begin_subtest 'comparing existing to exported symbols' +-nm -P $NOTMUCH_BUILDDIR/lib/libnotmuch.so | awk '$2 == "T" && $1 ~ "^notmuch" {print $1}' | sort | uniq > ACTUAL ++nm -P $NOTMUCH_BUILDDIR/lib/libnotmuch.so* | awk '$2 == "T" && $1 ~ "^notmuch" {print $1}' | sort | uniq > ACTUAL + sed -n 's/^\(notmuch_[a-zA-Z0-9_]*\)[[:blank:]]*(.*/\1/p' $NOTMUCH_SRCDIR/lib/notmuch.h | sort | uniq > EXPORTED + test_expect_equal_file EXPORTED ACTUAL + diff --git a/openbsd-wip/mail/notmuch/notmuch/patches/patch-test_test-lib-OPENBSD_sh b/openbsd-wip/mail/notmuch/notmuch/patches/patch-test_test-lib-OPENBSD_sh @@ -0,0 +1,15 @@ +$OpenBSD$ + +Index: test/test-lib-OPENBSD.sh +--- test/test-lib-OPENBSD.sh.orig ++++ test/test-lib-OPENBSD.sh +@@ -4,6 +4,8 @@ if command -v gdate >/dev/null + date () { gdate "$@"; } + base64 () { gbase64 "$@"; } + wc () { gwc "$@"; } +- sed () { gsed "$@"; } ++ seq () { gseq "$@"; } ++ stat () { gstat "$@"; } + sha256sum () { gsha256sum "$@"; } ++ gdb () { egdb "$@"; } + fi diff --git a/openbsd-wip/mail/notmuch/notmuch/pkg/DESCR-emacs b/openbsd-wip/mail/notmuch/notmuch/pkg/DESCR-emacs @@ -0,0 +1 @@ +The necessary runtime to run notmuch inside Emacs. diff --git a/openbsd-wip/mail/notmuch/notmuch/pkg/DESCR-main b/openbsd-wip/mail/notmuch/notmuch/pkg/DESCR-main @@ -0,0 +1,9 @@ +Notmuch is a mail indexing program providing a fast tag-based email +reader with global search to use within a text editor. + +"Notmuch is not much of an email program. It doesn't receive messages +(no POP or IMAP suport). It doesn't send messages (no mail composer, +no network code at all). And for what it does do (email search) +that work is provided by an external library, Xapian. So if Notmuch +provides no user interface and Xapian does all the heavy lifting, +then what's left here? Not much." diff --git a/openbsd-wip/mail/notmuch/notmuch/pkg/PLIST-emacs b/openbsd-wip/mail/notmuch/notmuch/pkg/PLIST-emacs @@ -0,0 +1,50 @@ +@comment $OpenBSD: PLIST-main,v$ +bin/notmuch-emacs-mua +@info info/notmuch-emacs-mua.info +@info info/notmuch-emacs.info +@man man/man1/notmuch-emacs-mua.1 +share/applications/notmuch-emacs-mua.desktop +share/emacs/site-lisp/coolj.el +share/emacs/site-lisp/coolj.elc +share/emacs/site-lisp/notmuch-address.el +share/emacs/site-lisp/notmuch-address.elc +share/emacs/site-lisp/notmuch-company.el +share/emacs/site-lisp/notmuch-company.elc +share/emacs/site-lisp/notmuch-compat.el +share/emacs/site-lisp/notmuch-compat.elc +share/emacs/site-lisp/notmuch-crypto.el +share/emacs/site-lisp/notmuch-crypto.elc +share/emacs/site-lisp/notmuch-draft.el +share/emacs/site-lisp/notmuch-draft.elc +share/emacs/site-lisp/notmuch-hello.el +share/emacs/site-lisp/notmuch-hello.elc +share/emacs/site-lisp/notmuch-jump.el +share/emacs/site-lisp/notmuch-jump.elc +share/emacs/site-lisp/notmuch-lib.el +share/emacs/site-lisp/notmuch-lib.elc +share/emacs/site-lisp/notmuch-logo.png +share/emacs/site-lisp/notmuch-maildir-fcc.el +share/emacs/site-lisp/notmuch-maildir-fcc.elc +share/emacs/site-lisp/notmuch-message.el +share/emacs/site-lisp/notmuch-message.elc +share/emacs/site-lisp/notmuch-mua.el +share/emacs/site-lisp/notmuch-mua.elc +share/emacs/site-lisp/notmuch-parser.el +share/emacs/site-lisp/notmuch-parser.elc +share/emacs/site-lisp/notmuch-print.el +share/emacs/site-lisp/notmuch-print.elc +share/emacs/site-lisp/notmuch-query.el +share/emacs/site-lisp/notmuch-query.elc +share/emacs/site-lisp/notmuch-show.el +share/emacs/site-lisp/notmuch-show.elc +share/emacs/site-lisp/notmuch-tag.el +share/emacs/site-lisp/notmuch-tag.elc +share/emacs/site-lisp/notmuch-tree.el +share/emacs/site-lisp/notmuch-tree.elc +share/emacs/site-lisp/notmuch-version.el +share/emacs/site-lisp/notmuch-version.elc +share/emacs/site-lisp/notmuch-wash.el +share/emacs/site-lisp/notmuch-wash.elc +share/emacs/site-lisp/notmuch.el +share/emacs/site-lisp/notmuch.elc +@tag update-desktop-database diff --git a/openbsd-wip/mail/notmuch/notmuch/pkg/PLIST-main b/openbsd-wip/mail/notmuch/notmuch/pkg/PLIST-main @@ -0,0 +1,46 @@ +@comment $OpenBSD: PLIST-main,v$ +@bin bin/notmuch +include/notmuch.h +@info info/notmuch-address.info +@info info/notmuch-compact.info +@info info/notmuch-config.info +@info info/notmuch-count.info +@info info/notmuch-dump.info +@info info/notmuch-hooks.info +@info info/notmuch-insert.info +@info info/notmuch-new.info +@info info/notmuch-properties.info +@info info/notmuch-reindex.info +@info info/notmuch-reply.info +@info info/notmuch-restore.info +@info info/notmuch-search-terms.info +@info info/notmuch-search.info +@info info/notmuch-show.info +@info info/notmuch-tag.info +@info info/notmuch.info +@lib lib/libnotmuch.so.${LIBnotmuch_VERSION} +@man man/man1/notmuch-address.1 +@man man/man1/notmuch-compact.1 +@man man/man1/notmuch-config.1 +@man man/man1/notmuch-count.1 +@man man/man1/notmuch-dump.1 +@man man/man1/notmuch-insert.1 +@man man/man1/notmuch-new.1 +@man man/man1/notmuch-reindex.1 +@man man/man1/notmuch-reply.1 +@man man/man1/notmuch-restore.1 +@man man/man1/notmuch-search.1 +@man man/man1/notmuch-setup.1 +@man man/man1/notmuch-show.1 +@man man/man1/notmuch-tag.1 +@man man/man1/notmuch.1 +@man man/man3/notmuch.3 +@man man/man5/notmuch-hooks.5 +@man man/man7/notmuch-properties.7 +@man man/man7/notmuch-search-terms.7 +share/zsh/ +share/zsh/functions/ +share/zsh/functions/Completion/ +share/zsh/functions/Completion/Unix/ +share/zsh/functions/Completion/Unix/_email-notmuch +share/zsh/functions/Completion/Unix/_notmuch diff --git a/openbsd-wip/mail/notmuch/py-notmuch/Makefile b/openbsd-wip/mail/notmuch/py-notmuch/Makefile @@ -0,0 +1,17 @@ +# $OpenBSD: Makefile.template,v 1.54 2008/01/13 16:43:57 espie Exp $ + +COMMENT = Python bindings for notmuch + +PKGNAME = py-notmuch-${V} + +MODULES = lang/python +MODPY_EGG_VERSION = ${V} + +FLAVORS = python3 +FLAVOR ?= + +RUN_DEPENDS = openbsd-wip/mail/notmuch/notmuch + +WRKSRC = ${WRKDIST}/bindings/python + +.include <bsd.port.mk> diff --git a/openbsd-wip/mail/notmuch/py-notmuch/distinfo b/openbsd-wip/mail/notmuch/py-notmuch/distinfo @@ -0,0 +1,2 @@ +SHA256 (notmuch-0.29.3.tar.xz) = 1fcEuacjleQzA96bH02OFN0nvzZG/bs3S7Pbt9FQ3DU= +SIZE (notmuch-0.29.3.tar.xz) = 660536 diff --git a/openbsd-wip/mail/notmuch/py-notmuch/patches/patch-bindings_python_notmuch_globals_py b/openbsd-wip/mail/notmuch/py-notmuch/patches/patch-bindings_python_notmuch_globals_py @@ -0,0 +1,14 @@ +$OpenBSD$ + +Index: bindings/python/notmuch/globals.py +--- bindings/python/notmuch/globals.py.orig ++++ bindings/python/notmuch/globals.py +@@ -27,7 +27,7 @@ try: + if uname()[0] == 'Darwin': + nmlib = CDLL("libnotmuch.{0:s}.dylib".format(SOVERSION)) + else: +- nmlib = CDLL("libnotmuch.so.{0:s}".format(SOVERSION)) ++ nmlib = CDLL("libnotmuch.so") + except: + raise ImportError("Could not find shared 'notmuch' library.") + diff --git a/openbsd-wip/mail/notmuch/py-notmuch/pkg/DESCR b/openbsd-wip/mail/notmuch/py-notmuch/pkg/DESCR @@ -0,0 +1 @@ +The bindings necessary to interact with Notmuch from within Python. diff --git a/openbsd-wip/mail/notmuch/py-notmuch/pkg/PLIST b/openbsd-wip/mail/notmuch/py-notmuch/pkg/PLIST @@ -0,0 +1,32 @@ +@comment $OpenBSD: PLIST,v$ +lib/python${MODPY_VERSION}/site-packages/notmuch/ +lib/python${MODPY_VERSION}/site-packages/notmuch-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info +lib/python${MODPY_VERSION}/site-packages/notmuch/__init__.py +${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/notmuch/${MODPY_PYCACHE}/ +lib/python${MODPY_VERSION}/site-packages/notmuch/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/notmuch/${MODPY_PYCACHE}compat.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/notmuch/${MODPY_PYCACHE}database.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/notmuch/${MODPY_PYCACHE}directory.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/notmuch/${MODPY_PYCACHE}errors.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/notmuch/${MODPY_PYCACHE}filenames.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/notmuch/${MODPY_PYCACHE}globals.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/notmuch/${MODPY_PYCACHE}message.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/notmuch/${MODPY_PYCACHE}messages.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/notmuch/${MODPY_PYCACHE}query.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/notmuch/${MODPY_PYCACHE}tag.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/notmuch/${MODPY_PYCACHE}thread.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/notmuch/${MODPY_PYCACHE}threads.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/notmuch/${MODPY_PYCACHE}version.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/notmuch/compat.py +lib/python${MODPY_VERSION}/site-packages/notmuch/database.py +lib/python${MODPY_VERSION}/site-packages/notmuch/directory.py +lib/python${MODPY_VERSION}/site-packages/notmuch/errors.py +lib/python${MODPY_VERSION}/site-packages/notmuch/filenames.py +lib/python${MODPY_VERSION}/site-packages/notmuch/globals.py +lib/python${MODPY_VERSION}/site-packages/notmuch/message.py +lib/python${MODPY_VERSION}/site-packages/notmuch/messages.py +lib/python${MODPY_VERSION}/site-packages/notmuch/query.py +lib/python${MODPY_VERSION}/site-packages/notmuch/tag.py +lib/python${MODPY_VERSION}/site-packages/notmuch/thread.py +lib/python${MODPY_VERSION}/site-packages/notmuch/threads.py +lib/python${MODPY_VERSION}/site-packages/notmuch/version.py