Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-tex/cjk-latex: ChangeLog cjk-latex-4.8.4.ebuild
Date: Wed, 29 Apr 2015 15:38:43
Message-Id: 20150429153833.3F8619AB@oystercatcher.gentoo.org
1 aballier 15/04/29 15:38:32
2
3 Modified: ChangeLog
4 Added: cjk-latex-4.8.4.ebuild
5 Log:
6 version bump
7
8 Signed-off-by: Alexis Ballier <aballier@g.o>
9 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
10
11 Revision Changes Path
12 1.71 dev-tex/cjk-latex/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tex/cjk-latex/ChangeLog?rev=1.71&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tex/cjk-latex/ChangeLog?rev=1.71&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tex/cjk-latex/ChangeLog?r1=1.70&r2=1.71
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-tex/cjk-latex/ChangeLog,v
21 retrieving revision 1.70
22 retrieving revision 1.71
23 diff -u -r1.70 -r1.71
24 --- ChangeLog 26 Jan 2014 12:12:39 -0000 1.70
25 +++ ChangeLog 29 Apr 2015 15:38:32 -0000 1.71
26 @@ -1,6 +1,11 @@
27 # ChangeLog for dev-tex/cjk-latex
28 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-tex/cjk-latex/ChangeLog,v 1.70 2014/01/26 12:12:39 ago Exp $
30 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/dev-tex/cjk-latex/ChangeLog,v 1.71 2015/04/29 15:38:32 aballier Exp $
32 +
33 +*cjk-latex-4.8.4 (29 Apr 2015)
34 +
35 + 29 Apr 2015; Alexis Ballier <aballier@g.o> +cjk-latex-4.8.4.ebuild:
36 + version bump
37
38 26 Jan 2014; Agostino Sarubbo <ago@g.o> cjk-latex-4.8.3-r1.ebuild:
39 Stable for sparc, wrt bug #495650
40
41
42
43 1.1 dev-tex/cjk-latex/cjk-latex-4.8.4.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tex/cjk-latex/cjk-latex-4.8.4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tex/cjk-latex/cjk-latex-4.8.4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: cjk-latex-4.8.4.ebuild
49 ===================================================================
50 # Copyright 1999-2015 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-tex/cjk-latex/cjk-latex-4.8.4.ebuild,v 1.1 2015/04/29 15:38:32 aballier Exp $
53
54 EAPI=4
55
56 inherit latex-package elisp-common toolchain-funcs multilib eutils
57
58 MY_P="${P/-latex/}"
59
60 DESCRIPTION="A LaTeX 2e macro package which enables the use of CJK scripts in various encodings"
61 HOMEPAGE="http://cjk.ffii.org/"
62 # fonts are taken from ftp://ftp.ctan.org/tex-archive/fonts/CJK.zip
63 SRC_URI="ftp://ftp.ffii.org/pub/cjk/${MY_P}.tar.gz
64 mirror://gentoo/${MY_P}-fonts.zip
65 doc? ( ftp://ftp.ffii.org/pub/cjk/${MY_P}-doc.tar.gz )"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
70 IUSE="doc emacs"
71
72 DEPEND="virtual/latex-base
73 emacs? ( virtual/emacs )"
74 RDEPEND="${DEPEND}
75 app-arch/unzip"
76
77 S="${WORKDIR}/${MY_P}"
78
79 src_prepare() {
80 for i in "${WORKDIR}"/CJK/*.tar.gz; do
81 tar -xzf ${i} || die "failed to unpack $i"
82 done
83 find texmf/fonts/hbf -type f -exec cp {} "${T}" \; || die
84 sed -i -e "/^pk_files/s/no/yes/" \
85 -e "/^dpi_x/s/300/500/" \
86 texmf/hbf2gf/*.cfg || die
87 }
88
89 src_configure() {
90 cd utils
91 for d in *conv; do
92 cd $d
93 local f=`echo $d | tr '[:upper:]' '[:lower:]'`
94 echo "all: $f" >> Makefile
95 if [ $d = CEFconv ] ; then
96 echo "all: cef5conv cefsconv" >> Makefile
97 fi
98 cd -
99 done
100 cd hbf2gf
101 econf --with-kpathsea-lib="${EPREFIX}"/usr/$(get_libdir) \
102 --with-kpathsea-include="${EPREFIX}"/usr/include/kpathsea
103 }
104
105 src_compile() {
106 tc-export CC
107 cd utils
108 for d in *conv; do
109 cd $d
110 emake || die
111 cd -
112 done
113 cd hbf2gf
114 emake || die
115 cd -
116
117 if use emacs ; then
118 cd lisp
119 elisp-compile *.el
120 cd emacs
121 elisp-compile *.el
122 cd ../mule-2.3
123 elisp-compile *.el
124 fi
125
126 cd "${T}"
127
128 for f in "${S}"/texmf/hbf2gf/*.cfg ; do
129 env TEXMFCNF="${EPREFIX}/etc/texmf/web2c" HBF_TARGET="${S}/texmf/fonts" "${S}/utils/hbf2gf/hbf2gf" $f || die
130 done
131
132 einfo "Generating pk fonts"
133 for gf in *.gf ; do
134 einfo "${gf}"
135 gftopk $gf || die
136 done
137 }
138
139 src_install() {
140 cd utils
141 for d in *conv; do
142 cd $d
143 local f=`echo $d | tr '[:upper:]' '[:lower:]'`
144 dobin *latex *conv
145 doman *.1
146 cd -
147 done
148 cd hbf2gf
149 einstall || die "einstall failed"
150
151 cd "${S}"
152
153 # Install pk fonts
154 pushd texmf &>/dev/null
155 for d in fonts/pk/modeless/*/* ; do
156 insinto ${TEXMF}/${d}
157 for f in "${T}"/${d##*/}*.pk ; do
158 newins $f `basename ${f/.pk/.500pk}` || die "newins failed"
159 done
160 done
161 popd &>/dev/null
162
163 insinto "${TEXMF}/tex/latex/${PN}"
164 doins -r texinput/* || die "installing texinput files failed"
165 doins -r contrib/wadalab || die "installing wadalab failed"
166
167 if use emacs ; then
168 cd utils/lisp
169 elisp-install ${PN} *.el{,c} emacs/*.el{,c} mule-2.3/*.el{,c}
170 fi
171
172 cd "${S}"
173
174 # uwpatch stuff
175 insinto ${TEXMF}/scripts/uwpatch
176 doins uwpatch/uwpatchold.sh
177 insinto ${TEXMF}/fonts/afm/uwpatch
178 doins uwpatch/*.afm
179
180 # jisksp40 stuff
181 insinto ${TEXMF}
182 doins -r jisksp40/texmf/*
183
184 # kanji48 stuff
185 insinto ${TEXMF}
186 doins -r kanji48/texmf/*
187
188 use doc || rm -rf texmf/doc
189 insinto ${TEXMF}
190 doins -r texmf/* || die "installing texmf failed"
191
192 # Move fonts because hbf2gf expects them in MISCFONTS
193 mv "${ED}/${TEXMF}/fonts/hbf" "${ED}/${TEXMF}/fonts/misc" || die "mv font failed"
194
195 insinto ${TEXMF}/hbf2gf
196 doins utils/hbf2gf/cfg/*
197
198 insinto ${TEXMF}/scripts/subfonts
199 doins utils/subfonts/*
200
201 rm -f doc/COPYING doc/INSTALL
202 dodoc ChangeLog README
203 if use doc ; then
204 insinto /usr/share/doc/${PF}
205 doins -r doc/*
206 doins -r examples
207 fi
208 docinto uwpatch
209 dodoc uwpatch/README
210 }