| 1 |
# Copyright 1999-2005 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-emacs/gnus/gnus-5.10.6.ebuild,v 1.13 2005/06/05 11:37:46 hansmi Exp $ |
| 4 |
|
| 5 |
inherit elisp |
| 6 |
|
| 7 |
IUSE="emacs-w3" |
| 8 |
|
| 9 |
DESCRIPTION="The Gnus newsreader and mail-reader" |
| 10 |
HOMEPAGE="http://www.gnus.org/" |
| 11 |
SRC_URI="http://quimby.gnus.org/gnus/dist/${P}.tar.gz" |
| 12 |
LICENSE="GPL-2" |
| 13 |
SLOT="0" |
| 14 |
KEYWORDS="alpha amd64 ppc sparc x86" |
| 15 |
|
| 16 |
DEPEND="virtual/emacs |
| 17 |
emacs-w3? ( app-emacs/w3 )" |
| 18 |
|
| 19 |
src_compile() { |
| 20 |
local myconf |
| 21 |
if use emacs-w3 ; then |
| 22 |
myconf="${myconf} --with-w3=/usr/share/emacs/site-lisp/w3" |
| 23 |
myconf="${myconf} --with-url=/usr/share/emacs/site-lisp/w3" |
| 24 |
else |
| 25 |
myconf="${myconf} --without-w3 --without-url" |
| 26 |
fi |
| 27 |
econf \ |
| 28 |
--with-emacs \ |
| 29 |
--with-lispdir=/usr/share/emacs/site-lisp/gnus \ |
| 30 |
--with-etcdir=/usr/share/emacs/etc \ |
| 31 |
${myconf} || die "econf failed" |
| 32 |
emake || die |
| 33 |
} |
| 34 |
|
| 35 |
src_install() { |
| 36 |
einstall \ |
| 37 |
lispdir=${D}/usr/share/emacs/site-lisp/gnus \ |
| 38 |
etcdir=${D}/usr/share/emacs/etc \ |
| 39 |
|| die |
| 40 |
|
| 41 |
elisp-site-file-install ${FILESDIR}/70${PN}-gentoo.el |
| 42 |
|
| 43 |
dodoc ChangeLog GNUS-NEWS README todo |
| 44 |
|
| 45 |
# fix info documentation |
| 46 |
find ${D}/usr/share/info -type f -exec mv {} {}.info \; |
| 47 |
} |