1 |
commit: e8e619ca803de9755d1807653072190dfa69d4ea |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 5 12:53:12 2017 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 5 13:02:44 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8e619ca |
7 |
|
8 |
dev-libs/kpathsea: bump to texlive 2017 version |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
dev-libs/kpathsea/Manifest | 3 + |
13 |
dev-libs/kpathsea/kpathsea-6.2.3_p20170524.ebuild | 110 ++++++++++++++++++++++ |
14 |
2 files changed, 113 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/kpathsea/Manifest b/dev-libs/kpathsea/Manifest |
17 |
index 1d7767a3ee8..1a79398c512 100644 |
18 |
--- a/dev-libs/kpathsea/Manifest |
19 |
+++ b/dev-libs/kpathsea/Manifest |
20 |
@@ -1,4 +1,7 @@ |
21 |
DIST kpathsea-texmf.d-8.tar.xz 11456 SHA256 054471f13f001f5f24c6aea24fa57d82a3fb349c362be545b5443e0d4db25364 SHA512 496ef6e3134f1b0507b15729416de86d72f41b518f4d382c78c2f39b0d603d3d44f8c8befdab2351d38d2a26fd87e5a73570a67b11dbb3f307b006f409a6f036 WHIRLPOOL a2ed25416b3a5c72b19f5a0ca4308af51496161f68152e471e4a78a1c0f0a5779973bcd3fa4edb37ebb1ca37039f19bb090b772c5913c1449a56c85faccea6b0 |
22 |
DIST texlive-20160523-source.tar.xz 45941100 SHA256 a8b32ca47f0a403661a09e202f4567a995beb718c18d8f81ca6d76daa1da21ed SHA512 915fa2f5e2099dd385ef81033db7aafdf09558c0c200fed0748a8a42fd61f69d3eaac9decea334e30981af739dd81061a9b1d6853c7f6d00285fe0be40e26c3e WHIRLPOOL 25d27fb7a7bdb47d40ddf951394e36546b184d71f2e09adb20698bd0f960e54841ddd0313a87510cb2ef43953eb4d9d05d30b88d25d15762dd774575c88fedbe |
23 |
+DIST texlive-20170524-source.tar.xz 63483372 SHA256 0161695304e941334dc0b3b5dabcf8edf46c09b7bc33eea8229b5ead7ccfb2aa SHA512 18c18940992ab94ce22e22ccd4ad798253ea14ac2ab296a10ea5e9a8da9f33989f2e2641b42b564d1d5fb53bd371da3e68726b676d706b469016ad146cd19daa WHIRLPOOL c4edaf427f0249942b36db105a65474e833735d6e9954682fe7e15ab327b26ccafb9174bf806d0b6c629b0f2a6b55e80022af291d9a2f377b82dff4fdec42d3d |
24 |
DIST texlive-module-kpathsea-2016.tar.xz 30696 SHA256 4a2e801e167d7d0b50c67e510b730ad92b8ad63cce5e28d7f35e3cc1ed931552 SHA512 330254cf76fd30bf3686dd48710f21c4804f2f6ea9b14e6033b2741c3e6ba627e51efe96da9a1089120d474e36aad1c052285a7ea394b76ee2d4d335b86095fd WHIRLPOOL 02ad551bd1af49e25f5fc35cddd59f65afed9e6c1899a14000cdedf0c4227edfa8b1038ec90f783f28090594164016f9c9ebbd1158dee048d24e81b1e8a9a446 |
25 |
+DIST texlive-module-kpathsea-2017.tar.xz 30956 SHA256 8fc4f5b9cfda255b4847f410ee6b04d984ee541d9242d664060b6861f44e9ce5 SHA512 df4bc2175394bb6e9726b2c09ccf04e2787f73d584dd6944a25b3aab1eb6e8b4bdcd14ca043b7fe4f6e240ede1bd7e9003b83e34dd3df8c685658b8dcddc83c9 WHIRLPOOL c28ecd85f7cb355c2be48078d6e3c91f0418d616f421fa7af35450fba6915c3f60b7c879c5c5dd41c9fc8c422dbbb92a53ee3ab72096f55f3f053472a4df1b80 |
26 |
DIST texlive-module-kpathsea.doc-2016.tar.xz 1128872 SHA256 f65ba5c972f2a1d837027dab288615344cbae70b961b110884b8de6008fa75be SHA512 1cfbb4b5a8647bf5da46b04c9bc911091aa3322b154d65544aa3a1163e24b6906d7e5420549ab0ba023250e6dfa90e75d3a20dffd2e7360fba068a5c3cece885 WHIRLPOOL f680b54f64b04b2722ec702c532678db894a6465261546fbbb3469adbf561413c1c34c08bbf96b62950ca733c3a52517d3a3007e3e1c157bc4cd7ebced08b5cb |
27 |
+DIST texlive-module-kpathsea.doc-2017.tar.xz 1128868 SHA256 e86fae197d4caaac87eaca3b2e9484a769879a93d51528feaf3fc60cc2f929c1 SHA512 af829f666c815da49b59bbe678a2c1e9fe45cbc528f484dfb6e43a1e52bbf0245a4e571505f5be2cc7cf7f5ebcdb06b862ac6e9f9b5390489f0fab10a11fd997 WHIRLPOOL 7803d0edaac93fd0297d5b3cd3d42f9690fc44b0f982b6cf857733cd1dcb5213f67e3ea33252c894749a1e1072cea9dd3853f848f4c07463bb113afea4c0b2d3 |
28 |
|
29 |
diff --git a/dev-libs/kpathsea/kpathsea-6.2.3_p20170524.ebuild b/dev-libs/kpathsea/kpathsea-6.2.3_p20170524.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..5ed3e151604 |
32 |
--- /dev/null |
33 |
+++ b/dev-libs/kpathsea/kpathsea-6.2.3_p20170524.ebuild |
34 |
@@ -0,0 +1,110 @@ |
35 |
+# Copyright 1999-2017 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=5 |
39 |
+ |
40 |
+inherit texlive-common eutils libtool prefix |
41 |
+ |
42 |
+TEXMFD_VERSION="8" |
43 |
+ |
44 |
+DESCRIPTION="Path searching library for TeX-related files" |
45 |
+HOMEPAGE="http://tug.org/texlive/" |
46 |
+SRC_URI="mirror://gentoo/texlive-${PV#*_p}-source.tar.xz |
47 |
+ mirror://gentoo/${PN}-texmf.d-${TEXMFD_VERSION}.tar.xz" |
48 |
+ |
49 |
+LICENSE="GPL-2" |
50 |
+SLOT="0/${PV%_p*}" |
51 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
52 |
+IUSE="doc source static-libs" |
53 |
+ |
54 |
+DEPEND="!<app-text/texlive-core-2013 |
55 |
+ !app-text/ptex" |
56 |
+RDEPEND="${DEPEND}" |
57 |
+ |
58 |
+S=${WORKDIR}/texlive-${PV#*_p}-source/texk/${PN} |
59 |
+ |
60 |
+TL_VERSION=2017 |
61 |
+EXTRA_TL_MODULES="kpathsea" |
62 |
+EXTRA_TL_DOC_MODULES="kpathsea.doc" |
63 |
+ |
64 |
+for i in ${EXTRA_TL_MODULES} ; do |
65 |
+ SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${TL_VERSION}.tar.xz" |
66 |
+done |
67 |
+ |
68 |
+SRC_URI="${SRC_URI} doc? ( " |
69 |
+for i in ${EXTRA_TL_DOC_MODULES} ; do |
70 |
+ SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${TL_VERSION}.tar.xz" |
71 |
+done |
72 |
+SRC_URI="${SRC_URI} ) " |
73 |
+ |
74 |
+TEXMF_PATH=/usr/share/texmf-dist |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ epatch "${FILESDIR}/insecure_tmp_mktexlsr.patch" |
78 |
+ cd "${WORKDIR}/texlive-${PV#*_p}-source" |
79 |
+ S="${WORKDIR}/texlive-${PV#*_p}-source" elibtoolize #sane .so versionning on gfbsd |
80 |
+ cp "${FILESDIR}/texmf-update-r2" "${S}"/texmf-update |
81 |
+ eprefixify "${S}"/texmf-update |
82 |
+} |
83 |
+ |
84 |
+src_configure() { |
85 |
+ # Too many regexps use A-Z a-z constructs, what causes problems with locales |
86 |
+ # that don't have the same alphabetical order than ascii. Bug #347798 |
87 |
+ # So we set LC_ALL to C in order to avoid problems. |
88 |
+ export LC_ALL=C |
89 |
+ |
90 |
+ # Disable largefile because it seems to cause problems on big endian 32 bits |
91 |
+ # systems... |
92 |
+ econf \ |
93 |
+ --disable-largefile \ |
94 |
+ $(use_enable static-libs static) |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ emake DESTDIR="${D}" web2cdir="${EPREFIX}/usr/share/texmf-dist/web2c" install |
99 |
+ find "${D}" -name '*.la' -delete |
100 |
+ |
101 |
+ dodir /usr/share # just in case |
102 |
+ cp -pR "${WORKDIR}"/texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees" |
103 |
+ if use source ; then |
104 |
+ cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files" |
105 |
+ fi |
106 |
+ |
107 |
+ # The default configuration expects it to be world writable, bug #266680 |
108 |
+ # People can still change it with texconfig though. |
109 |
+ dodir /var/cache/fonts |
110 |
+ fperms 1777 /var/cache/fonts |
111 |
+ |
112 |
+ # Take care of fmtutil.cnf and texmf.cnf |
113 |
+ dodir /etc/texmf/{fmtutil.d,texmf.d} |
114 |
+ |
115 |
+ # Remove default texmf.cnf to ship our own, greatly based on texlive dvd's |
116 |
+ # texmf.cnf |
117 |
+ # It will also be generated from /etc/texmf/texmf.d files by texmf-update |
118 |
+ rm -f "${ED}${TEXMF_PATH}/web2c/texmf.cnf" |
119 |
+ |
120 |
+ insinto /etc/texmf/texmf.d |
121 |
+ doins "${WORKDIR}/texmf.d/"*.cnf |
122 |
+ |
123 |
+ # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files |
124 |
+ # by texmf-update |
125 |
+ rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf" |
126 |
+ |
127 |
+ dosym /etc/texmf/web2c/fmtutil.cnf ${TEXMF_PATH}/web2c/fmtutil.cnf |
128 |
+ dosym /etc/texmf/web2c/texmf.cnf ${TEXMF_PATH}/web2c/texmf.cnf |
129 |
+ |
130 |
+ newsbin "${S}/texmf-update" texmf-update |
131 |
+ |
132 |
+ # Keep it as that's where the formats will go |
133 |
+ keepdir /var/lib/texmf |
134 |
+ |
135 |
+ dodoc ChangeLog NEWS PROJECTS README |
136 |
+} |
137 |
+ |
138 |
+pkg_postinst() { |
139 |
+ etexmf-update |
140 |
+} |
141 |
+ |
142 |
+pkg_postrm() { |
143 |
+ etexmf-update |
144 |
+} |