1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION
="openyoudao is a youdao client for linux."
9 HOMEPAGE
="http://openyoudao.org"
11 EGIT_REPO_URI
="https://github.com/justzx2011/openyoudao.git"
15 KEYWORDS
="~x86 ~amd64"
18 DEPEND
="x11-misc/xclip
19 dev-python/pywebkitgtk
20 dev-python/python-xlib
22 dev-python/beautifulsoup"
27 sed -i '1,5s/BeautifulSoup/bs4/' fusionyoudao.py || die
"patch error"
32 dobin
${S}/scripts
/openyoudao || die
"Install failed"
34 insinto
/usr
/lib
/openyoudao
35 doins
${S}/*.py || die
"lib install failed"
37 insinto
/usr
/share
/openyoudao
38 doins
-r ${S}/cache
/* || die
"cache install failed"
40 insinto
/usr
/share
/applications
41 doins
${S}/desktop
/openyoudao.desktop || die
"desktop link install failed"