There is the g-cpan.pl script for installing CPAN packages in a way they become integrated into portage. I have not found anything comparable for CTAN (TeX) or CRAN (for the R statistical/programming language: www.r-project.org), although this would be at least as useful. Apparently, there is some interest in the forums, although nobody seems to have done anything about it actually. (Refer to the URL for a discussion in an Arch Linux forum including some technical points) Reproducible: Always Steps to Reproduce: 1. 2. 3.
I wrote g-ctan.sh before (probably two years ago) but I wasn't sure whether that was useful. (and I thought it was incomplete, but I forgot why I thought so) I'll post that later if you don't mind testing it.
sounds interesting (bump)! is it recommendable to set up some encapsulated testing environment for doing that and are there any docs about such a thing?
*** Bug 91794 has been marked as a duplicate of this bug. ***
just some thoughts: what language should g-c?an.* scripts be programmed? there is some good reason to modularize things, as some tasks should be pretty common among them - refer to the already exisiting g-cpan.pl for e.g. checking if there is an ebuild of the given name, if the package is already included with the "base distribution" (perl for CPAN, tetex (or alternatives?) for CTAN) or if it has been already installed via the script. Would Perl be reasonable for, say, CTAN and CRAN? (This might help porting efforts from g-cpan.pl) Can anybody think of any other C?ANs this would make sense for? Mamoru, have you already found your script? Any comment from TeX and/or R users?
Created attachment 60118 [details] g-ctan.sh I forgot to attach the script. This is just FYI. (You need to emerge tetex with doc USE flag)
Is this g-ctan script working? Is anyone working on an ebuild?
Thanks for the script, but it doesnt work with tetex-3 I get the following error: # ./g-ctan.sh list w3m: Can't load /usr/share/texmf/doc/help/Catalogue/brief.html. I re-merged tetex with USE=doc but this file is not installed by tetex-3.0_p1-r3
BUMP! Anyone still looking at this?
(In reply to comment #8) > BUMP! > Yeah, I'd like to bump this bug, too. It would be quite practical to install TeX and R packages directly from within portage, and avoid using (at least for R) the "internal" package manager.
It is not fully what you craved for, but I created g-CTAN to install updated packages of the TeXLive distribution. See app-portage/g-ctan.
app-portage/g-ctan doesn't really solve this problem for me. I need to install other macros from ctan besides the packages included in texlive. Would a script that just takes a package name and downloads it from ctan (with or without dependencies), installing it in a tree favored over texmf-dist (like texmf-ctan or something, [I hope texmf can be configured for this]) be enough? Probably it also needs to store version information and at least allow uninstalls. Maybe I'll start working on something that does that in the next days.