blob: ed401b350286e9f7f38d6b823388325f6dbc1125 (
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
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
SLOT="0"
KEYWORDS="~amd64"
USE_DOTNET="net45"
inherit dotnet
IUSE="+${USE_DOTNET} debug"
NAME="gplex"
HOMEPAGE="https://github.com/dbremner/${NAME}"
DESCRIPTION="C# version of lex (Garden Point Lex)"
LICENSE="BSD" # https://gplex.codeplex.com/license
SRC_URI="https://github.com/ArsenShnurkov/shnurise-tarballs/archive/${CATEGORY}/${PN}/${PN}-${PV}.tar.gz"
RESTRICT="mirror"
S="${WORKDIR}/shnurise-tarballs-${CATEGORY}-${PN}-${PN}-${PV}"
src_prepare() {
eapply "${FILESDIR}/fix-error-in-member-variable-name.patch"
eapply "${FILESDIR}/output-path.patch"
eapply_user
}
src_compile() {
exbuild "GPLEXv1.sln"
}
src_install() {
insinto "/usr/share/${PN}"
if use debug; then
newins bin/Debug/Gplex.exe gplex.exe
make_wrapper gplex "/usr/bin/mono --debug /usr/share/${PN}/gplex.exe"
else
newins bin/Release/Gplex.exe gplex.exe
make_wrapper gplex "/usr/bin/mono /usr/share/${PN}/gplex.exe"
fi
}
|