dev-util/afdko: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-06-18 04:08:04 +02:00
parent d29279e2c9
commit 4a82cd9399
7 changed files with 157 additions and 0 deletions

View 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 \

View File

@@ -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(),
},

View 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

View 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,
},
)