1 |
matsuu 07/12/31 14:18:51 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ptex-3.1.10_p20071214.ebuild |
5 |
Removed: ptex-3.1.8.1_p20050418.ebuild ptex-3.1.5-r2.ebuild |
6 |
ptex-3.1.10_p20071122.ebuild |
7 |
ptex-3.1.10_beta3.ebuild |
8 |
Log: |
9 |
Version bumped. |
10 |
(Portage version: 2.1.3.19) |
11 |
|
12 |
Revision Changes Path |
13 |
1.75 app-text/ptex/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ChangeLog?rev=1.75&view=markup |
16 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ChangeLog?rev=1.75&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ChangeLog?r1=1.74&r2=1.75 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v |
22 |
retrieving revision 1.74 |
23 |
retrieving revision 1.75 |
24 |
diff -u -r1.74 -r1.75 |
25 |
--- ChangeLog 25 Dec 2007 17:04:35 -0000 1.74 |
26 |
+++ ChangeLog 31 Dec 2007 14:18:51 -0000 1.75 |
27 |
@@ -1,6 +1,15 @@ |
28 |
# ChangeLog for app-text/ptex |
29 |
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v 1.74 2007/12/25 17:04:35 phreak Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v 1.75 2007/12/31 14:18:51 matsuu Exp $ |
32 |
+ |
33 |
+*ptex-3.1.10_p20071214 (31 Dec 2007) |
34 |
+ |
35 |
+ 31 Dec 2007; MATSUU Takuto <matsuu@g.o> |
36 |
+ -files/ptex-3.1.10_p20071122-gentoo.patch, -ptex-3.1.5-r2.ebuild, |
37 |
+ -ptex-3.1.8.1_p20050418.ebuild, -ptex-3.1.10_beta3.ebuild, |
38 |
+ -ptex-3.1.10_p20071122.ebuild, +ptex-3.1.10_p20071214.ebuild: |
39 |
+ Version bumped. |
40 |
+ Removed old versions. |
41 |
|
42 |
25 Dec 2007; Christian Heim <phreak@g.o> metadata.xml: |
43 |
Removing usata from metadata.xml as per #22931. |
44 |
|
45 |
|
46 |
|
47 |
1.1 app-text/ptex/ptex-3.1.10_p20071214.ebuild |
48 |
|
49 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071214.ebuild?rev=1.1&view=markup |
50 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071214.ebuild?rev=1.1&content-type=text/plain |
51 |
|
52 |
Index: ptex-3.1.10_p20071214.ebuild |
53 |
=================================================================== |
54 |
# Copyright 1999-2007 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071214.ebuild,v 1.1 2007/12/31 14:18:51 matsuu Exp $ |
57 |
|
58 |
TETEX_PV=3.0_p1 |
59 |
|
60 |
inherit eutils tetex-3 flag-o-matic autotools multilib |
61 |
|
62 |
SMALL_PV="${TETEX_PV/_p*}" |
63 |
TETEX_TEXMF_PV="${SMALL_PV}" |
64 |
TETEX_S="${WORKDIR}/tetex-src-${SMALL_PV}" |
65 |
|
66 |
DESCRIPTION="TeX distribution teTeX with Japanese patch collection 'ptetex3'" |
67 |
HOMEPAGE="http://www.nn.iij4u.or.jp/~tutimura/tex/ptetex.html" |
68 |
|
69 |
#TETEX_SRC="tetex-src-${TETEX_PV}.tar.gz" |
70 |
TETEX_SRC="tetex-src-${SMALL_PV}.tar.gz" |
71 |
TETEX_TEXMF="tetex-texmf-${TETEX_TEXMF_PV:-${TETEX_PV}}" |
72 |
TETEX_TEXMF_SRC="tetex-texmf-${TETEX_TEXMF_PV:-${TETEX_PV}}po.tar.gz" |
73 |
PTETEX="ptetex3-${PV/*_p}" |
74 |
PTETEX_CMAP="ptetex-cmap-20051117" |
75 |
|
76 |
SRC_PATH_TETEX="ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/3.0/distrib" |
77 |
SRC_URI="${SRC_PATH_TETEX}/${TETEX_SRC} |
78 |
${SRC_PATH_TETEX}/${TETEX_TEXMF_SRC} |
79 |
http://tutimura.ath.cx/~nob/tex/ptetex/ptetex3/${PTETEX}.tar.gz |
80 |
http://tutimura.ath.cx/~nob/tex/ptetex/ptetex-cmap/${PTETEX_CMAP}.tar.gz |
81 |
mirror://gentoo/${PN}-3.1.10_p20071122-dviljk-security-fixes.patch.bz2" |
82 |
# mirror://gentoo/tetex-${TETEX_PV}-gentoo.tar.gz |
83 |
|
84 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" |
85 |
|
86 |
BUILD_DIR="${WORKDIR}/build/usr" |
87 |
|
88 |
LICENSE="GPL-2 BSD" |
89 |
IUSE="X motif lesstif Xaw3d neXt iconv unicode" |
90 |
|
91 |
DEPEND="!app-text/tetex |
92 |
!<app-text/ptetex-3.1.9 |
93 |
!app-text/dvipdfmx |
94 |
!app-text/xdvik |
95 |
media-libs/t1lib |
96 |
media-libs/gd |
97 |
X? ( |
98 |
>=media-libs/freetype-2.3.4 |
99 |
|| ( |
100 |
media-fonts/ja-ipafonts |
101 |
media-fonts/ipamonafont |
102 |
media-fonts/vlgothic |
103 |
media-fonts/sazanami |
104 |
media-fonts/kochi-substitute |
105 |
) |
106 |
)" |
107 |
|
108 |
S="${WORKDIR}/${PTETEX}" |
109 |
|
110 |
# Sorry this provides tetex again... |
111 |
PROVIDE="virtual/tetex" |
112 |
|
113 |
src_unpack() { |
114 |
#tetex-3_src_unpack |
115 |
mkdir -p "${WORKDIR}/${TETEX_TEXMF}" |
116 |
cd "${WORKDIR}/${TETEX_TEXMF}" |
117 |
unpack ${TETEX_TEXMF_SRC} |
118 |
cd "${WORKDIR}" |
119 |
unpack ${TETEX_SRC} |
120 |
cd "${WORKDIR}" |
121 |
unpack ${PN}-3.1.10_p20071122-dviljk-security-fixes.patch.bz2 |
122 |
unpack ${PTETEX}.tar.gz |
123 |
unpack ${PTETEX_CMAP}.tar.gz |
124 |
echo ">>> Unpacking jis and morisawa fonts ..." |
125 |
tar xzf "${WORKDIR}"/${PTETEX}/archive/jis.tar.gz -C "${WORKDIR}" || die |
126 |
tar xzf "${WORKDIR}"/${PTETEX}/archive/morisawa.tar.gz -C "${WORKDIR}" || die |
127 |
|
128 |
# Gentoo box reserves variable ${P}!! |
129 |
cd "${S}" |
130 |
epatch "${FILESDIR}"/${PN}-3.1.10_p20071203-gentoo.patch |
131 |
|
132 |
cat <<EOF > "${S}"/my_option |
133 |
SRC_DIR="${WORKDIR}" |
134 |
TMP_PREFIX="${BUILD_DIR}" |
135 |
PREFIX=/usr |
136 |
DATADIR=/usr/share |
137 |
TEXMFDIST="${WORKDIR}/${TETEX_TEXMF}" |
138 |
TEXSRC_EXTRACTED="${WORKDIR}" |
139 |
#make_option vartexfonts=/var/lib/texmf |
140 |
make_option vartexfonts="${T}/texfonts" |
141 |
make_option CC="$(tc-getCC)" |
142 |
make_option CXX="$(tc-getCXX)" |
143 |
JAPANESE=international |
144 |
XDVI=echo |
145 |
PXDVI=echo |
146 |
PLATEX209=no |
147 |
conf_option --without-dviljk |
148 |
conf_option --without-dvipng |
149 |
conf_option --without-info |
150 |
conf_option --without-texi2html |
151 |
conf_option --without-texinfo |
152 |
|
153 |
conf_option --with-system-zlib |
154 |
conf_option --with-system-pnglib |
155 |
conf_option --with-system-gd |
156 |
conf_option --with-system-ncurses |
157 |
conf_option --with-system-t1lib |
158 |
conf_option --enable-shared |
159 |
EOF |
160 |
|
161 |
if use iconv ; then |
162 |
echo "conf_option --enable-kanji-iconv" >> "${S}"/my_option |
163 |
fi |
164 |
|
165 |
if use unicode ; then |
166 |
echo "KANJI_CODE=UTF8" >> "${S}"/my_option |
167 |
else |
168 |
echo "KANJI_CODE=EUC" >> "${S}"/my_option |
169 |
fi |
170 |
|
171 |
# copied from tetex-3.eclass and modified |
172 |
if use X ; then |
173 |
if use motif ; then |
174 |
append-ldflags $(motif-config --libs) |
175 |
export CPPFLAGS="${CPPFLAGS} $(motif-config --cflags)" |
176 |
toolkit="motif" |
177 |
elif use neXt ; then |
178 |
toolkit="neXtaw" |
179 |
elif use Xaw3d ; then |
180 |
toolkit="xaw3d" |
181 |
else |
182 |
toolkit="xaw" |
183 |
fi |
184 |
append-ldflags $(freetype-config --libs) |
185 |
echo "export CPPFLAGS=\"${CPPFLAGS} $(freetype-config --cflags)\"" >> "${S}"/my_option |
186 |
echo "conf_option --with-xdvi-x-toolkit=${toolkit}" >> "${S}"/my_option |
187 |
else |
188 |
echo "conf_option --without-x" >> "${S}"/my_option |
189 |
echo "conf_option --without-xdvik" >> "${S}"/my_option |
190 |
echo "conf_option --without-pxdvik" >> "${S}"/my_option |
191 |
fi |
192 |
|
193 |
cd "${S}" |
194 |
unset TEXMFMAIN TEXMF HOME |
195 |
emake -j1 x || die "emake x failed" |
196 |
|
197 |
cd "${TETEX_S}" |
198 |
|
199 |
epatch "${FILESDIR}/tetex-${SMALL_PV}-kpathsea-pic.patch" |
200 |
|
201 |
# bug 85404 |
202 |
epatch "${FILESDIR}/${PN}-3.1.10_p20071122-epstopdf-wrong-rotation.patch" |
203 |
|
204 |
# ptetex included |
205 |
#epatch "${FILESDIR}/tetex-${TETEX_PV}-amd64-xdvik-wp.patch" |
206 |
epatch "${FILESDIR}/tetex-${TETEX_PV}-mptest.patch" |
207 |
|
208 |
#bug 98029 |
209 |
# no need |
210 |
#epatch "${FILESDIR}/${PN}-3.1.10_p20071122-fmtutil-etex.patch" |
211 |
|
212 |
#bug 115775 |
213 |
# ptex included |
214 |
#epatch "${FILESDIR}/tetex-${TETEX_PV}-xpdf-vulnerabilities.patch" |
215 |
|
216 |
# bug 94860 |
217 |
epatch "${FILESDIR}/${PN}-3.1.10_p20071122-pdftosrc-install.patch" |
218 |
|
219 |
# bug 126918 |
220 |
epatch "${FILESDIR}/tetex-${TETEX_PV}-create-empty-files.patch" |
221 |
|
222 |
# bug 94901 |
223 |
epatch "${FILESDIR}/tetex-${TETEX_PV}-dvipdfm-timezone.patch" |
224 |
|
225 |
# security bug #170861 |
226 |
# ptetex included |
227 |
# epatch "${FILESDIR}/tetex-${TETEX_PV}-CVE-2007-0650.patch" |
228 |
|
229 |
# security bug #188172 |
230 |
# ptetex included |
231 |
#epatch "${FILESDIR}/tetex-${TETEX_PV}-xpdf-CVE-2007-3387.patch" |
232 |
|
233 |
# security bug #198238 |
234 |
epatch "${FILESDIR}/tetex-${TETEX_PV}-dvips_bufferoverflow.patch" |
235 |
|
236 |
# securty bug #196735 |
237 |
epatch "${FILESDIR}/xpdf-3.02pl2.patch" |
238 |
|
239 |
# Construct a Gentoo site texmf directory |
240 |
# that overlays the upstream supplied |
241 |
# target not found |
242 |
#epatch "${FILESDIR}/tetex-${TETEX_PV}-texmf-site.patch" |
243 |
|
244 |
# security bug #198238 |
245 |
epatch "${WORKDIR}/${PN}-3.1.10_p20071122-dviljk-security-fixes.patch" |
246 |
|
247 |
# security bug #198238 and bug #193437 |
248 |
epatch "${FILESDIR}/tetex-${TETEX_PV}-t1lib-SA26241_buffer_overflow.patch" |
249 |
|
250 |
cd "${TETEX_S}/texk/dviljk" |
251 |
eautoreconf |
252 |
} |
253 |
|
254 |
src_compile() { |
255 |
unset TEXMFMAIN TEXMF HOME |
256 |
|
257 |
emake -j1 c || die "emake c failed" |
258 |
emake -j1 macro || die "emake macro failed" |
259 |
emake -j1 otf || die "emake otf failed" |
260 |
emake -j1 fonty || die "emake fonty failed" |
261 |
emake -j1 babel || die "emake babel failed" |
262 |
|
263 |
einfo "Setting ptetex-cmap ..." |
264 |
cd "${WORKDIR}/${PTETEX_CMAP}" |
265 |
PATH="${BUILD_DIR}/bin:$PATH" ./setup.sh "${BUILD_DIR}"/share/texmf/fonts/cmap |
266 |
} |
267 |
|
268 |
src_test() { |
269 |
emake -j1 test || die "emake test failed" |
270 |
} |
271 |
|
272 |
src_install() { |
273 |
#tetex-3_src_install |
274 |
einfo "Installing ptetex3 binaries ..." |
275 |
dobin "${BUILD_DIR}"/bin/* |
276 |
dolib "${BUILD_DIR}"/lib/* |
277 |
|
278 |
einfo "Installing /usr/include/* files ..." |
279 |
insinto /usr/include |
280 |
doins -r "${BUILD_DIR}"/include/* |
281 |
|
282 |
einfo "Installing /usr/share/* files ..." |
283 |
insinto /usr/share |
284 |
#doins -r "${BUILD_DIR}"/share/* |
285 |
cp -dr "${BUILD_DIR}"/share/* "${D}"/usr/share |
286 |
|
287 |
einfo "Installing document files ..." |
288 |
doman "${BUILD_DIR}"/man/*/* |
289 |
doinfo "${BUILD_DIR}"/info/* |
290 |
|
291 |
einfo "Installing jis and morisawa fonts ..." |
292 |
insinto /usr/share/texmf/fonts/tfm |
293 |
doins -r "${WORKDIR}"/jis/tfm/* || die "installing jis/tfm failed" |
294 |
doins -r "${WORKDIR}"/morisawa/tfm/* || die "installing morisawa/tfm failed" |
295 |
|
296 |
einfo "Installing texmf files ..." |
297 |
find "${WORKDIR}"/${TETEX_TEXMF} -maxdepth 1 -mindepth 1 -type f | xargs rm -f |
298 |
insinto /usr/share/texmf |
299 |
doins -r "${WORKDIR}"/${TETEX_TEXMF}/* |
300 |
|
301 |
einfo "Installing other files ..." |
302 |
insinto /usr/share/texmf/fonts/map/dvips/tetex |
303 |
doins "${WORKDIR}"/${TETEX_S}/texk/pdvipsk/psfonts_jp.map |
304 |
#insinto /var/lib/texmf/web2c |
305 |
insinto /usr/share/texmf/web2c |
306 |
doins -r "${BUILD_DIR}"/share/texmf-config/web2c/* |
307 |
doins -r "${BUILD_DIR}"/share/texmf-var/web2c/*.fmt |
308 |
|
309 |
einfo "Removing unnecessary files ..." |
310 |
rm -r "${D}"/usr/share/texmf/doc |
311 |
#rm -r "${D}"/usr/share/texmf-config |
312 |
#rm -r "${D}"/usr/share/texmf-var |
313 |
rm -r "${D}"/usr/share/texmf/web2c/texmf.cnf.* |
314 |
rm -r "${D}"/usr/share/texmf/web2c/fmtutil.cnf.* |
315 |
rm -r "${D}"/usr/info/dir |
316 |
find "${D}"/usr/share/texmf | grep "ls-R" | xargs rm -f |
317 |
|
318 |
einfo "Installing texmf-update scripte ..." |
319 |
dosbin "${FILESDIR}"/texmf-update |
320 |
#einfo "Making ls-R files ..." |
321 |
#TEXMF="${D}"/usr/share/texmf "${D}"/usr/bin/mktexlsr || die |
322 |
} |
323 |
|
324 |
pkg_postinst() { |
325 |
tetex-3_pkg_postinst |
326 |
|
327 |
elog |
328 |
elog "Japanese dvips and xdvi have been renamed to pdvipsk and pxdvik." |
329 |
#elog "You also need to emerge app-text/dvipdfmx to convert dvi into PDF." |
330 |
elog |
331 |
} |
332 |
|
333 |
|
334 |
|
335 |
-- |
336 |
gentoo-commits@g.o mailing list |