2017-07-31 18:47:13 +03:00
|
|
|
# Copyright 1999-2017 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2017-12-26 14:18:51 +03:00
|
|
|
EAPI=6
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
inherit elisp elisp-common eutils
|
|
|
|
|
2017-12-26 14:18:51 +03:00
|
|
|
if [[ ${PV} == *9999 ]]; then
|
2017-07-31 18:47:13 +03:00
|
|
|
EGIT_REPO_URI="https://github.com/hayamiz/twittering-mode.git"
|
2017-12-26 14:18:51 +03:00
|
|
|
inherit git-r3
|
2013-01-15 12:54:42 +04:00
|
|
|
IUSE="doc"
|
2012-02-06 16:39:49 +04:00
|
|
|
else
|
|
|
|
SRC_URI="mirror://sourceforge/twmode/${P}.tar.gz"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
RESTRICT="test"
|
2013-01-15 12:54:42 +04:00
|
|
|
IUSE=""
|
2012-02-06 16:39:49 +04:00
|
|
|
fi
|
|
|
|
|
2014-08-12 13:29:40 +04:00
|
|
|
DESCRIPTION="Emacs major mode for Twitter"
|
2012-02-06 16:39:49 +04:00
|
|
|
HOMEPAGE="http://twmode.sourceforge.net/"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
|
|
|
|
DEPEND=""
|
|
|
|
RDEPEND="app-crypt/gnupg"
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
elisp-compile twittering-mode.el || die
|
2017-12-26 14:18:51 +03:00
|
|
|
[[ ${PV} == *9999 ]] && use doc && emake -C doc/manual
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_test() {
|
|
|
|
emake check
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2017-12-26 14:18:51 +03:00
|
|
|
[[ ${PV} == *9999 ]] && use doc && dodoc doc/manual/twmode/twmode.html
|
2012-02-06 16:39:49 +04:00
|
|
|
elisp-install ${PN} twittering-mode.el *.elc || die
|
|
|
|
}
|