blob: 9f658bedc38f34a21c5d4b3ea4b709c50c3e14e4 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_7 )
inherit python-single-r1
DESCRIPTION="Mode Oriented Directly Coded Lexical Analyser Generator"
HOMEPAGE="http://quex.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}"
BDEPEND="${RDEPEND}
app-arch/unzip"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-gentoo.patch
"${FILESDIR}"/${P}-py37.patch
)
src_prepare() {
default
sed -i \
-e "s:@PYTHON_SITEDIR@:$(python_get_sitedir):g" \
quex/DEFINITIONS.py || die
mkdir -p engine/codec_db/unicode || die
mv quex/engine/codec_db/database engine/codec_db/ || die
mv quex/engine/codec_db/unicode/database engine/codec_db/unicode/ || die
mv quex/code_base . || die
}
src_install() {
default
insinto /usr/share/quex/
doins -r engine
doins -r code_base
python_domodule quex
python_newscript quex-exe.py quex
doman manpage/quex.1
dodoc -r demo
insinto /etc/profile.d/
doins "${FILESDIR}"/quex.sh
}
|