logo

overlay

My (experimental) gentoo overlay

aerc-0.2.0.ebuild (828B)


      1 # Copyright 2019 Gentoo Authors
      2 # Distributed under the terms of the GNU General Public License v2
      3 
      4 EAPI=7
      5 
      6 DESCRIPTION="Asynchronous email client for your terminal, written in Go."
      7 HOMEPAGE="https://aerc-mail.org"
      8 
      9 if [[ ${PV} == 9999 ]]; then
     10 	inherit git-r3
     11 	EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/${PN}"
     12 else
     13 	SRC_URI="https://git.sr.ht/~sircmpwn/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
     14 	KEYWORDS="~amd64 ~arm ~arm64 ~x86"
     15 fi
     16 
     17 RESTRICT="network-sandbox"
     18 LICENSE="MIT"
     19 SLOT="0"
     20 IUSE="html"
     21 
     22 DEPEND="app-text/scdoc"
     23 RDEPEND="${DEPEND}
     24 	|| (
     25 		dev-libs/libvterm
     26 		dev-libs/libvterm-neovim
     27 	)
     28 	virtual/awk
     29 	html? (
     30 		net-proxy/dante
     31 		|| (
     32 			virtual/w3m
     33 			www-client/lynx
     34 			www-client/links
     35 		)
     36 	)
     37 "
     38 BDEPEND=">=dev-lang/go-1.12.0"
     39 
     40 pkg_setup(){
     41 	# aerc uses default PREFIX=/usr/local
     42 	export PREFIX="${EPREFIX}/usr"
     43 }