aboutsummaryrefslogtreecommitdiff
path: root/README
blob: ebd0e4096c06e689389def99fcee1a413b2cd33b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
You can find here the modular texlive ebuilds I'm working on.
Unfortunately it is not yet possible to have an overlay that works out of the
box, therefore you'll have to do a few things to be able to install texlive
2007.

If you're reading this from the Trac web interface, you might want to install
subversion and checkout this overlay : 
$ svn co http://overlays.gentoo.org/svn/dev/aballier/


First, download both live and inst isos of texlive from
http://tug.org/texlive/acquire.html
You'll need both, if you have an idea on how to use only one of the isos, just
email me !

For example :

$ cd DOWNLOADDIR
$ wget http://ftp.math.utah.edu/pub/texcollection/texlive/texlive2007-live-20070212.iso.zip
$ wget http://ftp.math.utah.edu/pub/texcollection/texlive/texlive2007-inst-20070212.iso



Then, mount the images : the default location is /mnt/texlive-inst for inst iso,
and /mnt/texlive-live for live iso.

For example (you'll need to be root to mount the images or modify /mnt)

# mkdir -p /mnt/texlive-live/
# mkdir -p /mnt/texlive-inst/
# unzip texlive2007-live-20070212.iso.zip
# mount -o loop -t iso9660 texlive2007-live-20070212.iso /mnt/texlive-live/
# mount -o loop -t iso9660 texlive2007-inst-20070212.iso /mnt/texlive-inst/


Copy /mnt/texlive-live/source/source.tar.bz2 as texlive-source-2007.tar.bz2 in
your distfiles dir.

For example (you'll need at least to be in the portage group to execute this
command) : 

$ cp -a /mnt/texlive-live/source/source.tar.bz2 /usr/portage/distfiles/texlive-source-2007.tar.bz2



Once that is done, you have to generate the ebuilds for the modular texmf tree, go
to scripts/texlive/lists subdir and you'll find another README file :)
If you want a simpler approach, just go to scripts/texlive subdir and type make.
It should do the right thing for you if you have mounted the images to the
default location and PORTDIR and DISTDIR are defined in /etc/make.conf

At this point, it is ok to unmount texlive's isos : 

# umount /mnt/texlive-live/
# umount /mnt/texlive-inst/



If you've gone through all those steps, you're ready to install texlive !
Well, in fact, you're almost ready : 
Just append texlive-overlay subdir to your portage overlay, for example, 
if you're in a terminal in the directory where this README file is, just type :

# echo "PORTDIR_OVERLAY=\"\${PORTDIR_OVERLAY} ${PWD}/texlive-overlay\"" >> /etc/make.conf

Due to some packages being masked globally in the portage tree, you'll need to
unmask them first : 
# echo 'dev-tex/xcolor' >> /etc/portage/package.unmask
# echo 'app-text/texlive' >> /etc/portage/package.unmask


Now, you should be ready to install texlive : 
# emerge texlive

If you have tetex installed, please read tetex-to-texlive/Howto, it is a short
file that tries to report possible problems that can happen while switching. [
This file is really incomplete, please report any problem you encountered so
that I can add it there ]


Reporting bugs / improvements : Just contact me, aballier@gentoo.org, or on irc
(freenode). Feedback, even if it's just to say "that just worked perfectly" will
be very appreciated, so that I'll know how many people tested it, etc.