Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-fonts/culmus/
Date: Wed, 14 Aug 2019 19:45:30
Message-Id: 1565811911.d6ad7ba5d7404e16e03e8c848f0e20c1e5b1152a.dilfridge@gentoo
1 commit: d6ad7ba5d7404e16e03e8c848f0e20c1e5b1152a
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 14 19:45:11 2019 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 14 19:45:11 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6ad7ba5
7
8 media-fonts/culmus: arm stable, bug 689414; remove old
9
10 Bug: https://bugs.gentoo.org/689414
11 Package-Manager: Portage-2.3.70, Repoman-2.3.16
12 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
13
14 media-fonts/culmus/culmus-0.120-r4.ebuild | 176 ------------------------------
15 media-fonts/culmus/culmus-0.120-r5.ebuild | 2 +-
16 2 files changed, 1 insertion(+), 177 deletions(-)
17
18 diff --git a/media-fonts/culmus/culmus-0.120-r4.ebuild b/media-fonts/culmus/culmus-0.120-r4.ebuild
19 deleted file mode 100644
20 index 4388a4b0bda..00000000000
21 --- a/media-fonts/culmus/culmus-0.120-r4.ebuild
22 +++ /dev/null
23 @@ -1,176 +0,0 @@
24 -# Copyright 1999-2013 Gentoo Foundation
25 -# Distributed under the terms of the GNU General Public License v2
26 -
27 -EAPI="2"
28 -
29 -inherit font
30 -
31 -# Maintainer: also check culmus.conf file in ${P}.tar.gz
32 -
33 -MY_A_P=AncientSemiticFonts-0.06-1
34 -# The Type 1 fonts are just a stripped version of TrueType fonts and they are
35 -# not updated unless there is a meaningful change and we need them for
36 -# culmus-latex, see bug #350657
37 -TYPE1_PV=0.105
38 -
39 -DESCRIPTION="Hebrew Type1 fonts"
40 -HOMEPAGE="http://culmus.sourceforge.net/"
41 -
42 -FANCY_FONTS="journal hillel anka comix gan ozrad ktav-yad dorian gladia horev"
43 -FANCY_YG_FONTS="ShmuelCLM MakabiYG"
44 -TAAMEY_FONTS="TaameyDavidCLM TaameyFrankCLM KeterAramTsova KeterYG"
45 -
46 -SRC_URI="mirror://sourceforge/culmus/${P}.tar.gz
47 - mirror://sourceforge/culmus/${PN}-type1-${TYPE1_PV}.tar.gz
48 - fontforge? ( mirror://sourceforge/culmus/${PN}-src-${PV}.tar.gz )
49 - ancient? ( !fontforge? ( mirror://sourceforge/culmus/${MY_A_P}.TTF.tgz )
50 - fontforge? ( mirror://sourceforge/culmus/${MY_A_P}.tgz ) )"
51 -SRC_URI+=" fancy? ( $(printf "http://culmus.sourceforge.net/fancy/%s.tar.gz " ${FANCY_FONTS}) )"
52 -SRC_URI+=" fancy? ( $(printf "http://culmus.sourceforge.net/fancy-yg/%s.zip " ${FANCY_YG_FONTS}) )"
53 -SRC_URI+=" taamey? ( $(printf "http://culmus.sourceforge.net/taamim/%s.zip " ${TAAMEY_FONTS}) )"
54 -
55 -# Some fonts are available in otf format too. Do we need them?
56 -# http://culmus.sourceforge.net/fancy/anka-otf.zip
57 -# http://culmus.sourceforge.net/fancy/hillel-otf.zip
58 -# http://culmus.sourceforge.net/fancy/journal-otf.zip
59 -
60 -LICENSE="|| ( GPL-2 LICENSE-BITSTREAM ) ancient? ( MIT ) fancy? ( GPL-2 )"
61 -SLOT="0"
62 -KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
63 -IUSE="ancient fancy fontforge taamey"
64 -
65 -FONT_CONF=( "${T}/65-culmus.conf" )
66 -
67 -RDEPEND="!media-fonts/culmus-ancient"
68 -# >=x11-apps/mkfontscale-1.0.9-r1 as Heavy weight support is required
69 -DEPEND="${RDEPEND}
70 - >=x11-apps/mkfontscale-1.0.9-r1
71 - fontforge? ( media-gfx/fontforge )"
72 -
73 -S=${WORKDIR}
74 -# Put all fonts, generated or not here
75 -FONT_S=${S}/FONTS
76 -
77 -src_unpack() {
78 - unpack ${P}.tar.gz # For type1 fonts...
79 - unpack ${PN}-type1-${TYPE1_PV}.tar.gz
80 - use fontforge && unpack ${PN}-src-${PV}.tar.gz
81 -
82 - use ancient && unpack ${MY_A_P}$(use fontforge || echo .TTF).tgz
83 -
84 - if use fancy; then
85 - unpack $(printf "%s.tar.gz " ${FANCY_FONTS})
86 - unpack $(printf "%s.zip " ${FANCY_YG_FONTS})
87 - mv TTF/* .
88 - fi
89 -
90 - if use taamey; then
91 - for font in ${TAAMEY_FONTS}; do
92 - mkdir ${font}
93 - pushd ${font}
94 - unpack ${font}.zip
95 - popd >/dev/null
96 - done
97 - fi
98 -}
99 -
100 -src_prepare() {
101 - cp "${P}/culmus.conf" "${T}/65-culmus.conf" || die
102 -}
103 -
104 -src_compile() {
105 - mkdir -p "${FONT_S}"
106 - if use fontforge; then
107 - pushd ${P}
108 - mv *.afm *.pfa "${FONT_S}"
109 - rm *.ttf
110 - popd >/dev/null
111 -
112 - pushd ${PN}-type1-${TYPE1_PV}
113 - mv *.afm *.pfa "${FONT_S}"
114 - popd >/dev/null
115 -
116 - pushd ${PN}-src-${PV}
117 - for f in *.sfd; do
118 - "${WORKDIR}"/${PN}-src-${PV}/GenerateTTF.pe ${f} "${FONT_S}" || die
119 - done
120 - popd >/dev/null
121 -
122 - if use ancient; then
123 - pushd ${MY_A_P}/src
124 - export FONTFORGE_LANGUAGE=ff
125 - make clean
126 - make all || die "Failed to build fonts"
127 - mv *.ttf "${FONT_S}"
128 - popd >/dev/null
129 - fi
130 -
131 - if use taamey; then
132 - for font in ${TAAMEY_FONTS}; do
133 - rm -rf ${font}/TTF
134 - pushd ${font}/SFD
135 - for f in *.sfd; do
136 - "${WORKDIR}"/${PN}-src-${PV}/GenerateTTF.pe ${f} "${FONT_S}" || die
137 - done
138 - popd >/dev/null
139 - done
140 - fi
141 - else
142 - pushd ${P}
143 - mv *.afm *.pfa *.ttf "${FONT_S}"
144 - popd >/dev/null
145 -
146 - pushd ${PN}-type1-${TYPE1_PV}
147 - mv *.afm *.pfa "${FONT_S}"
148 - popd >/dev/null
149 -
150 - if use ancient; then
151 - pushd ${MY_A_P}$(use fontforge || echo .TTF)/fonts
152 - mv *.ttf "${FONT_S}"
153 - popd >/dev/null
154 - fi
155 -
156 - if use taamey; then
157 - for font in ${TAAMEY_FONTS}; do
158 - pushd ${font}/TTF
159 - mv *.ttf "${FONT_S}"
160 - popd >/dev/null
161 - done
162 - fi
163 - fi
164 -
165 - use fancy && mv *.afm *.pfa *.ttf "${FONT_S}"
166 -}
167 -
168 -src_install() {
169 - FONT_SUFFIX="pfa afm $((use fancy || use taamey) && echo ttf)" \
170 - font_src_install
171 -
172 - rm -rf "${FONT_S}"
173 - find "${WORKDIR}" -name '*.ttf' -o -name '*.pfa' -o -name '*.pfm' |
174 - while read font; do
175 - ewarn "QA: missed font file: ${font}"
176 - done
177 -
178 - pushd ${PN}$(use fontforge && echo -src)-${PV}
179 - dodoc CHANGES || die
180 - popd >/dev/null
181 -
182 - if use ancient; then
183 - pushd "${WORKDIR}/${MY_A_P}$(use fontforge || echo .TTF)/"
184 - newdoc CHANGES{,.ancient} || die
185 - newdoc README{,.ancient} || die
186 - popd >/dev/null
187 - fi
188 -
189 - if use taamey; then
190 - for font in ${TAAMEY_FONTS}; do
191 - pushd ${font}
192 - [[ -f ChangeLog ]] && { newdoc ChangeLog{,.${font}} || die; }
193 - newdoc README{,.${font}} || die
194 - insinto /usr/share/doc/${PF}/${font}
195 - doins -r Samples
196 - popd >/dev/null
197 - done
198 - fi
199 -}
200
201 diff --git a/media-fonts/culmus/culmus-0.120-r5.ebuild b/media-fonts/culmus/culmus-0.120-r5.ebuild
202 index a1fae8a819a..459dcc39ef6 100644
203 --- a/media-fonts/culmus/culmus-0.120-r5.ebuild
204 +++ b/media-fonts/culmus/culmus-0.120-r5.ebuild
205 @@ -36,7 +36,7 @@ SRC_URI+=" taamey? ( $(printf "http://culmus.sourceforge.net/taamim/%s.zip " ${T
206
207 LICENSE="|| ( GPL-2 LICENSE-BITSTREAM ) ancient? ( MIT ) fancy? ( GPL-2 )"
208 SLOT="0"
209 -KEYWORDS="alpha amd64 ~arm ~hppa ia64 ppc ppc64 s390 ~sh sparc x86 ~x86-fbsd"
210 +KEYWORDS="alpha amd64 arm ~hppa ia64 ppc ppc64 s390 ~sh sparc x86 ~x86-fbsd"
211 IUSE="ancient fancy fontforge taamey"
212
213 FONT_CONF=( "${T}/65-culmus.conf" )