diff options
Diffstat (limited to 'dev-tex/cjk-latex')
-rw-r--r-- | dev-tex/cjk-latex/Manifest | 7 | ||||
-rw-r--r-- | dev-tex/cjk-latex/cjk-latex-4.8.4.ebuild | 163 | ||||
-rw-r--r-- | dev-tex/cjk-latex/metadata.xml | 12 |
3 files changed, 182 insertions, 0 deletions
diff --git a/dev-tex/cjk-latex/Manifest b/dev-tex/cjk-latex/Manifest new file mode 100644 index 000000000000..f9c40d9b28e9 --- /dev/null +++ b/dev-tex/cjk-latex/Manifest @@ -0,0 +1,7 @@ +DIST cjk-4.8.4-doc.tar.gz 2152418 SHA256 73775aec5a9006acecca45acaf7f3f59cbdeab7f3d2dfe3a1d983d6791fbf987 SHA512 453ff48554d950eeba53481e0643dcd96214627a12e685e1c39476e19aee9f5284ae347cf694df583c43cc273be44a5b56511bfc622144552f07e51d9e1e0877 WHIRLPOOL 494c1a7fa00e73fdbafe503842b44dc928edf6fd19426a7a5c623427a6e4a7e77edc5944a31ce7ef1b4a4e02d39f2e37c1a91b8918018791171240fe2fea0ea0 +DIST cjk-4.8.4-fonts.zip 20384230 SHA256 1625582b13a5f46532b5f7d0b0f25a9f72960017ad9b1074fbcf70cbbf45efb4 SHA512 ec55aa604f1e8b19936d0e22949f8100f6442c6c93a5f240a78c9891289d838dd29350dcb4d20998c3e7a13ba05d451934ed29a2d7e7cbbaf517db06a92204d1 WHIRLPOOL 0876b7908b1f0c164a3e28888e97b4b7d8f251ea56e84f0268053bd6b3cc7877ca4e1543c9afb4534b1a5a4860187bb038ef08a9d66567b4937eb46ee8ae0a45 +DIST cjk-4.8.4.tar.gz 556197 SHA256 17b3978a1558dbcb23a041076673c4b26856bfe975839a17363e35cd2f93a6ea SHA512 d1dc754c176331d0694561158554072083e6b8f2bbeb2516915c8bc8b15bbcedff81f2a14655cc9d77d832121971a5f9792e3c477336f9b5bcb77c8f15f8cfa3 WHIRLPOOL 9c1d94f676b86f91bf0496047b7bc3fd9f5ae70eae49390dc1e52a313fad8e342ed9cc254f58e7b5ba109ddbfc027145fe1caae1659fd2cd2234a10de5dc0871 +EBUILD cjk-latex-4.8.4.ebuild 3645 SHA256 7ce734ffe25fe8094159ca8b28259008bfa8044522ae7538b632917f1db264d1 SHA512 cbc1b43bdd36bc62fee20e5987093d69837b72bfa83ea8952ef5abcf71d99cb332e5acbc29d8750a30097f9313191b81728f64b8495bbfb7b5ff3263dc6a37b3 WHIRLPOOL 2bc733ba315e456919af15276444ff4700108538e616ce59a53616da16f8e16b021735a117782ca0473a84a636cda22988c88f1d93f65e8c91c6f7f583392434 +MISC ChangeLog 2798 SHA256 ef260f67879ee946e58ed3eb3d765ef0b8d555a94a4122ae62af27e025dae377 SHA512 8c2bcdea77ca51c31a060244dd87edeaa06288d5c16704713a7ae493ed8452a153df434c22224bf9b6c42506349cc5b3c74c211361c583b191b806444d80c152 WHIRLPOOL e8f9c83f1487d84c76855722c2e93fae9c4e22716d80df58e18c2b7aef53085c6280b058f00f4a775f996eb024b5abe05de77adc9eee7369dbfc7e97f1222cee +MISC ChangeLog-2015 8483 SHA256 b3fcac790800f9b4ea4bbc0f69f8083f96cc953ec101da7ae6ab768a658cd3fe SHA512 400c292975a4492052acd6069698b6ba2416be6f52286dfb719124abed8e9e40be730f62fa77d55003bab22a151bff2efbbcc11ab055f20cf0f24afde2ea770b WHIRLPOOL c7c61e66584ef6fb1b69437193d8f46343c9e422e976df9f50fe542a5d0b1f54a44b0d9e5490941a8e07f5b46f36a4fff72a3e24ad24d7f980fc902eef95cd98 +MISC metadata.xml 336 SHA256 75001e389eb66459d9ab250b67135fd6139916309c14cf92227ed3589986769c SHA512 02b448b851022e1aa1e70f9b7a5e21bf0d7d8638de6e8064a98dc2f7be856af7dbaa1ab527f5fd940083e0866748819ebc0c49dde4945a383958256b02aeaefb WHIRLPOOL 7d1333acabe9c8f6e44e3228b8baa1b6a3521b9c2d4a1aef39deda4d94db54617cbe3bb5c312a9c0e538341c3bb45dea1c8ac74ad663e796d5371a087595adea diff --git a/dev-tex/cjk-latex/cjk-latex-4.8.4.ebuild b/dev-tex/cjk-latex/cjk-latex-4.8.4.ebuild new file mode 100644 index 000000000000..4aab1482ece5 --- /dev/null +++ b/dev-tex/cjk-latex/cjk-latex-4.8.4.ebuild @@ -0,0 +1,163 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit latex-package elisp-common toolchain-funcs multilib eutils flag-o-matic + +MY_P="${P/-latex/}" + +DESCRIPTION="A LaTeX 2e macro package which enables the use of CJK scripts in various encodings" +HOMEPAGE="http://cjk.ffii.org/" +# fonts are taken from ftp://ftp.ctan.org/tex-archive/fonts/CJK.zip +SRC_URI="ftp://ftp.ffii.org/pub/cjk/${MY_P}.tar.gz + mirror://gentoo/${MY_P}-fonts.zip + doc? ( ftp://ftp.ffii.org/pub/cjk/${MY_P}-doc.tar.gz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="doc emacs" + +RDEPEND="virtual/latex-base + dev-libs/kpathsea + emacs? ( virtual/emacs )" +DEPEND="${RDEPEND} + virtual/pkgconfig + app-arch/unzip" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + for i in "${WORKDIR}"/CJK/*.tar.gz; do + tar -xzf ${i} || die "failed to unpack $i" + done + find texmf/fonts/hbf -type f -exec cp {} "${T}" \; || die + sed -i -e "/^pk_files/s/no/yes/" \ + -e "/^dpi_x/s/300/500/" \ + texmf/hbf2gf/*.cfg || die +} + +src_configure() { + has_version '>=dev-libs/kpathsea-6.2.1' && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)" + cd utils + for d in *conv; do + cd $d + local f=`echo $d | tr '[:upper:]' '[:lower:]'` + echo "all: $f" >> Makefile + if [ $d = CEFconv ] ; then + echo "all: cef5conv cefsconv" >> Makefile + fi + cd - + done + cd hbf2gf + econf --with-kpathsea-lib="${EPREFIX}"/usr/$(get_libdir) \ + --with-kpathsea-include="${EPREFIX}"/usr/include/kpathsea +} + +src_compile() { + tc-export CC + cd utils + for d in *conv; do + cd $d + emake || die + cd - + done + cd hbf2gf + emake || die + cd - + + if use emacs ; then + cd lisp + elisp-compile *.el + cd emacs + elisp-compile *.el + cd ../mule-2.3 + elisp-compile *.el + fi + + cd "${T}" + + for f in "${S}"/texmf/hbf2gf/*.cfg ; do + env TEXMFCNF="${EPREFIX}/etc/texmf/web2c" HBF_TARGET="${S}/texmf/fonts" "${S}/utils/hbf2gf/hbf2gf" $f || die + done + + einfo "Generating pk fonts" + for gf in *.gf ; do + einfo "${gf}" + gftopk $gf || die + done +} + +src_install() { + cd utils + for d in *conv; do + cd $d + local f=`echo $d | tr '[:upper:]' '[:lower:]'` + dobin *latex *conv + doman *.1 + cd - + done + cd hbf2gf + einstall || die "einstall failed" + + cd "${S}" + + # Install pk fonts + pushd texmf &>/dev/null + for d in fonts/pk/modeless/*/* ; do + insinto ${TEXMF}/${d} + for f in "${T}"/${d##*/}*.pk ; do + newins $f `basename ${f/.pk/.500pk}` || die "newins failed" + done + done + popd &>/dev/null + + insinto "${TEXMF}/tex/latex/${PN}" + doins -r texinput/* || die "installing texinput files failed" + doins -r contrib/wadalab || die "installing wadalab failed" + + if use emacs ; then + cd utils/lisp + elisp-install ${PN} *.el{,c} emacs/*.el{,c} mule-2.3/*.el{,c} + fi + + cd "${S}" + + # uwpatch stuff + insinto ${TEXMF}/scripts/uwpatch + doins uwpatch/uwpatchold.sh + insinto ${TEXMF}/fonts/afm/uwpatch + doins uwpatch/*.afm + + # jisksp40 stuff + insinto ${TEXMF} + doins -r jisksp40/texmf/* + + # kanji48 stuff + insinto ${TEXMF} + doins -r kanji48/texmf/* + + use doc || rm -rf texmf/doc + insinto ${TEXMF} + doins -r texmf/* || die "installing texmf failed" + + # Move fonts because hbf2gf expects them in MISCFONTS + mv "${ED}/${TEXMF}/fonts/hbf" "${ED}/${TEXMF}/fonts/misc" || die "mv font failed" + + insinto ${TEXMF}/hbf2gf + doins utils/hbf2gf/cfg/* + + insinto ${TEXMF}/scripts/subfonts + doins utils/subfonts/* + + rm -f doc/COPYING doc/INSTALL + dodoc ChangeLog README + if use doc ; then + insinto /usr/share/doc/${PF} + doins -r doc/* + doins -r examples + fi + docinto uwpatch + dodoc uwpatch/README +} diff --git a/dev-tex/cjk-latex/metadata.xml b/dev-tex/cjk-latex/metadata.xml new file mode 100644 index 000000000000..ce43799eecd6 --- /dev/null +++ b/dev-tex/cjk-latex/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>tex@gentoo.org</email> + <name>Gentoo TeX Project</name> +</maintainer> +<maintainer type="project"> + <email>cjk@gentoo.org</email> + <name>Cjk</name> +</maintainer> +</pkgmetadata> |