Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 134700

Summary: lyx has too many dependencies
Product: Gentoo Linux Reporter: lothalev
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: trivial CC: obz
Priority: Low    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: modified Lyx ebuild

Description lothalev 2006-05-28 15:49:56 UTC
app-office/lyx depends on a whole bunch of packages which are actually not needed for it to work. Lyx alone requires only Qt library (it is not able to generate documents without latex, however). All other dependencies could be removed or changed to options.

I modified the ebuild of the latest version to work on a 'typical' desktop system (uses latex and a spellchecker, not much more though;)

Please take this change into account, as installing lyx on gentoo is a pain in the *ss because of the dependencies (i don't want half of my hard disk wasted just to install lyx ;)

Modified ebuild included.
Comment 1 lothalev 2006-05-28 15:50:40 UTC
Created attachment 87766 [details]
modified Lyx ebuild
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-05-28 15:57:53 UTC
(In reply to comment #0)

Attach a unified diff so that someone can actually review the changes. Note however that killing functionality just because you dislike dependencies is not an option.
Comment 3 lothalev 2006-05-29 04:58:05 UTC
Here is the diff compared to the original ebuild:

--- /usr/portage/app-office/lyx/lyx-1.4.1-r1.ebuild     2006-05-23 08:35:35.000000000 +0200
+++ lyx-1.4.1-r1.ebuild 2006-05-29 13:46:06.193276592 +0200
@@ -28,13 +28,7 @@
        )
        virtual/ghostscript
        virtual/aspell-dict
-       dev-tex/latex2html
-       dev-tex/dvipost
-       media-gfx/imagemagick
-       cups? ( virtual/lpr )
-       app-text/sgmltools-lite
-       app-text/noweb
-       dev-tex/chktex"
+       cups? ( virtual/lpr )"

 # these dependencies need looking at.
 # does lyx only need qt to compile but not run ?
@@ -52,7 +46,6 @@
        virtual/tetex
        >=dev-lang/perl-5
        nls? ( sys-devel/gettext )
-       app-text/aiksaurus
        dev-lang/python
        >=sys-devel/autoconf-2.58
        cjk? ( =x11-libs/qt-3* )
------------------------------------------------------
So, basically, as of the functionality side, it removes image previews (maybe could be turned into an option, say: imagemagick? (media-gfx/imagemagick)
The rest is unaffected by the removed dependencies (at least I didn't notice any changes).