From 7289f2a4d696a7b76b0de10fa30406e546c2fad7 Mon Sep 17 00:00:00 2001 From: onekk Date: Wed, 30 Apr 2014 11:20:25 +0200 Subject: [PATCH 1/3] New Package: texlive-bin Official Unic installer of TeXLive Please enter the commit message for your changes. Lines starting --- srcpkgs/texlive-bin/INSTALL | 45 ++++++++++++++++ srcpkgs/texlive-bin/REMOVE | 10 ++++ srcpkgs/texlive-bin/files/texlive.sh.i686 | 3 ++ srcpkgs/texlive-bin/files/texlive.sh.x86_64 | 2 + srcpkgs/texlive-bin/files/void.tmpl | 8 +++ srcpkgs/texlive-bin/template | 57 +++++++++++++++++++++ 6 files changed, 125 insertions(+) create mode 100644 srcpkgs/texlive-bin/INSTALL create mode 100644 srcpkgs/texlive-bin/REMOVE create mode 100644 srcpkgs/texlive-bin/files/texlive.sh.i686 create mode 100644 srcpkgs/texlive-bin/files/texlive.sh.x86_64 create mode 100644 srcpkgs/texlive-bin/files/void.tmpl create mode 100644 srcpkgs/texlive-bin/template diff --git a/srcpkgs/texlive-bin/INSTALL b/srcpkgs/texlive-bin/INSTALL new file mode 100644 index 0000000000..48b10d8a46 --- /dev/null +++ b/srcpkgs/texlive-bin/INSTALL @@ -0,0 +1,45 @@ +# +# This script will advise the user of the needed +# steps to install and configure TeXLive +# and to re-login or source to have TeXLive included in PATH +# +case "${ACTION}" in +pre) + ;; +post) + #cd /opt/texlive-installer + #./install-tl -profile void.profile + + + cat << _EOF +===================================================================== + +- TeXLive is free software see the files: + + in /opt/texlive-installer/LICENSE.TL + in /opt/texlive-installer/LICENSE.CTAN + + install-tl is smart enough to guess your architecture during the + installation. + + The template take care of adding the installation PATH of texlive + in /etc/profile.d/texlive.sh. + + Setting it /opt/texlive/????/bin/ where ???? is the year of + the TeXLive version and arch is: + - X86_64-linux ==> voidlinux X86_64 architecture + - i386-linux ==> voidlinux i386 architecture + + At the next reboot the PATH is correct, if you want you can type + + $ sudo source /etc/profile + + check if it is ok with: + + $ printenv + +===================================================================== +_EOF + ;; +esac + diff --git a/srcpkgs/texlive-bin/REMOVE b/srcpkgs/texlive-bin/REMOVE new file mode 100644 index 0000000000..37f0e1c9dd --- /dev/null +++ b/srcpkgs/texlive-bin/REMOVE @@ -0,0 +1,10 @@ +# This script will clear the TeXLive directory +# and the /etc/profile.d/texlive.sh +# +case "${ACTION}" in +pre) + rm -rf /opt/texlive/2013 + ;; +post) + ;; +esac \ No newline at end of file diff --git a/srcpkgs/texlive-bin/files/texlive.sh.i686 b/srcpkgs/texlive-bin/files/texlive.sh.i686 new file mode 100644 index 0000000000..aba00d021b --- /dev/null +++ b/srcpkgs/texlive-bin/files/texlive.sh.i686 @@ -0,0 +1,3 @@ +#location of the TeXLive binaries +export PATH=$PATH:/opt/texlive/2013/bin/i386-linux + diff --git a/srcpkgs/texlive-bin/files/texlive.sh.x86_64 b/srcpkgs/texlive-bin/files/texlive.sh.x86_64 new file mode 100644 index 0000000000..19652d9943 --- /dev/null +++ b/srcpkgs/texlive-bin/files/texlive.sh.x86_64 @@ -0,0 +1,2 @@ +#location of the TeXLive binaries +export PATH=$PATH:/opt/texlive/2013/bin/x86_64-linux diff --git a/srcpkgs/texlive-bin/files/void.tmpl b/srcpkgs/texlive-bin/files/void.tmpl new file mode 100644 index 0000000000..a18114ba41 --- /dev/null +++ b/srcpkgs/texlive-bin/files/void.tmpl @@ -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/texlive-bin/template b/srcpkgs/texlive-bin/template new file mode 100644 index 0000000000..eea86e7f28 --- /dev/null +++ b/srcpkgs/texlive-bin/template @@ -0,0 +1,57 @@ +# Template file for 'texlive-bin' +pkgname=texlive-bin +version=2013 +revision=1 +maintainer="Carlo Dormeletti " +homepage="http://tug.org/texlive/" +license="GPL-2" +short_desc="Texlive Binary distribution through tl-install" +provides="textlive-${version}_${revision}" +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="http://mirror.ctan.org/systems/texlive/tlnet/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-installer + vcopy "install-tl-*/*" /opt/texlive-installer + vinstall ${FILESDIR}/void.tmpl 644 opt/texlive-installer void.profile + if [ "$build_options_default" = "basic" ]; then + echo "selected_scheme scheme-basic" >> ${DESTDIR}/opt/texlive-installer/void.profile + elif [ "$build_options_default" = "small" ]; then + echo "selected_scheme scheme-small" >> ${DESTDIR}/opt/texlive-installer/void.profile + elif [ "$build_options_default" = "medium" ];then + echo "selected_scheme scheme-medium" >> ${DESTDIR}/opt/texlive-installer/void.profile + elif [ "$build_options_default" = "full" ];then + echo "selected_scheme scheme-full" >> ${DESTDIR}/opt/texlive-installer/void.profile + fi + vinstall ${DESTDIR}/opt/texlive-installer/LICENSE.CTAN 644 usr/share/licenses/texlive + vinstall ${DESTDIR}/opt/texlive-installer/LICENSE.TL 644 usr/share/licenses/texlive + # For system environment vars and desktop extra shortcut + case "$XBPS_TARGET_MACHINE" in + i686) vinstall ${FILESDIR}/texlive.sh.i686 644 etc/profile.d texlive.sh ;; + x86_64) vinstall ${FILESDIR}/texlive.sh.x86_64 644 etc/profile.d texlive.sh ;; + esac + +} From 3aa97b3a37842515bfd247425e09f2623dda41fb Mon Sep 17 00:00:00 2001 From: onekk Date: Wed, 30 Apr 2014 15:36:17 +0200 Subject: [PATCH 2/3] texlive-bin: Modified package, with the advice given on IRC --- srcpkgs/texlive-bin/INSTALL | 59 +++++++++++++-------- srcpkgs/texlive-bin/REMOVE | 5 +- srcpkgs/texlive-bin/files/texlive.sh | 2 + srcpkgs/texlive-bin/files/texlive.sh.i686 | 3 -- srcpkgs/texlive-bin/files/texlive.sh.x86_64 | 2 - srcpkgs/texlive-bin/template | 6 ++- 6 files changed, 44 insertions(+), 33 deletions(-) create mode 100644 srcpkgs/texlive-bin/files/texlive.sh delete mode 100644 srcpkgs/texlive-bin/files/texlive.sh.i686 delete mode 100644 srcpkgs/texlive-bin/files/texlive.sh.x86_64 diff --git a/srcpkgs/texlive-bin/INSTALL b/srcpkgs/texlive-bin/INSTALL index 48b10d8a46..f3013a2701 100644 --- a/srcpkgs/texlive-bin/INSTALL +++ b/srcpkgs/texlive-bin/INSTALL @@ -1,14 +1,11 @@ # -# This script will advise the user of the needed -# steps to install and configure TeXLive -# and to re-login or source to have TeXLive included in PATH +# This script will advise the user of the needed steps to +# configure TeXLive and to have TeXLive included in PATH # case "${ACTION}" in -pre) - ;; post) - #cd /opt/texlive-installer - #./install-tl -profile void.profile + cd /opt/texlive-installer + ./install-tl -profile void.profile cat << _EOF @@ -16,27 +13,45 @@ post) - TeXLive is free software see the files: - in /opt/texlive-installer/LICENSE.TL - in /opt/texlive-installer/LICENSE.CTAN + /usr/share/licenses/texlive-bin/LICENSE.TL + /usr/share/licenses/texlive-bin/LICENSE.CTAN - install-tl is smart enough to guess your architecture during the - installation. - - The template take care of adding the installation PATH of texlive - in /etc/profile.d/texlive.sh. +===================================================================== - Setting it /opt/texlive/????/bin/ where ???? is the year of - the TeXLive version and arch is: - - X86_64-linux ==> voidlinux X86_64 architecture - - i386-linux ==> voidlinux i386 architecture - - At the next reboot the PATH is correct, if you want you can type + This package sets the location of TeXLive binary using the file: + /etc/profile.d/texlive.sh. + + see http://www.tug.org/texlive/quickinstall.html for details + + Check if your PATH is update correctly with: + + $ printenv + + You may need to reboot to ensure that PATH is update correctly, + for the impatients, if you want you can type $ sudo source /etc/profile - check if it is ok with: + and check the PATH. - $ printenv +===================================================================== + + To update you TeXLive installation use only the program + + /opt/texlive/????//tlmgr. + + where the ???? is the TeXLive version and is: + - X86_64-linux ==> voidlinux X86_64 architecture + - i386-linux ==> voidlinux 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/texlive-installer. ===================================================================== _EOF diff --git a/srcpkgs/texlive-bin/REMOVE b/srcpkgs/texlive-bin/REMOVE index 37f0e1c9dd..d4b5cd1845 100644 --- a/srcpkgs/texlive-bin/REMOVE +++ b/srcpkgs/texlive-bin/REMOVE @@ -1,10 +1,7 @@ # This script will clear the TeXLive directory -# and the /etc/profile.d/texlive.sh # case "${ACTION}" in -pre) +post) rm -rf /opt/texlive/2013 ;; -post) - ;; esac \ No newline at end of file diff --git a/srcpkgs/texlive-bin/files/texlive.sh b/srcpkgs/texlive-bin/files/texlive.sh new file mode 100644 index 0000000000..99d52f4f6b --- /dev/null +++ b/srcpkgs/texlive-bin/files/texlive.sh @@ -0,0 +1,2 @@ +#location of the TeXLive binaries +export PATH=$PATH:/opt/texlive/2013/bin/@@ARCH@@ diff --git a/srcpkgs/texlive-bin/files/texlive.sh.i686 b/srcpkgs/texlive-bin/files/texlive.sh.i686 deleted file mode 100644 index aba00d021b..0000000000 --- a/srcpkgs/texlive-bin/files/texlive.sh.i686 +++ /dev/null @@ -1,3 +0,0 @@ -#location of the TeXLive binaries -export PATH=$PATH:/opt/texlive/2013/bin/i386-linux - diff --git a/srcpkgs/texlive-bin/files/texlive.sh.x86_64 b/srcpkgs/texlive-bin/files/texlive.sh.x86_64 deleted file mode 100644 index 19652d9943..0000000000 --- a/srcpkgs/texlive-bin/files/texlive.sh.x86_64 +++ /dev/null @@ -1,2 +0,0 @@ -#location of the TeXLive binaries -export PATH=$PATH:/opt/texlive/2013/bin/x86_64-linux diff --git a/srcpkgs/texlive-bin/template b/srcpkgs/texlive-bin/template index eea86e7f28..1c18fbd48d 100644 --- a/srcpkgs/texlive-bin/template +++ b/srcpkgs/texlive-bin/template @@ -48,10 +48,12 @@ do_install(){ fi vinstall ${DESTDIR}/opt/texlive-installer/LICENSE.CTAN 644 usr/share/licenses/texlive vinstall ${DESTDIR}/opt/texlive-installer/LICENSE.TL 644 usr/share/licenses/texlive + vmkdir etc/profile.d # For system environment vars and desktop extra shortcut case "$XBPS_TARGET_MACHINE" in - i686) vinstall ${FILESDIR}/texlive.sh.i686 644 etc/profile.d texlive.sh ;; - x86_64) vinstall ${FILESDIR}/texlive.sh.x86_64 644 etc/profile.d texlive.sh ;; + i686) sed -e 's/@@ARCH@@/i386/' ${FILESDIR}/texlive.sh > ${DESTDIR}/etc/profile.d/texlive.sh ;; + x86_64) sed -e 's/@@ARCH@@/x86_64/' ${FILESDIR}/texlive.sh > ${DESTDIR}/etc/profile.d/texlive.sh ;; esac + } From a518789580f24b44029336dadf869e44763e4b17 Mon Sep 17 00:00:00 2001 From: onekk Date: Wed, 30 Apr 2014 16:25:00 +0200 Subject: [PATCH 3/3] texlive-bin: template file corrected missing a part of the @@ARCH@@ substitution string, fixed. --- srcpkgs/texlive-bin/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/texlive-bin/template b/srcpkgs/texlive-bin/template index 1c18fbd48d..b65f10df63 100644 --- a/srcpkgs/texlive-bin/template +++ b/srcpkgs/texlive-bin/template @@ -51,8 +51,8 @@ do_install(){ vmkdir etc/profile.d # For system environment vars and desktop extra shortcut case "$XBPS_TARGET_MACHINE" in - i686) sed -e 's/@@ARCH@@/i386/' ${FILESDIR}/texlive.sh > ${DESTDIR}/etc/profile.d/texlive.sh ;; - x86_64) sed -e 's/@@ARCH@@/x86_64/' ${FILESDIR}/texlive.sh > ${DESTDIR}/etc/profile.d/texlive.sh ;; + i686) sed -e 's/@@ARCH@@/i386-linux/' ${FILESDIR}/texlive.sh > ${DESTDIR}/etc/profile.d/texlive.sh ;; + x86_64) sed -e 's/@@ARCH@@/x86_64-linux/' ${FILESDIR}/texlive.sh > ${DESTDIR}/etc/profile.d/texlive.sh ;; esac