diff options
author | Matt Turner <mattst88@gentoo.org> | 2019-09-16 21:45:51 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2019-09-16 21:47:08 -0700 |
commit | 98b9c1665d2dace1cd65d7bba92028fe538d2c72 (patch) | |
tree | 28a26808e07de4c81229d74259db7df05edc3f86 /media-fonts/culmus | |
parent | media-fonts/kacst-fonts: Version bump to 2.01 (diff) | |
download | gentoo-98b9c1665d2dace1cd65d7bba92028fe538d2c72.tar.gz gentoo-98b9c1665d2dace1cd65d7bba92028fe538d2c72.tar.bz2 gentoo-98b9c1665d2dace1cd65d7bba92028fe538d2c72.zip |
media-fonts/culmus: Version bump to 0.133
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'media-fonts/culmus')
-rw-r--r-- | media-fonts/culmus/Manifest | 2 | ||||
-rw-r--r-- | media-fonts/culmus/culmus-0.133.ebuild | 179 |
2 files changed, 181 insertions, 0 deletions
diff --git a/media-fonts/culmus/Manifest b/media-fonts/culmus/Manifest index 80d3605d8967..62975884754c 100644 --- a/media-fonts/culmus/Manifest +++ b/media-fonts/culmus/Manifest @@ -9,7 +9,9 @@ DIST TaameyFrankCLM.zip 742392 BLAKE2B 91eeea273e69a570ecf8c30fdba37dbc7d65a8197 DIST anka.tar.gz 21210 BLAKE2B 04d40f828a94f7aa58e4ddb83bf47e73f369aee1cafd2ae01126d9cbd34c6119681cf46a589eac9de901662a89547cb0a017ee3b3b8f6d8aec7d24f4dce5c66e SHA512 e343918245a05aa11243dfda65a00295d09f04a04bb56594155129e5744a7f100793940eb0d417d708e6f25a1856c20d09d5198bab03a2c8fba258816bd2d14b DIST comix.tar.gz 100296 BLAKE2B 038e09da9a33f57be3fc983185d2ce9054fecb65c00c522071730fc27419dfc9e6767440bdb50f5e3fab65c19d658e787ec64bb48b72d1d1ec70c62e13e1effb SHA512 eacf751e7d9503db1cab95190c4b9473d4e5b459bc4baeb9341f35a7859ff6068ceffdcb27bee2294ead9a18d3471ee21b725ae48d80c946817d9b420f7adb9f DIST culmus-0.120.tar.gz 1190095 BLAKE2B 8bc67812f2afda337ac5354c1f18c50b2e74ae5668c351f0130f88f2b010d742f80829b9b2af84a74c7933fc749c8623e27befd9ce8255c980fbb6ca1b637831 SHA512 e99578fc92d4184f92cb6fb8b990ecfb1da1a84e77e400218f40087380d36edd3a65ca4f776330c3d867bbe8b32e58fb13d8485e1ece689336756d3d7d69ccc3 +DIST culmus-0.133.tar.gz 1174687 BLAKE2B 17674939dab12b76280cf420edd00c8a39059415a0abfe3af79a3cddfa33e05826068d71c6bf6355f9032641b7391e763c36d39de4713d0fe1b44b7b4d6f1bb6 SHA512 97c17dbe4ad5b542a2bfd6c9c7a7afeeabae942cbbd3a718d46ceb18b4020fe7fdf93ade07a65a2da93dadff645abf0da4648713e3452d30bf2a9a79201f2845 DIST culmus-src-0.120.tar.gz 1180742 BLAKE2B 0453dbb778c7e6cbad68165bcd9b8b1bbc54a646f70864c9ce6f8315b8c7ad269dafdc15b4360acf58b6d826ec7db8b31deee2e461c2c56aaf2eee5254259322 SHA512 1c57024e7cfbcf6a5237db317cdaf73327fe4bbd06b84cb9f1218f560723f3bd421ecc53c27e523c600f50586f9daf1223ecc641f81bdc45f6fbef82fdcc0146 +DIST culmus-src-0.133.tar.gz 2054572 BLAKE2B 12ecc62b0e0eb2fe665750c6abba7bf1673904013287afef8ba10b98bbe8d5fb0cf345753b6e48aa4c7ea893c015aee24ba7ec48d6b470987a2b25dc0ef73f08 SHA512 d15eafe199bdb1071fbd434797e4f83d37b757d97bf480e68d6a8181dc642352b698b637a9bbebe380cf6f52367d55a4a8a3573077bb5e7508950af81ad1eb63 DIST culmus-type1-0.105.tar.gz 465679 BLAKE2B 4ba8a9fa14507c19df16ba9cf80325fa7ed01de6db9be8aaed535e20ecfba65c5b5e8ab98ac2795f5a6ecbe780817da567a280f6b426ffd2ee0b7b4a68ae0649 SHA512 f2cc3ddb31e72936802998a3f64fd265aacb40f8390f9f3f8556ce4ce546b90eeeca0fe3a8a326b4dbc79ed943c886900d08bc5f5e6dfd3508fa5b3eeb173f7d DIST dorian.tar.gz 141215 BLAKE2B 44e92f5c7534598e2b4de7ae2edc87f73482d185997fefd52d7f1b85baa190bb303efb9d77e39cd429e4c0be64cd507a763d8cdd4f9b1dea4ff4409a17d4b691 SHA512 f05b602528fb9a4ddb4eb876d48f3ef67d446180fb9374bb8b82bca61c9922bfa7cb7ad85a79d04a9ed7fcdf3690ab1ae574ff5e4b595ea9cc5a7d5516aa6fca DIST gan.tar.gz 18076 BLAKE2B 4203504e2e77db89b14672d58d55c8a34e420c38baa1451fc4ccaf084f019baba65a0034471fdfab51dde508c212994da3ff1e7c9ecd518e367f06f84f2897f3 SHA512 9df91c04946710a6a649b4b00dc18d4c643364870ff6c80ea5d71d09bc929247e9dd63ba54532c31815fa63c092bad6c236606c3ebfa3ccb32621907140f5dab diff --git a/media-fonts/culmus/culmus-0.133.ebuild b/media-fonts/culmus/culmus-0.133.ebuild new file mode 100644 index 000000000000..ff86f58b23a5 --- /dev/null +++ b/media-fonts/culmus/culmus-0.133.ebuild @@ -0,0 +1,179 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit font + +# Maintainer: also check culmus.conf file in ${P}.tar.gz + +MY_A_P=AncientSemiticFonts-0.06-1 +# The Type 1 fonts are just a stripped version of TrueType fonts and they are +# not updated unless there is a meaningful change and we need them for +# culmus-latex, see bug #350657 +TYPE1_PV=0.105 + +DESCRIPTION="Hebrew Type1 fonts" +HOMEPAGE="http://culmus.sourceforge.net/" + +FANCY_FONTS="journal hillel anka comix gan ozrad ktav-yad dorian gladia horev" +FANCY_YG_FONTS="ShmuelCLM MakabiYG" +TAAMEY_FONTS="TaameyDavidCLM TaameyFrankCLM KeterAramTsova KeterYG" + +SRC_URI="mirror://sourceforge/culmus/${P}.tar.gz + mirror://sourceforge/culmus/${PN}-type1-${TYPE1_PV}.tar.gz + fontforge? ( mirror://sourceforge/culmus/${PN}-src-${PV}.tar.gz ) + ancient? ( !fontforge? ( mirror://sourceforge/culmus/${MY_A_P}.TTF.tgz ) + fontforge? ( mirror://sourceforge/culmus/${MY_A_P}.tgz ) )" +SRC_URI+=" fancy? ( $(printf "http://culmus.sourceforge.net/fancy/%s.tar.gz " ${FANCY_FONTS}) )" +SRC_URI+=" fancy? ( $(printf "http://culmus.sourceforge.net/fancy-yg/%s.zip " ${FANCY_YG_FONTS}) )" +SRC_URI+=" taamey? ( $(printf "http://culmus.sourceforge.net/taamim/%s.zip " ${TAAMEY_FONTS}) )" + +# Some fonts are available in otf format too. Do we need them? +# http://culmus.sourceforge.net/fancy/anka-otf.zip +# http://culmus.sourceforge.net/fancy/hillel-otf.zip +# http://culmus.sourceforge.net/fancy/journal-otf.zip + +LICENSE="|| ( GPL-2 LICENSE-BITSTREAM ) ancient? ( MIT ) fancy? ( GPL-2 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="ancient fancy fontforge taamey" + +FONT_CONF=( "${T}/65-culmus.conf" ) + +RDEPEND="!media-fonts/culmus-ancient" +# >=x11-apps/mkfontscale-1.0.9-r1 as Heavy weight support is required +DEPEND="${RDEPEND} + >=x11-apps/mkfontscale-1.0.9-r1 + fontforge? ( media-gfx/fontforge )" + +S=${WORKDIR} +# Put all fonts, generated or not here +FONT_S=${S}/FONTS + +src_unpack() { + unpack ${P}.tar.gz # For type1 fonts... + unpack ${PN}-type1-${TYPE1_PV}.tar.gz + use fontforge && unpack ${PN}-src-${PV}.tar.gz + + use ancient && unpack ${MY_A_P}$(use fontforge || echo .TTF).tgz + + if use fancy; then + unpack $(printf "%s.tar.gz " ${FANCY_FONTS}) + unpack $(printf "%s.zip " ${FANCY_YG_FONTS}) + mv TTF/* . + fi + + if use taamey; then + for font in ${TAAMEY_FONTS}; do + mkdir ${font} + pushd ${font} + unpack ${font}.zip + popd >/dev/null + done + fi +} + +src_prepare() { + default + cp "${P}/culmus.conf" "${T}/65-culmus.conf" || die +} + +src_compile() { + mkdir -p "${FONT_S}" + if use fontforge; then + pushd ${P} + mv *.afm *.pfa "${FONT_S}" + rm *.ttf + popd >/dev/null + + pushd ${PN}-type1-${TYPE1_PV} + mv *.afm *.pfa "${FONT_S}" + popd >/dev/null + + pushd ${PN}-src-${PV} + for f in *.sfd; do + "${WORKDIR}"/${PN}-src-${PV}/GenerateTTF.pe ${f} "${FONT_S}" || die + done + popd >/dev/null + + if use ancient; then + pushd ${MY_A_P}/src + export FONTFORGE_LANGUAGE=ff + make clean + make all || die "Failed to build fonts" + mv *.ttf "${FONT_S}" + popd >/dev/null + fi + + if use taamey; then + for font in ${TAAMEY_FONTS}; do + rm -rf ${font}/TTF + pushd ${font}/SFD + for f in *.sfd; do + "${WORKDIR}"/${PN}-src-${PV}/GenerateTTF.pe ${f} "${FONT_S}" || die + done + popd >/dev/null + done + fi + else + pushd ${P} + mv *.afm *.pfa *.ttf "${FONT_S}" + popd >/dev/null + + pushd ${PN}-type1-${TYPE1_PV} + mv *.afm *.pfa "${FONT_S}" + popd >/dev/null + + if use ancient; then + pushd ${MY_A_P}$(use fontforge || echo .TTF)/fonts + mv *.ttf "${FONT_S}" + popd >/dev/null + fi + + if use taamey; then + for font in ${TAAMEY_FONTS}; do + pushd ${font}/TTF + mv *.ttf "${FONT_S}" + popd >/dev/null + done + fi + fi + + use fancy && mv *.afm *.pfa *.ttf "${FONT_S}" +} + +src_install() { + einstalldocs + + FONT_SUFFIX="pfa afm $((use fancy || use taamey) && echo ttf)" \ + font_src_install + + rm -rf "${FONT_S}" + find "${WORKDIR}" -name '*.ttf' -o -name '*.pfa' -o -name '*.pfm' | + while read font; do + ewarn "QA: missed font file: ${font}" + done + + pushd ${PN}$(use fontforge && echo -src)-${PV} + dodoc CHANGES || die + popd >/dev/null + + if use ancient; then + pushd "${WORKDIR}/${MY_A_P}$(use fontforge || echo .TTF)/" + newdoc CHANGES{,.ancient} || die + newdoc README{,.ancient} || die + popd >/dev/null + fi + + if use taamey; then + for font in ${TAAMEY_FONTS}; do + pushd ${font} + [[ -f ChangeLog ]] && { newdoc ChangeLog{,.${font}} || die; } + newdoc README{,.${font}} || die + insinto /usr/share/doc/${PF}/${font} + doins -r Samples + popd >/dev/null + done + fi +} |