Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Guillaume Hervier
chromebrew
Commits
db0da864
Commit
db0da864
authored
Dec 16, 2017
by
Damian Montero
Committed by
GitHub
Dec 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1199 from yancouto/texlive
Adding texlive package
parents
353e9a73
3507e4fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
packages/texlive.rb
packages/texlive.rb
+44
-0
No files found.
packages/texlive.rb
0 → 100644
View file @
db0da864
require
'package'
class
Texlive
<
Package
description
'TeX Live is an easy way to get up and running with the TeX document production system.'
homepage
'https://www.tug.org/texlive/'
version
'2017'
source_url
'ftp://tug.org/historic/systems/texlive/2017/texlive-20170524-extra.tar.xz'
source_sha256
'afe49758c26fb51c2fae2e958d3f0c447b5cc22342ba4a4278119d39f5176d7f'
depends_on
'perl'
def
self
.
build
system
"rm -rf *"
system
"wget ftp://ftp.fu-berlin.de/tex/CTAN/systems/texlive/tlnet/install-tl-unx.tar.gz"
system
"wget ftp://ftp.fu-berlin.de/tex/CTAN/systems/texlive/tlnet/install-tl-unx.tar.gz.sha512"
system
"cat install-tl-unx.tar.gz.sha512 | xargs | cut -d' ' -f1 > sha512"
sha512
=
open
(
'sha512'
).
read
.
chomp
abort
'Checksum mismatch. :/ Try again.'
.
lightred
unless
Digest
::
SHA512
.
hexdigest
(
File
.
read
(
'install-tl-unx.tar.gz'
)
)
==
"
#{
sha512
}
"
system
"tar xvf install-tl-unx.tar.gz"
system
"mv install-tl-20*/* ."
system
"rm -rf install-tl-20*/"
end
def
self
.
install
dir
=
"
#{
CREW_DEST_PREFIX
}
/share/texlive"
system
"yes I | TEXLIVE_INSTALL_PREFIX=
#{
dir
}
\
TEXLIVE_INSTALL_TEXMFVAR=
#{
dir
}
/local/texmf-var \
TEXLIVE_INSTALL_TEXMFCONFIG=
#{
dir
}
/local/texmf-config \
TEXLIVE_INSTALL_TEXMFHOME=
#{
dir
}
/local \
./install-tl --scheme=basic --no-cls"
system
"find
#{
dir
}
-iname '*.pdf' -delete"
# saving some space
system
"find
#{
dir
}
/20*/texmf-dist/doc -type f -and -not -path '*man*' -delete"
system
"find
#{
dir
}
-name 'tlmgr' -exec {} init-usertree ';'"
end
def
self
.
postinstall
path
=
`echo
#{
CREW_PREFIX
}
/share/texlive/20*`
.
chomp
puts
"
\n
Please add texlive to your PATH and MANPATH to be able to use the executables and manpages. Use the following commands:"
.
lightblue
puts
" echo
\"
export PATH=
\$
PATH:
#{
path
}
/bin/
#{
ARCH
}
-linux
\"
>> ~/.bashrc"
.
lightblue
puts
" echo
\"
export MANPATH=
\$
MANPATH:
#{
path
}
/bin/texmf-dist/doc/man
\"
>> ~/.bashrc"
.
lightblue
puts
" source ~/.bashrc"
.
lightblue
puts
"
\n
This is a very small installation, with only the basic packages. To install more, use `tlmgr install <package>`."
.
lightblue
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment