Summary: | app-text/calibre-bin - binary version of app-text/calibre | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Audiodef <online> |
Component: | New packages | Assignee: | Default Assignee for New Packages <maintainer-wanted> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | eschwartz93, jstein, kingjon3377, pacho |
Priority: | Normal | Keywords: | EBUILD |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://calibre-ebook.com | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
calibre-bin-0.8.68.ebuild
Updated ebuild ebuild for bin version of current calibre launcher script for calibre-bin, some env vars need to be overridden |
Description
Audiodef
2012-09-11 13:37:44 UTC
Created attachment 323518 [details]
calibre-bin-0.8.68.ebuild
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]
Updated ebuild
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 : https://calibre-ebook.com/dist/linux64 or https://calibre-ebook.com/dist/linux which redirects to specific version download, e.g. https://download.calibre-ebook.com/3.40.1/calibre-3.40.1-x86_64.txz 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. |