Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-fonts/culmus: culmus-0.120-r2.ebuild ChangeLog culmus-0.105-r2.ebuild culmus-0.110.ebuild culmus-0.105-r1.ebuild
Date: Sat, 03 Sep 2011 11:37:28
Message-Id: 20110903113716.275A820051@flycatcher.gentoo.org
1 pva 11/09/03 11:37:16
2
3 Modified: ChangeLog
4 Added: culmus-0.120-r2.ebuild
5 Removed: culmus-0.105-r2.ebuild culmus-0.110.ebuild
6 culmus-0.105-r1.ebuild
7 Log:
8 Bump revision to update dorian fonts. Drop old.
9
10 (Portage version: 2.1.10.11/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.68 media-fonts/culmus/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-fonts/culmus/ChangeLog?rev=1.68&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-fonts/culmus/ChangeLog?rev=1.68&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-fonts/culmus/ChangeLog?r1=1.67&r2=1.68
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/media-fonts/culmus/ChangeLog,v
22 retrieving revision 1.67
23 retrieving revision 1.68
24 diff -u -r1.67 -r1.68
25 --- ChangeLog 7 Aug 2011 17:40:39 -0000 1.67
26 +++ ChangeLog 3 Sep 2011 11:37:16 -0000 1.68
27 @@ -1,6 +1,12 @@
28 # ChangeLog for media-fonts/culmus
29 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/media-fonts/culmus/ChangeLog,v 1.67 2011/08/07 17:40:39 armin76 Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/media-fonts/culmus/ChangeLog,v 1.68 2011/09/03 11:37:16 pva Exp $
32 +
33 +*culmus-0.120-r2 (03 Sep 2011)
34 +
35 + 03 Sep 2011; Peter Volkov <pva@g.o> -culmus-0.105-r1.ebuild,
36 + -culmus-0.105-r2.ebuild, -culmus-0.110.ebuild, +culmus-0.120-r2.ebuild:
37 + Bump revision to update dorian fonts. Drop old.
38
39 07 Aug 2011; Raúl Porcel <armin76@g.o> culmus-0.120-r1.ebuild:
40 alpha/arm/ia64/s390/sh/sparc stable wrt #376347
41
42
43
44 1.1 media-fonts/culmus/culmus-0.120-r2.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-fonts/culmus/culmus-0.120-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-fonts/culmus/culmus-0.120-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: culmus-0.120-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2011 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/media-fonts/culmus/culmus-0.120-r2.ebuild,v 1.1 2011/09/03 11:37:16 pva Exp $
54
55 EAPI="2"
56
57 inherit font
58
59 # Maintainer: also check culmus.conf file in ${P}.tar.gz
60
61 MY_A_P=AncientSemiticFonts-0.06-1
62 # The Type 1 fonts are just a stripped version of TrueType fonts and they are
63 # not updated unless there is a meaningful change and we need them for
64 # culmus-latex, see bug #350657
65 TYPE1_PV=0.105
66
67 DESCRIPTION="Hebrew Type1 fonts"
68 HOMEPAGE="http://culmus.sourceforge.net/"
69
70 FANCY_FONTS="journal hillel anka comix gan ozrad ktav-yad dorian gladia"
71 FANCY_YG_FONTS="ShmuelCLM MakabiYG"
72 TAAMEY_FONTS="TaameyDavidCLM TaameyFrankCLM KeterAramTsova KeterYG"
73
74 SRC_URI="mirror://sourceforge/culmus/${P}.tar.gz
75 mirror://sourceforge/culmus/${PN}-type1-${TYPE1_PV}.tar.gz
76 fontforge? ( mirror://sourceforge/culmus/${PN}-src-${PV}.tar.gz )
77 ancient? ( !fontforge? ( mirror://sourceforge/culmus/${MY_A_P}.TTF.tgz )
78 fontforge? ( mirror://sourceforge/culmus/${MY_A_P}.tgz ) )"
79 SRC_URI+=" fancy? ( $(printf "http://culmus.sourceforge.net/fancy/%s.tar.gz " ${FANCY_FONTS}) )"
80 SRC_URI+=" fancy? ( $(printf "http://culmus.sourceforge.net/fancy-yg/%s.zip " ${FANCY_YG_FONTS}) )"
81 SRC_URI+=" taamey? ( $(printf "http://culmus.sourceforge.net/taamim/%s.zip " ${TAAMEY_FONTS}) )"
82
83 # Some fonts are available in otf format too. Do we need them?
84 # http://culmus.sourceforge.net/fancy/anka-otf.zip
85 # http://culmus.sourceforge.net/fancy/hillel-otf.zip
86 # http://culmus.sourceforge.net/fancy/journal-otf.zip
87
88 LICENSE="|| ( GPL-2 LICENSE-BITSTREAM ) ancient? ( MIT ) fancy? ( GPL-2 )"
89 SLOT="0"
90 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
91 IUSE="ancient fancy fontforge taamey"
92
93 FONT_CONF=( "${FILESDIR}/65-culmus.conf" )
94
95 RDEPEND="!media-fonts/culmus-ancient"
96 DEPEND="${RDEPEND}
97 fontforge? ( media-gfx/fontforge )"
98
99 S=${WORKDIR}
100 # Put all fonts, generated or not here
101 FONT_S=${S}/FONTS
102
103 src_unpack() {
104 unpack ${P}.tar.gz # For type1 fonts...
105 unpack ${PN}-type1-${TYPE1_PV}.tar.gz
106 use fontforge && unpack ${PN}-src-${PV}.tar.gz
107
108 use ancient && unpack ${MY_A_P}$(use fontforge || echo .TTF).tgz
109
110 if use fancy; then
111 unpack $(printf "%s.tar.gz " ${FANCY_FONTS})
112 unpack $(printf "%s.zip " ${FANCY_YG_FONTS})
113 mv TTF/* .
114 fi
115
116 if use taamey; then
117 for font in ${TAAMEY_FONTS}; do
118 mkdir ${font}
119 pushd ${font}
120 unpack ${font}.zip
121 popd >/dev/null
122 done
123 fi
124 }
125
126 src_compile() {
127 mkdir -p "${FONT_S}"
128 if use fontforge; then
129 pushd ${P}
130 mv *.afm *.pfa "${FONT_S}"
131 rm *.ttf
132 popd >/dev/null
133
134 pushd ${PN}-type1-${TYPE1_PV}
135 mv *.afm *.pfa "${FONT_S}"
136 popd >/dev/null
137
138 pushd ${PN}-src-${PV}
139 for f in *.sfd; do
140 "${WORKDIR}"/${PN}-src-${PV}/GenerateTTF.pe ${f} "${FONT_S}" || die
141 done
142 popd >/dev/null
143
144 if use ancient; then
145 pushd ${MY_A_P}/src
146 export FONTFORGE_LANGUAGE=ff
147 make clean
148 make all || die "Failed to build fonts"
149 mv *.ttf "${FONT_S}"
150 popd >/dev/null
151 fi
152
153 if use taamey; then
154 for font in ${TAAMEY_FONTS}; do
155 rm -rf ${font}/TTF
156 pushd ${font}/SFD
157 for f in *.sfd; do
158 "${WORKDIR}"/${PN}-src-${PV}/GenerateTTF.pe ${f} "${FONT_S}" || die
159 done
160 popd >/dev/null
161 done
162 fi
163 else
164 pushd ${P}
165 mv *.afm *.pfa *.ttf "${FONT_S}"
166 popd >/dev/null
167
168 pushd ${PN}-type1-${TYPE1_PV}
169 mv *.afm *.pfa "${FONT_S}"
170 popd >/dev/null
171
172 if use ancient; then
173 pushd ${MY_A_P}$(use fontforge || echo .TTF)/fonts
174 mv *.ttf "${FONT_S}"
175 popd >/dev/null
176 fi
177
178 if use taamey; then
179 for font in ${TAAMEY_FONTS}; do
180 pushd ${font}/TTF
181 mv *.ttf "${FONT_S}"
182 popd >/dev/null
183 done
184 fi
185 fi
186
187 use fancy && mv *.afm *.pfa *.ttf "${FONT_S}"
188 }
189
190 src_install() {
191 FONT_SUFFIX="pfa $(use fancy && echo afm ttf)" \
192 font_src_install
193
194 rm -rf "${FONT_S}"
195 find "${WORKDIR}" -name '*.ttf' -o -name '*.pfa' -o -name '*.pfm' |
196 while read font; do
197 ewarn "QA: missed font file: ${font}"
198 done
199
200 pushd ${PN}$(use fontforge && echo -src)-${PV}
201 dodoc CHANGES || die
202 popd >/dev/null
203
204 if use ancient; then
205 pushd "${WORKDIR}/${MY_A_P}$(use fontforge || echo .TTF)/"
206 newdoc CHANGES{,.ancient} || die
207 newdoc README{,.ancient} || die
208 popd >/dev/null
209 fi
210
211 if use taamey; then
212 for font in ${TAAMEY_FONTS}; do
213 pushd ${font}
214 [[ -f ChangeLog ]] && { newdoc ChangeLog{,.${font}} || die; }
215 newdoc README{,.${font}} || die
216 insinto /usr/share/doc/${PF}/${font}
217 doins -r Samples
218 popd >/dev/null
219 done
220 fi
221 }