diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-01 11:41:16 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-01 11:41:16 +0000 |
commit | fd1824e9b1fd180f410170bf2d02e1f098f53db9 (patch) | |
tree | 7d1346df7be9d29e8e8b2d7bd8c36fe016fd917a /dev-libs/ptexenc/ptexenc-1.4.3_p20230311.ebuild | |
parent | 895ff0a4d41ed3004a73b7869773a26f463c5ded (diff) |
gentoo auto-resync : 01:03:2024 - 11:41:16
Diffstat (limited to 'dev-libs/ptexenc/ptexenc-1.4.3_p20230311.ebuild')
-rw-r--r-- | dev-libs/ptexenc/ptexenc-1.4.3_p20230311.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-libs/ptexenc/ptexenc-1.4.3_p20230311.ebuild b/dev-libs/ptexenc/ptexenc-1.4.3_p20230311.ebuild new file mode 100644 index 000000000000..aa7ac947ec5b --- /dev/null +++ b/dev-libs/ptexenc/ptexenc-1.4.3_p20230311.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit libtool + +DESCRIPTION="Library for Japanese pTeX providing a better way of handling character encodings" +HOMEPAGE="http://tutimura.ath.cx/ptexlive/?ptexenc" +SRC_URI="https://mirrors.ctan.org/systems/texlive/Source/texlive-${PV#*_p}-source.tar.xz" +S="${WORKDIR}/texlive-${PV#*_p}-source/texk/${PN}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos" +IUSE="iconv" + +DEPEND=" + dev-libs/kpathsea:= + iconv? ( virtual/libiconv )" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + # https://bugs.gentoo.org/show_bug.cgi?id=377141 + sed -i '/^LIBS/s:@LIBS@:@LIBS@ @KPATHSEA_LIBS@:' Makefile.in || die + + cd "${WORKDIR}/texlive-${PV#*_p}-source" || die + S="${WORKDIR}/texlive-${PV#*_p}-source" elibtoolize #sane .so versionning on gfbsd +} + +src_configure() { + econf \ + --disable-static \ + --with-system-kpathsea \ + $(use_enable iconv kanji-iconv) +} + +src_install() { + default + + insinto /usr/include/ptexenc + doins ptexenc/unicode-jp.h + use iconv && doins ptexenc/kanjicnv.h + + find "${ED}" -name '*.la' -delete || die +} |