diff options
author | Florian Schmaus <flow@gentoo.org> | 2024-03-01 10:58:14 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2024-03-01 11:05:30 +0100 |
commit | 78dba2ce480ac402660cbdfd82a347d9f0242563 (patch) | |
tree | b4530df489dfe2f988aa64d3490a1732ebad4a1a /dev-libs | |
parent | dev-libs/kpathsea: add 6.3.5_p20230311 (diff) | |
download | gentoo-78dba2ce480ac402660cbdfd82a347d9f0242563.tar.gz gentoo-78dba2ce480ac402660cbdfd82a347d9f0242563.tar.bz2 gentoo-78dba2ce480ac402660cbdfd82a347d9f0242563.zip |
dev-libs/ptexenc: add 1.4.3_p20230311
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/ptexenc/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/ptexenc/ptexenc-1.4.3_p20230311.ebuild | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-libs/ptexenc/Manifest b/dev-libs/ptexenc/Manifest index 046d9a807360..6bba4f271f42 100644 --- a/dev-libs/ptexenc/Manifest +++ b/dev-libs/ptexenc/Manifest @@ -1 +1,2 @@ DIST texlive-20210325-source.tar.xz 54837368 BLAKE2B 66bd4bdd43ff53513004b9b9b90ababa0ab5efcf183a27864a3d39cde9cf90721456bda90c49ad6014f4b12d2e6293feaf9a8b152b85a89ffaa96bf5056347df SHA512 afd6eb24efaeac7c58d43ff24162aece919079a9ae02934509f068c7a3828223c33c14d9db11ff7fea3560b08a06f352446ba7f845eefb4a56a87b96f088f213 +DIST texlive-20230311-source.tar.xz 68359984 BLAKE2B 6263e8d3e066db96f071138f2442b1ed7e1f3db7e6d261cdeb9a7e6e636c6e6ed45305c6bda3ab6f9a439c92eabf32a79bf6e371d16b747eebbc05ee47b85035 SHA512 93ac43f3055fee0103a6cfceea18d39ece63984914f3af9ad76da218f2d568852d9b987d1c9647c1497b985e4ffa297ef97dc2d50d3e90f62b03ad685af31d96 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 +} |