summaryrefslogtreecommitdiff
blob: ed246a376260a79a881f76bb7c3467ab90ddb648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit elisp

if [[ ${PV} == *9999 ]]; then
	EGIT_REPO_URI="https://github.com/hayamiz/twittering-mode.git"
	inherit git-r3
	IUSE="doc"
else
	SRC_URI="mirror://sourceforge/twmode/${P}.tar.gz"
	KEYWORDS="~amd64 ~x86"
	RESTRICT="test"
fi

DESCRIPTION="Emacs major mode for Twitter"
HOMEPAGE="http://twmode.sourceforge.net/"

LICENSE="GPL-2+"
SLOT="0"

RDEPEND="app-crypt/gnupg"

src_compile() {
	elisp-compile twittering-mode.el
	[[ ${PV} == *9999 ]] && use doc && emake -C doc/manual
}

src_install() {
	elisp-install ${PN} twittering-mode.el *.elc
	[[ ${PV} == *9999 ]] && use doc && dodoc doc/manual/twmode/twmode.html
}