14
0

- Update to 2.0.0:

* 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
This commit is contained in:
Tomáš Chvátal
2018-08-24 13:05:32 +00:00
committed by Git OBS Bridge
parent c364066645
commit 541fc45db3
5 changed files with 47 additions and 19 deletions

22
enchant2.patch Normal file
View File

@@ -0,0 +1,22 @@
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")