summaryrefslogtreecommitdiff
path: root/dev-tex/hlatex
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-01-13 06:19:51 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-01-13 06:19:51 +0000
commit8be70107efbb417f839292165ee39d07a062046f (patch)
tree013918887ec4a00f0cefdb4b4d1313cbc3054305 /dev-tex/hlatex
parent343a7272d559a21a0e0ed13cb743fabb2bfcc479 (diff)
gentoo resync : 13.01.2018
Diffstat (limited to 'dev-tex/hlatex')
-rw-r--r--dev-tex/hlatex/Manifest1
-rw-r--r--dev-tex/hlatex/hlatex-1.0.1-r1.ebuild115
2 files changed, 116 insertions, 0 deletions
diff --git a/dev-tex/hlatex/Manifest b/dev-tex/hlatex/Manifest
index 26f14ef5931b..56d56be8a265 100644
--- a/dev-tex/hlatex/Manifest
+++ b/dev-tex/hlatex/Manifest
@@ -14,5 +14,6 @@ DIST uhc-shinmun-1.0.tar.gz 4794977 BLAKE2B 84e1e3a872acf6897d34261a676fb810ef58
DIST uhc-taza-1.0.tar.gz 1338672 BLAKE2B 8c91e9d1c0490c4e63760baa933f6639aa20fd441868d259f21839816e3abbaf6d7e664a0c76d6afb7bca06c86aa2c78e43a6de74273c158d32a2c4368a0e9f3 SHA512 87ae8ff615e76b1a570f14a4d8f29ae3e15a7dccb75c7b80c1e5bb64374c2b749090f9f6a706cfd74c36d39584549cd36bdbd2ede13c50a9c9d5c3b8a44346b8
DIST uhc-vada-1.0.tar.gz 1225522 BLAKE2B f15ffe19bc9ae2ec83116ab700b12716bea53a8cdc5bb62e5362eff4e17d9feaa2c1decdbf0bc7e2ad1228cd96d95347e415ec91222db44d5d0687143b661b17 SHA512 663ea0a1d3f968dc30387cd7962962969af6c2ade41c6de585f24b116e79ce897539ddb412735bd19a7c1083a69bd975ba198b442ca25ea30d6811ebbb8421ad
DIST uhc-yetgul-1.0.tar.gz 5198946 BLAKE2B a9795852f0a075b78896f76fe01301104b16b21fd8b44d5545f99c6bbaf038f64a25bd5805ca65b09d627162651814856fb997d933740e19e638e161f597df7d SHA512 e620bfc42eb30d3b3a60964a68071d6ea68a2a6a8f1c9e1d07a3a9c75dcfabb6b26beb5d65ba76c16aaee5f1cd42c87991033d581e49acc67bae923aefaf6ddd
+EBUILD hlatex-1.0.1-r1.ebuild 2416 BLAKE2B eb33e6e05777036a0c80bd9d84b64193107c899d32847a2ea615e40ae40d800286f9617b1a823d484a75c456ff832d8dafbe542a5e53ed19dc9c74f87b490af6 SHA512 74dc54c9331c202470a79c398cc3d36bbae76bd0c17096221012d6b061e372abba204091ff7a4324eb28772573e6f1bc186abe87932c2ac3eb87059d9ffc02de
EBUILD hlatex-1.0.1.ebuild 2419 BLAKE2B b66e156f087752aa05ca78a1282d0702adf591e6395dca6253288e65d5034fd6e13295e2e1d77636046390a322fe1e2b008b5b32ee3fb729e7c09aebccd6f22d SHA512 34c079942f96facb7d3f14eca3a8d8a47574388130dc973979680135a37086f36b61cd998640295359e99f828e824ea9ab3ec0964c12aa0a2bb2fa231a77075d
MISC metadata.xml 336 BLAKE2B b50f21b184d0548ece37497188f8d6cd0dd664ef669c7e64af31accefa53819e1a20dc8a40a7aff7d28546444ce26bd8eeca12acd9d9ea9459d8764a5ace1464 SHA512 e94ba5fcd5ceb62065d4bcc67d0ef1fa9053589073124a55a775324ea9bdab3d8af4aa3ba393f3388674c73fe9b58fd6598b815bc481a1b2caadf1dce11b75a2
diff --git a/dev-tex/hlatex/hlatex-1.0.1-r1.ebuild b/dev-tex/hlatex/hlatex-1.0.1-r1.ebuild
new file mode 100644
index 000000000000..c1cf71c7a38a
--- /dev/null
+++ b/dev-tex/hlatex/hlatex-1.0.1-r1.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs latex-package
+
+MY_P="HLaTeX-${PV}"
+DESCRIPTION="HLaTeX is a LaTeX package to use Hangul with LaTeX"
+HOMEPAGE="http://project.ktug.or.kr/hlatex/"
+UHCFONTS="uhc-myoungjo-1.0.tar.gz
+ uhc-gothic-1.0.tar.gz
+ uhc-taza-1.0.tar.gz
+ uhc-graphic-1.0.tar.gz
+ uhc-gungseo-1.0.tar.gz
+ uhc-shinmun-1.0.tar.gz
+ uhc-pilgi-1.0.tar.gz
+ uhc-pen-1.0.tar.gz
+ uhc-bom-1.0.tar.gz
+ uhc-yetgul-1.0.tar.gz
+ uhc-jamo-1.0.tar.gz
+ uhc-vada-1.0.tar.gz
+ uhc-pilgia-1.0.tar.gz
+ uhc-dinaru-1.0.tar.gz"
+
+SRC_URI="ftp://ftp.ktug.or.kr/pub/ktug/hlatex/${MY_P}.tar.gz
+ ftp://ftp.ktug.or.kr/pub/ktug/hlatex/fonts/uhc-fonts-1.0.tar.gz
+ ${UHCFONTS//uhc-/ftp://ftp.ktug.or.kr/pub/ktug/hlatex/fonts/uhc-}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+S="${WORKDIR}/HLaTeX"
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ unpack uhc-fonts-1.0.tar.gz
+ cd "${S}"/contrib
+ cat >Makefile <<-EOF
+CC=$(tc-getCC)
+all: hmakeindex hbibtex
+hmakeindex: hmakeindex.c
+hbibtex: hbibtex.c
+EOF
+}
+
+src_compile() {
+ cd "${S}"/contrib
+ emake
+}
+
+src_install() {
+ cd "${S}"/latex
+ insinto ${TEXMF}/tex/latex/hlatex
+ doins *
+
+ cd "${S}"/lambda
+ insinto ${TEXMF}/tex/lambda/hlatex
+ doins u8hangul.tex uhc-test.tex uhc*.fd
+
+ insinto ${TEXMF}/omega/otp/hlatex
+ doins hlatex.otp
+
+ insinto ${TEXMF}/omega/ocp/hlatex
+ doins hlatex.ocp
+
+ cd "${S}"/contrib
+ insinto ${TEXMF}/tex/latex/hlatex
+ doins hbname-k.tex khyper.sty showhkeys.sty showhtags.sty
+ doins hangulfn.sty hfn-k.tex
+
+ insinto ${TEXMF}/tex/lambda/hlatex
+ doins hbname-u.tex hfn-u.tex
+
+ insinto ${TEXMF}/bibtex/bst/hlatex
+ doins halpha.bst
+
+ insinto ${TEXMF}/makeindex
+ doins hind.ist hglo.ist
+
+ dobin hmakeindex hbibtex
+
+ cd "${S}"
+ dodoc ChangeLog.ko NEWS* README.en
+
+ cd "${WORKDIR}"/uhc-fonts-1.0
+ insinto ${TEXMF}/fonts/map/hlatex
+ doins uhc-base.map uhc-extra.map
+
+ cd "${ED}"/${TEXMF}/fonts
+ for X in ${UHCFONTS}
+ do
+ unpack ${X}
+ done
+}
+
+pkg_postinst() {
+ updmap-sys --enable Map=uhc-base.map
+ updmap-sys --enable Map=uhc-extra.map
+ texhash
+}
+
+pkg_postrm() {
+ if [ ! -e "${EPREFIX}"${TEXMF}/fonts/map/hlatex/uhc-base.map ] ; then
+ updmap-sys --disable Map=uhc-base.map
+ fi
+
+ if [ ! -e "${EPREFIX}"${TEXMF}/fonts/map/hlatex/uhc-extra.map ] ; then
+ updmap-sys --disable Map=uhc-extra.map
+ fi
+
+ texhash
+}