# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-text/tetex/tetex-3.0-r1.ebuild,v 1.6 2005/04/05 17:09:57 usata Exp $ inherit tetex-3 flag-o-matic #TETEX_TEXMF_PV=2.96.5.20040711 TETEX_TEXMF_PV=${PV} TEXMF_PATH=/var/lib/texmf S=${WORKDIR}/tetex-src-${PV} TETEX_SRC="tetex-src-${TETEX_SRC_PV:-${TETEX_PV}}.tar.gz" TETEX_TEXMF="tetex-texmf-${TETEX_TEXMF_PV:-${TETEX_PV}}.tar.gz" #TETEX_TEXMF_SRC="tetex-texmfsrc-${TETEX_TEXMF_PV:-${TETEX_PV}}.tar.gz" TETEX_TEXMF_SRC="" DESCRIPTION="a complete TeX distribution" HOMEPAGE="http://tug.org/teTeX/" SRC_PATH_TETEX=ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/current/distrib SRC_URI="${SRC_PATH_TETEX}/${TETEX_SRC} ${SRC_PATH_TETEX}/${TETEX_TEXMF} mirror://gentoo/${P}-gentoo.tar.gz http://dev.gentoo.org/~usata/distfiles/${P}-gentoo.tar.gz" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~ppc-macos ~s390 ~sparc ~x86" IUSE="motif lesstif Xaw3d neXt" DEPEND="motif? ( lesstif? ( x11-libs/lesstif ) !lesstif? ( x11-libs/openmotif ) ) !motif? ( neXt? ( x11-libs/neXtaw ) !neXt? ( Xaw3d? ( x11-libs/Xaw3d ) ) ) !dev-tex/memoir !dev-tex/lineno !dev-tex/SIunits !dev-tex/floatflt !dev-tex/g-brief !dev-tex/pgf !dev-tex/xcolor !dev-tex/xkeyval !dev-tex/latex-beamer" pkg_setup() { ewarn ewarn "teTeX 3.0 ebuild will remove config files stored in /usr/share/texmf." ewarn "Please make a backup before upgrading if you changed anything." ewarn ebeep epause } src_compile() { sed -i -e "s/updmap-sys/updmap-sys --nohash/g" \ -e "/mktexlsr/,+3d" Makefile.in || die use amd64 && replace-flags "-O3" "-O2" if use motif ; then if use lesstif ; then append-ldflags -L/usr/X11R6/lib/lesstif -R/usr/X11R6/lib/lesstif export CPPFLAGS="${CPPFLAGS} -I/usr/X11R6/include/lesstif" fi toolkit="motif" elif use neXt ; then toolkit="neXtaw" elif use Xaw3d ; then toolkit="xaw3d" else toolkit="xaw" fi TETEX_ECONF="--with-xdvi-x-toolkit=${toolkit}" tetex_src_compile }