# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" USE_DOTNET="net45" inherit dotnet IUSE="+${USE_DOTNET} debug" NAME="gppg" HOMEPAGE="https://github.com/dbremner/${NAME}" DESCRIPTION="C# version of lex (Garden Point Lex)" LICENSE="BSD" # https://gppg.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}/output-path.patch" eapply_user } src_compile() { exbuild "GPPG.sln" } src_install() { insinto "/usr/share/${PN}" if use debug; then newins bin/Debug/Gppg.exe Gppg.exe make_wrapper gppg "/usr/bin/mono --debug /usr/share/${PN}/gppg.exe" else newins bin/Release/Gppg.exe gppg.exe make_wrapper gppg "/usr/bin/mono /usr/share/${PN}/gppg.exe" fi }