2013-04-18 11:15:56 +04:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
2012-07-27 02:37:07 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2013-04-26 09:47:51 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-libs/ptexenc/ptexenc-1.3.0_p20120701.ebuild,v 1.13 2013/04/25 21:25:58 ago Exp $
|
2012-07-27 02:37:07 +04:00
|
|
|
|
|
|
|
EAPI=3
|
|
|
|
|
2012-08-02 09:47:20 +04:00
|
|
|
inherit libtool
|
|
|
|
|
2012-07-27 02:37:07 +04:00
|
|
|
DESCRIPTION="Library for Japanese pTeX providing a better way of handling character encodings"
|
|
|
|
HOMEPAGE="http://tutimura.ath.cx/ptexlive/?ptexenc"
|
|
|
|
SRC_URI="mirror://gentoo/texlive-${PV#*_p}-source.tar.xz"
|
|
|
|
# http://tutimura.ath.cx/~nob/tex/ptexlive/ptexenc/${P}.tar.xz
|
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
2013-04-26 09:47:51 +04:00
|
|
|
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x86-macos"
|
2012-07-27 02:37:07 +04:00
|
|
|
IUSE="iconv static-libs"
|
|
|
|
|
|
|
|
DEPEND="iconv? ( virtual/libiconv )
|
|
|
|
dev-libs/kpathsea"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
S=${WORKDIR}/texlive-${PV#*_p}-source/texk/${PN}
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
|
|
|
|
# https://bugs.gentoo.org/show_bug.cgi?id=377141
|
|
|
|
sed -i '/^LIBS/s:@LIBS@:@LIBS@ @KPATHSEA_LIBS@:' "${S}"/Makefile.in || die
|
2012-08-02 09:47:20 +04:00
|
|
|
|
|
|
|
cd "${WORKDIR}/texlive-${PV#*_p}-source"
|
|
|
|
S="${WORKDIR}/texlive-${PV#*_p}-source" elibtoolize #sane .so versionning on gfbsd
|
2012-07-27 02:37:07 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
econf \
|
|
|
|
--with-system-kpathsea \
|
|
|
|
$(use_enable static-libs static) \
|
|
|
|
$(use_enable iconv kanji-iconv)
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake DESTDIR="${D}" install || die
|
|
|
|
find "${D}" -name '*.la' -delete
|
|
|
|
|
|
|
|
dodoc ChangeLog README || die
|
|
|
|
}
|