diff options
author | Alexis Ballier <aballier@gentoo.org> | 2010-10-23 02:47:32 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2010-10-23 02:47:32 +0000 |
commit | 27b6e810d8aab4d62bddabc83d32418e7c081c55 (patch) | |
tree | e3b35830c29008c2d622e6b304775bab36c5b40c /dev-libs | |
parent | Security patch for bug #342121 (SA41738). Remove old. (diff) | |
download | gentoo-2-27b6e810d8aab4d62bddabc83d32418e7c081c55.tar.gz gentoo-2-27b6e810d8aab4d62bddabc83d32418e7c081c55.tar.bz2 gentoo-2-27b6e810d8aab4d62bddabc83d32418e7c081c55.zip |
Initial import. Ebuild by me, split out of texlive-core for TeX Live 2010.
(Portage version: 2.2_rc99/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/kpathsea/ChangeLog | 10 | ||||
-rw-r--r-- | dev-libs/kpathsea/kpathsea-6.0.0_p20100722.ebuild | 83 | ||||
-rw-r--r-- | dev-libs/kpathsea/metadata.xml | 10 |
3 files changed, 103 insertions, 0 deletions
diff --git a/dev-libs/kpathsea/ChangeLog b/dev-libs/kpathsea/ChangeLog new file mode 100644 index 000000000000..b700450ebfab --- /dev/null +++ b/dev-libs/kpathsea/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-libs/kpathsea +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/kpathsea/ChangeLog,v 1.1 2010/10/23 02:47:32 aballier Exp $ + +*kpathsea-6.0.0_p20100722 (23 Oct 2010) + + 23 Oct 2010; Alexis Ballier <aballier@gentoo.org> + +kpathsea-6.0.0_p20100722.ebuild, +metadata.xml: + Initial import. Ebuild by me, split out of texlive-core for TeX Live 2010. + diff --git a/dev-libs/kpathsea/kpathsea-6.0.0_p20100722.ebuild b/dev-libs/kpathsea/kpathsea-6.0.0_p20100722.ebuild new file mode 100644 index 000000000000..aea8ec925b27 --- /dev/null +++ b/dev-libs/kpathsea/kpathsea-6.0.0_p20100722.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/kpathsea/kpathsea-6.0.0_p20100722.ebuild,v 1.1 2010/10/23 02:47:32 aballier Exp $ + +EAPI=3 + +inherit texlive-common + +TEXMFD_VERSION="1" + +DESCRIPTION="Library implementing generic path searching, configuration, and TeX-specific file searching" +HOMEPAGE="http://tug.org/texlive/" +SRC_URI="mirror://gentoo/texlive-${PV#*_p}-source.tar.xz + mirror://gentoo/${PN}-texmf.d-${TEXMFD_VERSION}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc source static-libs" + +DEPEND="!<app-text/texlive-core-2010 + !app-text/ptex" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/texlive-${PV#*_p}-source/texk/${PN} + +TL_VERSION=2010 +EXTRA_TL_MODULES="kpathsea" +EXTRA_TL_DOC_MODULES="kpathsea.doc" + +for i in ${EXTRA_TL_MODULES} ; do + SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${TL_VERSION}.tar.xz" +done + +SRC_URI="${SRC_URI} doc? ( " +for i in ${EXTRA_TL_DOC_MODULES} ; do + SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${TL_VERSION}.tar.xz" +done +SRC_URI="${SRC_URI} ) " + +src_configure() { + econf \ + $(use_enable static-libs static) +} + +src_install() { + emake DESTDIR="${D}" web2cdir="/usr/share/texmf/web2c" install || die + find "${D}" -name '*.la' -delete + + dodir /usr/share # just in case + cp -pR "${WORKDIR}"/texmf "${D}/usr/share/" || die "failed to install texmf trees" + if use source ; then + cp -pR "${WORKDIR}"/tlpkg "${D}/usr/share/" || die "failed to install tlpkg files" + fi + + # The default configuration expects it to be world writable, bug #266680 + # People can still change it with texconfig though. + dodir /var/cache/fonts + fperms 1777 /var/cache/fonts + + # Take care of fmtutil.cnf and texmf.cnf + dodir /etc/texmf/{fmtutil.d,texmf.d} + + # Remove default texmf.cnf to ship our own, greatly based on texlive dvd's + # texmf.cnf + # It will also be generated from /etc/texmf/texmf.d files by texmf-update + rm -f "${D}${TEXMF_PATH}/web2c/texmf.cnf" + + insinto /etc/texmf/texmf.d + doins "${WORKDIR}/texmf.d/"*.cnf || die "failed to install texmf.d configuration files" + + # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files + # by texmf-update + rm -f "${D}${TEXMF_PATH}/web2c/fmtutil.cnf" + + dosym /etc/texmf/web2c/fmtutil.cnf ${TEXMF_PATH}/web2c/fmtutil.cnf + dosym /etc/texmf/web2c/texmf.cnf ${TEXMF_PATH}/web2c/texmf.cnf + + # Keep it as that's where the formats will go + keepdir /var/lib/texmf + + dodoc BUGS ChangeLog NEWS PROJECTS README || die +} diff --git a/dev-libs/kpathsea/metadata.xml b/dev-libs/kpathsea/metadata.xml new file mode 100644 index 000000000000..709c45b017d6 --- /dev/null +++ b/dev-libs/kpathsea/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>tex</herd> + <maintainer> + <email>aballier@gentoo.org</email> + <name>Alexis Ballier</name> + </maintainer> +</pkgmetadata> + |