summaryrefslogtreecommitdiff
path: root/dev-python/ots-python
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/ots-python')
-rw-r--r--dev-python/ots-python/Manifest2
-rw-r--r--dev-python/ots-python/files/ots-python-8.1.4-ots-sanitize.patch21
-rw-r--r--dev-python/ots-python/metadata.xml14
-rw-r--r--dev-python/ots-python/ots-python-8.1.4-r1.ebuild30
-rw-r--r--dev-python/ots-python/ots-python-8.2.1.ebuild30
5 files changed, 97 insertions, 0 deletions
diff --git a/dev-python/ots-python/Manifest b/dev-python/ots-python/Manifest
new file mode 100644
index 000000000000..547ec2bc94da
--- /dev/null
+++ b/dev-python/ots-python/Manifest
@@ -0,0 +1,2 @@
+DIST ots-python-8.1.4.tar.gz 10830 BLAKE2B f75e4e71c942a2214d9995184dd70505800a9a58d6238fc2321afde0efe17ee4e24906edb01f0690e12e245c5316f80fb313ae416d8a64e30c23c239c9929409 SHA512 466efae7d40dc24e0af22cb29d03d7c8bb5beb592c65c36a8e2d1678c141dd9b591184cbc01bc4879705a99cbf13e61c35bb51e878fdf866e82f82cbed75099d
+DIST ots-python-8.2.1.tar.gz 10577 BLAKE2B d642bc539b422375388cdfc94fe7541d1bee102e8292bc6186ad25764461e19974786034788ed86268e4565b3b17db22ba50fc257c1dc18d2f1289658b66f7da SHA512 be48bb860c9a1147a79fc2819f361a500d28d6655c302110cdc9596d4be1e127f4137a13e2cebf6a600209ba5356229eb4f019bf9e993231c9ed25f96ea1a74b
diff --git a/dev-python/ots-python/files/ots-python-8.1.4-ots-sanitize.patch b/dev-python/ots-python/files/ots-python-8.1.4-ots-sanitize.patch
new file mode 100644
index 000000000000..5eae00dbd8f4
--- /dev/null
+++ b/dev-python/ots-python/files/ots-python-8.1.4-ots-sanitize.patch
@@ -0,0 +1,21 @@
+--- a/setup.py
++++ b/setup.py
+@@ -236,7 +236,6 @@
+ platforms=["posix", "nt"],
+ package_dir={"": "src/python"},
+ packages=find_packages("src/python"),
+- ext_modules=[ots_sanitize],
+ zip_safe=False,
+ cmdclass=cmdclass,
+ setup_requires=["setuptools_scm"],
+--- a/src/python/ots/__init__.py
++++ b/src/python/ots/__init__.py
+@@ -3,7 +3,7 @@
+ import sys
+ import os
+
+-OTS_SANITIZE = os.path.join(os.path.dirname(__file__), "ots-sanitize")
++OTS_SANITIZE = "ots-sanitize"
+
+ __all__ = ["sanitize", "OTSError", "CalledProcessError"]
+
diff --git a/dev-python/ots-python/metadata.xml b/dev-python/ots-python/metadata.xml
new file mode 100644
index 000000000000..5c5bb5a69906
--- /dev/null
+++ b/dev-python/ots-python/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <description>co-maintainers welcome</description>
+ <email>lssndrbarbieri@gmail.com</email>
+ <name>Alessandro Barbieri</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/googlefonts/ots-python/issues</bugs-to>
+ <remote-id type="github">googlefonts/ots-python</remote-id>
+ <remote-id type="pypi">opentype-sanitizers</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/ots-python/ots-python-8.1.4-r1.ebuild b/dev-python/ots-python/ots-python-8.1.4-r1.ebuild
new file mode 100644
index 000000000000..44e88e039f68
--- /dev/null
+++ b/dev-python/ots-python/ots-python-8.1.4-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="A Python wrapper for OpenType Sanitizer"
+HOMEPAGE="
+ https://github.com/googlefonts/ots-python
+ https://pypi.org/project/opentype-sanitizer/
+"
+SRC_URI="https://github.com/googlefonts/ots-python/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+LICENSE="BSD"
+SLOT="0"
+
+RDEPEND=">=dev-util/ots-${PV}"
+
+PATCHES=( "${FILESDIR}/${P}-ots-sanitize.patch" )
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ export SETUPTOOLS_SCM_PRETEND_VERSION="${PV/_p/.post}"
+ mkdir -p src/c/ots || die
+ default
+}
diff --git a/dev-python/ots-python/ots-python-8.2.1.ebuild b/dev-python/ots-python/ots-python-8.2.1.ebuild
new file mode 100644
index 000000000000..cfee53bb3a0e
--- /dev/null
+++ b/dev-python/ots-python/ots-python-8.2.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="A Python wrapper for OpenType Sanitizer"
+HOMEPAGE="
+ https://github.com/googlefonts/ots-python
+ https://pypi.org/project/opentype-sanitizer/
+"
+SRC_URI="https://github.com/googlefonts/ots-python/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+LICENSE="BSD"
+SLOT="0"
+
+RDEPEND=">=dev-util/ots-${PV}"
+
+PATCHES=( "${FILESDIR}/${PN}-8.1.4-ots-sanitize.patch" )
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ export SETUPTOOLS_SCM_PRETEND_VERSION="${PV/_p/.post}"
+ mkdir -p src/c/ots || die
+ default
+}