Gentoo Archives: gentoo-user

From: Nils Holland <nholland@×××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to install a pkg without all dependencies?
Date: Thu, 18 Dec 2014 15:12:08
Message-Id: 20141218151159.GA310@triton374.startdedicated.com
In Reply to: [gentoo-user] How to install a pkg without all dependencies? by Harry Putnam
1 On Thu, Dec 18, 2014 at 01:18:25PM -0500, Harry Putnam wrote:
2 > Setup: very new install of gentoo
3 >
4 > I want to install emacs-w3m without most of the dependencies:
5 >
6 >
7 > Calculating dependencies... done!
8 > [ebuild N ] app-admin/eselect-emacs-1.17 0 KiB
9 > [ebuild N ] virtual/w3m-0 0 KiB
10 > [ebuild N ] app-emacs/emacs-common-gentoo-1.4-r1 USE="X -games" 40 KiB
11 > [ebuild N ] app-editors/emacs-24.4-r1:24 USE="X acl alsa dbus gif gpm gtk gtk3 inotify jpeg png svg tiff xpm zlib -Xaw3d (-aqua) -athena -games -gconf -gfile -gnutls -gsettings -gzip-el -hesiod -imagemagick -kerberos -libxml2 -livecd -m17n-lib -motif -pax_kernel (-selinux) -sound -source -toolkit-scroll-bars -wide-int -xft" 38804 KiB
12 > [ebuild N ] virtual/emacs-24 0 KiB
13 > [ebuild N ] app-emacs/emacs-w3m-1.4.528_pre20140213 LINGUAS="-ja" 734 KiB
14 >
15 > I don't want to install another (older) version of emacs.
16 >
17 > I installed emacs outside portage from bzr sources. I'd sooner track
18 > emacs development my way.
19 >
20 > I vaguely remember some way to tell portage about that... but not
21 > enough to do it...
22
23
24 You should certainly have a look at the meaning of USEFLAGS. Make sure
25 you have gentoolkit installed (in order to have the equery utility
26 at hand) and then do a
27
28 equery uses emacs
29
30 Have a look at what you don't need, fire up your editor and edit
31 /usr/portage/package.use (if it doesn't exist yet, create it). In
32 there, you could for example add a line like
33
34 app-editors/emacs -X -sound
35
36 to build without X11 and sound support.
37
38 Greetings,
39 Nils