Changes between Initial Version and Version 1 of TeXEnvironment/Vine6


Ignore:
Timestamp:
2011/08/24 23:18:32 (13 years ago)
Author:
munepi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TeXEnvironment/Vine6

    v1 v1  
     1= TeX 環境 Vine Linux 6 = 
     2 
     3== 方針 == 
     4 
     5 * ptexlive ベースにしつつ、操作性を変えない。 
     6 * 出来る限り手間をかけない。 
     7 * 無駄に細かすぎるサブパッケージを作らない。 
     8 
     9== TeX Live のバージョン == 
     10 
     11 * TeX Live 2009 
     12   * [http://tutimura.ath.cx/ptexlive/ ptexlive]-20100711 ベース 
     13   * [http://sourceforge.jp/projects/eptex/ e-pTeX]: eptex-100420 
     14 
     15 * TeX Live 2010!? 
     16   * pTeX が upstream に取り込まれた 
     17     * xdvik の日本語化、updmap の KanjiMap などが未対応 
     18 
     19 
     20== RPM パッケージ == 
     21 
     22||カテゴリ(リポジトリのカテゴリ) ||パッケージの組み合わせ||texlive-collections-* の生成||{{{$ du -hsc texmf texmf-dist}}}||コメント|| 
     23||最小(main)||texlive + texlive-common (= texlive-collection-langgerman + texlive-collection-langcyrillic + texlive-collection-xetex + texlive-collection-latexrecommended + texlive-collection-latex + texlive-collection-fontsrecommended + texlive-collection-basic) + jvf + texlive-macros|| {{{ $ tlpdb2rpmspec --minimal-collections }}} || 205M ||teTeX 3.0 + α|| 
     24||標準(plus)|| + texmacro-otf + texlive-collection-latexextra + texlive-collection-luatex + texlive-collection-pictures + texlive-collection-genericrecommended + texlive-collection-pstricks|| {{{ $ tlpdb2rpmspec --standard-collections }}} || 391M ||task-texlive|| 
     25||最大(plus)|| + 残り全部 || {{{ $ tlpdb2rpmspec --full-collections }}} || --- || task-texlive-full || 
     26 
     27=== 小さな TeX 環境 === 
     28teTeX 3.0 + α の構成で多くのユーザをカバーできていた?そうであれば、小さな TeX 環境を提供する価値はある! 
     29 * ネットブックなどの小さなディスク(SSD, USB, SDHC など)に対して、小さな TeX 環境の提供は有効! 
     30 * du -hsc /usr/share/texmf /usr/share/texmf-dist 
     31   * main: apt-get install tetex; 79M 
     32   * plus: apt-get task-tetex; 242M 
     33 
     34texmf-dist 以下の解体作業は、パッケージの量が多くて、到底すべて手動で管理しきれていない。 
     35 * tlpdb2rpmspec から texlive-collection-* のみを作成する。 
     36 * texlive2009.iso:/tlpkg/texlive.tlpdb 
     37 
     38=== スキーマ === 
     39TeX 環境の構築を簡単にできるようにしておきたい!かつ、Requires: させるパッケージを厳選しておく。 
     40 * task-texlive 
     41 * task-texlive-full 
     42 
     43 
     44=== texlive === 
     45 
     46ptexlive-20100711 ベースにした TeX Live 2009 のパッケージ。 
     47 
     48 * e-pTeX: eptex-100420 に対応。 
     49 * luatex: --enable-luatex 
     50 * xetex: --enable-xetex --enable-xdv2pdf --enable-xdvipdfmx 
     51 * dvipdfmx: 別パッケージにせずに同梱。 
     52 * xdvik: 別パッケージにせずに同梱。 
     53 
     54ディレクトリ構成は、teTeX のときからと同様。 
     55 
     56 * /usr/bin 
     57 * /usr/share/ 
     58   * /usr/share/texmf 
     59   * /usr/share/texmf-dist 
     60   * /usr/share/texmf-local 
     61   * /usr/share/texmf-var 
     62   * /usr/share/texmf-config 
     63 * /var/lib/texmf 
     64 
     65texlive パッケージが提供されていない ''arch'' 上で、texlive をビルドするためには、 
     66一旦 --with firstbuild でビルドした texlive パッケージを作成します。 
     67{{{ 
     68texlive-2009-Xvl6-src.rpm をダウンロード。 
     69 $ rpmbuild --rebuild --with firstbuild texlive-2009-Xvl6.src.rpm 
     70 $ sudo apt-get install texlive-2009-Xvl6.''arch''.rpm libkpathsea*2009-Xvl6.''arch''.rpm libptexenc*2009-Xvl6.''arch''.rpm 
     71}}} 
     72 
     73--with firstbuild をはずして、texlive をリビルドします。 
     74{{{ 
     75 $ rpmbuild --rebuild texlive-2009-Xvl6.src.rpm 
     76 $ sudo apt-get reinstall texlive-2009-Xvl6.''arch''.rpm 
     77}}} 
     78 
     79 
     80vbuilder を使って texlive をリビルドすることもできます。 
     81{{{ 
     82 $ rpmbuild -bs texlive-vl.spec 
     83 $ vbuilder --version ''version'' --arch ''arch'' install-rpm texlive-sources 
     84 $ vbuilder --version ''version'' --arch ''arch'' build-rpm texlive-2009-Xvl6.src.rpm 
     85}}} 
     86 
     87 
     88=== texlive-collection-* === 
     89 
     90texlive2009.iso:/tlpkg/texlive.tlpdb において {{{category Collection}}} をフィールドに持つパッケージです。 
     91 
     92tlpdb2rpmspec コマンドを使って、これらの rpm を生成します。 
     93 
     94 
     95=== texlive-common === 
     96 
     97TeX Live パッケージの共通ベースを提供するするための仮想パッケージ。 
     98 
     99 * texlive-collection-langgerman 
     100 * texlive-collection-langcyrillic 
     101 * texlive-collection-xetex 
     102 * texlive-collection-latexrecommended 
     103 * texlive-collection-latex 
     104 * texlive-collection-fontsrecommended 
     105 * texlive-collection-basic 
     106 
     107 texlive-vl.spec で 6babel.sh を実行するために、texlive-common 以上の依存関係が必要。 
     108 
     109 
     110=== texlive-sources === 
     111 
     112TeX Live のアーカイブを展開して固めたパッケージ。 
     113 
     114 * /usr/share/texlive-sources 
     115   * texmf 
     116   * texmf-dist 
     117   * source 
     118   * ... 
     119 
     120=== texlive-macros === 
     121 
     122追加マクロパッケージ。 
     123 
     124 * kanjifonts 
     125 * jsclasses 
     126 * jlistings 
     127 * ... 
     128 
     129=== jvf === 
     130 
     131Vine Linux 用の vf をまとめたパッケージ。 
     132 
     133=== texmacro-otf === 
     134 
     135otf 1.5.6 
     136 
     137=== xdvi-search-el === 
     138 
     139TeX の src-special を Emacsen上で使用するための elisp。 
     140 
     141=== texworks === 
     142 
     143=== lyx === 
     144 
     145=== task-texlive, task-texlive-full === 
     146 
     147texlive 環境を一通りインストールするための仮想パッケージ。 
     148 
     149task-texlive, task-texlive-full に対応する task-texlive-doc, task-texlive-full-doc も提供。 
     150 
     151 
     152== tlpdb2rpmspec == 
     153 
     154texlive-collection-* の spec ファイルを生成するツールを作成しました。 
     155 
     156tlpdb2rpmspec は texlive-vtlpkg パッケージに同梱されています。 
     157 
     158http://trac.vinelinux.org/browser/projects/texlive-vtlpkg/trunk 
     159 
     160{{{ 
     161  $ sudo apt-get install texlive-vtlpkg 
     162}}} 
     163 
     164 
     165=== 初期設定 === 
     166 
     167/usr/share/texlive-vtlpkg/dot.vtlpkg.conf を ${HOME}/.vtlpkg.conf へコピーして、必要な設定をします。 
     168{{{ 
     169##  
     170## texlive-vtlpkg configuration file 
     171##  
     172## This configuration is read at the startup of texlive-vtlpkg.  
     173 
     174## set your vendor 
     175## default: RPM_VENDOR="Project Vine" 
     176RPM_VENDOR="Project Vine" 
     177 
     178## set your distribution 
     179## default: RPM_DISTRIBUTION="Vine Linux" 
     180RPM_DISTRIBUTION="Vine Linux" 
     181 
     182## set your name and your e-mail address 
     183## default: RPM_GPG_NAME="YOUR NAME <your@email.address>" 
     184RPM_GPG_NAME="" 
     185 
     186## set your packager id 
     187## default: RPM_PACKAGER=your_id 
     188RPM_PACKAGER= 
     189 
     190## set the top of your rpm directory 
     191## default: RPM_TOPDIR=${HOME}/rpm 
     192RPM_TOPDIR=${HOME}/rpm 
     193 
     194## end of file 
     195}}} 
     196 
     197 
     198=== ヘルプ === 
     199 
     200{{{ 
     201$ tlpdb2rpmspec  
     202Usage:  tlpdb2rpmspec [option] [pkgname] 
     203 
     204This script generates a rpm spec file for CTAN and collection-* packages of TeX Live.  
     205 
     206Options: 
     207        --name:                 return [pkgname] 
     208        --category:             return the category of [pkgname] 
     209        --revision:             return the revision of [pkgname] 
     210        --depend:               return dependencies of [pkgname] 
     211        --shortdesc:            return the short description of [pkgname] 
     212        --longdesc:             return the description of [pkgname] 
     213        --execute:              return post processe of [pkgname] 
     214        --catalogue-ctan:       return the locate of [pkgname] 
     215        --catalogue-date:       return the last update of [pkgname] 
     216        --catalogue-license:    return the license of [pkgname] 
     217        --catalogue-version:    return the version of [pkgname] 
     218        --filelist:             return the filelist of [pkgname] 
     219        --help:                 show this help 
     220 
     221Supoort collections-* packages:  
     222collection-basic 
     223collection-bibtexextra 
     224collection-binextra 
     225(snip) 
     226collection-xetex 
     227}}} 
     228 
     229 
     230=== 使い方 === 
     231 
     232例えば、collection-basic の texlive-collection-basic-vl.spec を生成したい場合は、以下を実行します。 
     233 
     234{{{ 
     235$ tlpdb2rpmspec collection-basic > texlive-collection-basic-vl.spec 
     236}}} 
     237 
     238{{{rpmbuild -ba texlive-collection-basic-vl.spec}}} を実行すると、 
     239texlive-collection-basic-2009-Xvl6.{noarch,src}.rpm,  
     240texlive-collection-basic-doc-2009-Xvl6.src.rpm  
     241がビルドされます。 
     242 
     243各カテゴリ別に texlive-collection-* を生成したい場合は、以下を実行することにより、rpmbuild まで実行します。 
     244{{{ 
     245最小(main):$ tlpdb2rpmspec --minimal-collections 
     246標準(plus):$ tlpdb2rpmspec --standard-collections 
     247最大?(plus):$ tlpdb2rpmspec --full-collections 
     248}}} 
     249 
     250 
     251== リポジトリ内の tetex -> texlive の解決すべきパッケージ == 
     252 
     253=== 他のパッケージとのファイル競合 === 
     254 * tipa -> obsolete done.  
     255 * mathabx -> mathabx-type1 として abxtype1-YYYYMMDD.zip から提供される Type1 のみに re-package done.  
     256 * psutils -> texlive 側で /man/ の衝突を除去 done.  
     257 * t1utils -> texlive 側で /man/ の衝突を除去 done.  
     258 * asymptote -> texlive 側で衝突を除去 done.  
     259 * ... 
     260 
     261=== apt-cache whapdepends tetex === 
     262 * tipa: obsolete <- collection-fontsrecommended (tipa) done.  
     263 * ec-fonts-mftraced: obsolete <- collection-fontsextra (cm-super) done.  
     264 * tgif2tex: R: texlive done.  
     265 * mftrace.ARCH: R: texlive done.  
     266 * lyx.ARCH: R: texlive done.  
     267 * linuxdoc-tools.ARCH: R: texlive done.  
     268 * hevea.ARCH: R: texlive done.  
     269 * geany-plugins-geanylatex: toshi_kd2 -san done.  
     270 * latex2html: done.  
     271 
     272== TeX 関係の /usr/bin 以下にあるシンボリックリンク == 
     273 
     274各シンボリックリンクは、実ファイル・パスを含むパッケージに吸収させる。 
     275 
     276texlive-2009-18vl6 から 2009-19vl6 への更新では、 
     277以下のチェックスクリプトを利用して、 
     278然るべき texlive-collection-<package> にいれこんだ。 
     279 
     280{{{ 
     281#!/bin/bash 
     282 
     283rpm -q --quiet task-texlive-full-doc 
     284[ $? -ne 0 ] && \ 
     285    echo "Usage: $(basename $0) > result.txt" && \ 
     286    echo "please install task-texlive-full-doc" && \ 
     287    exit 1 
     288 
     289( 
     290    cd /usr/bin 
     291    for lnk in $(rpm -ql texlive | grep /usr/bin); do 
     292        [ -L $lnk ] || continue 
     293        rlnk=$(readlink $lnk | sed -e "s|../|/usr/|") 
     294        #echo "$(rpm -qf $rlnk),$lnk,$rlnk,$(head -n 1 $lnk)" 
     295        echo "$(rpm -qf --qf '%{name}' $rlnk),$lnk,$rlnk" 
     296    done 
     297) | sort | grep -v texlive-2009 
     298 
     299exit 
     300}}} 
     301 
     302実行結果 
     303{{{ 
     304texlive-collection-binextra,/usr/bin/dviasm,/usr/share/texmf-dist/scripts/dviasm/dviasm.py 
     305texlive-collection-binextra,/usr/bin/findhyph,/usr/share/texmf-dist/scripts/findhyph/findhyph 
     306texlive-collection-binextra,/usr/bin/fragmaster,/usr/share/texmf-dist/scripts/fragmaster/fragmaster.pl 
     307texlive-collection-binextra,/usr/bin/latex2man,/usr/share/texmf-dist/scripts/latex2man/latex2man 
     308texlive-collection-binextra,/usr/bin/latexmk,/usr/share/texmf-dist/scripts/latexmk/latexmk.pl 
     309texlive-collection-binextra,/usr/bin/listings-ext.sh,/usr/share/texmf-dist/scripts/listings-ext/listings-ext.sh 
     310texlive-collection-binextra,/usr/bin/mkjobtexmf,/usr/share/texmf-dist/scripts/mkjobtexmf/mkjobtexmf.pl 
     311texlive-collection-binextra,/usr/bin/pdfcrop,/usr/share/texmf-dist/scripts/pdfcrop/pdfcrop.pl 
     312texlive-collection-binextra,/usr/bin/pkfix,/usr/share/texmf-dist/scripts/pkfix/pkfix.pl 
     313texlive-collection-binextra,/usr/bin/pkfix-helper,/usr/share/texmf-dist/scripts/pkfix-helper/pkfix-helper 
     314texlive-collection-binextra,/usr/bin/purifyeps,/usr/share/texmf-dist/scripts/purifyeps/purifyeps 
     315texlive-collection-binextra,/usr/bin/texcount,/usr/share/texmf-dist/scripts/texcount/texcount.pl 
     316texlive-collection-binextra,/usr/bin/texdiff,/usr/share/texmf-dist/scripts/texdiff/texdiff 
     317texlive-collection-binextra,/usr/bin/texdirflatten,/usr/share/texmf-dist/scripts/texdirflatten/texdirflatten 
     318texlive-collection-binextra,/usr/bin/texloganalyser,/usr/share/texmf-dist/scripts/texloganalyser/texloganalyser 
     319texlive-collection-context,/usr/bin/context,/usr/share/texmf-dist/scripts/context/stubs/unix/context 
     320texlive-collection-context,/usr/bin/ctxtools,/usr/share/texmf-dist/scripts/context/stubs/unix/ctxtools 
     321texlive-collection-context,/usr/bin/luatools,/usr/share/texmf-dist/scripts/context/lua/luatools.lua 
     322texlive-collection-context,/usr/bin/makempy,/usr/share/texmf-dist/scripts/context/stubs/unix/makempy 
     323texlive-collection-context,/usr/bin/mpstools,/usr/share/texmf-dist/scripts/context/stubs/unix/mpstools 
     324texlive-collection-context,/usr/bin/mptopdf,/usr/share/texmf-dist/scripts/context/stubs/unix/mptopdf 
     325texlive-collection-context,/usr/bin/mtxrun,/usr/share/texmf-dist/scripts/context/lua/mtxrun.lua 
     326texlive-collection-context,/usr/bin/mtxtools,/usr/share/texmf-dist/scripts/context/stubs/unix/mtxtools 
     327texlive-collection-context,/usr/bin/pdftools,/usr/share/texmf-dist/scripts/context/stubs/unix/pdftools 
     328texlive-collection-context,/usr/bin/pstopdf,/usr/share/texmf-dist/scripts/context/stubs/unix/pstopdf 
     329texlive-collection-context,/usr/bin/rlxtools,/usr/share/texmf-dist/scripts/context/stubs/unix/rlxtools 
     330texlive-collection-context,/usr/bin/runtools,/usr/share/texmf-dist/scripts/context/stubs/unix/runtools 
     331texlive-collection-context,/usr/bin/texexec,/usr/share/texmf-dist/scripts/context/stubs/unix/texexec 
     332texlive-collection-context,/usr/bin/texfont,/usr/share/texmf-dist/scripts/context/stubs/unix/texfont 
     333texlive-collection-context,/usr/bin/texmfstart,/usr/share/texmf-dist/scripts/context/ruby/texmfstart.rb 
     334texlive-collection-context,/usr/bin/textools,/usr/share/texmf-dist/scripts/context/stubs/unix/textools 
     335texlive-collection-context,/usr/bin/texutil,/usr/share/texmf-dist/scripts/context/stubs/unix/texutil 
     336texlive-collection-context,/usr/bin/tmftools,/usr/share/texmf-dist/scripts/context/stubs/unix/tmftools 
     337texlive-collection-context,/usr/bin/xmltools,/usr/share/texmf-dist/scripts/context/stubs/unix/xmltools 
     338texlive-collection-fontutils,/usr/bin/afm2afm,/usr/share/texmf-dist/scripts/fontools/afm2afm 
     339texlive-collection-fontutils,/usr/bin/autoinst,/usr/share/texmf-dist/scripts/fontools/autoinst 
     340texlive-collection-fontutils,/usr/bin/cmap2enc,/usr/share/texmf-dist/scripts/fontools/cmap2enc 
     341texlive-collection-fontutils,/usr/bin/epstopdf,/usr/share/texmf-dist/scripts/epstopdf/epstopdf.pl 
     342texlive-collection-fontutils,/usr/bin/font2afm,/usr/share/texmf-dist/scripts/fontools/font2afm 
     343texlive-collection-fontutils,/usr/bin/mkt1font,/usr/share/texmf-dist/scripts/accfonts/mkt1font 
     344texlive-collection-fontutils,/usr/bin/ot2kpx,/usr/share/texmf-dist/scripts/fontools/ot2kpx 
     345texlive-collection-fontutils,/usr/bin/pfm2kpx,/usr/share/texmf-dist/scripts/fontools/pfm2kpx 
     346texlive-collection-fontutils,/usr/bin/showglyphs,/usr/share/texmf-dist/scripts/fontools/showglyphs 
     347texlive-collection-fontutils,/usr/bin/vpl2ovp,/usr/share/texmf-dist/scripts/accfonts/vpl2ovp 
     348texlive-collection-fontutils,/usr/bin/vpl2vpl,/usr/share/texmf-dist/scripts/accfonts/vpl2vpl 
     349texlive-collection-langgreek,/usr/bin/mkgrkindex,/usr/share/texmf-dist/scripts/mkgrkindex/mkgrkindex 
     350texlive-collection-langindic,/usr/bin/ebong,/usr/share/texmf-dist/scripts/bengali/ebong.py 
     351texlive-collection-latex,/usr/bin/pdfatfi,/usr/share/texmf-dist/scripts/oberdiek/pdfatfi.pl 
     352texlive-collection-latexextra,/usr/bin/makeglossaries,/usr/share/texmf-dist/scripts/glossaries/makeglossaries 
     353texlive-collection-latexextra,/usr/bin/pdfannotextractor,/usr/share/texmf-dist/scripts/pax/pdfannotextractor.pl 
     354texlive-collection-latexextra,/usr/bin/pdfthumb,/usr/share/texmf-dist/scripts/ppower4/pdfthumb.tlu 
     355texlive-collection-latexextra,/usr/bin/perltex,/usr/share/texmf-dist/scripts/perltex/perltex 
     356texlive-collection-latexextra,/usr/bin/ppower4,/usr/share/texmf-dist/scripts/ppower4/ppower4.tlu 
     357texlive-collection-latexextra,/usr/bin/ps4pdf,/usr/share/texmf-dist/scripts/pst-pdf/ps4pdf 
     358texlive-collection-latexextra,/usr/bin/splitindex,/usr/share/texmf-dist/scripts/splitindex/perl/splitindex.pl 
     359texlive-collection-latexextra,/usr/bin/svn-multi,/usr/share/texmf-dist/scripts/svn-multi/svn-multi.pl 
     360texlive-collection-latexextra,/usr/bin/vpe,/usr/share/texmf-dist/scripts/vpe/vpe.pl 
     361texlive-collection-latexrecommended,/usr/bin/thumbpdf,/usr/share/texmf-dist/scripts/thumbpdf/thumbpdf.pl 
     362texlive-collection-pictures,/usr/bin/cachepic,/usr/share/texmf-dist/scripts/cachepic/cachepic.tlu 
     363texlive-collection-pictures,/usr/bin/epspdf,/usr/share/texmf-dist/scripts/epspdf/epspdf 
     364texlive-collection-pictures,/usr/bin/epspdftk,/usr/share/texmf-dist/scripts/epspdf/epspdftk 
     365texlive-collection-pictures,/usr/bin/fig4latex,/usr/share/texmf-dist/scripts/fig4latex/fig4latex 
     366texlive-collection-pstricks,/usr/bin/pst2pdf,/usr/share/texmf-dist/scripts/pst2pdf/pst2pdf.pl 
     367texlive-collection-science,/usr/bin/ulqda,/usr/share/texmf-dist/scripts/ulqda/ulqda.pl 
     368}}} 
     369 
     370 
     371== texlive パッケージのテスト事項 == 
     372 
     373=== dvipdfmx: いくつかの画像形式の埋め込みをチェック === 
     374 
     375=== luatex: zlib のバージョンチェック ===