From 08ba7f173af6dc4b208718c318f4bafdd495ce6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sun, 24 May 2020 02:39:20 +0200 Subject: [PATCH] unifont: update to 13.0.02 and fix filenames OCP expects a "unifont.ttf", and it is packaged this way on Debian, so let's drop the version in the names. --- media-fonts/unifont/unifont-10.0.06.recipe | 31 ------------------- media-fonts/unifont/unifont-13.0.02.recipe | 35 ++++++++++++++++++++++ 2 files changed, 35 insertions(+), 31 deletions(-) delete mode 100644 media-fonts/unifont/unifont-10.0.06.recipe create mode 100644 media-fonts/unifont/unifont-13.0.02.recipe diff --git a/media-fonts/unifont/unifont-10.0.06.recipe b/media-fonts/unifont/unifont-10.0.06.recipe deleted file mode 100644 index dd1852736..000000000 --- a/media-fonts/unifont/unifont-10.0.06.recipe +++ /dev/null @@ -1,31 +0,0 @@ -SUMMARY="Unifoundry's font covering Unicode's BMP" -DESCRIPTION="GNU Unifont is part of the GNU Project. \ -The GNU Unifont by Roman Czyborra is a free bitmap font that covers the \ -Unicode Basic Multilingual Plane (BMP), using an intermediate bitmapped \ -font format." -HOMEPAGE="http://unifoundry.com" -COPYRIGHT="Unifoundry" -LICENSE="GNU GPL v2" -REVISION="1" -SOURCE_URI="http://unifoundry.com/pub/unifont-$portVersion/font-builds/unifont-$portVersion.ttf#noarchive" -CHECKSUM_SHA256="669a9764fb640c832a8ebfbd2c351be744b55c6f65b40f1fb203144309659ac0" -SOURCE_DIR="" -SOURCE_URI_2="http://unifoundry.com/pub/unifont-$portVersion/font-builds/unifont_upper-$portVersion.ttf#noarchive" -CHECKSUM_SHA256_2="be9d9670632b65113bc280d687fbc806990847f6b4567af89f1db45ae97f5b92" -SOURCE_URI_3="http://unifoundry.com/pub/unifont-$portVersion/font-builds/unifont_csur-$portVersion.ttf#noarchive" -CHECKSUM_SHA256_3="c6bbd70acb29bec83611732cce1e41953c48cb59516506dbf0ed94a23f71753a" - -ARCHITECTURES="any" -DISABLE_SOURCE_PACKAGE="yes" - -PROVIDES=" - unifont = $portVersion - " - -INSTALL() -{ - FONTDIR=$fontsDir/ttfonts - mkdir -p ${FONTDIR} - - cp ../sources*/*.ttf ${FONTDIR} -} diff --git a/media-fonts/unifont/unifont-13.0.02.recipe b/media-fonts/unifont/unifont-13.0.02.recipe new file mode 100644 index 000000000..2e732db92 --- /dev/null +++ b/media-fonts/unifont/unifont-13.0.02.recipe @@ -0,0 +1,35 @@ +SUMMARY="Unifoundry's font covering Unicode's BMP" +DESCRIPTION="GNU Unifont is part of the GNU Project. \ +The GNU Unifont by Roman Czyborra is a free bitmap font that covers the \ +Unicode Basic Multilingual Plane (BMP), using an intermediate bitmapped \ +font format." +HOMEPAGE="http://unifoundry.com" +COPYRIGHT="Unifoundry" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="http://unifoundry.com/pub/unifont/unifont-$portVersion/font-builds/unifont-$portVersion.ttf#noarchive" +CHECKSUM_SHA256="180b2ad6ff80782dc8aed9664510e81e67e0ea740cbb1c19066e0f371fa635ee" +SOURCE_DIR="" +SOURCE_URI_2="http://unifoundry.com/pub/unifont/unifont-$portVersion/font-builds/unifont_upper-$portVersion.ttf#noarchive" +CHECKSUM_SHA256_2="bc693aef53ababb60b1142af0229d0a02782ac6a5fb578a8186ed970e960171a" +SOURCE_URI_3="http://unifoundry.com/pub/unifont/unifont-$portVersion/font-builds/unifont_csur-$portVersion.ttf#noarchive" +CHECKSUM_SHA256_3="c23ae52d009889e4fcfaf0623be1a0b13e50e8ae3df5b342880de73c118ba973" + +ARCHITECTURES="any" +DISABLE_SOURCE_PACKAGE="yes" + +PROVIDES=" + unifont = $portVersion + " + +INSTALL() +{ + FONTDIR=$fontsDir/ttfonts + mkdir -p ${FONTDIR} + + for f in ../sources*/*.ttf; do + # we dont want the version in the name, some apps expect "unifont.ttf" + bn="${f##*/}" + cp "$f" ${FONTDIR}/"${bn%-${portVersion}.ttf}".ttf + done +}