Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434728 - app-text/calibre-bin - binary version of app-text/calibre
Summary: app-text/calibre-bin - binary version of app-text/calibre
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL: https://calibre-ebook.com
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2012-09-11 13:37 UTC by Audiodef
Modified: 2019-05-18 09:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
calibre-bin-0.8.68.ebuild (calibre-bin-0.8.68.ebuild,490 bytes, text/plain)
2012-09-11 13:38 UTC, Audiodef
Details
Updated ebuild (calibre-bin-0.8.68.ebuild,378 bytes, text/plain)
2012-09-13 15:07 UTC, Audiodef
Details
ebuild for bin version of current calibre (calibre-bin-3.40.1.ebuild,821 bytes, text/plain)
2019-03-16 17:17 UTC, Marcin Kowalski
Details
launcher script for calibre-bin, some env vars need to be overridden (calibre-bin,191 bytes, application/x-shellscript)
2019-03-16 17:17 UTC, Marcin Kowalski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Audiodef 2012-09-11 13:37:44 UTC
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

Reproducible: Always
Comment 1 Audiodef 2012-09-11 13:38:46 UTC
Created attachment 323518 [details]
calibre-bin-0.8.68.ebuild
Comment 2 Audiodef 2012-09-11 14:08:10 UTC
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.
Comment 3 Zac Medico gentoo-dev 2012-09-11 15:21:18 UTC
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.
Comment 4 Audiodef 2012-09-11 17:04:04 UTC
Not asking you to. I would be doing that, since I use it regularly. 

Anyway, still working on making it work. :)
Comment 5 Zac Medico gentoo-dev 2012-09-11 17:16:03 UTC
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.
Comment 6 Audiodef 2012-09-13 15:07:04 UTC
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.
Comment 7 Audiodef 2012-09-13 15:09:28 UTC
(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.
Comment 8 Jonas Stein gentoo-dev 2017-05-21 22:34:27 UTC
The attached ebuild does not work anymore.
Comment 9 Marcin Kowalski 2019-03-16 16:21:46 UTC
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 .
Comment 10 Marcin Kowalski 2019-03-16 17:17:22 UTC
Created attachment 569378 [details]
ebuild for bin version of current calibre
Comment 11 Marcin Kowalski 2019-03-16 17:17:50 UTC
Created attachment 569380 [details]
launcher script for calibre-bin, some env vars need to be overridden
Comment 12 Marcin Kowalski 2019-03-18 13:37:07 UTC
While the main app works, the program cannot locate its helper utils, for some reason. 

I'll need to investigate that some more.