| 1 |
# Copyright 1999-2013 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-emacs/twittering-mode/twittering-mode-2.0.0.ebuild,v 1.1 2011/05/07 09:05:23 naota Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
inherit elisp elisp-common eutils |
| 8 |
|
| 9 |
if [ "${PV}" = "9999" ]; then |
| 10 |
EGIT_REPO_URI="git://github.com/hayamiz/twittering-mode.git" |
| 11 |
inherit git-2 |
| 12 |
SRC_URI="" |
| 13 |
KEYWORDS="" |
| 14 |
IUSE="doc" |
| 15 |
else |
| 16 |
SRC_URI="mirror://sourceforge/twmode/${P}.tar.gz" |
| 17 |
KEYWORDS="~amd64 ~x86" |
| 18 |
RESTRICT="test" |
| 19 |
IUSE="" |
| 20 |
fi |
| 21 |
|
| 22 |
DESCRIPTION="Emacs major mode for Twitter." |
| 23 |
HOMEPAGE="http://twmode.sourceforge.net/" |
| 24 |
|
| 25 |
LICENSE="GPL-2" |
| 26 |
SLOT="0" |
| 27 |
|
| 28 |
DEPEND="" |
| 29 |
RDEPEND="app-crypt/gnupg" |
| 30 |
|
| 31 |
src_compile() { |
| 32 |
elisp-compile twittering-mode.el || die |
| 33 |
[ "${PV}" = "9999" ] && use doc && emake -C doc/manual |
| 34 |
} |
| 35 |
|
| 36 |
src_test() { |
| 37 |
emake check |
| 38 |
} |
| 39 |
|
| 40 |
src_install() { |
| 41 |
[ "${PV}" = "9999" ] && use doc && dodoc doc/manual/twmode/twmode.html |
| 42 |
elisp-install ${PN} twittering-mode.el *.elc || die |
| 43 |
} |