Table of Contents
Little CLI utility which allows Gentoo / Texlive end-users to search which ebuild(s) install(s) texmf file(s) matching a grep regular expression. The search is done in an "upstream" file, so it also finds texmf files not installed (yet) on the computer. It consists of a small Bash script, wrapping grep, and a flat data file containing (a good chunk of) the texmf-files that can be installed from the main portage tree.
eg. searching for files containing "4ht" with ".sty" or ".tex" extension :
[bibi@céans]$texmfind --extended-regexp ".*4ht\.(sty|tex)"dev-texlive/texlive-context [1 file] m-tex4ht.tex dev-tex/tex4ht [2 files] m-tex4ht.tex tex4ht.sty Found 3 texmf files in 2 ebuilds.[bibi@céans]$texmfind --helpDescription: [ see above ;-) ] Usage: texmfind [OWN_OPTIONS] [GREP_OPTIONS] "grep_pattern"Known OWN_OPTIONS: -h | --help Print description, usage and examples. -n | --noformat Outputs raw data with no grouping or colors. -b | --belongs Find ebuild(s) for texmf file(s) matching "grep_pattern" (default mode). -l | --list Search for ebuild(s) matching grep pattern and list its texmf files. Supported GREP_OPTIONS: -E | --extended-regexp -P | --perl-regexp -G | --basic-regexp (default) -i | --ignore-case Examples: texmfind ".*4ht\.\(sty\|tex\)" texmfind --noformat --extended-regexp ".*4ht\.(sty|tex)" texmfind --list "tex4ht"[bibi@céans]$
texmfind is now integrated into the testing branch of the main portage tree (thanks to Alexis Ballier, the dev to thank for Gentoo-Texlive ebuilds, and instigator of texmfind). To install, you just have to run emerge texmfind if you are on ~ (testing), otherwise, add dev-tex/texmfind ~ to your arch/etc/portage/package.keywords file before runing emerge (see Mixing Stable with Testing in the Gentoo handbook for more info). If you have any reason not to use the Gentoo-portage version, you will find the download section here.
You can get the full sources (which isnt much, realy ;) using SVN. e.g. Checkout over SVN protocol (TCP 3690): svn co svn://svn.gna.org/svn/texmfind/trunk texmfind or checkout over http: svn co http://svn.gna.org/svn/texmfind/trunk texmfind. You can also browse the sources via the SVN web interface. Full sources of this web site also available there (xml docbook, xsl, css... wonderfull, isnt it ?).
texmfind |-- branches # (Small fixes to be released) | `-- texmfind-0.1-r1 |-- tags # (Snapshots, as released to Gentoo) | `-- texmfind-0.1 |-- trunk # (main) `-- website