diff options
-rw-r--r-- | converters/py-arabic-reshaper/DESCR | 2 | ||||
-rw-r--r-- | converters/py-arabic-reshaper/Makefile | 24 | ||||
-rw-r--r-- | converters/py-arabic-reshaper/PLIST | 24 | ||||
-rw-r--r-- | converters/py-arabic-reshaper/distinfo | 7 | ||||
-rw-r--r-- | converters/py-arabic-reshaper/patches/patch-setup.py | 17 |
5 files changed, 74 insertions, 0 deletions
diff --git a/converters/py-arabic-reshaper/DESCR b/converters/py-arabic-reshaper/DESCR new file mode 100644 index 00000000000..36d6fe71def --- /dev/null +++ b/converters/py-arabic-reshaper/DESCR @@ -0,0 +1,2 @@ +Reconstruct Arabic sentences to be used in applications that don't support +Arabic script. diff --git a/converters/py-arabic-reshaper/Makefile b/converters/py-arabic-reshaper/Makefile new file mode 100644 index 00000000000..9e6184d7ade --- /dev/null +++ b/converters/py-arabic-reshaper/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1 2021/04/28 09:52:17 adam Exp $ + +DISTNAME= arabic_reshaper-2.1.3 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/} +CATEGORIES= converters python +MASTER_SITES= ${MASTER_SITE_PYPI:=a/arabic-reshaper/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/mpcabd/python-arabic-reshaper +COMMENT= Reconstruct Arabic sentences +LICENSE= mit + +DEPENDS+= ${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future +DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools + +.include "../../lang/python/pyversion.mk" +.if ${_PYTHON_VERSION} == 27 +DEPENDS+= ${PYPKGPREFIX}-configparser-[0-9]*:../../devel/py-configparser +.endif + +USE_LANGUAGES= # none + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/converters/py-arabic-reshaper/PLIST b/converters/py-arabic-reshaper/PLIST new file mode 100644 index 00000000000..eb4b38f0bcc --- /dev/null +++ b/converters/py-arabic-reshaper/PLIST @@ -0,0 +1,24 @@ +@comment $NetBSD: PLIST,v 1.1 2021/04/28 09:52:17 adam Exp $ +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/requires.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/arabic_reshaper/__init__.py +${PYSITELIB}/arabic_reshaper/__init__.pyc +${PYSITELIB}/arabic_reshaper/__init__.pyo +${PYSITELIB}/arabic_reshaper/__version__.py +${PYSITELIB}/arabic_reshaper/__version__.pyc +${PYSITELIB}/arabic_reshaper/__version__.pyo +${PYSITELIB}/arabic_reshaper/arabic_reshaper.py +${PYSITELIB}/arabic_reshaper/arabic_reshaper.pyc +${PYSITELIB}/arabic_reshaper/arabic_reshaper.pyo +${PYSITELIB}/arabic_reshaper/letters.py +${PYSITELIB}/arabic_reshaper/letters.pyc +${PYSITELIB}/arabic_reshaper/letters.pyo +${PYSITELIB}/arabic_reshaper/ligatures.py +${PYSITELIB}/arabic_reshaper/ligatures.pyc +${PYSITELIB}/arabic_reshaper/ligatures.pyo +${PYSITELIB}/arabic_reshaper/reshaper_config.py +${PYSITELIB}/arabic_reshaper/reshaper_config.pyc +${PYSITELIB}/arabic_reshaper/reshaper_config.pyo diff --git a/converters/py-arabic-reshaper/distinfo b/converters/py-arabic-reshaper/distinfo new file mode 100644 index 00000000000..25e82445042 --- /dev/null +++ b/converters/py-arabic-reshaper/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2021/04/28 09:52:17 adam Exp $ + +SHA1 (arabic_reshaper-2.1.3.tar.gz) = dd4d0c488548d81505c295e028d42a3b231d9443 +RMD160 (arabic_reshaper-2.1.3.tar.gz) = cd1cc026611d6dac56a7e036e699eea06f676c04 +SHA512 (arabic_reshaper-2.1.3.tar.gz) = c0236fd481aeef56d2f56f2ddb642a71c011d7c34cd66002346d47dc9f73595934f26f375d67bfc62b48cabda911aafb2b86abc05f417ddb0d33874af2eca2da +Size (arabic_reshaper-2.1.3.tar.gz) = 24460 bytes +SHA1 (patch-setup.py) = 5f02d203fec48318bc6527c3747b62515c886032 diff --git a/converters/py-arabic-reshaper/patches/patch-setup.py b/converters/py-arabic-reshaper/patches/patch-setup.py new file mode 100644 index 00000000000..d36a61db10c --- /dev/null +++ b/converters/py-arabic-reshaper/patches/patch-setup.py @@ -0,0 +1,17 @@ +$NetBSD: patch-setup.py,v 1.1 2021/04/28 09:52:18 adam Exp $ + +Fix building with Python 2.7. + +--- setup.py.orig 2021-04-28 09:49:06.000000000 +0000 ++++ setup.py +@@ -5,8 +5,8 @@ from setuptools import setup + + import os + +-with open("README.md", "r", encoding="utf-8") as fh: +- long_description = fh.read() ++with open("README.md", "rb") as fh: ++ long_description = fh.read().decode("utf-8") + + setup( + name="arabic_reshaper", |