summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2007-11-30 14:20:42 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2007-11-30 14:20:42 +0000
commitfe8ed3224cf22b2b84f28b96a7e05369355415f6 (patch)
treefff1c45b079813a795878686ed94a51788a137f8 /app-text/ptex
parentStable for HPPA (bug #200350). (diff)
downloadhistorical-fe8ed3224cf22b2b84f28b96a7e05369355415f6.tar.gz
historical-fe8ed3224cf22b2b84f28b96a7e05369355415f6.tar.bz2
historical-fe8ed3224cf22b2b84f28b96a7e05369355415f6.zip
Version bumped, bug #196342.
Fixed various security issues, bug #196673. Package-Manager: portage-2.1.3.19
Diffstat (limited to 'app-text/ptex')
-rw-r--r--app-text/ptex/ChangeLog20
-rw-r--r--app-text/ptex/Manifest72
-rw-r--r--app-text/ptex/files/digest-ptex-3.1.10_p2007112215
-rw-r--r--app-text/ptex/files/ptex-3.1.10_p20071122-epstopdf-wrong-rotation.patch13
-rw-r--r--app-text/ptex/files/ptex-3.1.10_p20071122-fmtutil-etex.patch13
-rw-r--r--app-text/ptex/files/ptex-3.1.10_p20071122-gentoo.patch118
-rw-r--r--app-text/ptex/files/ptex-3.1.10_p20071122-pdftosrc-install.patch19
-rw-r--r--app-text/ptex/files/tetex-3.0-kpathsea-pic.patch50
-rw-r--r--app-text/ptex/files/tetex-3.0_p1-create-empty-files.patch24
-rw-r--r--app-text/ptex/files/tetex-3.0_p1-dvipdfm-timezone.patch43
-rw-r--r--app-text/ptex/files/tetex-3.0_p1-dvips_bufferoverflow.patch87
-rw-r--r--app-text/ptex/files/tetex-3.0_p1-mptest.patch10
-rw-r--r--app-text/ptex/files/tetex-3.0_p1-t1lib-SA26241_buffer_overflow.patch17
-rw-r--r--app-text/ptex/files/texmf-update60
-rw-r--r--app-text/ptex/ptex-3.1.10_p20071122.ebuild276
15 files changed, 822 insertions, 15 deletions
diff --git a/app-text/ptex/ChangeLog b/app-text/ptex/ChangeLog
index c7e1bab37b63..2d33d9826262 100644
--- a/app-text/ptex/ChangeLog
+++ b/app-text/ptex/ChangeLog
@@ -1,6 +1,24 @@
# ChangeLog for app-text/ptex
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v 1.64 2007/09/02 12:45:40 rbu Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v 1.65 2007/11/30 14:20:42 matsuu Exp $
+
+*ptex-3.1.10_p20071122 (30 Nov 2007)
+
+ 30 Nov 2007; <matsuu@gentoo.org> +files/tetex-3.0-kpathsea-pic.patch,
+ +files/tetex-3.0_p1-create-empty-files.patch,
+ +files/tetex-3.0_p1-dvipdfm-timezone.patch,
+ +files/tetex-3.0_p1-dvips_bufferoverflow.patch,
+ +files/tetex-3.0_p1-mptest.patch,
+ +files/tetex-3.0_p1-t1lib-SA26241_buffer_overflow.patch,
+ +files/ptex-3.1.10_p20071122-epstopdf-wrong-rotation.patch,
+ +files/ptex-3.1.10_p20071122-fmtutil-etex.patch,
+ +files/ptex-3.1.10_p20071122-gentoo.patch,
+ +files/ptex-3.1.10_p20071122-pdftosrc-install.patch, +files/texmf-update,
+ +ptex-3.1.10_p20071122.ebuild:
+ Version bumped. Ebuild submitted by aisomur <aisomur@gmail.com>. bug #196342
+ Fixed various security issue. bug #196673
+ Removed old versions.
+ Dropped ppc-macos keyword, see you in prefix
02 Sep 2007; Robert Buchholz <rbu@gentoo.org>
files/digest-ptex-3.1.8.1_p20050418, files/digest-ptex-3.1.10_beta3,
diff --git a/app-text/ptex/Manifest b/app-text/ptex/Manifest
index 1a8b3b552d10..a85676bd4141 100644
--- a/app-text/ptex/Manifest
+++ b/app-text/ptex/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX 10texmf-ptex.cnf 722 RMD160 073ae8409ccc2e65d2b8e72f87b9a2c843b8f029 SHA1 b7e610c08b4111bec74e7c5ffb571a5ae5b3ed09 SHA256 0acf11028fd530df0fded16c89817875e5c4d1823374af3bc3eedcf73f495453
MD5 02883507686a831b844da77bd0fb2b3a files/10texmf-ptex.cnf 722
RMD160 073ae8409ccc2e65d2b8e72f87b9a2c843b8f029 files/10texmf-ptex.cnf 722
@@ -21,6 +18,22 @@ AUX psfonts-ja.map 1158 RMD160 3e1953fd9d660bba85030ccac2e3aa7de3d68d99 SHA1 354
MD5 d15f2d9ab04bcfa15c3e737f106d1625 files/psfonts-ja.map 1158
RMD160 3e1953fd9d660bba85030ccac2e3aa7de3d68d99 files/psfonts-ja.map 1158
SHA256 fa053893be3695cd0b97a0390cfb64d882899b18b56a8552a1d6ca8c2e16ca5c files/psfonts-ja.map 1158
+AUX ptex-3.1.10_p20071122-epstopdf-wrong-rotation.patch 627 RMD160 73c26696f3efe24271fc609218e85ef332d5611c SHA1 a6c9ed5f9143702da8574c894f927b48232a5775 SHA256 a67a2078d4e320d4a9ef73567b1c8e55aba7a8c6448deed0c1635855c5b778bb
+MD5 0130d108d8ad5f49c37340e2b2ddd349 files/ptex-3.1.10_p20071122-epstopdf-wrong-rotation.patch 627
+RMD160 73c26696f3efe24271fc609218e85ef332d5611c files/ptex-3.1.10_p20071122-epstopdf-wrong-rotation.patch 627
+SHA256 a67a2078d4e320d4a9ef73567b1c8e55aba7a8c6448deed0c1635855c5b778bb files/ptex-3.1.10_p20071122-epstopdf-wrong-rotation.patch 627
+AUX ptex-3.1.10_p20071122-fmtutil-etex.patch 863 RMD160 9759c4c21155d215e9c2e0b850a9c81910cba61d SHA1 225b2fdeb4ac88061bde595c201d6eac83e1eca7 SHA256 1b035213c3f794a518aba4f109cd0aced2d3f7b3826f6609d91b6e87307693e3
+MD5 4a17a4bbbe651b1a47120b020cbf6f35 files/ptex-3.1.10_p20071122-fmtutil-etex.patch 863
+RMD160 9759c4c21155d215e9c2e0b850a9c81910cba61d files/ptex-3.1.10_p20071122-fmtutil-etex.patch 863
+SHA256 1b035213c3f794a518aba4f109cd0aced2d3f7b3826f6609d91b6e87307693e3 files/ptex-3.1.10_p20071122-fmtutil-etex.patch 863
+AUX ptex-3.1.10_p20071122-gentoo.patch 4890 RMD160 54f7fa63bfaadc7fe88c0d01a7937d858ede4254 SHA1 4425701906dd53a1662ceea2a8e2821b5ae70524 SHA256 e095206da7429c9e36d67485f4bbf59558563dab122b3d9e5497646f8116ceea
+MD5 45df9c74659f6d5ce73772c1b8a1f3e5 files/ptex-3.1.10_p20071122-gentoo.patch 4890
+RMD160 54f7fa63bfaadc7fe88c0d01a7937d858ede4254 files/ptex-3.1.10_p20071122-gentoo.patch 4890
+SHA256 e095206da7429c9e36d67485f4bbf59558563dab122b3d9e5497646f8116ceea files/ptex-3.1.10_p20071122-gentoo.patch 4890
+AUX ptex-3.1.10_p20071122-pdftosrc-install.patch 979 RMD160 08544f56b48be70f974d1ab318fdeaa9fcbae362 SHA1 3d7e7875503ee438c950947cef9ca44cc8801c7c SHA256 0f89361cadccbc3a47b525b9138640b7d7ef00544291586d2c760e459743d7cd
+MD5 b1ddcc4956ac28363a9e5247321bc2b8 files/ptex-3.1.10_p20071122-pdftosrc-install.patch 979
+RMD160 08544f56b48be70f974d1ab318fdeaa9fcbae362 files/ptex-3.1.10_p20071122-pdftosrc-install.patch 979
+SHA256 0f89361cadccbc3a47b525b9138640b7d7ef00544291586d2c760e459743d7cd files/ptex-3.1.10_p20071122-pdftosrc-install.patch 979
AUX ptex-3.1.5-dvi-draw-conflicting-types.patch 410 RMD160 8417f8ee01a46fe1c066d7fd2cd20c7f33ab0a52 SHA1 ff903e1b682d320eb10f17da49146e680953c02b SHA256 5f6a525bb57f25a722178716e142a6555058903be0ce3944263b424896941126
MD5 912aea791088e715e491a7ccaa7eb25f files/ptex-3.1.5-dvi-draw-conflicting-types.patch 410
RMD160 8417f8ee01a46fe1c066d7fd2cd20c7f33ab0a52 files/ptex-3.1.5-dvi-draw-conflicting-types.patch 410
@@ -37,6 +50,34 @@ AUX ptex-xdvi-vfontmap-kochi-substitute 3861 RMD160 3b2373cf401c721edc226d98bddc
MD5 bdc751edcbe268c594f37af2f4b62d81 files/ptex-xdvi-vfontmap-kochi-substitute 3861
RMD160 3b2373cf401c721edc226d98bddc428696a4b717 files/ptex-xdvi-vfontmap-kochi-substitute 3861
SHA256 b44de1d20249439e1bf2f115aadf1b5da2ac04b3bc112f3a4ce041f14531fc25 files/ptex-xdvi-vfontmap-kochi-substitute 3861
+AUX tetex-3.0-kpathsea-pic.patch 1791 RMD160 30c7da6951977eab26323509b7034a9a1cb6a809 SHA1 d5a894337e87c04daf2f98fdb3fcdab9cf55c8f2 SHA256 d00020bd51264210be5425d2392e373b9f3964302e4f24401c398f3704631691
+MD5 9d076b2bae179e2870702a15b4c1371d files/tetex-3.0-kpathsea-pic.patch 1791
+RMD160 30c7da6951977eab26323509b7034a9a1cb6a809 files/tetex-3.0-kpathsea-pic.patch 1791
+SHA256 d00020bd51264210be5425d2392e373b9f3964302e4f24401c398f3704631691 files/tetex-3.0-kpathsea-pic.patch 1791
+AUX tetex-3.0_p1-create-empty-files.patch 1171 RMD160 908bfb3dedd721e021fc16c1ed9bee1159e5f947 SHA1 e929b5d8272ae81a65c726f139d4cfe14ea9a4a5 SHA256 3c2efa2cc82fccd5452e3ba49a9207264bcf06d2a4467158f4d5f45bd84b3268
+MD5 bebf79746dd78ee0443b6eb54d799a46 files/tetex-3.0_p1-create-empty-files.patch 1171
+RMD160 908bfb3dedd721e021fc16c1ed9bee1159e5f947 files/tetex-3.0_p1-create-empty-files.patch 1171
+SHA256 3c2efa2cc82fccd5452e3ba49a9207264bcf06d2a4467158f4d5f45bd84b3268 files/tetex-3.0_p1-create-empty-files.patch 1171
+AUX tetex-3.0_p1-dvipdfm-timezone.patch 1546 RMD160 9be8bb58b3be7add25ce30acb4eee08b35c85c5f SHA1 e3824f4fefa52927dda1327fb073c256e700ee14 SHA256 a441179d3f09c7faca63ccf85cd84ad64d117835ad925f33b0fcbc882ed9c827
+MD5 8585c6b04f2dda15ac989c61b49d355d files/tetex-3.0_p1-dvipdfm-timezone.patch 1546
+RMD160 9be8bb58b3be7add25ce30acb4eee08b35c85c5f files/tetex-3.0_p1-dvipdfm-timezone.patch 1546
+SHA256 a441179d3f09c7faca63ccf85cd84ad64d117835ad925f33b0fcbc882ed9c827 files/tetex-3.0_p1-dvipdfm-timezone.patch 1546
+AUX tetex-3.0_p1-dvips_bufferoverflow.patch 3032 RMD160 d82c40767b8614180e1487a95c923b99e92161b5 SHA1 1616aff45e9412ad861d75019a2c88a5122e5b23 SHA256 d5942c40589199d19dd4407b9bcdfeb13a2559de59e70ca986c3c16040788f6b
+MD5 65b84b563d53e426b5a78f1302c45863 files/tetex-3.0_p1-dvips_bufferoverflow.patch 3032
+RMD160 d82c40767b8614180e1487a95c923b99e92161b5 files/tetex-3.0_p1-dvips_bufferoverflow.patch 3032
+SHA256 d5942c40589199d19dd4407b9bcdfeb13a2559de59e70ca986c3c16040788f6b files/tetex-3.0_p1-dvips_bufferoverflow.patch 3032
+AUX tetex-3.0_p1-mptest.patch 367 RMD160 5669a8c815ecbc5d3bb03281f50360cad86c6e3a SHA1 0c1f6ab9e2cec3af63d10cabd802f10d6c3a0d07 SHA256 07b84a63d174a401d77ca62031fd1258496789038dd013c52896d9853efe10cd
+MD5 87ed2925ecec1c2a53cbfb5f5f32160d files/tetex-3.0_p1-mptest.patch 367
+RMD160 5669a8c815ecbc5d3bb03281f50360cad86c6e3a files/tetex-3.0_p1-mptest.patch 367
+SHA256 07b84a63d174a401d77ca62031fd1258496789038dd013c52896d9853efe10cd files/tetex-3.0_p1-mptest.patch 367
+AUX tetex-3.0_p1-t1lib-SA26241_buffer_overflow.patch 627 RMD160 9c4b663fa960bbac698a70f808ce1fd75d4083e9 SHA1 095673160925babe6717225071dfb1da6583043c SHA256 e27c3f797280b668833dcb663c6808afd7e8c926725ac5e3847e7e6463d75849
+MD5 e428cb3a1d0d71b02f3b51e70f2e490e files/tetex-3.0_p1-t1lib-SA26241_buffer_overflow.patch 627
+RMD160 9c4b663fa960bbac698a70f808ce1fd75d4083e9 files/tetex-3.0_p1-t1lib-SA26241_buffer_overflow.patch 627
+SHA256 e27c3f797280b668833dcb663c6808afd7e8c926725ac5e3847e7e6463d75849 files/tetex-3.0_p1-t1lib-SA26241_buffer_overflow.patch 627
+AUX texmf-update 2083 RMD160 4f31819f7389c0da09c8f298a788c38be42f58c9 SHA1 5cc2f572ce3bb8450b04731e6ed405b4be32981c SHA256 362506e23e77cf51e2c42738693ac36a323cdb69cb134a62468e959b7012df61
+MD5 9c9260f5d31613fb14bdc8c616597fab files/texmf-update 2083
+RMD160 4f31819f7389c0da09c8f298a788c38be42f58c9 files/texmf-update 2083
+SHA256 362506e23e77cf51e2c42738693ac36a323cdb69cb134a62468e959b7012df61 files/texmf-update 2083
AUX xdvi-xorg-7.0.patch 605 RMD160 cc4f635af28d075ef0045a345c073696b1af64a0 SHA1 8639ea7574454eccde785bb6010d6c97ce4a8d70 SHA256 5a942a72a405fe1b638c69b2683e2cac8d0c9f55951e71f1f468a14578f79f6e
MD5 7d244f102356573fea5a801509756ba6 files/xdvi-xorg-7.0.patch 605
RMD160 cc4f635af28d075ef0045a345c073696b1af64a0 files/xdvi-xorg-7.0.patch 605
@@ -74,6 +115,8 @@ DIST ptetex-cmap-20051117.tar.gz 4061363 RMD160 a9b4468979efc8b65161ce7deb7cd00d
DIST ptetex2-20050522.tar.gz 4031404 RMD160 29a76f858b20cb6a344506c78b608cf08f2f49dc SHA1 67dd699070533909ed6f92adcaac184ed83a66c1 SHA256 893d8b2bf244ddc3ddc08af6fa080c6dc312aac493720b2f19503c84e4c306f6
DIST ptetex3-20050418.tar.gz 3931706 RMD160 50e65e2a4dfae351f4cb86e412c9525b6c0b4aef SHA1 42b627b95b2e9b72310a6127bce3a426ce304600 SHA256 188f8f467e4cf2135a1908cc300d3714895682befc47bd1f92d2af1f04c44d85
DIST ptetex3-20061108.tar.gz 5269378 RMD160 ee9b4313054fd55178456383e65797a2fa1e2d65 SHA1 cf59fead6ed9560ec721560959fdeb516fb5b3df SHA256 1f0364c44601672400634e0a56ab12f6e9477232f86fbcb73e3ce30720fab4d0
+DIST ptetex3-20071122.tar.gz 6171562 RMD160 18a41c1eac40c747d9a7f988cdec428d3d5da96a SHA1 64a4380f8008da30460970984a8e8a0fad80c889 SHA256 25f0d35fbf074d75dd55a08910e6f7179500bb138547051bb3508b7879477fc1
+DIST ptex-3.1.10_p20071122-dviljk-security-fixes.patch.bz2 8739 RMD160 7a63ebf1ebce0dbd7d48d9dbef2ea663ba187871 SHA1 9dad652088e93a5a6924460bd6c60efe88e9e80b SHA256 af6b92ee2640e754fc3e0b55e8aa7c8436d655f0d38e5afdd3badf5ee5f55c93
DIST ptex-src-3.1.5.tar.gz 122201 RMD160 b3f02418917f97c3c082f524b8a50447e601db72 SHA1 eb0d2b8a72ee4f4708c86a45b62478939f76c904 SHA256 67e2ef7de02938cf480d213b01af467753bb5f87eb0662cdb38f6a8a2cd7dedd
DIST ptex-texmf-2.3.tar.gz 1866282 RMD160 004291050ad6d726fca6a6a371e30341d4658331 SHA1 a79fac215304ee622eed5fc1403fd59061aaf1e5 SHA256 b4ab3c8abd5a4b935d0a5b2738fd691012c01567190b8551f3b0ec0dbc04de34
DIST tetex-2.0.2-gentoo.tar.gz 1704 RMD160 f32700bfe389c9c15a72344770c7abe2ee048c38 SHA1 655379c710004ffe2cc65acf6c2efd424cecd109 SHA256 331ac072cf658c22b983b16439dc0e6f95cac0cc95f4d993fcb4bad883ea2622
@@ -84,12 +127,17 @@ DIST tetex-src-2.0.2.tar.gz 11745933 RMD160 9bbb274c0598547bcecb00ff48e459d41bc6
DIST tetex-src-3.0.tar.gz 12749314 RMD160 15a139f5f36993e4ed3583260e175cfb13ce7bcc SHA1 7637789f7f4929694aed1b89820f5bad4753e8fc SHA256 9c0f7eaeb5ba6dc6f66433404d264941bf95cded2fa798b1f7a9dd580c21649b
DIST tetex-texmf-2.0.2.tar.gz 52424280 RMD160 ff88622c2d97416a4f67fbdf7a00d837af35d94e SHA1 9ad88d5fc1df7e10b3538f7b5e3871ceefe8ee2f SHA256 0d5c4adb7a72a33fffa9eeb5e3137e0094c912eafc45e358ca20cd9257f79f0d
DIST tetex-texmf-3.0.tar.gz 91402377 RMD160 a1e87733fa3cbef04e39a690ed8549aeaaddb241 SHA1 1be97f57a26a6e9b72ebfd932e45914a959aff16 SHA256 6c3b8fa619749cbb28ca0f8847e56773d13e0bb92f1ea34287420950373640c2
+DIST tetex-texmf-3.0po.tar.gz 91402377 RMD160 a1e87733fa3cbef04e39a690ed8549aeaaddb241 SHA1 1be97f57a26a6e9b72ebfd932e45914a959aff16 SHA256 6c3b8fa619749cbb28ca0f8847e56773d13e0bb92f1ea34287420950373640c2
DIST tetex-texmfsrc-2.0.2.tar.gz 22909537 RMD160 bc444152b2f45cf3c0a743f6416134e31e8635b4 SHA1 59c5a328800225c44beec9a9baf0f4223ac633c3 SHA256 9348f10c9e95fdb5e9a9702956cfce38be42c48621fcfc6c9ae192363e08d267
DIST xdvik-22.40y1-j1.21.patch.gz 166908 RMD160 4f84b62c418b2a7d3d07b7f9d60420ccbbfb479e SHA1 b952f94824c519df25a33c80347e6fa93309b6a6 SHA256 d7cd93e1b32e82dab39fbabdc0a67d0a06f291a854e82a29a1ee97f9f61bcf8f
EBUILD ptex-3.1.10_beta3.ebuild 6337 RMD160 f8a7fcb0628a1811fb5d8c83adf87a61b6bedb93 SHA1 d8d67624a2725f3ec105aa345d4f5f4b1c3b4b09 SHA256 1cec6a0fe7f91e6b690988a07f45e0f62a5bf3198c6a48a68878e3651a99ec1e
MD5 60ba338a2d8174465494176289633e70 ptex-3.1.10_beta3.ebuild 6337
RMD160 f8a7fcb0628a1811fb5d8c83adf87a61b6bedb93 ptex-3.1.10_beta3.ebuild 6337
SHA256 1cec6a0fe7f91e6b690988a07f45e0f62a5bf3198c6a48a68878e3651a99ec1e ptex-3.1.10_beta3.ebuild 6337
+EBUILD ptex-3.1.10_p20071122.ebuild 7795 RMD160 8c7854235a389074fde79605443e083bf985c8cf SHA1 cfd131d419ce15226678d4a4ab8c8229290297f0 SHA256 b38187a5d7171e29cfc99ac6696f056a2af87633aa670943e032cca28d00f0eb
+MD5 57e87e5be974400982f184e724a3a01c ptex-3.1.10_p20071122.ebuild 7795
+RMD160 8c7854235a389074fde79605443e083bf985c8cf ptex-3.1.10_p20071122.ebuild 7795
+SHA256 b38187a5d7171e29cfc99ac6696f056a2af87633aa670943e032cca28d00f0eb ptex-3.1.10_p20071122.ebuild 7795
EBUILD ptex-3.1.5-r1.ebuild 3860 RMD160 ed0877ed7d0572663cf1a4d343d73d32224ce8a5 SHA1 06ec0fb9d97f89628f21f791a41ad602f82dd9f8 SHA256 d2214b31cf98bb1a977fd79004c172748de501f52bb9443222d192af4b15cfbe
MD5 287b95ca12af8ddee09c255bcb8cf8c5 ptex-3.1.5-r1.ebuild 3860
RMD160 ed0877ed7d0572663cf1a4d343d73d32224ce8a5 ptex-3.1.5-r1.ebuild 3860
@@ -102,10 +150,10 @@ EBUILD ptex-3.1.8.1_p20050418.ebuild 4994 RMD160 b077bd567e08ca2506c9d0a4fd9b33d
MD5 f4a80cc651f1cbbc8360bea0f5c262d3 ptex-3.1.8.1_p20050418.ebuild 4994
RMD160 b077bd567e08ca2506c9d0a4fd9b33d8e62f9b17 ptex-3.1.8.1_p20050418.ebuild 4994
SHA256 bfa034529d1958bcb634d17732aca669c4e04bcceac1d584932f981d28849d8b ptex-3.1.8.1_p20050418.ebuild 4994
-MISC ChangeLog 9676 RMD160 b5a142339d4c755b2b752a9d95aa4d68c59452bb SHA1 e67dd0eaa4662cd9bd120e2899614945679055dc SHA256 3fafcf4506cfda55af964173f73451901e61525b49df9509eae7c116c5c9c601
-MD5 16ade8965a491eca53bd898affabaa58 ChangeLog 9676
-RMD160 b5a142339d4c755b2b752a9d95aa4d68c59452bb ChangeLog 9676
-SHA256 3fafcf4506cfda55af964173f73451901e61525b49df9509eae7c116c5c9c601 ChangeLog 9676
+MISC ChangeLog 10490 RMD160 2e2d8b6f4a66431b9afd97fbe2be409c81b59396 SHA1 3e408f7f623c59b201a4bc86734484ac54880e1c SHA256 c495954f1c0b4858a16df46c84d300f5f6b40a5ef5ea831edfc7f691b53b7c6f
+MD5 075e8ac60db1754e9fe0f986cefa1fe5 ChangeLog 10490
+RMD160 2e2d8b6f4a66431b9afd97fbe2be409c81b59396 ChangeLog 10490
+SHA256 c495954f1c0b4858a16df46c84d300f5f6b40a5ef5ea831edfc7f691b53b7c6f ChangeLog 10490
MISC metadata.xml 523 RMD160 06534fd75d5bca991e205c8bd8816f5ce92b1258 SHA1 ac8145708ce696f2cb0eb856a1ee3146d84dd11c SHA256 4a5809d51ce216bb801e7f2b604317f34e0dcbe943a9632e614f676ffa63d955
MD5 02f37462f06c4290238f83126508358c metadata.xml 523
RMD160 06534fd75d5bca991e205c8bd8816f5ce92b1258 metadata.xml 523
@@ -113,6 +161,9 @@ SHA256 4a5809d51ce216bb801e7f2b604317f34e0dcbe943a9632e614f676ffa63d955 metadata
MD5 2b5a2ff62f0f9d86d4e12f30b6f98ec6 files/digest-ptex-3.1.10_beta3 1262
RMD160 dd35b4df6c1bf1561439082d7b019b17f9fd17d2 files/digest-ptex-3.1.10_beta3 1262
SHA256 a59d032458800f02eb51807b939e7787acd1deb1dc56c83f2638c45b2ae8eeb3 files/digest-ptex-3.1.10_beta3 1262
+MD5 da9c2469b439f1ebef826b58e0c4cf44 files/digest-ptex-3.1.10_p20071122 1358
+RMD160 a1bf636f76ae2c5b9b43c91ae2ab776058dcd5e9 files/digest-ptex-3.1.10_p20071122 1358
+SHA256 4ae204997a51fd3bbfd2a5326fbc965cdfeb605f99b607687289c837c1e04506 files/digest-ptex-3.1.10_p20071122 1358
MD5 390ef8723583f2619962182606b60930 files/digest-ptex-3.1.5-r1 2614
RMD160 7b7f46e695d6aba95b4a9ba36c2b339ea3a8eb5c files/digest-ptex-3.1.5-r1 2614
SHA256 29ad57293e360601b00772c175562ee8c13d2d996b1f23140539521f0ccb7198 files/digest-ptex-3.1.5-r1 2614
@@ -122,10 +173,3 @@ SHA256 d7155a4f295281616d6ca362c2500d450f7176fbcd7a6f8a4ec68e81c93d85de files/di
MD5 5e1f79479e19d0e2be954f1c10209d77 files/digest-ptex-3.1.8.1_p20050418 997
RMD160 c8c4950e9a036ef89b50c54069608f69dc4b46b7 files/digest-ptex-3.1.8.1_p20050418 997
SHA256 bc7644e1b4e600f2c57c5fa88c7f7cdfe8d178c39ee1870343f07728f8006e9f files/digest-ptex-3.1.8.1_p20050418 997
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.7 (GNU/Linux)
-
-iD8DBQFG2rBhyZx3L/ph1soRAsl2AJ4tzeG6wYV4BhbV9VuBE/G/gux+eQCbBIHe
-3n8PXWvJ7k/F7jXc2kLWzNk=
-=M4YG
------END PGP SIGNATURE-----
diff --git a/app-text/ptex/files/digest-ptex-3.1.10_p20071122 b/app-text/ptex/files/digest-ptex-3.1.10_p20071122
new file mode 100644
index 000000000000..7c9f2908293b
--- /dev/null
+++ b/app-text/ptex/files/digest-ptex-3.1.10_p20071122
@@ -0,0 +1,15 @@
+MD5 71dfc6c1422ffb3fc2d538e2ab92fbdf ptetex-cmap-20051117.tar.gz 4061363
+RMD160 a9b4468979efc8b65161ce7deb7cd00d93dfff06 ptetex-cmap-20051117.tar.gz 4061363
+SHA256 34e50c63cba5aa1abfb1e4eece95aff9845c0f0c3115b65807670a2579a5a032 ptetex-cmap-20051117.tar.gz 4061363
+MD5 5510d4a966bf6c9c44f6a85f0090c182 ptetex3-20071122.tar.gz 6171562
+RMD160 18a41c1eac40c747d9a7f988cdec428d3d5da96a ptetex3-20071122.tar.gz 6171562
+SHA256 25f0d35fbf074d75dd55a08910e6f7179500bb138547051bb3508b7879477fc1 ptetex3-20071122.tar.gz 6171562
+MD5 f1c722c61acc20fea92d66c927eb5f99 ptex-3.1.10_p20071122-dviljk-security-fixes.patch.bz2 8739
+RMD160 7a63ebf1ebce0dbd7d48d9dbef2ea663ba187871 ptex-3.1.10_p20071122-dviljk-security-fixes.patch.bz2 8739
+SHA256 af6b92ee2640e754fc3e0b55e8aa7c8436d655f0d38e5afdd3badf5ee5f55c93 ptex-3.1.10_p20071122-dviljk-security-fixes.patch.bz2 8739
+MD5 944a4641e79e61043fdaf8f38ecbb4b3 tetex-src-3.0.tar.gz 12749314
+RMD160 15a139f5f36993e4ed3583260e175cfb13ce7bcc tetex-src-3.0.tar.gz 12749314
+SHA256 9c0f7eaeb5ba6dc6f66433404d264941bf95cded2fa798b1f7a9dd580c21649b tetex-src-3.0.tar.gz 12749314
+MD5 ed9d30d9162d16ac8d5065cde6e0f6fa tetex-texmf-3.0po.tar.gz 91402377
+RMD160 a1e87733fa3cbef04e39a690ed8549aeaaddb241 tetex-texmf-3.0po.tar.gz 91402377
+SHA256 6c3b8fa619749cbb28ca0f8847e56773d13e0bb92f1ea34287420950373640c2 tetex-texmf-3.0po.tar.gz 91402377
diff --git a/app-text/ptex/files/ptex-3.1.10_p20071122-epstopdf-wrong-rotation.patch b/app-text/ptex/files/ptex-3.1.10_p20071122-epstopdf-wrong-rotation.patch
new file mode 100644
index 000000000000..3f5d874cb162
--- /dev/null
+++ b/app-text/ptex/files/ptex-3.1.10_p20071122-epstopdf-wrong-rotation.patch
@@ -0,0 +1,13 @@
+diff -Naur tetex-src-3.0.orig/texk/tetex/epstopdf tetex-src-3.0/texk/tetex/epstopdf
+--- tetex-src-3.0.orig/texk/tetex/epstopdf 2007-11-30 01:20:28.000000000 +0900
++++ tetex-src-3.0/texk/tetex/epstopdf 2007-11-30 01:32:36.000000000 +0900
+@@ -208,7 +208,8 @@
+ ### open output file
+ if ($::opt_gs) {
+ my $pipe = "$GS -q -sDEVICE=pdfwrite $GSOPTS " .
+- "-sOutputFile=$OutputFilename $GSNOEMBED - -c quit";
++ "-dAutoRotatePages=/None " .
++ "\"-sOutputFile=$OutputFilename\" $GSNOEMBED - -c quit";
+ debug "Ghostscript pipe:", $pipe;
+ open(OUT,"|$pipe") or error "Cannot open Ghostscript for piped input";
+ }
diff --git a/app-text/ptex/files/ptex-3.1.10_p20071122-fmtutil-etex.patch b/app-text/ptex/files/ptex-3.1.10_p20071122-fmtutil-etex.patch
new file mode 100644
index 000000000000..2f406fc50f14
--- /dev/null
+++ b/app-text/ptex/files/ptex-3.1.10_p20071122-fmtutil-etex.patch
@@ -0,0 +1,13 @@
+diff -Naur tetex-src-3.0.orig/texk/web2c/fmtutil.in tetex-src-3.0/texk/web2c/fmtutil.in
+--- tetex-src-3.0.orig/texk/web2c/fmtutil.in 2005-02-06 09:27:46.000000000 +0900
++++ tetex-src-3.0/texk/web2c/fmtutil.in 2007-11-30 01:39:55.000000000 +0900
+@@ -40,7 +40,8 @@
+ # if you want babel support in tex:
+ tex tex - -translate-file=cp227.tcx tex.ini
+ @PETEX@latex pdfetex language.dat -translate-file=cp227.tcx *latex.ini
+-@PETEX@etex pdfetex language.def -translate-file=cp227.tcx *etex.ini
++@PETEX@etex etex language.def -etex -translate-file=cp227.tcx *etex.ini
++@PETEX@elatex etex language.def -translate-file=cp227.tcx *latex.ini
+ @PETEX@pdftex pdfetex - -translate-file=cp227.tcx *pdftex.ini
+ @PETEX@pdflatex pdfetex language.dat -translate-file=cp227.tcx *pdflatex.ini
+ @PETEX@pdfetex pdfetex language.def -translate-file=cp227.tcx *pdfetex.ini
diff --git a/app-text/ptex/files/ptex-3.1.10_p20071122-gentoo.patch b/app-text/ptex/files/ptex-3.1.10_p20071122-gentoo.patch
new file mode 100644
index 000000000000..afc3122b2c92
--- /dev/null
+++ b/app-text/ptex/files/ptex-3.1.10_p20071122-gentoo.patch
@@ -0,0 +1,118 @@
+diff -r -u ptetex3-20071122-orig/2extract-src.sh ptetex3-20071122/2extract-src.sh
+--- ptetex3-20071122-orig/2extract-src.sh 2007-11-19 15:46:22.000000000 +0900
++++ ptetex3-20071122/2extract-src.sh 2007-11-28 14:02:13.072620383 +0900
+@@ -147,29 +147,29 @@
+ $CP $SRC/texk/dvipsk/* $SRC/texk/pdvipsk/
+ $MKDIR $SRC/texk/pxdvik
+ $CP -r $SRC/texk/xdvik/* $SRC/texk/pxdvik/
+- P=p
++ DVIPSK_P=p
+ fi # "$JAPANESE" = "international"
+ ## for dvipsk
+ #tarx archive/dvipsk-jpatch-p1.7a.tar.gz $SRC/texk/${P}dvipsk
+-#cpatch $SRC/texk/${P}dvipsk/dvipsk-p1.7a.patch 1 $SRC/texk/${P}dvipsk
+-$CP $SRC/texk/${P}dvipsk/Makefile.in $SRC/texk/${P}dvipsk/Makefile.in.tetex
+-tarx archive/dvipsk-5.95b-p1.7a.tar.gz $SRC/texk/${P}dvipsk
+-cpatch $SRC/texk/${P}dvipsk/dvipsk-5.95b-p1.7a.diff 1 $SRC/texk/${P}dvipsk
++#cpatch $SRC/texk/${DVIPSK_P}dvipsk/dvipsk-p1.7a.patch 1 $SRC/texk/${DVIPSK_P}dvipsk
++$CP $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in.tetex
++tarx archive/dvipsk-5.95b-p1.7a.tar.gz $SRC/texk/${DVIPSK_P}dvipsk
++cpatch $SRC/texk/${DVIPSK_P}dvipsk/dvipsk-5.95b-p1.7a.diff 1 $SRC/texk/${DVIPSK_P}dvipsk
+ ## disable installing 'config.ps'
+-$CP $SRC/texk/${P}dvipsk/Makefile.in $SRC/texk/${P}dvipsk/Makefile.in.jp
+-$CP $SRC/texk/${P}dvipsk/Makefile.in.tetex $SRC/texk/${P}dvipsk/Makefile.in
++$CP $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in.jp
++$CP $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in.tetex $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in
+ ## disable psfonts_jp.map
+-#perlprint 's/^(p \+psfonts\_jp\.map)/* \1/g' $SRC/texk/${P}dvipsk/config.ps
++#perlprint 's/^(p \+psfonts\_jp\.map)/* \1/g' $SRC/texk/${DVIPSK_P}dvipsk/config.ps
+ #perlnoprint '$a=1 if /^# psfonts_jp.map/; $a=0 if /^# Info files/;
+-# print unless $a' $SRC/texk/${P}dvipsk/Makefile.in
++# print unless $a' $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in
+
+ ## for xdvik
+-zpatch archive/xdvik-200?????-tetex-3.0.diff.gz 3 $SRC/texk/${P}xdvik
++zpatch archive/xdvik-200?????-tetex-3.0.diff.gz 3 $SRC/texk/${DVIPSK_P}xdvik
+ # fix for FC5
+ perlprint 'print "#define NeedWidePrototypes 1\n" if /limits/' \
+- $SRC/texk/${P}xdvik/xdvi.h
++ $SRC/texk/${DVIPSK_P}xdvik/xdvi.h
+ # adjust X resource
+-cat <<EOF >> $SRC/texk/${P}xdvik/texmf/XDvi || exit 1
++cat <<EOF >> $SRC/texk/${DVIPSK_P}xdvik/texmf/XDvi || exit 1
+
+
+ !!! ------- added by ptetex3 -------
+diff -r -u ptetex3-20071122-orig/7font-search.sh ptetex3-20071122/7font-search.sh
+--- ptetex3-20071122-orig/7font-search.sh 2007-11-28 14:04:06.338929949 +0900
++++ ptetex3-20071122/7font-search.sh 2007-11-28 14:08:20.836792289 +0900
+@@ -51,6 +51,17 @@
+ done
+ }
+
++mksymlink_gentoo(){
++ $MKDIR $TRUETYPE
++ fonts_dir=/usr/share/fonts/
++ find $fonts_dir -maxdepth 1 -mindepth 1 -type d | while read font_path; do
++ if [ `find $font_path -maxdepth 1 -type f -iname '*.ttf' | wc -l` -gt 0 ]; then
++ font_name=${font_path/$fonts_dir/}
++ test -h ${TRUETYPE}/${font_name} && continue
++ $LN "${font_path}" "${TRUETYPE}/${font_name}"
++ fi
++ done
++}
+
+ setrmlgbm() {
+ if test -n "$2"; then
+@@ -105,7 +116,8 @@
+ ### リンク名 検索ディレクトリ/ファイル
+ Acrobat4 /usr{,/local,/sfw}{,/lib}/Acrobat4/Resource/CMap
+ Acrobat5 /usr{,/local,/sfw}{,/lib}/Acrobat5/Resource/Font
+-Acrobat7 /usr{,/local,/sfw}{,/lib}{,/Adobe}/Acrobat7.0/Resource/CMap
++Acrobat7 /opt/Acrobat7/Resource/CMap
++Acrobat8 /opt/Adobe/Reader8/Resource/CMap
+ ghostscript /usr{,/local,/sfw}/{share,lib}/ghostscript{,/*}/Resource/CMap
+ openwinja /usr/openwin/lib/locale/ja/X11/Resource/CMap
+ openwinko /usr/openwin/lib/locale/ko/X11/Resource/CMap
+@@ -113,18 +125,7 @@
+ openwintw /usr/openwin/lib/locale/zh_TW.BIG5/X11/Resource/CMap
+ EOF
+
+-mksymlink $TRUETYPE <<EOF
+-### リンク名 検索ディレクトリ/ファイル
+-x11 /usr{,/local,/X11R6}/lib/X11/fonts/truetype
+-X11 /usr{,/local,/X11R6}/lib/X11/fonts/TrueType
+-X11TTF /usr{,/local,/X11R6}/lib/X11/fonts/TTF
+-openwin /usr/openwin/lib/locale/ja/X11/fonts/TT
+-truetype /usr/share/fonts/truetype
+-TTF /usr/share/fonts/TTF
+-ja /usr/share/fonts/ja/TrueType
+-japanese /usr/share/fonts/japanese/TrueType
+-QtPalmtop /opt/QtPalmtop/lib/X11/fonts/TrueType
+-EOF
++mksymlink_gentoo
+
+ mksymlink $OPENTYPE <<EOF
+ ### リンク名 検索ディレクトリ/ファイル
+@@ -181,6 +182,10 @@
+ # the former, more general
+ # the latter, higher quality
+ rmlgbm <<EOF
++# IPA font https://sourceforge.jp/projects/opfc/
++# (opfc-ModuleHP-1.1.1_withIPAFonts.tar.gz)
++ ipam.ttf
++ ipag.ttf
+ # kochi (distribution stopped)
+ kochi-mincho.ttf
+ kochi-gothic.ttf
+@@ -190,10 +195,6 @@
+ # sazanami http://wiki.fdiary.net/font/?sazanami
+ sazanami-mincho.ttf
+ sazanami-gothic.ttf
+-# IPA font https://sourceforge.jp/projects/opfc/
+-# (opfc-ModuleHP-1.1.1_withIPAFonts.tar.gz)
+- ipam.ttf
+- ipag.ttf
+ # DynaLab
+ dfmimp3.ttc
+ dfgotp5.ttc
diff --git a/app-text/ptex/files/ptex-3.1.10_p20071122-pdftosrc-install.patch b/app-text/ptex/files/ptex-3.1.10_p20071122-pdftosrc-install.patch
new file mode 100644
index 000000000000..f8b48015f06c
--- /dev/null
+++ b/app-text/ptex/files/ptex-3.1.10_p20071122-pdftosrc-install.patch
@@ -0,0 +1,19 @@
+diff -Naur tetex-src-3.0.orig/texk/web2c/Makefile.in tetex-src-3.0/texk/web2c/Makefile.in
+--- tetex-src-3.0.orig/texk/web2c/Makefile.in 2007-11-30 01:20:29.000000000 +0900
++++ tetex-src-3.0/texk/web2c/Makefile.in 2007-11-30 01:46:41.000000000 +0900
+@@ -652,13 +652,13 @@
+ programs = bibtex ctangle ctie cweave dvicopy dvitomp dvitype gftodvi gftopk \
+ ofm2opl opl2ofm ovf2ovp ovp2ovf \
+ gftype mft $(odvicopy) $(odvitype) $(otangle) patgen pktogf pktype pltotf \
+- pooltype tangle tftopl tie $(ttf2afm) vftovp vptovf weave
++ pooltype tangle tftopl tie $(ttf2afm) vftovp vptovf weave pdftosrc
+ engines = $(tex) $(etex) $(mf) $(mfn) $(mpost) \
+ $(omega) $(aleph) \
+ $(pdftex) $(pdfetex) $(pdfxtex)
+
+ programs: $(programs) $(engines) $(mpware) \
+- $(omegafonts_programs) $(otps_programs) $(pdftosrc)
++ $(omegafonts_programs) $(otps_programs)
+
+ # We put some programs (written directly in C) in a subdirectory.
+ $(mpware): $(mpware_sources)
diff --git a/app-text/ptex/files/tetex-3.0-kpathsea-pic.patch b/app-text/ptex/files/tetex-3.0-kpathsea-pic.patch
new file mode 100644
index 000000000000..bddec0569bb0
--- /dev/null
+++ b/app-text/ptex/files/tetex-3.0-kpathsea-pic.patch
@@ -0,0 +1,50 @@
+diff --exclude-from=/home/dang/.diffrc -u -ruN tetex-src-3.0.orig/texk/kpathsea/configure tetex-src-3.0/texk/kpathsea/configure
+--- tetex-src-3.0.orig/texk/kpathsea/configure 2005-02-06 13:27:03.000000000 -0500
++++ tetex-src-3.0/texk/kpathsea/configure 2005-09-09 00:25:48.000000000 -0400
+@@ -5546,7 +5546,11 @@
+ LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+
+ # Always use our own libtool.
+-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
++if [ "${USERLAND}" = "Darwin" ]; then
++LIBTOOL='glibtool'
++else
++LIBTOOL='libtool'
++fi
+
+ # Prevent multiple expansion
+
+diff --exclude-from=/home/dang/.diffrc -u -ruN tetex-src-3.0.orig/texk/libtool.m4 tetex-src-3.0/texk/libtool.m4
+--- tetex-src-3.0.orig/texk/libtool.m4 2003-02-15 08:03:23.000000000 -0500
++++ tetex-src-3.0/texk/libtool.m4 2005-09-09 00:17:12.000000000 -0400
+@@ -30,8 +30,12 @@
+ # This can be used to rebuild libtool when needed
+ LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+
+-# Always use our own libtool.
+-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
++# Use the system libtool
++if [ "${USERLAND}" = "Darwin" ]; then
++LIBTOOL='glibtool'
++else
++LIBTOOL='libtool'
++fi
+ AC_SUBST(LIBTOOL)dnl
+
+ # Prevent multiple expansion
+diff --exclude-from=/home/dang/.diffrc -u -ruN tetex-src-3.0.orig/texk/make/common.mk tetex-src-3.0/texk/make/common.mk
+--- tetex-src-3.0.orig/texk/make/common.mk 2004-08-06 14:40:50.000000000 -0400
++++ tetex-src-3.0/texk/make/common.mk 2005-09-09 15:02:35.000000000 -0400
+@@ -12,7 +12,11 @@
+ LDFLAGS = @LDFLAGS@ $(XLDFLAGS)
+
+ # Kpathsea needs this for compiling, programs need it for linking.
+-LIBTOOL = $(SHELL) $(kpathsea_parent)/libtool
++ifeq ($(USERLAND),Darwin)
++LIBTOOL='glibtool'
++else
++LIBTOOL='libtool'
++endif
+
+ # You can change [X]CPPFLAGS, [X]CFLAGS, or [X]DEFS, but
+ # please don't change ALL_CPPFLAGS or ALL_CFLAGS.
diff --git a/app-text/ptex/files/tetex-3.0_p1-create-empty-files.patch b/app-text/ptex/files/tetex-3.0_p1-create-empty-files.patch
new file mode 100644
index 000000000000..b72d6d7ce94d
--- /dev/null
+++ b/app-text/ptex/files/tetex-3.0_p1-create-empty-files.patch
@@ -0,0 +1,24 @@
+diff -urN tetex-src-3.0.orig/texk/kpathsea/mktexlsr tetex-src-3.0/texk/kpathsea/mktexlsr
+--- tetex-src-3.0.orig/texk/kpathsea/mktexlsr 2005-12-06 16:03:40.000000000 +0100
++++ tetex-src-3.0/texk/kpathsea/mktexlsr 2006-03-20 17:27:53.000000000 +0100
+@@ -108,7 +108,7 @@
+ test -w "$db_dir" || { echo "$progname: $db_dir: directory not writable. Skipping..." >&2; continue; }
+
+ if test ! -f "$db_file"; then
+- cp /dev/null "$db_file"
++ touch "$db_file"
+ # Use same permissions as parent directory, minus x,s, or t bits.
+ chmod `kpsestat -xst "$db_dir"` "$db_file"
+ elif test -s "$db_file" \
+diff -urN tetex-src-3.0.orig/texk/make/man.mk tetex-src-3.0/texk/make/man.mk
+--- tetex-src-3.0.orig/texk/make/man.mk 2005-12-06 16:03:42.000000000 +0100
++++ tetex-src-3.0/texk/make/man.mk 2006-03-20 17:23:45.000000000 +0100
+@@ -28,7 +28,7 @@
+ # Makefile can change for reasons that do not affect the man pages.
+ # At present, all but VERSION should be unused.
+ sedscript:
+- cp /dev/null sedscript
++ touch sedscript
+ for f in $(kpathsea_dir)/paths.h; do \
+ sed -n -e '/^#define/s/#define[ ][ ]*\([A-Z_a-z][A-Z_a-z]*\)[ ][ ]*\(.*\)/s%@\1@%\2%/p' \
+ $$f \
diff --git a/app-text/ptex/files/tetex-3.0_p1-dvipdfm-timezone.patch b/app-text/ptex/files/tetex-3.0_p1-dvipdfm-timezone.patch
new file mode 100644
index 000000000000..f134206ebb81
--- /dev/null
+++ b/app-text/ptex/files/tetex-3.0_p1-dvipdfm-timezone.patch
@@ -0,0 +1,43 @@
+diff -urN tetex-src-3.0.orig/texk/dvipdfm/pdfdoc.c tetex-src-3.0/texk/dvipdfm/pdfdoc.c
+--- tetex-src-3.0.orig/texk/dvipdfm/pdfdoc.c 2005-12-06 16:03:23.000000000 +0100
++++ tetex-src-3.0/texk/dvipdfm/pdfdoc.c 2006-05-23 17:25:49.000000000 +0200
+@@ -234,7 +234,7 @@
+ {
+ #ifndef HAVE_TIMEZONE
+ #ifdef TM_GM_TOFF
+- #define timezone (bdtime->gm_toff)
++ #define timezone (bd_time->tm_gmtoff)
+ #else
+ #define timezone 0l
+ #endif /* TM_GM_TOFF */
+@@ -242,15 +242,26 @@
+ static char date_string[24];
+ time_t current_time;
+ struct tm *bd_time;
++ long hh, mm;
+ if (debug) {
+ fprintf (stderr, "(asn_date)");
+ }
+ time(&current_time);
+ bd_time = localtime(&current_time);
+- sprintf (date_string, "D:%04d%02d%02d%02d%02d%02d%+03ld'%02ld'",
+- bd_time -> tm_year+1900, bd_time -> tm_mon+1, bd_time -> tm_mday,
+- bd_time -> tm_hour, bd_time -> tm_min, bd_time -> tm_sec,
+- -timezone/3600, timezone%3600);
++ if (timezone == 0l) {
++ sprintf (date_string, "D:%04d%02d%02d%02d%02d%02dZ00'00'",
++ bd_time -> tm_year+1900, bd_time -> tm_mon+1, bd_time -> tm_mday,
++ bd_time -> tm_hour, bd_time -> tm_min, bd_time -> tm_sec);
++ } else {
++ hh = timezone/3600;
++ mm = (timezone%3600)/60;
++ if (timezone < 0)
++ mm = -mm;
++ sprintf (date_string, "D:%04d%02d%02d%02d%02d%02d%+03ld'%02ld'",
++ bd_time -> tm_year+1900, bd_time -> tm_mon+1, bd_time -> tm_mday,
++ bd_time -> tm_hour, bd_time -> tm_min, bd_time -> tm_sec,
++ hh, mm);
++ }
+ return date_string;
+ }
+
diff --git a/app-text/ptex/files/tetex-3.0_p1-dvips_bufferoverflow.patch b/app-text/ptex/files/tetex-3.0_p1-dvips_bufferoverflow.patch
new file mode 100644
index 000000000000..3f4732f1a249
--- /dev/null
+++ b/app-text/ptex/files/tetex-3.0_p1-dvips_bufferoverflow.patch
@@ -0,0 +1,87 @@
+hps.c (stamp_external, stamp_hps): protext against long strings.
+ From Bastien Roucaries via Norbert, 21 Oct 2007 13:22:19,
+ Debian bug 447081.
+
+Index: texk/dvipsk/hps.c
+===================================================================
+--- texk/dvipsk/hps.c (revision 5253)
++++ texk/dvipsk/hps.c (revision 5254)
+@@ -441,20 +441,29 @@
+
+ void stamp_hps P1C(Hps_link *, pl)
+ {
+- char tmpbuf[200] ;
++ char * tmpbuf;
+ if (pl == NULL) {
+- error("Null pointer, oh no!") ;
++ error("stamp_hps: null pl pointer, oh no!") ;
+ return ;
+- } else {
+- /* print out the proper pdfm with local page info only
+- * target info will be in the target dictionary */
+- (void)sprintf(tmpbuf,
+- " (%s) [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] pdfm ", pl->title, pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury,
+- pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4],
+- pl->color[0], pl->color[1], pl->color[2]) ;
+- cmdout(tmpbuf) ;
+- }
++ }
++ if(pl->title == NULL) {
++ error("stamp_hps: null pl->title pointer, oh no!") ;
++ return ;
++ }
++
++ tmpbuf = (char *) xmalloc(strlen(pl->title)+200);
++
++ /* print out the proper pdfm with local page info only
++ * target info will be in the target dictionary */
++ (void)sprintf(tmpbuf,
++ " (%s) [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] pdfm ",
++ pl->title, pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury,
++ pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4],
++ pl->color[0], pl->color[1], pl->color[2]) ;
++ cmdout(tmpbuf) ;
++ free(tmpbuf);
+
++
+ }
+
+ /* For external URL's, we just pass them through as a string. The hyperps
+@@ -462,18 +471,27 @@
+ */
+ void stamp_external P2C(char *, s, Hps_link *, pl)
+ {
+- char tmpbuf[200];
++ char *tmpbuf;
+ if (pl == NULL) {
+- error("Null pointer, oh no!") ;
++ error("stamp_external: null pl pointer, oh no!") ;
+ return ;
+- } else {
+- /* print out the proper pdfm with local page info only
+- * target info will be in the target dictionary */
+- (void)sprintf(tmpbuf," [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] (%s) pdfm ", pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury,
+- pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4],
+- pl->color[0], pl->color[1], pl->color[2], s) ;
+- cmdout(tmpbuf) ;
+- }
++ }
++
++ if (s == NULL) {
++ error("stamp_external: null s pointer, oh no!") ;
++ return ;
++ }
++
++ tmpbuf = (char *) xmalloc(strlen(s) + 200);
++
++ /* print out the proper pdfm with local page info only
++ * target info will be in the target dictionary */
++ (void)sprintf(tmpbuf," [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] (%s) pdfm ",
++ pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury,
++ pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4],
++ pl->color[0], pl->color[1], pl->color[2], s) ;
++ cmdout(tmpbuf) ;
++ free(tmpbuf);
+ }
+
+ void finish_hps P1H(void) {
diff --git a/app-text/ptex/files/tetex-3.0_p1-mptest.patch b/app-text/ptex/files/tetex-3.0_p1-mptest.patch
new file mode 100644
index 000000000000..5b394dbf76ef
--- /dev/null
+++ b/app-text/ptex/files/tetex-3.0_p1-mptest.patch
@@ -0,0 +1,10 @@
+--- tetex-src-3.0/texk/web2c/tests/mptest.mp.old 2006-01-12 18:52:17.000000000 +0100
++++ tetex-src-3.0/texk/web2c/tests/mptest.mp 2006-01-12 18:52:42.000000000 +0100
+@@ -40,6 +40,6 @@
+
+ message("* Test for big numbers in btex...etex:");
+ picture q;
+-q = btex $2^{12} = 4096 \qquad 2^{15} = 32768$ etex;
++%q = btex $2^{12} = 4096 \qquad 2^{15} = 32768$ etex;
+
+ end.
diff --git a/app-text/ptex/files/tetex-3.0_p1-t1lib-SA26241_buffer_overflow.patch b/app-text/ptex/files/tetex-3.0_p1-t1lib-SA26241_buffer_overflow.patch
new file mode 100644
index 000000000000..fe48e44d5589
--- /dev/null
+++ b/app-text/ptex/files/tetex-3.0_p1-t1lib-SA26241_buffer_overflow.patch
@@ -0,0 +1,17 @@
+Index: tetex-src-3.0/libs/t1lib/t1env.c
+===================================================================
+--- tetex-src-3.0.orig/libs/t1lib/t1env.c
++++ tetex-src-3.0/libs/t1lib/t1env.c
+@@ -568,6 +568,12 @@ char *intT1_Env_GetCompletePath( char *F
+ #endif
+ strcat( pathbuf, DIRECTORY_SEP);
+ /* And finally the filename: */
++ /* If current pathbuf + StrippedName + 1 byte for NULL is bigger than pathbuf
++ * let's try next pathbuf */
++ if( strlen(pathbuf) + strlen(StrippedName) + 1 > sizeof(pathbuf) ) {
++ i++;
++ continue;
++ }
+ strcat( pathbuf, StrippedName);
+
+ /* Check for existence of the path: */
diff --git a/app-text/ptex/files/texmf-update b/app-text/ptex/files/texmf-update
new file mode 100644
index 000000000000..d6c2a00109bc
--- /dev/null
+++ b/app-text/ptex/files/texmf-update
@@ -0,0 +1,60 @@
+#!/bin/bash
+#
+# Utility to update Gentoo teTeX distribution configuration files
+#
+
+PATH=/bin:/usr/bin
+
+# Fix for all those with altered umask for root
+umask 022
+
+# Make sure we have a correct environment, bug #30432
+# The list of env. vars is taken from the INSTALL file
+for texvar in AFMFONTS BIBINPUTS BSTINPUTS DVILJFONTS DVIPSFONTS \
+ DVIPSHEADERS GFFONTS GLYPHFONTS INDEXSTYLE MFBASES MFINPUTS \
+ MFPOOL MFTINPUTS MPINPUTS MPMEMS MPPOOL MPSUPPORT OCPINPUTS \
+ OFMFONTS OPLFONTS OTPINPUTS OVFFONTS OVPFONTS PKFONTS PSHEADERS \
+ T1FONTS T1INPUTS TEXBIB TEXCONFIG TEXDOCS TEXFONTMAPS TEXFONTS \
+ TEXFORMATS TEXINDEXSTYLE TEXINPUTS TEXMFCNF TEXMFDBS TEXMFINI \
+ TEXPICTS TEXPKS TEXPOOL TEXPSHEADERS TEXSOURCES TFMFONTS TRFONTS \
+ VFFONTS XDVIFONTS XDVIVFS ; do
+
+ if [ "${!texvar}" ]; then
+ if ! $(echo ${!texvar} | grep '^:\|::\|:$' &>/dev/null) ; then
+ export ${texvar}="${!texvar}:"
+ fi
+ fi
+done
+
+if [ "$TEXINPUTS" ]; then
+ if $(echo ${TEXINPUTS} | grep '/usr/share/texmf' &>/dev/null) ; then
+ export TEXINPUTS=$(echo ${TEXINPUTS} | sed -e 's|/usr/share/texmf/*:\?||g')
+ elif $(echo ${TEXINPUTS} | grep '/var/lib/texmf' &>/dev/null) ; then
+ export TEXINPUTS=$(echo ${TEXINPUTS} | sed -e 's|/var/lib/texmf/*:\?||g')
+ fi
+fi
+
+for conf in texmf.cnf fmtutil.cnf updmap.cfg
+do
+ if [ -d "/etc/texmf/${conf/.*/.d}" ]
+ then
+ echo "Generating /etc/texmf/web2c/${conf} from /etc/texmf/${conf/.*/.d} ..."
+ cat /etc/texmf/${conf/.*/.d}/* > "/etc/texmf/web2c/${conf}"
+ fi
+done
+
+# configure
+echo "Configuring teTeX ..."
+mktexlsr &>/dev/null
+texconfig-sys init &>/dev/null
+texconfig-sys confall &>/dev/null
+texconfig-sys font rw &>/dev/null
+texconfig-sys font vardir /var/cache/fonts &>/dev/null
+updmap-sys &>/dev/null
+
+# generate
+echo "Generating format files ..."
+fmtutil-sys --missing &>/dev/null
+echo
+echo "Use 'texconfig font ro' to disable font generation for users"
+echo
diff --git a/app-text/ptex/ptex-3.1.10_p20071122.ebuild b/app-text/ptex/ptex-3.1.10_p20071122.ebuild
new file mode 100644
index 000000000000..e36d88b92ca3
--- /dev/null
+++ b/app-text/ptex/ptex-3.1.10_p20071122.ebuild
@@ -0,0 +1,276 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071122.ebuild,v 1.1 2007/11/30 14:20:42 matsuu Exp $
+
+TETEX_PV=3.0_p1
+
+inherit eutils tetex-3 flag-o-matic autotools multilib
+
+SMALL_PV="${TETEX_PV/_p*}"
+TETEX_TEXMF_PV="${SMALL_PV}"
+TETEX_S="${WORKDIR}/tetex-src-${SMALL_PV}"
+
+DESCRIPTION="TeX distribution teTeX with Japanese patch collection 'ptetex3'"
+HOMEPAGE="http://www.nn.iij4u.or.jp/~tutimura/tex/ptetex.html"
+
+#TETEX_SRC="tetex-src-${TETEX_PV}.tar.gz"
+TETEX_SRC="tetex-src-${SMALL_PV}.tar.gz"
+TETEX_TEXMF="tetex-texmf-${TETEX_TEXMF_PV:-${TETEX_PV}}"
+TETEX_TEXMF_SRC="tetex-texmf-${TETEX_TEXMF_PV:-${TETEX_PV}}po.tar.gz"
+PTETEX="ptetex3-${PV/*_p}"
+PTETEX_CMAP="ptetex-cmap-20051117"
+
+SRC_PATH_TETEX="ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/3.0/distrib"
+SRC_URI="${SRC_PATH_TETEX}/${TETEX_SRC}
+ ${SRC_PATH_TETEX}/${TETEX_TEXMF_SRC}
+ http://tutimura.ath.cx/~nob/tex/ptetex/ptetex3/${PTETEX}.tar.gz
+ http://tutimura.ath.cx/~nob/tex/ptetex/ptetex-cmap/${PTETEX_CMAP}.tar.gz
+ mirror://gentoo/${P}-dviljk-security-fixes.patch.bz2"
+# mirror://gentoo/tetex-${TETEX_PV}-gentoo.tar.gz
+
+KEYWORDS="~alpha ~arm ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
+
+BUILD_DIR="${WORKDIR}/build/usr"
+
+LICENSE="GPL-2 BSD"
+IUSE="X motif lesstif Xaw3d neXt iconv unicode"
+
+DEPEND="!app-text/tetex
+ !<app-text/ptetex-3.1.9
+ !app-text/dvipdfmx
+ !app-text/xdvik
+ media-libs/t1lib
+ media-libs/gd
+ X? (
+ >=media-libs/freetype-2.3.4
+ || (
+ media-fonts/ja-ipafonts
+ media-fonts/sazanami
+ media-fonts/kochi-substitute
+ )
+ )"
+
+RESTRICT="test"
+
+S="${WORKDIR}/${PTETEX}"
+
+# Sorry this provides tetex again...
+PROVIDE="virtual/tetex"
+
+# Parallel make b0rks
+MAKEOPTS="-j1"
+
+src_unpack() {
+ #tetex-3_src_unpack
+ mkdir -p "${WORKDIR}/${TETEX_TEXMF}"
+ cd "${WORKDIR}/${TETEX_TEXMF}"
+ unpack ${TETEX_TEXMF_SRC}
+ cd "${WORKDIR}"
+ unpack ${TETEX_SRC}
+ cd "${WORKDIR}"
+ unpack ${P}-dviljk-security-fixes.patch.bz2
+ unpack ${PTETEX}.tar.gz
+ unpack ${PTETEX_CMAP}.tar.gz
+ echo ">>> Unpacking jis and morisawa fonts ..."
+ tar xzf "${WORKDIR}"/${PTETEX}/archive/jis.tar.gz -C "${WORKDIR}" || die
+ tar xzf "${WORKDIR}"/${PTETEX}/archive/morisawa.tar.gz -C "${WORKDIR}" || die
+
+ # Gentoo box reserves variable ${P}!!
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+
+ cat <<EOF > "${S}"/my_option
+SRC_DIR="${WORKDIR}"
+TMP_PREFIX="${BUILD_DIR}"
+PREFIX=/usr
+DATADIR=/usr/share
+TEXMFDIST="${WORKDIR}/${TETEX_TEXMF}"
+TEXSRC_EXTRACTED="${WORKDIR}"
+#make_option vartexfonts=/var/lib/texmf
+make_option vartexfonts="${T}/texfonts"
+make_option CC="$(tc-getCC)"
+make_option CXX="$(tc-getCXX)"
+JAPANESE=international
+PLATEX209=no
+conf_option --without-dviljk
+conf_option --without-dvipng
+conf_option --without-info
+conf_option --without-texi2html
+conf_option --without-texinfo
+
+conf_option --with-system-zlib
+conf_option --with-system-pnglib
+conf_option --with-system-gd
+conf_option --with-system-ncurses
+conf_option --with-system-t1lib
+conf_option --enable-shared
+EOF
+
+ if use iconv ; then
+ echo "conf_option --enable-kanji-iconv" >> "${S}"/my_option
+ fi
+
+ if use unicode ; then
+ echo "KANJI_CODE=UTF8" >> "${S}"/my_option
+ else
+ echo "KANJI_CODE=EUC" >> "${S}"/my_option
+ fi
+
+ # copied from tetex-3.eclass and modified
+ if use X ; then
+ if use motif ; then
+ append-ldflags $(motif-config --libs)
+ export CPPFLAGS="${CPPFLAGS} $(motif-config --cflags)"
+ toolkit="motif"
+ elif use neXt ; then
+ toolkit="neXtaw"
+ elif use Xaw3d ; then
+ toolkit="xaw3d"
+ else
+ toolkit="xaw"
+ fi
+ append-ldflags $(freetype-config --libs)
+ echo "export CPPFLAGS=\"${CPPFLAGS} $(freetype-config --cflags)\"" >> "${S}"/my_option
+ echo "conf_option --with-xdvi-x-toolkit=${toolkit}" >> "${S}"/my_option
+ else
+ echo "conf_option --without-x" >> "${S}"/my_option
+ echo "conf_option --without-xdvik" >> "${S}"/my_option
+ fi
+
+ cd "${S}"
+ unset TEXMFMAIN TEXMF HOME
+ emake x || die "emake x failed"
+
+ cd "${TETEX_S}"
+
+ epatch "${FILESDIR}/tetex-${SMALL_PV}-kpathsea-pic.patch"
+
+ # bug 85404
+ epatch "${FILESDIR}/${P}-epstopdf-wrong-rotation.patch"
+
+ # ptetex included
+ #epatch "${FILESDIR}/tetex-${TETEX_PV}-amd64-xdvik-wp.patch"
+ epatch "${FILESDIR}/tetex-${TETEX_PV}-mptest.patch"
+
+ #bug 98029
+ epatch "${FILESDIR}/${P}-fmtutil-etex.patch"
+
+ #bug 115775
+ # ptex included
+ #epatch "${FILESDIR}/tetex-${TETEX_PV}-xpdf-vulnerabilities.patch"
+
+ # bug 94860
+ epatch "${FILESDIR}/${P}-pdftosrc-install.patch"
+
+ # bug 126918
+ epatch "${FILESDIR}/tetex-${TETEX_PV}-create-empty-files.patch"
+
+ # bug 94901
+ epatch "${FILESDIR}/tetex-${TETEX_PV}-dvipdfm-timezone.patch"
+
+ # security bug #170861
+ # ptetex included
+ # epatch "${FILESDIR}/tetex-${TETEX_PV}-CVE-2007-0650.patch"
+
+ # security bug #188172
+ # ptetex included
+ #epatch "${FILESDIR}/tetex-${TETEX_PV}-xpdf-CVE-2007-3387.patch"
+
+ # security bug #198238
+ epatch "${FILESDIR}/tetex-${TETEX_PV}-dvips_bufferoverflow.patch"
+
+ # securty bug #196735
+ # ptetex included
+ #epatch "${FILESDIR}/xpdf-3.02pl2.patch"
+
+ # Construct a Gentoo site texmf directory
+ # that overlays the upstream supplied
+ # target not found
+ #epatch "${FILESDIR}/tetex-${TETEX_PV}-texmf-site.patch"
+
+ # security bug #198238
+ epatch "${WORKDIR}/${P}-dviljk-security-fixes.patch"
+
+ # security bug #198238 and bug #193437
+ epatch "${FILESDIR}/tetex-${TETEX_PV}-t1lib-SA26241_buffer_overflow.patch"
+
+ cd "${TETEX_S}/texk/dviljk"
+ eautoreconf
+}
+
+src_compile() {
+ unset TEXMFMAIN TEXMF HOME
+
+ emake c || die "emake c failed"
+ emake macro || die "emake macro failed"
+ emake otf || die "emake otf failed"
+ emake fonty || die "emake fonty failed"
+ emake babel || die "emake babel failed"
+
+ einfo "Setting ptetex-cmap ..."
+ cd "${WORKDIR}/${PTETEX_CMAP}"
+ PATH="${BUILD_DIR}/bin:$PATH" ./setup.sh "${BUILD_DIR}"/share/texmf/fonts/cmap
+}
+
+src_install() {
+ #tetex-3_src_install
+ einfo "Installing ptetex3 binaries ..."
+ dobin "${BUILD_DIR}"/bin/*
+ dolib "${BUILD_DIR}"/lib/*
+
+ einfo "Installing /usr/include/* files ..."
+ insinto /usr/include
+ doins -r "${BUILD_DIR}"/include/*
+
+ einfo "Installing /usr/share/* files ..."
+ insinto /usr/share
+ #doins -r "${BUILD_DIR}"/share/*
+ cp -dr "${BUILD_DIR}"/share/* "${D}"/usr/share
+
+ einfo "Installing document files ..."
+ doman "${BUILD_DIR}"/man/*/*
+ doinfo "${BUILD_DIR}"/info/*
+
+ einfo "Installing jis and morisawa fonts ..."
+ insinto /usr/share/texmf/fonts/tfm
+ doins -r "${WORKDIR}"/jis/tfm/* || die "installing jis/tfm failed"
+ doins -r "${WORKDIR}"/morisawa/tfm/* || die "installing morisawa/tfm failed"
+
+ einfo "Installing texmf files ..."
+ find "${WORKDIR}"/${TETEX_TEXMF} -maxdepth 1 -mindepth 1 -type f | xargs rm -f
+ insinto /usr/share/texmf
+ doins -r "${WORKDIR}"/${TETEX_TEXMF}/*
+
+ einfo "Installing other files ..."
+ insinto /usr/share/texmf/fonts/map/dvips/tetex
+ doins "${WORKDIR}"/${TETEX_S}/texk/pdvipsk/psfonts_jp.map
+ #insinto /var/lib/texmf/web2c
+ insinto /usr/share/texmf/web2c
+ doins -r "${BUILD_DIR}"/share/texmf-config/web2c/*
+ doins -r "${BUILD_DIR}"/share/texmf-var/web2c/*.fmt
+
+ einfo "Removing unnecessary files ..."
+ rm -r "${D}"/usr/share/texmf/doc
+ #rm -r "${D}"/usr/share/texmf-config
+ #rm -r "${D}"/usr/share/texmf-var
+ rm -r "${D}"/usr/share/texmf/web2c/texmf.cnf.*
+ rm -r "${D}"/usr/share/texmf/web2c/fmtutil.cnf.*
+ rm -r "${D}"/usr/info/dir
+ #find "${D}"/usr/share/texmf | grep "ls-R" | xargs rm -f
+
+ einfo "Installing texmf-update scripte ..."
+ dosbin "${FILESDIR}"/texmf-update
+ #einfo "Making ls-R files ..."
+ #TEXMF="${D}"/usr/share/texmf "${D}"/usr/bin/mktexlsr || die
+}
+
+pkg_config() {
+ if [ "$ROOT" = "/" ] ; then
+ /usr/sbin/texmf-update
+ fi
+
+ elog
+ elog "Japanese dvips and xdvi have been renamed to pdvipsk and pxdvik."
+ #elog "You also need to emerge app-text/dvipdfmx to convert dvi into PDF."
+ elog
+}