The Calibre people recommend installing Calibre on Linux using their script. Since there is no ebuild that uses this script, I've created one and named it calibre-bin.
It might need some dependencies written in as per the specs on http://calibre-ebook.com/download_linux
Created attachment 323518 [details]
The script in src_install works from command line. I don't know why I get "NameError: name 'sys' is not defined" from the ebuild. I've spent some time looking for answers and I'm afraid I'll need someone more knowledgeable to step in and provide some advice on this.
That's dangerous to execute a downloaded script like the ebuild does. Also, I'm pretty sure it doesn't install in $D like an ebuild is supposed to.
Anyway, I prefer the source based ebuild, and have no interest in maintaining a calibre-bin ebuild myself.
Not asking you to. I would be doing that, since I use it regularly.
Anyway, still working on making it work. :)
Typically, *-bin packages are for things that take a long time to compile, or for which the source code is not available. However, calibre doesn't take long to compile, so a calibre-bin package doesn't seem very useful to me.
Created attachment 323668 [details]
Works with FEATURES="-sandbox". This should be fixed, obviously. Also does not uninstall with emerge -C, which is related to having to bypass sandbox.
I'd appreciate any comments on how to make this work.
(In reply to comment #5)
> Typically, *-bin packages are for things that take a long time to compile,
> or for which the source code is not available. However, calibre doesn't take
> long to compile, so a calibre-bin package doesn't seem very useful to me.
I understand. :-)
I prefer a minimalistic system, and calibre has a long list of dependencies, most of which are not extant on my system and would not be used for anything else. The bin package would 1. be closer to the installation the program creators suggested and 2. have fewer dependencies.
The attached ebuild does not work anymore.
An alternate way to do this is to resolve the url :
which redirects to specific version download, e.g.
and go from there. It's mostly a matter of unpacking the tarball somewhere to /opt and providing the necessary path adjustments or symlinks.
I may try to hack up a simple ebuild for it, just like i did for Anki .
Created attachment 569378 [details]
ebuild for bin version of current calibre
Created attachment 569380 [details]
launcher script for calibre-bin, some env vars need to be overridden
While the main app works, the program cannot locate its helper utils, for some reason.
I'll need to investigate that some more.