SHARE
TWEET

haiku texlive recipe

a guest May 23rd, 2015 10 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. run with  
  2. haikuporter -F  --no-dependencies --no-source-packages texlive_x86
  3.  
  4.  
  5. SUMMARY="A complete TeX distribution"
  6. DESCRIPTION="TeX Live is a free software distribution for the TeX typesetting system that includes major TeX-related programs, macro packages, and fonts (wikipedia)."
  7. HOMEPAGE="http://www.tug.org/texlive/"
  8. SRC_URI="svn://tug.org/texlive/trunk/"
  9. REVISION="1"
  10. LICENSE="TeXLive"
  11. COPYRIGHT="2015, The TeX Users Group (TUG)  http://tug.org"
  12. ARCHITECTURES="x86 ?x86_64"
  13. if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
  14.         # x86_gcc2 is fine as primary target architecture as long as we are building
  15.         # for a different secondary architecture.
  16.         ARCHITECTURES="$ARCHITECTURES x86_gcc2"
  17. else
  18.         ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
  19. fi
  20. SECONDARY_ARCHITECTURES="x86 ?x86_64"
  21.  
  22.  
  23. PROVIDES="
  24.         texlive$secondaryArchSuffix = $portVersion
  25.         "
  26.  
  27. REQUIRES="
  28.         haiku${secondaryArchSuffix} >= $haikuVersion
  29.         "
  30.  
  31. BUILD_REQUIRES="
  32.        haiku${secondaryArchSuffix}_devel >= $haikuVersion
  33.         "
  34.  
  35. BUILD_PREREQUIRES="
  36.         cmd:autoconf
  37.         cmd:bison
  38.         cmd:find
  39.         cmd:flex
  40.         cmd:gcc$secondaryArchSuffix
  41.         cmd:ld$secondaryArchSuffix
  42.         cmd:make
  43.         cmd:makeinfo
  44.         cmd:wget
  45.         cmd:xz
  46.         cmd:xzdec
  47.         devel:libicuuc
  48.         "
  49.  
  50. PATCHES="texlive_x86-0.0.2.patchset"
  51.  
  52. BUILD()
  53. {    
  54.         export LC_ALL=C
  55.         rm -rf Build/source/doc
  56.         rm -f Build/source/configure
  57.         rm -f Build/source/texk/web2c/configure
  58.         cd Build/source
  59.         autoconf
  60.         cd ../../Build/source/texk/web2c/
  61.         autoconf
  62.         rm -f Build/source/texk/dvipdfm-x/configure
  63.         cd ../../../../Build/source/texk/dvipdfm-x/
  64.         autoconf
  65.         cd ../../../../Build/source
  66.         ./Build -g -C --with-banner-add='/Haiku' --without-x --disable-xetex --disable-lcdf-typetools --disable-xpdf --without-texinfo --with-system-icu  --disable-native-texlive-build  --build=i586-pc-haiku;
  67.         mkdir -p bin/i386-haiku/
  68.         cp -p -L -R inst/bin/* -t bin/i386-haiku/
  69.         cp /boot/system/bin/wget ../../Master/tlpkg/installer/wget
  70.         cp /boot/system/bin/xz ../../Master/tlpkg/installer/xz
  71.         cp /boot/system/bin/xzdec ../../Master/tlpkg/installer/xzdec
  72. }
  73.  
  74. INSTALL()
  75. {
  76.          cp -p -L -R Build/source/bin/i386-haiku/ Master/bin/
  77.          cd Master
  78.          export PATH=./bin/i386-haiku:$PATH
  79.          TEXLIVE_INSTALL_TEXMFVAR=/boot/home/config/settings/texlive/`date +%Y`/texmf-var
  80.          TEXLIVE_INSTALL_TEXMFCONFIG=/boot/home/config/settings/texlive/`date +%Y`/texmf-config
  81.          TEXLIVE_INSTALL_PREFIX=$dataDir/texlive install-tl <<< $'S\ne\nR\nI\n'
  82.          mkdir -p $binDir
  83.          cp -p -L -R bin/i386-haiku/ $binDir
  84. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top