541fc45db3
* Support for enchant2, py3 fixes - Add patch to prefer enchant2 when both available: * enchant2.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyenchant?expand=0&rev=19
23 lines
881 B
Diff
23 lines
881 B
Diff
From ed02ae493ade4ca749462d041ce83261783fa1a1 Mon Sep 17 00:00:00 2001
|
|
From: Raphael Michel <mail@raphaelmichel.de>
|
|
Date: Thu, 8 Mar 2018 10:40:00 +0100
|
|
Subject: [PATCH] Auto-detect enchant2
|
|
|
|
After support for enchant2 is already merged, the only thing missing is to detect the library :)
|
|
---
|
|
enchant/_enchant.py | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
Index: pyenchant-2.0.0/enchant/_enchant.py
|
|
===================================================================
|
|
--- pyenchant-2.0.0.orig/enchant/_enchant.py
|
|
+++ pyenchant-2.0.0/enchant/_enchant.py
|
|
@@ -71,6 +71,7 @@ def _e_path_possibilities():
|
|
yield "libenchant.so.1"
|
|
yield "libenchant.so"
|
|
# See if ctypes can find the library for us, under various names.
|
|
+ yield find_library("enchant-2")
|
|
yield find_library("enchant")
|
|
yield find_library("libenchant")
|
|
yield find_library("libenchant-1")
|