summaryrefslogtreecommitdiff
blob: a2a6610f9ab77d86a3c9a71fb4e95a89f19262e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

PYTHON_COMPAT=( python2_7 )

inherit distutils-r1

MY_PV="${PV/_/}"

DESCRIPTION="A library for handling unicode emoji and carrier's emoji"
HOMEPAGE="https://github.com/lambdalisue/e4u"
SRC_URI="https://github.com/lambdalisue/e4u/archive/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz"

KEYWORDS="~amd64 ~x86"
LICENSE="BSD"
SLOT="0"

RDEPEND="dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"

S="${WORKDIR}/${PN}-${MY_PV}"

PATCHES=(
	"${FILESDIR}"/change-emoji4unicode-url.patch
	"${FILESDIR}"/initialize-e4u-tests.patch
)

python_test() {
	esetup.py test
}

python_install_all() {
	insinto /usr/share/e4u
	doins e4u/data/emoji4unicode.xml

	distutils-r1_python_install_all
}