diff options
author | Alexis Ballier <aballier@gentoo.org> | 2010-10-24 16:29:26 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2010-10-24 16:29:26 +0000 |
commit | 72a151882998c19761c4382799961e464b734b02 (patch) | |
tree | fe6f1d7495a987576c09d81ecc76b8b6381b1801 /app-text/dvipsk/dvipsk-5.99_p20100722.ebuild | |
parent | Version bump KDEPIM 4.4.7 (diff) | |
download | gentoo-2-72a151882998c19761c4382799961e464b734b02.tar.gz gentoo-2-72a151882998c19761c4382799961e464b734b02.tar.bz2 gentoo-2-72a151882998c19761c4382799961e464b734b02.zip |
Initial import. Ebuild by me, split out of texlive-core for TeX Live 2010
(Portage version: 2.2.0_alpha1/cvs/Linux x86_64)
Diffstat (limited to 'app-text/dvipsk/dvipsk-5.99_p20100722.ebuild')
-rw-r--r-- | app-text/dvipsk/dvipsk-5.99_p20100722.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/app-text/dvipsk/dvipsk-5.99_p20100722.ebuild b/app-text/dvipsk/dvipsk-5.99_p20100722.ebuild new file mode 100644 index 000000000000..81b063bcabd3 --- /dev/null +++ b/app-text/dvipsk/dvipsk-5.99_p20100722.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/dvipsk/dvipsk-5.99_p20100722.ebuild,v 1.1 2010/10/24 16:29:26 aballier Exp $ + +EAPI=3 + +inherit texlive-common + +DESCRIPTION="DVI-to-PostScript translator" +HOMEPAGE="http://tug.org/texlive/" +SRC_URI="mirror://gentoo/texlive-${PV#*_p}-source.tar.xz" + +TL_VERSION=2010 +EXTRA_TL_MODULES="dvips" +EXTRA_TL_DOC_MODULES="dvips.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} ) " + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc source" + +DEPEND="dev-libs/kpathsea" +RDEPEND=" + !<app-text/texlive-core-2010 + !app-text/ptex + ${DEPEND}" + +S=${WORKDIR}/texlive-${PV#*_p}-source/texk/${PN} + +src_configure() { + econf --with-system-kpathsea +} + +src_install() { + emake DESTDIR="${D}" prologdir="/usr/share/texmf/dvips/base" install || die + + dodir /usr/share # just in case + cp -pR "${WORKDIR}"/texmf "${D}/usr/share/" || die "failed to install texmf trees" + cp -pR "${WORKDIR}"/texmf-dist "${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 + + dodoc AUTHORS ChangeLog NEWS README TODO || die +} + +pkg_postinst() { + etexmf-update +} + +pkg_postrm() { + etexmf-update +} |