mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-16 02:23:16 -04:00
dev-util/afdko: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
dev-util/afdko/Manifest
Normal file
1
dev-util/afdko/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST afdko-3.6.2.tar.gz 12669802 BLAKE2B 55be8d0e0f9cbca187cff9f33113dab39d15d4a96f02ca1e356e3357204bf50b52ab6575ebb1bbf7f24b1406332be25b9b34300ae383ba0f33b873c2a945fc81 SHA512 6a3ad1a268daa321f2bc68be40674bbd68cb4d9d03622aa5884823ff74d86567739e17b1152ad24af186dbba6e623fe77f448c330a08b61b9b9813e6ff1d04c5
|
||||
66
dev-util/afdko/afdko-3.6.2.ebuild
Normal file
66
dev-util/afdko/afdko-3.6.2.ebuild
Normal file
@@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_8 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Adobe Font Development Kit for OpenType"
|
||||
HOMEPAGE="https://adobe-type-tools.github.io/afdko"
|
||||
SRC_URI="https://github.com/adobe-type-tools/afdko/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
RESTRICT="test" #too many failed tests
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/booleanOperations-0.9[${PYTHON_USEDEP}]
|
||||
>=dev-python/defcon-0.7.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/fontMath-0.6[${PYTHON_USEDEP}]
|
||||
dev-python/fontPens[${PYTHON_USEDEP}]
|
||||
>=dev-python/fonttools-4.21.1[${PYTHON_USEDEP}]
|
||||
>=dev-util/psautohint-2.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/tqdm-4.58[${PYTHON_USEDEP}]
|
||||
>=dev-python/ufoNormalizer-0.5.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/ufoProcessor-1.9[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}]"
|
||||
|
||||
DOCS=( {README,NEWS}.md docs )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-nowheel.diff"
|
||||
"${FILESDIR}/${P}-AR-fix.patch"
|
||||
"${FILESDIR}/${P}-relax-hard-pinning.patch"
|
||||
"${FILESDIR}/${P}-_get_scripts-to-data_files.patch"
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
pkg_setup() {
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION="${PV}"
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
rm docs/*.{yml,plist} || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC CPP AR
|
||||
local _d
|
||||
find -path '*/linux/gcc/release/Makefile' | while read _d; do
|
||||
emake -C "${_d%/Makefile}" XFLAGS="${CFLAGS}" || return
|
||||
done
|
||||
distutils-r1_src_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local -x PYTHONPATH="${S}/python:${PYTHONPATH}"
|
||||
local -x PATH="${BUILD_DIR}/test/scripts:${S}/c/build_all:${PATH}"
|
||||
distutils_install_for_testing
|
||||
epytest -vv || die
|
||||
}
|
||||
22
dev-util/afdko/files/afdko-3.6.2-AR-fix.patch
Normal file
22
dev-util/afdko/files/afdko-3.6.2-AR-fix.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
--- a/c/public/lib/config/linux/gcc/gcc.mak
|
||||
+++ b/c/public/lib/config/linux/gcc/gcc.mak
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
$(LIB_TARGET): $(LIB_OBJS)
|
||||
mkdir -p $(LIB_DIR)
|
||||
- $(AR) -rvs $@ $?
|
||||
+ $(AR) rvs $@ $?
|
||||
|
||||
clean:
|
||||
if [ "$(LIB_OBJS)" ]; then \
|
||||
--- a/c/public/lib/config/linux/gcc/gcc_tx.mak
|
||||
+++ b/c/public/lib/config/linux/gcc/gcc_tx.mak
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
$(LIB_TARGET): $(LIB_OBJS)
|
||||
mkdir -p $(LIB_DIR)
|
||||
- $(AR) -rvs $@ $?
|
||||
+ $(AR) rvs $@ $?
|
||||
|
||||
clean:
|
||||
if [ "$(LIB_OBJS)" ]; then \
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -234,7 +234,7 @@
|
||||
'pytest',
|
||||
],
|
||||
install_requires=_get_requirements(),
|
||||
- scripts=_get_scripts(),
|
||||
+ data_files=[("bin",_get_scripts())],
|
||||
entry_points={
|
||||
'console_scripts': _get_console_scripts(),
|
||||
},
|
||||
26
dev-util/afdko/files/afdko-3.6.2-relax-hard-pinning.patch
Normal file
26
dev-util/afdko/files/afdko-3.6.2-relax-hard-pinning.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
--- a/requirements.txt
|
||||
+++ b/requirements.txt
|
||||
@@ -1,13 +1,13 @@
|
||||
# 'lxml' is not a primary requirement of afdko but it's listed here because
|
||||
# we want to have control over the version and guarantee that the XML output
|
||||
# of our tools is stable
|
||||
-# NOTE: hard-pinning (==) here gets relaxed to >= in setup.py
|
||||
-lxml==4.6.2
|
||||
-booleanOperations==0.9.0
|
||||
-defcon[pens,lxml]==0.7.2
|
||||
-fontMath==0.6.0
|
||||
-fontTools[woff,ufo,lxml,unicode]==4.21.1
|
||||
-psautohint==2.3.0
|
||||
-tqdm==4.58.0
|
||||
-ufonormalizer==0.5.3
|
||||
-ufoProcessor==1.9.0
|
||||
+# NOTE: hard-pinning (>=) here gets relaxed to >= in setup.py
|
||||
+lxml>=4.6.2
|
||||
+booleanOperations>=0.9.0
|
||||
+defcon[pens,lxml]>=0.7.2
|
||||
+fontMath>=0.6.0
|
||||
+fontTools[woff,ufo,lxml,unicode]>=4.21.1
|
||||
+psautohint>=2.3.0
|
||||
+tqdm>=4.58.0
|
||||
+ufonormalizer>=0.5.3
|
||||
+ufoProcessor>=1.9.0
|
||||
26
dev-util/afdko/files/afdko-nowheel.diff
Normal file
26
dev-util/afdko/files/afdko-nowheel.diff
Normal file
@@ -0,0 +1,26 @@
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -29,7 +29,6 @@ try:
|
||||
except ImportError:
|
||||
print("afdko: setup.py requires that the Python package 'wheel' be "
|
||||
"installed. Try the command 'pip install wheel'.")
|
||||
- sys.exit(1)
|
||||
|
||||
|
||||
class InstallPlatlib(setuptools.command.install.install):
|
||||
@@ -246,7 +245,6 @@ def main():
|
||||
zip_safe=False,
|
||||
python_requires='>=2.7',
|
||||
setup_requires=[
|
||||
- 'wheel',
|
||||
'setuptools_scm',
|
||||
],
|
||||
tests_require=[
|
||||
@@ -260,7 +258,6 @@ def main():
|
||||
cmdclass={
|
||||
'build_py': CustomBuild,
|
||||
'build_scripts': CustomBuildScripts,
|
||||
- 'bdist_wheel': CustomBDistWheel,
|
||||
'install': InstallPlatlib,
|
||||
},
|
||||
)
|
||||
5
dev-util/afdko/metadata.xml
Normal file
5
dev-util/afdko/metadata.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer needed -->
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user