Merge updates from master

This commit is contained in:
Repository mirror & CI
2020-12-12 16:05:02 +00:00
21 changed files with 253 additions and 221 deletions

View File

@@ -0,0 +1 @@
DIST compreffor-0.5.0.zip 86507 BLAKE2B 3d019106018b4eaf5dd72e666881a3a94edd4fc48853d520c713e84d4009716b4f3bf9621a4be76c92753408780969271fd7924b6452b9049546ffb919cacb80 SHA512 cf42cfff8b98d2e6b76f688dda5d3d6bc7cc30fffcc512e9fae6eeacfce61fd4e2d448950e396f49e8ed5ccf1b50523168404b28b111985969e191e9fea063b9

View File

@@ -0,0 +1,40 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{7,8} )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.zip"
KEYWORDS="~amd64"
DESCRIPTION="A CFF table subroutinizer for FontTools"
HOMEPAGE="https://github.com/googlefonts/compreffor"
LICENSE="Apache-2.0"
SLOT="0"
RDEPEND="
>=dev-python/fonttools-4.2.0[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
"
BDEPEND="
app-arch/unzip
dev-python/cython[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
src_prepare() {
#undesired dependency
sed -i "s|setup_requires=pytest_runner + wheel,|setup_requires=wheel,|" setup.py
default
}
python_test() {
distutils_install_for_testing
default
}

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<upstream>
<remote-id type="github">googlefonts/compreffor</remote-id>
<remote-id type="pypi">compreffor</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -1,29 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_7 pypy3)
inherit distutils-r1
case "${PV}" in
9999)
SRC_URI=""
EGIT_REPO_URI="https://github.com/sublee/glicko2.git"
inherit git-r3
;;
esac
DESCRIPTION="An implementation of the Glicko-2 rating system for Python"
HOMEPAGE="https://github.com/sublee/glicko2"
LICENSE="BSD"
SLOT="0"
KEYWORDS=""
distutils_enable_tests setup.py
src_prepare() {
sed -i -e "s/distribute/setuptools/g" setup.py
eapply_user
}

View File

@@ -0,0 +1 @@
DIST glyphsLib-5.3.0.zip 954392 BLAKE2B e7a0df00e8e724ab958f2e4a9c1e68f3aff6e05e9300c86585b8a35d0f38fe0147af21e7470f45ac2655105c0d42c19f940a4db67c16fe06c4293b596d795dc8 SHA512 c2255a84172b972168b914343a35e6cff130b99c66b636f0aa7e97ffcad6fe916289dfc5fc2871f9ba466db4e45f8fcf5784824083a91d481e8c1323e6cf9970

View File

@@ -0,0 +1,37 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DISTUTILS_USE_SETUPTOOLS=rdepend
PYTHON_COMPAT=( python3_{7,8} )
inherit distutils-r1
DESCRIPTION="A library to provide a bridge from Glyphs source files to UFOs"
HOMEPAGE="https://github.com/googlei18n/${PN}"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
LICENSE="Apache-2.0 MIT"
KEYWORDS="~amd64 ~x86"
SLOT="0"
RDEPEND="
>=dev-python/fonttools-4.14[${PYTHON_USEDEP}]
>=dev-python/ufoLib2-0.8[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/setuptools_scm[${PYTHON_USEDEP}]
test? (
dev-python/defcon[${PYTHON_USEDEP}]
dev-python/ufoNormalizer[${PYTHON_USEDEP}]
>=app-text/xmldiff-2.2[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_prepare_all() {
sed -e '/\<wheel\>/d' -i setup.cfg
distutils-r1_python_prepare_all
}

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
</pkgmetadata>

View File

@@ -0,0 +1 @@
DIST ufo2ft-2.13.0.zip 243638 BLAKE2B dba3c08ede255fc62e1d69308d7bdcad907ab3de2a8de1462d7cf3733e05e6c457a334f556a754ca9e646ff70ad9f7bd5423896cb0f963f60cd01d3ac43d9e06 SHA512 a236d68073e42471cf9f5794b19cd12dfe885c91e2236216f7112b7a2264bce95313699f19482c4ac2dc65d75ee9bd83a0a773e9ea87f6ed6c9e30929960b7e4

View File

@@ -0,0 +1,20 @@
--- a/Lib/ufo2ft/filters/__init__.py
+++ b/Lib/ufo2ft/filters/__init__.py
@@ -9,6 +9,7 @@ import importlib
from fontTools.misc.loggingTools import Timer
from ufo2ft.util import _LazyFontName, _GlyphSet
from ufo2ft.constants import FILTERS_KEY as UFO2FT_FILTERS_KEY # keep previous name
+from glyphsLib.builder.constants import GLYPHLIB_PREFIX
logger = logging.getLogger(__name__)
@@ -205,7 +206,8 @@ class BaseFilter(object):
if glyphName in modified:
continue
glyph = glyphSet[glyphName]
- if include(glyph) and filter_(glyph):
+ if glyph.lib.get(GLYPHLIB_PREFIX+'Export', True) and \
+ include(glyph) and filter_(glyph):
modified.add(glyphName)
num = len(modified)

View File

@@ -0,0 +1,11 @@
--- a/Lib/ufo2ft/fontInfoData.py
+++ b/Lib/ufo2ft/fontInfoData.py
@@ -251,6 +251,8 @@ staticFallbackData = dict(
copyright=None,
trademark=None,
italicAngle=0,
+ xHeight=0,
+ capHeight=0,
# not needed
year=None,
note=None,

View File

@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">googlefonts/ufo2ft</remote-id>
<remote-id type="pypi">ufo2ft</remote-id>
</upstream>
<longdescription lang="en">
ufo2ft ("UFO to FontTools") is a fork of ufo2fdk whose goal is to generate OpenType font binaries from UFOs without the FDK dependency.
The library provides two functions, compileOTF and compileTTF, which work exactly the same way:
from defcon import Font
from ufo2ft import compileOTF
ufo = Font('MyFont-Regular.ufo')
otf = compileOTF(ufo)
otf.save('MyFont-Regular.otf')
In most cases, the behavior of ufo2ft should match that of ufo2fdk, whose documentation is retained below (and hopefully is still accurate).
Naming Data
As with any OpenType compiler, you have to set the font naming data to a particular standard for your naming to be set correctly. In ufo2fdk, you can get away with setting two naming attributes in your font.info object for simple fonts:
familyName: The name for your family. For example, "My Garamond".
styleName: The style name for this particular font. For example, "Display Light Italic"
ufo2fdk will create all of the other naming data based on thse two fields. If you want to use the fully automatic naming system, all of the other name attributes should be set to None in your font. However, if you want to override the automated system at any level, you can specify particular naming attributes and ufo2fdk will honor your settings. You don't have to set all of the attributes, just the ones you don't want to be automated. For example, in the family "My Garamond" you have eight weights. It would be nice to style map the italics to the romans for each weight. To do this, in the individual romans and italics, you need to set the style mapping data. This is done through the styleMapFamilyName and styleMapStyleName attributes. In each of your roman and italic pairs you would do this:
My Garamond-Light.ufo
familyName = "My Garamond"
styleName = "Light"
styleMapFamilyName = "My Garamond Display Light"
styleMapStyleName = "regular"
My Garamond-Light Italic.ufo
familyName = "My Garamond"
styleName = "Display Light Italic"
styleMapFamilyName = "My Garamond Display Light"
styleMapStyleName = "italic"
My Garamond-Book.ufo
familyName = "My Garamond"
styleName = "Book"
styleMapFamilyName = "My Garamond Display Book"
styleMapStyleName = "regular"
My Garamond-Book Italic.ufo
familyName = "My Garamond"
styleName = "Display Book Italic"
styleMapFamilyName = "My Garamond Display Book"
styleMapStyleName = "italic"
etc.
Additionally, if you have defined any naming data, or any data for that matter, in table definitions within your font's features that data will be honored.
Feature generation
If your font's features do not contain kerning/mark/mkmk features, ufo2ft will create them based on your font's kerning/anchor data.
In addition to Adobe OpenType feature files, ufo2ft also supports the MTI/Monotype format. For example, a GPOS table in this format would be stored within the UFO at data/com.github.googlei18n.ufo2ft.mtiFeatures/GPOS.mti.
Fallbacks
Most of the fallbacks have static values. To see what is set for these, look at fontInfoData.py in the source code.
In some cases, the fallback values are dynamically generated from other data in the info object. These are handled internally with functions.
Merging TTX
If the UFO data directory has a com.github.fonttools.ttx folder with TTX files ending with .ttx, these will be merged in the generated font. The index TTX (generated when using using ttx -s) is not required.
</longdescription>
</pkgmetadata>

View File

@@ -0,0 +1,43 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_7 )
inherit distutils-r1
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.zip"
#26 failed tests
RESTRICT="test"
KEYWORDS="~amd64"
DESCRIPTION="A bridge from UFOs to FontTool objects"
HOMEPAGE="https://github.com/googlefonts/ufo2ft"
LICENSE="MIT"
SLOT="0"
PATCHES=( "${FILESDIR}/${PN}-exportedglyphs.diff" )
RDEPEND="
>=dev-python/booleanOperations-0.9.0[${PYTHON_USEDEP}]
>=dev-python/compreffor-0.4.6[${PYTHON_USEDEP}]
>=dev-python/cu2qu-1.6.6[${PYTHON_USEDEP}]
dev-python/defcon[${PYTHON_USEDEP}]
>=dev-python/fonttools-4.4.0[${PYTHON_USEDEP}]
>=dev-python/skia-pathops-0.2.0[${PYTHON_USEDEP}]
>=dev-python/ufoLib2-0.5.1[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
test? (
dev-python/glyphsLib[${PYTHON_USEDEP}]
)
"
BDEPEND="
app-arch/unzip
dev-python/setuptools_scm[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest

View File

@@ -5,6 +5,7 @@ EAPI="7"
PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
DISTUTILS_USE_SETUPTOOLS=rdepend
MYPN="${PN,,}"
MYP="${MYPN}-${PV}"
inherit distutils-r1
@@ -15,10 +16,8 @@ SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.zip"
SLOT="0"
LICENSE="BSD"
KEYWORDS="~amd64"
KEYWORDS="~amd64 ~x86"
DEPEND=""
RDEPEND=""
BDEPEND="app-arch/unzip"
S="${WORKDIR}/${MYP}"

View File

@@ -1 +1 @@
DIST purritobin-0.3.2.tar.gz 13565 BLAKE2B 2e1cd35e33b0330dde96f9b39e916042543025d4834dbf1b6022b939ebf79734ba4262f8229886d4f368e1d85ab7040675374f1035b31870f460da4311fff165 SHA512 fcdb4bcc1869d8b1b9abedecd27a44a147597606893f9af5df64461a0c82db27bdffddf6f15965e1a8356185a6af836c9d86c5ed15841dd81284a6aba4720970
DIST purritobin-0.3.3.tar.gz 13155 BLAKE2B 1134ab3aecd9910dfdda0d18fc6ac39c4c7332798eb5863edc9dd8306de3b60a0e08d91ed18ada99b4787584b52005e9507cc33681a696c243cc98b847ae8a35 SHA512 d78727920b6b8b92a786003c51d5def143c24763cd7349fdda688bbb90d737bd958bda321b5ae7f5debbea095b9912f88b0b7e7a8501e7f33402941d7656d160

View File

@@ -31,6 +31,6 @@ src_configure() {
}
src_install() {
emake PREFIX="/usr" DESTDIR="${ED}" install
emake PREFIX="/usr" MANDIR="/usr/share/man" DESTDIR="${ED}" install
einstalldocs
}

View File

@@ -31,6 +31,6 @@ src_configure() {
}
src_install() {
emake PREFIX="/usr" DESTDIR="${ED}" install
emake PREFIX="/usr" MANDIR="/usr/share/man" DESTDIR="${ED}" install
einstalldocs
}

View File

@@ -1,68 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit cmake
case "${PV}" in
9999)
SRC_URI=""
EGIT_REPO_URI="https://github.com/ECP-VeloC/${PN}.git"
inherit git-r3
KEYWORDS=""
;;
*)
SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
;;
esac
DESCRIPTION="KVTree provides a fully extensible C data structure modeled after Perl hashes."
HOMEPAGE="https://github.com/ECP-VeloC/KVTree"
LICENSE="MIT"
SLOT="0"
IUSE="fcntl +flock mpi test"
REQUIRED_USE="
?? ( fcntl flock )
"
RESTRICT="test? ( userpriv ) !test? ( test )"
RDEPEND="
mpi? ( virtual/mpi )
sys-libs/zlib
"
DEPEND="${RDEPEND}"
BDEPEND="
>=dev-util/cmake-2.8
app-admin/chrpath
"
src_prepare() {
#do not build static library
sed -i '/kvtree-static/d' src/CMakeLists.txt || die
#do not install README.md automatically
sed -i '/FILES README.md DESTINATION/d' CMakeLists.txt || die
default
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DMPI="$(usex mpi ON OFF)"
-DKVTREE_FILE_LOCK="$(usex flock FLOCK $(usex fcntl FCNTL NONE))"
)
cmake_src_configure
}
src_install() {
chrpath -d "${BUILD_DIR}/src/kvtree_print_file" || die
cmake_src_install
chrpath -d "${ED}/usr/$(get_libdir)/libkvtree.so" || die
dodoc doc/rst/*.rst
docinto "${DOCSDIR}/users"
dodoc -r doc/rst/users/.
}

View File

@@ -1,117 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7,8} )
DISTUTILS_USE_SETUPTOOLS=no
inherit autotools distutils-r1 perl-module java-pkg-opt-2 flag-o-matic
case "${PV}" in
9999)
SRC_URI=""
EGIT_REPO_URI="https://github.com/chaos/${PN}.git"
inherit git-r3
KEYWORDS=""
;;
*)
MY_PV="$(ver_rs 1-2 -)"
MY_P="${PN}-${MY_PV}"
SRC_URI="https://github.com/chaos/${PN}/archive/${MY_P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${PN}-${MY_P}"
;;
esac
DESCRIPTION="Static cluster configuration database used for cluster configuration management."
HOMEPAGE="https://github.com/chaos/genders"
LICENSE="GPL-2"
SLOT="0"
IUSE="cxx java perl python"
DOCS=( README TUTORIAL NEWS )
CDEPEND="
perl? ( dev-lang/perl:= )
python? ( ${PYTHON_DEPS} )
"
DEPEND="
${CDEPEND}
java? ( virtual/jdk:1.8 )
"
RDEPEND="
${DEPEND}
java? ( virtual/jre:1.8 )
"
REQUIRED_USE="
python? ( ${PYTHON_REQUIRED_USE} )
"
src_prepare() {
sed -i "s|perl python||" src/extensions/Makefile.am
sed -i "s|\$(DESTDIR)\$(docdir)-\$(VERSION)-javadoc|\$(DESTDIR)\$(docdir)/html/javadoc|" src/extensions/java/Makefile.am
eapply_user
./autogen.sh
}
src_configure() {
use java && append-cflags "-I${S}/src/libgenders"
use java && append-cflags "$(java-pkg_get-jni-cflags)"
local myconf=(
--disable-static
--with-non-shortened-hostnames
$(use_with cxx cplusplus-extensions)
$(use_with java java-extensions)
$(use_with perl perl-extensions)
$(use_with python python-extensions)
)
econf "${myconf[@]}"
}
src_compile() {
default
if use perl ; then
cd "${S}/src/extensions/perl"
perl-module_src_configure
perl-module_src_compile
fi
if use python; then
cd "${S}/src/extensions/python"
cp genderssetup.py setup.py
distutils-r1_src_compile
fi
}
src_test() {
cd src/testsuite
default
cd ../..
}
src_install() {
default
if use perl ; then
cd "${S}/src/extensions/perl"
unset DOCS
myinst=( DESTDIR="${D}" )
perl-module_src_install
fi
if use python; then
cd "${S}/src/extensions/python"
unset DOCS
python_install() {
distutils-r1_python_install
}
distutils-r1_src_install
fi
find "${ED}" -name '*.la' -delete || die
}

View File

@@ -1 +1 @@
DIST uwebsockets-18.15.0.tar.gz 271485 BLAKE2B 77e661abdf82728dbe3c52689d42b8fe98314c9e7bc1e8700a935114608771fa26d272bd30dd03ede870a1b4dc63a4dc91e816f1df7b402a2f85bff09de12c7a SHA512 b49a3f4ce446b9c113bfb567fe9598cdc6c453ac5dc4556e11d74ef5d702cb480d53488e2650f765f8c95e0de980d586be62982bed9c5728fee974e7e287f143
DIST uwebsockets-18.17.0.tar.gz 276629 BLAKE2B 2d53fc5eefd7ef97af4d5c5afea9aaa8bf330083f3d55d68d7210e5825c9179f93d7f78f96a32c7b0c4ea18e1a078e4954706b8782aa1f62206f11dfb4dbfae5 SHA512 8e7cd716eddc9f9c3bcbc24ed50eaba39f3bc920624f892045caa14bc241695f8ccd531a3aaab6870e8669a49788058ea6458b11298aab1757923f3d7caa7813