diff -urN -x Manifest a/kpathsea/files/kpathsea-6.2.1_p20150521-c-auto.patch b/kpathsea/files/kpathsea-6.2.1_p20150521-c-auto.patch --- a/kpathsea/files/kpathsea-6.2.1_p20150521-c-auto.patch 1970-01-01 01:00:00.000000000 +0100 +++ b/kpathsea/files/kpathsea-6.2.1_p20150521-c-auto.patch 2015-09-19 18:18:22.000000000 +0200 @@ -0,0 +1,28 @@ +diff -urN a/texk/kpathsea/Makefile.am b/texk/kpathsea/Makefile.am +--- a/texk/kpathsea/Makefile.am 2015-03-16 08:52:01.000000000 +0100 ++++ b/texk/kpathsea/Makefile.am 2015-09-19 17:24:32.818114647 +0200 +@@ -114,12 +114,11 @@ + kpathsea.h \ + paths.h + +-kpseinclude_HEADERS = config.h $(direct_headers) $(indirect_headers) ++kpseinclude_HEADERS = config.h $(direct_headers) $(indirect_headers) c-auto.h + + kpselibdir = ${libdir}/kpathsea + +-nodist_kpselib_HEADERS = \ +- c-auto.h ++nodist_kpselib_HEADERS = + + # Headers included directly into kpathsea.h + # +diff -urN a/texk/kpathsea/kpathsea.pc.in b/texk/kpathsea/kpathsea.pc.in +--- a/texk/kpathsea/kpathsea.pc.in 2015-03-14 14:32:10.000000000 +0100 ++++ b/texk/kpathsea/kpathsea.pc.in 2015-09-19 18:18:04.902701030 +0200 +@@ -7,5 +7,5 @@ + Description: Kpathsea filename lookup library + Version: @KPSEVERSION@ + Libs: -L${libdir} -lkpathsea +-Cflags: -I${libdir} -I${includedir} ++Cflags: -I${includedir} + diff -urN -x Manifest a/kpathsea/kpathsea-6.2.1_p20150521.ebuild b/kpathsea/kpathsea-6.2.1_p20150521.ebuild --- a/kpathsea/kpathsea-6.2.1_p20150521.ebuild 2015-08-09 22:34:50.000000000 +0200 +++ b/kpathsea/kpathsea-6.2.1_p20150521.ebuild 2015-09-19 17:58:35.000000000 +0200 @@ -4,7 +4,7 @@ EAPI=5 -inherit texlive-common eutils libtool prefix +inherit texlive-common autotools eutils libtool prefix TEXMFD_VERSION="7" @@ -45,6 +45,8 @@ S="${WORKDIR}/texlive-${PV#*_p}-source" elibtoolize #sane .so versionning on gfbsd cp "${FILESDIR}/texmf-update-r1" "${S}"/texmf-update eprefixify "${S}"/texmf-update + epatch "${FILESDIR}"/${P}-c-auto.patch + ( cd texk/kpathsea; eautoreconf; ) } src_configure() { @@ -63,6 +65,7 @@ src_install() { emake DESTDIR="${D}" web2cdir="${EPREFIX}/usr/share/texmf-dist/web2c" install find "${D}" -name '*.la' -delete + rmdir "${D}/usr/$(get_libdir)/kpathsea" dodir /usr/share # just in case cp -pR "${WORKDIR}"/texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees"