You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
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://dev.gentoo.org/~zlogene/distfiles/texlive/texlive-${PV#*_p}-source.tar.xz"
|
||
3 years ago
|
S="${WORKDIR}/texlive-${PV#*_p}-source/texk/${PN}"
|
||
3 years ago
|
|
||
|
LICENSE="BSD"
|
||
|
SLOT="0"
|
||
3 years ago
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~ppc-macos ~x64-macos"
|
||
3 years ago
|
IUSE="iconv"
|
||
3 years ago
|
|
||
3 years ago
|
DEPEND="
|
||
3 years ago
|
dev-libs/kpathsea:=
|
||
3 years ago
|
iconv? ( virtual/libiconv )"
|
||
3 years ago
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
|
||
|
# https://bugs.gentoo.org/show_bug.cgi?id=377141
|
||
3 years ago
|
sed -i '/^LIBS/s:@LIBS@:@LIBS@ @KPATHSEA_LIBS@:' Makefile.in || die
|
||
3 years ago
|
|
||
3 years ago
|
cd "${WORKDIR}/texlive-${PV#*_p}-source" || die
|
||
3 years ago
|
S="${WORKDIR}/texlive-${PV#*_p}-source" elibtoolize #sane .so versionning on gfbsd
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
3 years ago
|
--disable-static \
|
||
3 years ago
|
--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
|
||
|
|
||
3 years ago
|
find "${ED}" -name '*.la' -delete || die
|
||
3 years ago
|
}
|