From 0aed1d5c1cfc33665efab90d14bf6cd6dfa3fa0c Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Tue, 8 Jul 2014 16:19:03 +0200 Subject: [PATCH] New package: texlive2013-bin --- srcpkgs/texlive2013-bin/INSTALL | 20 ++++++++ srcpkgs/texlive2013-bin/INSTALL.msg | 28 +++++++++++ srcpkgs/texlive2013-bin/REMOVE | 7 +++ srcpkgs/texlive2013-bin/files/void.profile | 8 +++ srcpkgs/texlive2013-bin/template | 57 ++++++++++++++++++++++ 5 files changed, 120 insertions(+) create mode 100644 srcpkgs/texlive2013-bin/INSTALL create mode 100644 srcpkgs/texlive2013-bin/INSTALL.msg create mode 100644 srcpkgs/texlive2013-bin/REMOVE create mode 100644 srcpkgs/texlive2013-bin/files/void.profile create mode 100644 srcpkgs/texlive2013-bin/template diff --git a/srcpkgs/texlive2013-bin/INSTALL b/srcpkgs/texlive2013-bin/INSTALL new file mode 100644 index 0000000000..0e9ff2d6c3 --- /dev/null +++ b/srcpkgs/texlive2013-bin/INSTALL @@ -0,0 +1,20 @@ +case "${ACTION}" in +post) + cd /opt/texlive2013-installer + + if [ -f /opt/texlive/2013/texmf-var/web2c/fmtutil.cnf ]; then + cat << _EOF +===================================================================== + +It seems you already have TeXLive 2013 installed. + +Remove /opt/texlive/2013/texmf-var/web2c/fmtutil.cnf and reinstall +to force downloading TeXLive again. + +_EOF + else + ./install-tl -repository ftp://ftp.tug.org/texlive/historic/2013/tlnet-final/ -profile void.profile + fi + ;; +esac + diff --git a/srcpkgs/texlive2013-bin/INSTALL.msg b/srcpkgs/texlive2013-bin/INSTALL.msg new file mode 100644 index 0000000000..79715f3bd6 --- /dev/null +++ b/srcpkgs/texlive2013-bin/INSTALL.msg @@ -0,0 +1,28 @@ +===================================================================== + +- TeXLive is free software see the files: + + /usr/share/licenses/texlive2013-bin/LICENSE.TL + /usr/share/licenses/texlive2013-bin/LICENSE.CTAN + +===================================================================== + + To update your TeXLive installation use only the program + + /opt/texlive/2013//tlmgr + + where is: + - x86_64-linux ==> x86_64 architecture + - i386-linux ==> i386 architecture + + see: + + http://www.tug.org/texlive/doc/tlmgr.html#EXAMPLES + + for the details and the documentation in + + WARNING: To avoid messing up your TeXLive installation, DON'T use + the installation scripts in /opt/texlive2013-installer. + +===================================================================== + diff --git a/srcpkgs/texlive2013-bin/REMOVE b/srcpkgs/texlive2013-bin/REMOVE new file mode 100644 index 0000000000..d4b5cd1845 --- /dev/null +++ b/srcpkgs/texlive2013-bin/REMOVE @@ -0,0 +1,7 @@ +# This script will clear the TeXLive directory +# +case "${ACTION}" in +post) + rm -rf /opt/texlive/2013 + ;; +esac \ No newline at end of file diff --git a/srcpkgs/texlive2013-bin/files/void.profile b/srcpkgs/texlive2013-bin/files/void.profile new file mode 100644 index 0000000000..a18114ba41 --- /dev/null +++ b/srcpkgs/texlive2013-bin/files/void.profile @@ -0,0 +1,8 @@ +# texlive.profile written for voidlinux +TEXDIR /opt/texlive/2013 +TEXMFCONFIG ~/.texlive2013/texmf-config +TEXMFHOME ~/texmf +TEXMFLOCAL /opt/texlive/texmf-local +TEXMFSYSCONFIG /opt/texlive/2013/texmf-config +TEXMFSYSVAR /opt/texlive/2013/texmf-var +TEXMFVAR ~/.texlive2013/texmf-var diff --git a/srcpkgs/texlive2013-bin/template b/srcpkgs/texlive2013-bin/template new file mode 100644 index 0000000000..9b837d09a2 --- /dev/null +++ b/srcpkgs/texlive2013-bin/template @@ -0,0 +1,57 @@ +# Template file for 'texlive2013-bin' +pkgname=texlive2013-bin +version=2013 +revision=1 +maintainer="Christian Neukirchen " +homepage="http://tug.org/texlive/" +license="GPL-2" +short_desc="TeX Live 2013 Binary distribution through tl-install" +depends="cairo pixman graphite t1lib gd poppler libsigsegv + zziplib libpng libjpeg-turbo freetype icu harfbuzz wget perl + ghostscript" +only_for_archs="i686 x86_64" +distfiles="ftp://ftp.tug.org/texlive/historic/${version}/tlnet-final/install-tl-unx.tar.gz" +checksum="8b200e78b87899349404bdc58b47241291ba7a74846b816a926b02c2fe20aca7" +create_wrksrc=yes + +# Package build options +build_options="basic small medium full" +desc_option_basic="Install TeXLive using scheme-basic" +desc_option_small="Install TeXLive using scheme-small" +desc_option_medium="Install TeXLive using scheme-medium" +desc_option_full="Install TeXLive using scheme-full" + +build_options_default="small" + +pre_install(){ + _dir="${wrksrc}/install-tl*/tlpkg/installer/xz" + rm ${_dir}/*exe ${_dir}/*bsd ${_dir}/*solaris ${_dir}/*irix + rm ${_dir}/*alpha-linux ${_dir}/*darwin ${_dir}/*powerpc-linux + rm ${_dir}/*arm??-linux ${_dir}/*mipsel-linux + rm -rf ${wrksrc}/install-tl*/tlpkg/installer/wget +} + +do_install(){ + vmkdir opt/texlive${version}-installer + vcopy "install-tl-*/*" /opt/texlive${version}-installer + vinstall ${FILESDIR}/void.profile 644 opt/texlive${version}-installer + if [ "$build_options_default" = "basic" ]; then + echo "selected_scheme scheme-basic" >> ${DESTDIR}/opt/texlive${version}-installer/void.profile + elif [ "$build_options_default" = "small" ]; then + echo "selected_scheme scheme-small" >> ${DESTDIR}/opt/texlive${version}-installer/void.profile + elif [ "$build_options_default" = "medium" ];then + echo "selected_scheme scheme-medium" >> ${DESTDIR}/opt/texlive${version}-installer/void.profile + elif [ "$build_options_default" = "full" ];then + echo "selected_scheme scheme-full" >> ${DESTDIR}/opt/texlive${version}-installer/void.profile + fi + vlicense ${DESTDIR}/opt/texlive${version}-installer/LICENSE.CTAN + vlicense ${DESTDIR}/opt/texlive${version}-installer/LICENSE.TL + case "$XBPS_TARGET_MACHINE" in + i686) + rm ${DESTDIR}/opt/texlive${version}-installer/tlpkg/installer/xz/xzdec.x86_64-linux + ;; + x86_64) + rm ${DESTDIR}/opt/texlive${version}-installer/tlpkg/installer/xz/xzdec.i386-linux + ;; + esac +}