texlive-context-2015.ebuild 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. TEXLIVE_MODULE_CONTENTS="context jmn context-account context-algorithmic context-animation context-annotation context-bnf context-chromato context-construction-plan context-cyrillicnumbers context-degrade context-fancybreak context-filter context-fixme context-french context-fullpage context-games context-gantt context-gnuplot context-letter context-lettrine context-lilypond context-mathsets context-notes-zh-cn context-rst context-ruby context-simplefonts context-simpleslides context-title context-transliterator context-typearea context-typescripts context-vim context-visualcounter collection-context
  5. "
  6. TEXLIVE_MODULE_DOC_CONTENTS="context.doc context-account.doc context-animation.doc context-annotation.doc context-bnf.doc context-chromato.doc context-construction-plan.doc context-cyrillicnumbers.doc context-degrade.doc context-fancybreak.doc context-filter.doc context-french.doc context-fullpage.doc context-games.doc context-gantt.doc context-gnuplot.doc context-letter.doc context-lettrine.doc context-lilypond.doc context-mathsets.doc context-notes-zh-cn.doc context-rst.doc context-ruby.doc context-simplefonts.doc context-simpleslides.doc context-title.doc context-transliterator.doc context-typearea.doc context-typescripts.doc context-vim.doc context-visualcounter.doc "
  7. TEXLIVE_MODULE_SRC_CONTENTS="context-visualcounter.source "
  8. inherit texlive-module
  9. DESCRIPTION="TeXLive ConTeXt and packages"
  10. LICENSE=" BSD GPL-1 GPL-2 GPL-3 public-domain TeX-other-free "
  11. SLOT="0"
  12. KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 ~s390 ~sh x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
  13. IUSE=""
  14. DEPEND=">=dev-texlive/texlive-basic-2015
  15. >=dev-texlive/texlive-latex-2010
  16. !<dev-texlive/texlive-latex-2010
  17. >=app-text/texlive-core-2010[xetex]
  18. >=dev-texlive/texlive-metapost-2010
  19. "
  20. RDEPEND="${DEPEND} dev-lang/ruby
  21. "
  22. PATCHES=( "${FILESDIR}/luacnfspec2013.patch" )
  23. TL_CONTEXT_UNIX_STUBS="contextjit mtxrunjit mtxrun texexec context metatex luatools mtxworks texmfstart"
  24. TEXLIVE_MODULE_BINSCRIPTS=""
  25. for i in ${TL_CONTEXT_UNIX_STUBS} ; do
  26. TEXLIVE_MODULE_BINSCRIPTS="${TEXLIVE_MODULE_BINSCRIPTS} texmf-dist/scripts/context/stubs/unix/$i"
  27. done
  28. # This small hack is needed in order to have a sane upgrade path:
  29. # the new TeX Live 2009 metapost produces this file but it is not recorded in
  30. # any package; when running fmtutil (like texmf-update does) this file will be
  31. # created and cause collisions.
  32. pkg_setup() {
  33. if [ -f "${ROOT}/var/lib/texmf/web2c/metapost/metafun.log" ]; then
  34. einfo "Removing ${ROOT}/var/lib/texmf/web2c/metapost/metafun.log"
  35. rm -f "${ROOT}/var/lib/texmf/web2c/metapost/metafun.log"
  36. fi
  37. }
  38. # These comes without +x bit set...
  39. src_prepare() {
  40. # No need to install these .exe
  41. rm -rf texmf-dist/scripts/context/stubs/{mswin,win64} || die
  42. texlive-module_src_prepare
  43. }
  44. TL_MODULE_INFORMATION="For using ConTeXt mkII simply use 'texexec' to generate
  45. your documents.
  46. If you plan to use mkIV and its 'context' command to generate your documents,
  47. you have to run 'mtxrun --generate' as normal user before first use.
  48. More information and advanced options on:
  49. http://wiki.contextgarden.net/TeX_Live_2011"