diff options
author | Nicolas Bock <nicolasbock@gentoo.org> | 2017-12-03 06:27:21 -0700 |
---|---|---|
committer | Nicolas Bock <nicolasbock@gentoo.org> | 2017-12-03 06:41:20 -0700 |
commit | 369b412939658cb6bf25464909c91c563ae9a3df (patch) | |
tree | 91b100f0e606143bbaf6ebe7215b42797595d5fd /mail-client | |
parent | games-strategy/freeciv: Removed old. (diff) | |
download | gentoo-369b412939658cb6bf25464909c91c563ae9a3df.tar.gz gentoo-369b412939658cb6bf25464909c91c563ae9a3df.tar.bz2 gentoo-369b412939658cb6bf25464909c91c563ae9a3df.zip |
mail-client/neomutt: Make ebuild more generic
This change introduces a check on the package version so that the same
ebuild can be used for live and versioned ebuilds.
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'mail-client')
-rw-r--r-- | mail-client/neomutt/neomutt-9999.ebuild | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/mail-client/neomutt/neomutt-9999.ebuild b/mail-client/neomutt/neomutt-9999.ebuild index 6832f903c178..3460d4747433 100644 --- a/mail-client/neomutt/neomutt-9999.ebuild +++ b/mail-client/neomutt/neomutt-9999.ebuild @@ -3,19 +3,25 @@ EAPI=6 -inherit autotools eutils flag-o-matic git-r3 +inherit autotools eutils flag-o-matic -EGIT_REPO_URI="https://github.com/neomutt/neomutt.git" -EGIT_CHECKOUT_DIR="${WORKDIR}/neomutt-${P}" -KEYWORDS="" +if (( ${PV} == 9999 )); then + inherit git-r3 + EGIT_REPO_URI="https://github.com/neomutt/neomutt.git" + EGIT_CHECKOUT_DIR="${WORKDIR}/neomutt-${P}" + KEYWORDS="" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi DESCRIPTION="A small but very powerful text-based mail client" HOMEPAGE="https://www.neomutt.org/" LICENSE="GPL-2" SLOT="0" -IUSE="berkdb debug doc gdbm gnutls gpgme idn kerberos kyotocabinet libressl - lmdb nls notmuch pgp_classic qdbm sasl selinux slang smime_classic ssl +IUSE="berkdb doc gdbm gnutls gpgme idn kerberos kyotocabinet libressl lmdb nls + notmuch pgp_classic qdbm sasl selinux slang smime_classic ssl tokyocabinet" CDEPEND=" @@ -61,7 +67,6 @@ src_prepare() { src_configure() { local myconf=( - "$(use_enable debug)" "$(use_enable doc)" "$(use_enable gpgme)" "$(use_enable nls)" |