dev-libs/ptexenc: bump to texlive 2017 version
authorAlexis Ballier <aballier@gentoo.org>
Mon, 5 Jun 2017 12:53:38 +0000 (14:53 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Mon, 5 Jun 2017 13:02:44 +0000 (15:02 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-libs/ptexenc/Manifest
dev-libs/ptexenc/ptexenc-1.3.5_p20170524.ebuild [new file with mode: 0644]

index 11f25e2bb2a097f53024173d7893d1e5062732b9..d0c46fb36425e7b6081348d9802e26b9f3fb495d 100644 (file)
@@ -1 +1,2 @@
 DIST texlive-20160523-source.tar.xz 45941100 SHA256 a8b32ca47f0a403661a09e202f4567a995beb718c18d8f81ca6d76daa1da21ed SHA512 915fa2f5e2099dd385ef81033db7aafdf09558c0c200fed0748a8a42fd61f69d3eaac9decea334e30981af739dd81061a9b1d6853c7f6d00285fe0be40e26c3e WHIRLPOOL 25d27fb7a7bdb47d40ddf951394e36546b184d71f2e09adb20698bd0f960e54841ddd0313a87510cb2ef43953eb4d9d05d30b88d25d15762dd774575c88fedbe
+DIST texlive-20170524-source.tar.xz 63483372 SHA256 0161695304e941334dc0b3b5dabcf8edf46c09b7bc33eea8229b5ead7ccfb2aa SHA512 18c18940992ab94ce22e22ccd4ad798253ea14ac2ab296a10ea5e9a8da9f33989f2e2641b42b564d1d5fb53bd371da3e68726b676d706b469016ad146cd19daa WHIRLPOOL c4edaf427f0249942b36db105a65474e833735d6e9954682fe7e15ab327b26ccafb9174bf806d0b6c629b0f2a6b55e80022af291d9a2f377b82dff4fdec42d3d
diff --git a/dev-libs/ptexenc/ptexenc-1.3.5_p20170524.ebuild b/dev-libs/ptexenc/ptexenc-1.3.5_p20170524.ebuild
new file mode 100644 (file)
index 0000000..34c4e3b
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit libtool
+
+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"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x86-macos"
+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
+
+       cd "${WORKDIR}/texlive-${PV#*_p}-source"
+       S="${WORKDIR}/texlive-${PV#*_p}-source" elibtoolize #sane .so versionning on gfbsd
+}
+
+src_configure() {
+       econf \
+               --with-system-kpathsea \
+               $(use_enable static-libs static) \
+               $(use_enable iconv kanji-iconv)
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+       find "${D}" -name '*.la' -delete
+
+       insinto /usr/include/ptexenc
+       doins ptexenc/unicode-jp.h
+       use iconv && doins ptexenc/kanjicnv.h
+
+       dodoc ChangeLog README
+}