Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/kpathsea/files/, dev-libs/kpathsea/
Date: Fri, 02 Apr 2021 07:25:17
Message-Id: 1617348037.c61729fe85767e7f4fa54d99282f8dadd16e50df.zlogene@gentoo
1 commit: c61729fe85767e7f4fa54d99282f8dadd16e50df
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 2 07:16:53 2021 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 2 07:20:37 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c61729fe
7
8 dev-libs/kpathsea: Version bump (v6.3.3_p20210325)
9
10 Package-Manager: Portage-3.0.17, Repoman-3.0.2
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 dev-libs/kpathsea/Manifest | 1 +
14 dev-libs/kpathsea/files/kpathsea.conf | 1 +
15 dev-libs/kpathsea/kpathsea-6.3.3_p20210325.ebuild | 106 ++++++++++++++++++++++
16 3 files changed, 108 insertions(+)
17
18 diff --git a/dev-libs/kpathsea/Manifest b/dev-libs/kpathsea/Manifest
19 index 4ad13c50738..21b83650638 100644
20 --- a/dev-libs/kpathsea/Manifest
21 +++ b/dev-libs/kpathsea/Manifest
22 @@ -1,4 +1,5 @@
23 DIST kpathsea-texmf.d-10.tar.xz 12784 BLAKE2B fcd9b46504c58da90babcbd1e5d4ea655d3cb85f4be0a7430da62758f9b11e68219adcafab9ae26756f3f9dfa97b460db3e8b8b1a27560d2f3a91e612336dc75 SHA512 f2cc6a1bbc7be463877fd57d5351fb9e7bda472f1094f93a6962e14f9d71067cdae87464b615818341728c9fbd32e67f060dc09a3590353715fbc31fe64f93ef
24 DIST texlive-20200406-source.tar.xz 55383320 BLAKE2B 3bc024166ebfc269389531c7cf818b062856cd2dcc27cf0a2e790f07cd941d9905c9c6a54566ea627ea1ca334d2b6da8d3e5bd1c686dc9d6f8ac15aac388c1e3 SHA512 65be52cb5e1b52f12feb62c6cf23e56c581b9dccb8d3b9ccc85c12c62b0cb67dd71de8d22d967d2cbf8403502c66bccb238523d13a0d081be104fc9f9c68b477
25 +DIST texlive-20210325-source.tar.xz 54837368 BLAKE2B 66bd4bdd43ff53513004b9b9b90ababa0ab5efcf183a27864a3d39cde9cf90721456bda90c49ad6014f4b12d2e6293feaf9a8b152b85a89ffaa96bf5056347df SHA512 afd6eb24efaeac7c58d43ff24162aece919079a9ae02934509f068c7a3828223c33c14d9db11ff7fea3560b08a06f352446ba7f845eefb4a56a87b96f088f213
26 DIST tl-kpathsea-2020.tar.xz 32324 BLAKE2B bf4365d3ae47ce5344916d6622d40c121a34e722d166c983224f356c75d1b3e10216182ee79a76cf1dc703741e5302d8b427215a72af3060bae05b698ac0c316 SHA512 53887f73784f96528081bf9ce39fdaff3c94b2af1827cc2da7abddf2821c86c45f014ddcb624b24ed6265b7de25132dd106040f736fea180c122c9026f6cd101
27 DIST tl-kpathsea.doc-2020.tar.xz 1066608 BLAKE2B 02f9fd2e704392c6b82af9317418f4baeead00d02a204db0e7d58ba5eb9da6047a0bfd235123964c78bed5da68e79bd0964f943331f2ceb03ff591fd4efba266 SHA512 fd9d0de2cc576ced6ad5d0ba6dd07d0f8a1e63dc473de849148b5a7890277122f7a37ea6476db20ff3b56546cd467126a881505aa60ef66a86a232e35e3f3303
28
29 diff --git a/dev-libs/kpathsea/files/kpathsea.conf b/dev-libs/kpathsea/files/kpathsea.conf
30 new file mode 100644
31 index 00000000000..f68f5d5e125
32 --- /dev/null
33 +++ b/dev-libs/kpathsea/files/kpathsea.conf
34 @@ -0,0 +1 @@
35 +d /var/cache/fonts 1777 root root -
36
37 diff --git a/dev-libs/kpathsea/kpathsea-6.3.3_p20210325.ebuild b/dev-libs/kpathsea/kpathsea-6.3.3_p20210325.ebuild
38 new file mode 100644
39 index 00000000000..100fb4e9fb9
40 --- /dev/null
41 +++ b/dev-libs/kpathsea/kpathsea-6.3.3_p20210325.ebuild
42 @@ -0,0 +1,106 @@
43 +# Copyright 1999-2021 Gentoo Authors
44 +# Distributed under the terms of the GNU General Public License v2
45 +
46 +EAPI=7
47 +
48 +inherit texlive-common libtool prefix tmpfiles
49 +
50 +TEXMFD_VERSION="10"
51 +
52 +DESCRIPTION="Path searching library for TeX-related files"
53 +HOMEPAGE="http://tug.org/texlive/"
54 +SRC_URI="https://dev.gentoo.org/~zlogene/distfiles/texlive/texlive-${PV#*_p}-source.tar.xz
55 + https://dev.gentoo.org/~zlogene/distfiles/texlive/${PN}-texmf.d-${TEXMFD_VERSION}.tar.xz"
56 +
57 +LICENSE="GPL-2"
58 +SLOT="0/${PV%_p*}"
59 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
60 +IUSE="doc source static-libs"
61 +
62 +S=${WORKDIR}/texlive-${PV#*_p}-source/texk/${PN}
63 +
64 +TL_VERSION=2020
65 +EXTRA_TL_MODULES="kpathsea"
66 +EXTRA_TL_DOC_MODULES="kpathsea.doc"
67 +
68 +for i in ${EXTRA_TL_MODULES} ; do
69 + SRC_URI="${SRC_URI} https://dev.gentoo.org/~zlogene/distfiles/texlive/tl-${i}-${TL_VERSION}.tar.xz"
70 +done
71 +
72 +SRC_URI="${SRC_URI} doc? ( "
73 +for i in ${EXTRA_TL_DOC_MODULES} ; do
74 + SRC_URI="${SRC_URI} https://dev.gentoo.org/~zlogene/distfiles/texlive/tl-${i}-${TL_VERSION}.tar.xz"
75 +done
76 +SRC_URI="${SRC_URI} ) "
77 +
78 +TEXMF_PATH=/usr/share/texmf-dist
79 +
80 +src_prepare() {
81 + default
82 + cd "${WORKDIR}/texlive-${PV#*_p}-source" || die
83 + S="${WORKDIR}/texlive-${PV#*_p}-source" elibtoolize
84 + cp "${FILESDIR}/texmf-update-r2" "${S}"/texmf-update || die
85 + eprefixify "${S}"/texmf-update
86 +}
87 +
88 +src_configure() {
89 + # Too many regexps use A-Z a-z constructs, what causes problems with locales
90 + # that don't have the same alphabetical order than ascii. Bug #347798
91 + # So we set LC_ALL to C in order to avoid problems.
92 + export LC_ALL=C
93 +
94 + # Disable largefile because it seems to cause problems on big endian 32 bits
95 + # systems...
96 + econf \
97 + --disable-largefile \
98 + $(use_enable static-libs static)
99 +}
100 +
101 +src_install() {
102 + emake DESTDIR="${D}" web2cdir="${EPREFIX}/usr/share/texmf-dist/web2c" install
103 + find "${D}" -name '*.la' -delete || die
104 +
105 + dodir /usr/share # just in case
106 + cp -pR "${WORKDIR}"/texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees"
107 + if use source ; then
108 + cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files"
109 + fi
110 +
111 + # Take care of fmtutil.cnf and texmf.cnf
112 + dodir /etc/texmf/{fmtutil.d,texmf.d}
113 +
114 + # Remove default texmf.cnf to ship our own, greatly based on texlive dvd's
115 + # texmf.cnf
116 + # It will also be generated from /etc/texmf/texmf.d files by texmf-update
117 + rm -f "${ED}${TEXMF_PATH}/web2c/texmf.cnf" || die
118 +
119 + insinto /etc/texmf/texmf.d
120 + doins "${WORKDIR}/texmf.d/"*.cnf
121 +
122 + # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files
123 + # by texmf-update
124 + rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf" || die
125 +
126 + dosym ../../../../etc/texmf/web2c/fmtutil.cnf ${TEXMF_PATH}/web2c/fmtutil.cnf
127 + dosym ../../../../etc/texmf/web2c/texmf.cnf ${TEXMF_PATH}/web2c/texmf.cnf
128 +
129 + newsbin "${S}/texmf-update" texmf-update
130 +
131 + # Keep it as that's where the formats will go
132 + keepdir /var/lib/texmf
133 +
134 + dodoc ChangeLog NEWS PROJECTS README
135 +
136 + # The default configuration expects it to be world writable, bug #266680
137 + # People can still change it with texconfig though.
138 + dotmpfiles "${FILESDIR}"/kpathsea.conf
139 +}
140 +
141 +pkg_postinst() {
142 + tmpfiles_process "${FILESDIR}"/kpathsea.conf
143 + etexmf-update
144 +}
145 +
146 +pkg_postrm() {
147 + etexmf-update
148 +}