1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Library for Japanese pTeX providing a better way of handling character encodings"
9 HOMEPAGE="http://tutimura.ath.cx/ptexlive/?ptexenc"
10 SRC_URI="https://dev.gentoo.org/~zlogene/distfiles/texlive/texlive-${PV#*_p}-source.tar.xz"
11 # http://tutimura.ath.cx/~nob/tex/ptexlive/ptexenc/${P}.tar.xz
15 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc x86 ~ppc-macos ~x64-macos ~x86-macos"
16 IUSE="iconv static-libs"
18 DEPEND="iconv? ( virtual/libiconv )
22 S=${WORKDIR}/texlive-${PV#*_p}-source/texk/${PN}
27 # https://bugs.gentoo.org/show_bug.cgi?id=377141
28 sed -i '/^LIBS/s:@LIBS@:@LIBS@ @KPATHSEA_LIBS@:' "${S}"/Makefile.in || die
30 cd "${WORKDIR}/texlive-${PV#*_p}-source"
31 S="${WORKDIR}/texlive-${PV#*_p}-source" elibtoolize #sane .so versionning on gfbsd
36 --with-system-kpathsea \
37 $(use_enable static-libs static) \
38 $(use_enable iconv kanji-iconv)
43 find "${D}" -name '*.la' -delete || die
45 insinto /usr/include/ptexenc
46 doins ptexenc/unicode-jp.h
47 use iconv && doins ptexenc/kanjicnv.h
49 dodoc ChangeLog README