forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug: https://bugs.gentoo.org/695276 Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Georgy Yakovlev <[email protected]>
- Loading branch information
Showing
2 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Copyright 2019 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
# go list -m all | magic | ||
EGO_PN="git.sr.ht/~sircmpwn/aerc" | ||
EGO_VENDOR=( | ||
"git.sr.ht/~sircmpwn/getopt 292febf82fd0 git.sr.ht/~sircmpwn/getopt" | ||
"git.sr.ht/~sircmpwn/pty 3a43678975a9 git.sr.ht/~sircmpwn/pty" | ||
"github.com/danwakefield/fnmatch cbb64ac3d964" | ||
"github.com/davecgh/go-spew v1.1.1" | ||
"github.com/ddevault/go-libvterm b7d861da3810" | ||
"github.com/emersion/go-imap v1.0.0" | ||
"github.com/emersion/go-imap-idle 2704abd7050e" | ||
"github.com/emersion/go-maildir 941194b0ac70" | ||
"github.com/emersion/go-message v0.10.7" | ||
"github.com/emersion/go-sasl 240c8404624e" | ||
"github.com/emersion/go-smtp v0.11.2" | ||
"github.com/emersion/go-textwrapper d0e65e56babe" | ||
"github.com/fsnotify/fsnotify v1.4.7" | ||
"github.com/gdamore/encoding v1.0.0" | ||
"github.com/gdamore/tcell 3fdb6bc01a50 git.sr.ht/~sircmpwn/tcell" # fork | ||
"github.com/go-ini/ini v1.44.0" | ||
"github.com/golang/protobuf v1.3.2" | ||
"github.com/google/shlex c34317bd91bf" | ||
"github.com/kyoh86/xdg v1.0.0" | ||
"github.com/lucasb-eyer/go-colorful v1.0.2" | ||
"github.com/martinlindhe/base36 v1.0.0" | ||
"github.com/mattn/go-isatty v0.0.8" | ||
"github.com/mattn/go-pointer 49522c3f3791" | ||
"github.com/mattn/go-runewidth v0.0.4" | ||
"github.com/miolini/datacounter aa48df3a02c1" | ||
"github.com/mitchellh/go-homedir v1.1.0" | ||
"github.com/pkg/errors v0.8.1" | ||
"github.com/pmezard/go-difflib v1.0.0" | ||
"github.com/riywo/loginshell 2ed199a032f6" | ||
"github.com/stretchr/testify v1.3.0" | ||
"github.com/zenhack/go.notmuch 5a1961965cfb" | ||
"golang.org/x/net 74dc4d7220e7 github.com/golang/net" | ||
"golang.org/x/oauth2 0f29369cfe45 github.com/golang/oauth2" | ||
"golang.org/x/sys fde4db37ae7a github.com/golang/sys" | ||
"golang.org/x/text v0.3.2 github.com/golang/text" | ||
"google.golang.org/appengine v1.6.1 github.com/golang/appengine" | ||
) | ||
|
||
inherit golang-vcs-snapshot | ||
|
||
DESCRIPTION="Email client for your terminal" | ||
HOMEPAGE="https://aerc-mail.org" | ||
SRC_URI="https://git.sr.ht/~sircmpwn/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz | ||
${EGO_VENDOR_URI}" | ||
|
||
LICENSE="Apache-2.0 BSD BSD-2 MIT" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~ppc64" | ||
IUSE="" | ||
|
||
RDEPEND=" | ||
net-proxy/dante | ||
www-client/w3m | ||
" | ||
|
||
BDEPEND=" | ||
>=app-text/scdoc-1.9.7 | ||
>=dev-lang/go-1.12 | ||
" | ||
|
||
src_prepare() { | ||
# needed to workaround go's assumptions about modules, GOPATH and dir sctructure | ||
mv -v "src/${EGO_PN}"/* ./ || die | ||
rm -rv src || die | ||
|
||
eapply_user | ||
} | ||
|
||
src_compile() { | ||
GOFLAGS="-mod=vendor -v -work -x" emake PREFIX="${EPREFIX}/usr" | ||
} | ||
|
||
src_install() { | ||
emake PREFIX="${EPREFIX}/usr" DESTDIR="${ED}" install | ||
einstalldocs | ||
} |