summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2013-06-27 15:08:45 +0000
committerAlexis Ballier <aballier@gentoo.org>2013-06-27 15:08:45 +0000
commit44d2d7e3ab6de4da9230993d1ae9d9c21fbb3fc3 (patch)
tree019513d6cbd1f6d163307dd7bdb935dfc9327238 /dev-libs/kpathsea
parentGenerate LASTCHANGE.blink (bug #474576 by Julien Sanchez). Also switch to htt... (diff)
downloadhistorical-44d2d7e3ab6de4da9230993d1ae9d9c21fbb3fc3.tar.gz
historical-44d2d7e3ab6de4da9230993d1ae9d9c21fbb3fc3.tar.bz2
historical-44d2d7e3ab6de4da9230993d1ae9d9c21fbb3fc3.zip
Version bump. Block old texlive-core since the config files it installs will break it completely at runtime. Use this opportunity to move texmf-update here since it makes more sense.
Package-Manager: portage-2.2.0_alpha185/cvs/Linux x86_64 Manifest-Sign-Key: 0x160F534A
Diffstat (limited to 'dev-libs/kpathsea')
-rw-r--r--dev-libs/kpathsea/ChangeLog10
-rw-r--r--dev-libs/kpathsea/Manifest26
-rw-r--r--dev-libs/kpathsea/files/texmf-update165
-rw-r--r--dev-libs/kpathsea/kpathsea-6.1.1_p20130530.ebuild108
4 files changed, 293 insertions, 16 deletions
diff --git a/dev-libs/kpathsea/ChangeLog b/dev-libs/kpathsea/ChangeLog
index 66f68d891f2d..6da98a51bad1 100644
--- a/dev-libs/kpathsea/ChangeLog
+++ b/dev-libs/kpathsea/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for dev-libs/kpathsea
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/kpathsea/ChangeLog,v 1.41 2013/04/25 21:25:56 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/kpathsea/ChangeLog,v 1.42 2013/06/27 15:08:32 aballier Exp $
+
+*kpathsea-6.1.1_p20130530 (27 Jun 2013)
+
+ 27 Jun 2013; Alexis Ballier <aballier@gentoo.org>
+ +kpathsea-6.1.1_p20130530.ebuild, +files/texmf-update:
+ Version bump. Block old texlive-core since the config files it installs will
+ break it completely at runtime. Use this opportunity to move texmf-update
+ here since it makes more sense.
25 Apr 2013; Agostino Sarubbo <ago@gentoo.org>
kpathsea-6.1.0_p20120701.ebuild:
diff --git a/dev-libs/kpathsea/Manifest b/dev-libs/kpathsea/Manifest
index 6d87e380a60f..1f1596454eb7 100644
--- a/dev-libs/kpathsea/Manifest
+++ b/dev-libs/kpathsea/Manifest
@@ -2,32 +2,28 @@
Hash: SHA256
AUX invocname.patch 800 SHA256 99d132726cf4d385fb53d230463f52c9f13b00e15a82ff3f6098dc3a3ce5474f SHA512 8c5e0d3fb8c4c97b4d0904a4cba985c4856f60625135a7289bd6ca9f99c331a8ab0dca9fdbdc4a1fd9377d0238ee4190f34ab8232a258030f844343e600024ba WHIRLPOOL 8c506d0102be0d9fc3efb917664b63850189a05c16ec370da32a36d857abef26934eb2cd8f0fe42b3e215e431fa81b629465624240dc2bed71f09e845af07f7f
+AUX texmf-update 5163 SHA256 b19566f0c8032a7f24ee0ead26d627e306ee360aa8a5948a1256bc2760f89856 SHA512 e89bb321b438a70c23db587ac092cb8a98c783157c42bf1df80dce00e10c58741b5a6c685a3ee5511b61f4a2a98b833faf3d6d8f8dc24ab2e4a4342875d8454c WHIRLPOOL c62b97abaadf95b1452851ac88a7575001ca09f4e26f8e582f6fffde0b90c5fdafc0d78f3ec030152bd34a7cec44e5ae2ad2bab46d978dabb90a69d4b6f95b41
DIST kpathsea-texmf.d-3.tar.xz 10540 SHA256 44e407b6daecd1a1943f650d2cb412d784b472fad26d3e9257bac8e8a741c706 SHA512 0b15274ac4d6eaddfac7ecd3396126f0448d29776614fbd8483c2a5cc44183871a17bcf887a42022fe4bf9b93da2d4175b4292bc1b8a516d900d19c5c5b1bc5a WHIRLPOOL a0e77c6b3539133ee60ca10a45c8622222ed92005c3451b3b541933b0dcc24612b0dd1f7947fd255a43cebbe84d77feba452be00fa9b73a30f1b862bd68f9398
DIST kpathsea-texmf.d-4.tar.xz 11148 SHA256 d5cc455db13afb9a229892380f835e57e932aedf8d02c8f12895ce682888b88e SHA512 a2906e4f8ec0fdbe31d618878a0633ab52f8dc71ef31d7608190d1f37bf3003b6d2c204520edc249c0c49b8f7308f24a283ca9510033378442093a8194a7bea5 WHIRLPOOL ba1a9aec8f5c040f7124d0720d2600bdb9253d82c859249c871576ac1c5255b81d0b14c3cd381ff8b2e5aae021e694383f93fee3459603615f7187daef35ec2e
+DIST kpathsea-texmf.d-5.tar.xz 11180 SHA256 85d9e1ed697859952a3ba273314f8670454016f3cd1988f0ea17f0cab8630a19 SHA512 23e8134340ae6f10baddef91f642a34c9289d84ccf791bd66779e794cfeed4eeadebd8cb1062e2e545a042e9c64cc9121f893279ddf776aae11c30baffc7f3af WHIRLPOOL b432effa293c410d019b20fa9dc848f3e67b71bb66af27b4e41ed814df688b933ffb30831411358222e170f75c38d2733e671c8224025516cc9c2aed0be8599d
DIST texlive-20110705-source.tar.xz 131207904 SHA256 772d19795fd841737f5b00472810b49d98b3b62373fba67c12c757e95c510da2 SHA512 1efb5713bf80379f5104b41576911a4194d378ce35be5afb568c3b4aff6461b2b22e72fb34bc294021cf14a28d07bab083872f17752441f269f36c50f9363cc1 WHIRLPOOL 11cc5b53dedae8977b5d776f9141a849b23b877b836f56469336018e3529ebbf369c99d534c1d645aa99fe0750968f0089034a232dcf9401967e20afb5ce8dd5
DIST texlive-20120701-source.tar.xz 131904044 SHA256 9666617d5dac3e82578e696835cc9f251ee0a56d162d86dff08659ac5dcb6c81 SHA512 0e8653aa21094e079900d17256f0768ac5514690a3725d96923d5fdc7633484d611441df1af8c674b38b9ce6a8845a9004976cd00635742dfc6837aa433caf5f WHIRLPOOL 9d570a1bd58cca8baed399ab53eb767c7c3db607c00363ce563e14dfccdd235703c538e6a651aa7f2934adf21f8477775f1547f9e7f3d957b89af644c89bcb57
+DIST texlive-20130530-source.tar.xz 179963948 SHA256 a905832e4c04dd1cb16db4bb7baacb78fbc19682bd33ac2697a3a85ce78d79d4 SHA512 4aa85273a675af2453f09777b7cb348c18add77410d72f562c6586f6814d4e7c34b6f3690e3453020654fb0a265339fcabf590d9155367d52846224499af334c WHIRLPOOL 3affaf25d3936505d971599092964b0f0e97d107d22dbac6a85ad547e1d2726a6a09c5075fecb0c6ff8c88bc1bd09d78f95902f76eb76c608f8a7bc42dd6bc33
DIST texlive-module-kpathsea-2011.tar.xz 31300 SHA256 465bdbd6b3d47287422e53c185614cd28ef4da33fa375537484456e5bbc617a8 SHA512 5cccf0a38454ff3f917ac81e541913fe34edc4ecd2711cc39c344e64c3ee5659b40030b7b7fd7d3b34976070ebfd87c61135a9bdcf2c3837ce42f344ac6c21c3 WHIRLPOOL 7f31053f7885732250251a04c1d1b41dd2b29ff657a1e6138021badd4c5a65d76e3ecaa61af7e514d3fb7ae12b685f1b201d5302a10809842433046682caf22a
DIST texlive-module-kpathsea-2012.tar.xz 30060 SHA256 528044bcea040d00016c5b22c10a856774368ff4d030907a84647a05dadafc08 SHA512 e89d4a37c0b4555a38f20bf9020355f01416a2483ff2b9535343b678442ec8547663da5e2a2fb84c32d4db621bebf7fb878df52e20fb32123985aaa9d61e44cb WHIRLPOOL 3f332ae9f5409370f9966e29418d22a57af7e1e483c6b24828afaeac8644a73dd658418e1d45d487bf8325770113a3c5593351c39852a7374bf85a481179bfc8
+DIST texlive-module-kpathsea-2013.tar.xz 30120 SHA256 1891e7c6b57aca72d2b6d749526ee49bffe62f10736875c886d7bc1e02eeb8a0 SHA512 7642cebecf5ebe916aee0f8f19d1740e3e3f234454429cb5f88d550f41ec93e8fbfebdf7de0a893bd22cec17222adc9f8c2e6756dd22b21a34ad181baf0753a9 WHIRLPOOL 8d7be24abc8485d29e3fed363d43d0da5d657d98f3de4f28e6ee2f632b0609b846f26b9ccb82fa86b42a449ce21b75742f63db7fe264a0fe2befb1a6de62055f
DIST texlive-module-kpathsea.doc-2011.tar.xz 1092812 SHA256 f9588e1ce59dcc434c23ba8b862f6781628ed4c538514cf2070667cf71ff9414 SHA512 42d8091af858a9381449449a30b349e8fae51405d862162682d1f852d7ec49a21caa3e29c907e6261a1843456849bda5a2e2c63988e206d55a92bf002e18c0d0 WHIRLPOOL ccf3ce320231d76cec32f867df39fffbdc88c188a9439798bec01ed86a2c0466c19ac796f40eb8c0b9cb7c708065efc11eb1453c2382560b60d8922fcf32d0c2
DIST texlive-module-kpathsea.doc-2012.tar.xz 1092220 SHA256 df92d722d168a527669e4b093217c6595b1cb30eb65f55bbf80d29745ad9ca3b SHA512 ef455d4cf755bb7aa06f475cfc50dd00343331fb4d985334866121306eda697aed0131b0591efb94bc87710b7eb9bdd9eb0ea4d567779e2684ca33e21e8bf645 WHIRLPOOL 66e76ac53a62e120b3dc39c8e76bac29126d799ba9dc8b5963e6722f6c3c908b2fa04071416d6218f5e4e99ed4852103dc61de7e413d8502f876fecaf7f3ec8d
+DIST texlive-module-kpathsea.doc-2013.tar.xz 1086956 SHA256 2697dd13f35e0c51254c0857fecc4cf480d7ab1799325e4996e7a39380b77b38 SHA512 8bab0f70815b0298c62be560974d213c2e29b95bf06181598d976c962e1ecb66da5a3d6facd711adfd70dc1bdb64228b2916cdac568c1165324e348b0adda678 WHIRLPOOL b6ca6dd58b8b4216f4bb256aef4f206b8413afec911d42365ddfc59f10a62b4ef342eeea56ede962236fc90cd4e2a08e27f4705e892b32f8b4b427ecc8d03a4a
EBUILD kpathsea-6.0.1_p20110705.ebuild 3190 SHA256 cdf68bd5c046f710b1844f83526569425e8fbdb43686d8b488f60b4a6b1ea195 SHA512 031162c17518b88a1bed2ebc44259b5d05795e2619fb6b76733236c7b0cce359d9de8ba20f75241790e65ff8177bedad6d69883a13f18f5651bf58a67ff29b33 WHIRLPOOL d272a91be02c0f8262ea83ada66027fbbee4939c54e411595658739d88edd922612f9c9aa6898a7ae67da5e82387e78e821670b536dbf851162a1c904e2d6ae7
EBUILD kpathsea-6.1.0_p20120701.ebuild 3213 SHA256 bda76422c6558e2bada9b0282c021feceae2274d5406434aec7e9991df862677 SHA512 1fecb050de02b966189c0390c1a3fa638f93c630625cf3ea0bb33e682459ccfb927917d0df63f2a9822987fc59c99b55c6495f7c45956fba6d834d499ccc8303 WHIRLPOOL b7fc5cea811282526dd73cb6b50f4d1635a5c29ad4f90d0bc99bff23af8df2365e6e6c2407757035bca63a195003da8de726713ef8970a338bb83fa3177f68f3
-MISC ChangeLog 5679 SHA256 536e055bb5c4a2651e111bac1893cc4e4d9b793ceab3479d6b8d8434736b6d32 SHA512 db08a1be4054d5d91064a1d5d318e0a3783da6346477a36bac9a34e02dbf7fd1898330e8650b522c137edc707d928e0ded00b5e15411d081ddab43de25925751 WHIRLPOOL 6ca2284ab2b36c3ac63b4216f85d5d03a9e09246af854ef628195e584c9f46014e18215d3c86ee622aebd120833c8137c9582274a04309d1b55ed6aa6dd0ddab
+EBUILD kpathsea-6.1.1_p20130530.ebuild 3322 SHA256 b83dc5cf6fb93e59628cb739f57b1777518124646f82d2d22809766b242017f2 SHA512 dafae37ab1f0cd57f339c059a1f85e4b3226fce94d2a11bd1533d2c8cc315b4926f85e2440b762ae009b3ba4a96b31a0fd4d6d52176c03422a3ffdc9e653cbb1 WHIRLPOOL e8531d96ea70eb5a62e6217e9ad8f2b0f6b6f6dd534b6a0fc63d4ea7cd9f610c52d5b304e6b0d0c180333ad451acdc92c96c7ee0839dd2c2434b9dd65a4b06f4
+MISC ChangeLog 6024 SHA256 9fe315a6b032df0fb7a849972aa2d130068d869986dd7bc5d692c25c172579a6 SHA512 cf7931407ff016715a66d8356246e5d4de45a3cad6773300bd593055b9ae18c6f50b8b2b945e0f12933ef8f84161ecdf06839b9c82cb84fe4f740bd3f82138f4 WHIRLPOOL c99af2af2e9958e80d18fa2dc2a54eb094d8010b2284ef197ae5a320be85d6d5014c5df57623c37ab943b77675d72aec1679f4dca59f002667e1c1f0097fd1ee
MISC metadata.xml 254 SHA256 78294df0a1d0e815b05f968bb43c4272d420e3025a38ea2d4fe6193a918a8e10 SHA512 1d0e4d92def0b0187a09480fb289fecf98812c95736ef3772e0763a1572181f6f31ae558b1dd9bdcfad3bf3768440122ee774ec56f1a9d4b18103a8a8efcb6d0 WHIRLPOOL c033be17e138d0533bd36185df412dc39ed32269b8875e53417f9e320461e7dcf9133479f2497cbaa3ef579dd65b7ac25490976c7c9a3250fc606e5448415268
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
+Version: GnuPG v2.0.20 (GNU/Linux)
-iQIcBAEBCAAGBQJReZ9nAAoJELp701BxlEWfkxoP/3IEw4OrFus+pvE93Azq6vMN
-n6x+gALZT+46RJJcsv/jLaKkmn7gx+bI7MtOfpwyulgTHbYFRNmtL/ufxrYqgMli
-y4hHkorVhmS7kzOcwcvwURHS52bNdFpVulxRInLFW9nVUb06iGRaUWz5O53Ph87V
-tanTqK2sgKlDME4K6ko9zC4IvnbBpxtAEtiyXXxz1k5EIj4iUtXdlgk/lOtUbRg5
-2Y3ZWfS4CZNnQQLZ/7l8tM1WhIV+mU8ocZzZ+TADsPbr+2Mpx3wECvGeMoCnj59k
-pMG8k/9+4DIruaXL23ilQztMO7LcgdblyDAVzV4pjO3q5t5DrgMMMOtBfpXyB34p
-f5vNU/a1lEqMwI+UzX4nf5iysjNuKXChwZgXzxeIgeOcO1KnqGOpdO1mQq6qdff0
-BDxPmFQWONuS5t59WUyVDYN1Ffp636fdJbbkZMMPmOy01+Goed9B96wfODsi3h46
-YWmZWXX5O6qoyyzjnhxVqFgeJGQHa/RsGkUNCBWrAnkWLR2YJX3CRaWNHgE0w6Oy
-aDlb8MB0whhRVW35YlX/KCnX2JV7sTwpWEDMCjuPWsm/m66jEqFDDBkLuqL/Az32
-l48kbKnjRXtDE7hci5decZx29SsBOOfhqPpaPpQJI3wNKE2PpPSiG8vFGqgt8OY7
-AeDgm42+EdCpq06usSjK
-=MYWb
+iEYEAREIAAYFAlHMVXEACgkQvFcC4BYPU0rJDwCgjigF8cJY8Zpz1W5jp7PJX1tq
+21oAnRzoxoLUKayb5e8NGEUj9Z3B/uQ7
+=uZ7e
-----END PGP SIGNATURE-----
diff --git a/dev-libs/kpathsea/files/texmf-update b/dev-libs/kpathsea/files/texmf-update
new file mode 100644
index 000000000000..a877823e7c1e
--- /dev/null
+++ b/dev-libs/kpathsea/files/texmf-update
@@ -0,0 +1,165 @@
+#!/bin/bash
+#
+# Utility to update Gentoo TeXLive distribution configuration files
+#
+
+echo "Configuring TeXLive ..."
+
+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
+
+MKTEMP_COMMAND="mktemp -t tmp.XXXXXXXXXX"
+DIFF_COMMAND="cmp -s"
+TEMP_FILE="`${MKTEMP_COMMAND}`"
+
+if [ -z "${TEMP_FILE}" ]; then
+ exit
+fi
+
+# check whether config files for fmtutil and updmap have changed
+STATUS_FMTUTIL="0"
+STATUS_UPDMAP="0"
+
+if [ -d /etc/texmf/texmf.d ]; then
+ echo "Generating /etc/texmf/web2c/texmf.cnf from /etc/texmf/texmf.d ..."
+ cat /etc/texmf/texmf.d/*.cnf > "/etc/texmf/web2c/texmf.cnf"
+fi
+
+if [ -d /etc/texmf/fmtutil.d ]; then
+ echo "Generating /etc/texmf/web2c/fmtutil.cnf from /etc/texmf/fmtutil.d ..."
+ if [ -f /etc/texmf/web2c/fmtutil.cnf ]; then
+ cp -f /etc/texmf/web2c/fmtutil.cnf ${TEMP_FILE}
+ else
+ touch ${TEMP_FILE}
+ fi
+ cat /etc/texmf/fmtutil.d/*.cnf > "/etc/texmf/web2c/fmtutil.cnf"
+ ${DIFF_COMMAND} /etc/texmf/web2c/fmtutil.cnf ${TEMP_FILE}
+ STATUS_FMTUTIL="${STATUS_FMTUTIL}$?"
+else
+# if no regeneration took place:
+# always regenerate the formats to be on the safe side
+ STATUS_FMTUTIL="${STATUS_FMTUTIL}3"
+fi
+
+if [ -d /etc/texmf/updmap.d ]; then
+ if [ -f /etc/texmf/web2c/updmap.cfg ]; then
+ cp -f /etc/texmf/web2c/updmap.cfg ${TEMP_FILE}
+ else
+ touch ${TEMP_FILE}
+ fi
+ echo "Generating /etc/texmf/web2c/updmap.cfg from /etc/texmf/updmap.d ..."
+ cat /etc/texmf/updmap.d/*.cfg > "/etc/texmf/web2c/updmap.cfg"
+ ${DIFF_COMMAND} /etc/texmf/web2c/updmap.cfg ${TEMP_FILE}
+ STATUS_UPDMAP="${STATUS_UPDMAP}$?"
+else
+# if no regeneration could be done:
+# always regenerate the maps to be on the safe side
+ STATUS_UPDMAP="${STATUS_UPDMAP}3"
+fi
+
+echo "Generating ls-R files"
+mktexlsr &>/dev/null
+
+# Generate language.dat file, from texlive install-pkg.sh
+X=`kpsewhich language.dat`
+Z=`dirname $X`
+if [ -n "$X" -a -f "$Z/language.dat" -a -f "$Z/language.us" ] ; then
+ echo "Generating language.dat file"
+
+ # Save the old one, we will check if it has changed
+ cp -f "$Z/language.dat" "${TEMP_FILE}"
+
+ cat "$Z/language.us" > "$Z/language.dat"
+ for i in /etc/texmf/language.dat.d/language.*.dat; do
+ [ -f "$i" ] && cat "$i" >> "$Z/language.dat"
+ done
+
+ ${DIFF_COMMAND} "$Z/language.dat" "${TEMP_FILE}"
+ STATUS_FMTUTIL="${STATUS_FMTUTIL}$?"
+fi
+
+# Generate language.def file.
+if [ -n "$X" -a -f "$Z/language.def" -a -f "$Z/language.us.def" ] ; then
+ echo "Generating language.def file"
+
+ # Save the old one, we will check if it has changed
+ cp -f "$Z/language.def" "${TEMP_FILE}"
+
+ cat "$Z/language.us.def" > "$Z/language.def"
+ for i in /etc/texmf/language.def.d/language.*.def; do
+ [ -f "$i" ] && cat "$i" >> "$Z/language.def"
+ done
+ cat << EOF >> "$Z/language.def"
+%%% No changes may be made beyond this point.
+
+\uselanguage {USenglish} %%% This MUST be the last line of the file.
+EOF
+
+ ${DIFF_COMMAND} "$Z/language.def" "${TEMP_FILE}"
+ STATUS_FMTUTIL="${STATUS_FMTUTIL}$?"
+fi
+
+# Generate language.dat.lua file.
+if [ -n "$X" -a -f "$Z/language.dat.lua" -a -f "$Z/language.us.lua" ] ; then
+ echo "Generating language.dat.lua file"
+
+ # Save the old one, we will check if it has changed
+ cp -f "$Z/language.dat.lua" "${TEMP_FILE}"
+
+ cat "$Z/language.us.lua" > "$Z/language.dat.lua"
+ for i in /etc/texmf/language.dat.lua.d/language.*.dat.lua; do
+ [ -f "$i" ] && cat "$i" >> "$Z/language.dat.lua"
+ done
+ printf "}\n" >> "$Z/language.dat.lua"
+
+ ${DIFF_COMMAND} "$Z/language.dat.lua" "${TEMP_FILE}"
+ STATUS_FMTUTIL="${STATUS_FMTUTIL}$?"
+fi
+
+if [ "${STATUS_FMTUTIL}" -ne 0 ] ; then
+ echo "Generating format files ..."
+ fmtutil-sys --all &>/dev/null
+else
+ echo "Skipping format files, since they are unchanged"
+fi
+
+if [ "${STATUS_UPDMAP}" -ne 0 ] ; then
+ echo "Generating font maps..."
+ updmap-sys &>/dev/null
+else
+ echo "Skipping font maps, since they are unchanged"
+fi
+
+rm -f ${TEMP_FILE}
+
+echo
+echo "Use 'texconfig font ro'(rw) to disable (enable) font generation for users"
+echo
diff --git a/dev-libs/kpathsea/kpathsea-6.1.1_p20130530.ebuild b/dev-libs/kpathsea/kpathsea-6.1.1_p20130530.ebuild
new file mode 100644
index 000000000000..77e270f97a53
--- /dev/null
+++ b/dev-libs/kpathsea/kpathsea-6.1.1_p20130530.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/kpathsea/kpathsea-6.1.1_p20130530.ebuild,v 1.1 2013/06/27 15:08:32 aballier Exp $
+
+EAPI=5
+
+inherit texlive-common eutils libtool
+
+TEXMFD_VERSION="5"
+
+DESCRIPTION="Library implementing generic path searching, configuration, and TeX-specific file searching"
+HOMEPAGE="http://tug.org/texlive/"
+SRC_URI="mirror://gentoo/texlive-${PV#*_p}-source.tar.xz
+ mirror://gentoo/${PN}-texmf.d-${TEXMFD_VERSION}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc source static-libs"
+
+DEPEND="!<app-text/texlive-core-2013
+ !app-text/ptex"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/texlive-${PV#*_p}-source/texk/${PN}
+
+TL_VERSION=2013
+EXTRA_TL_MODULES="kpathsea"
+EXTRA_TL_DOC_MODULES="kpathsea.doc"
+
+for i in ${EXTRA_TL_MODULES} ; do
+ SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${TL_VERSION}.tar.xz"
+done
+
+SRC_URI="${SRC_URI} doc? ( "
+for i in ${EXTRA_TL_DOC_MODULES} ; do
+ SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${TL_VERSION}.tar.xz"
+done
+SRC_URI="${SRC_URI} ) "
+
+TEXMF_PATH=/usr/share/texmf-dist
+
+src_prepare() {
+ cd "${WORKDIR}/texlive-${PV#*_p}-source"
+ S="${WORKDIR}/texlive-${PV#*_p}-source" elibtoolize #sane .so versionning on gfbsd
+}
+
+src_configure() {
+ # Too many regexps use A-Z a-z constructs, what causes problems with locales
+ # that don't have the same alphabetical order than ascii. Bug #347798
+ # So we set LC_ALL to C in order to avoid problems.
+ export LC_ALL=C
+
+ # Disable largefile because it seems to cause problems on big endian 32 bits
+ # systems...
+ econf \
+ --disable-largefile \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ emake DESTDIR="${D}" web2cdir="${EPREFIX}/usr/share/texmf-dist/web2c" install
+ find "${D}" -name '*.la' -delete
+
+ dodir /usr/share # just in case
+ cp -pR "${WORKDIR}"/texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees"
+ if use source ; then
+ cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files"
+ fi
+
+ # The default configuration expects it to be world writable, bug #266680
+ # People can still change it with texconfig though.
+ dodir /var/cache/fonts
+ fperms 1777 /var/cache/fonts
+
+ # Take care of fmtutil.cnf and texmf.cnf
+ dodir /etc/texmf/{fmtutil.d,texmf.d}
+
+ # Remove default texmf.cnf to ship our own, greatly based on texlive dvd's
+ # texmf.cnf
+ # It will also be generated from /etc/texmf/texmf.d files by texmf-update
+ rm -f "${ED}${TEXMF_PATH}/web2c/texmf.cnf"
+
+ insinto /etc/texmf/texmf.d
+ doins "${WORKDIR}/texmf.d/"*.cnf
+
+ # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files
+ # by texmf-update
+ rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf"
+
+ dosym /etc/texmf/web2c/fmtutil.cnf ${TEXMF_PATH}/web2c/fmtutil.cnf
+ dosym /etc/texmf/web2c/texmf.cnf ${TEXMF_PATH}/web2c/texmf.cnf
+
+ newsbin "${FILESDIR}/texmf-update" texmf-update
+
+ # Keep it as that's where the formats will go
+ keepdir /var/lib/texmf
+
+ dodoc BUGS ChangeLog NEWS PROJECTS README
+}
+
+pkg_postinst() {
+ etexmf-update
+}
+
+pkg_postrm() {
+ etexmf-update
+}