diff options
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/antlrcs/Manifest | 1 | ||||
-rw-r--r-- | dev-util/antlrcs/antlrcs-3.5.2_beta1_p6.ebuild | 74 | ||||
-rw-r--r-- | dev-util/antlrcs/metadata.xml | 10 |
3 files changed, 85 insertions, 0 deletions
diff --git a/dev-util/antlrcs/Manifest b/dev-util/antlrcs/Manifest new file mode 100644 index 0000000..a909da1 --- /dev/null +++ b/dev-util/antlrcs/Manifest @@ -0,0 +1 @@ +DIST antlrcs-3.5.2_beta1_p6.tar.gz 1017416 SHA256 402703edebae5f643b5d26924dd03c9906a4df43f00d57660afc4aaf49afc195 SHA512 36355319633fd72d953baeaaadd64d40462b9b1bb08d18546bccaf4c4bfeb2bc490f71e055ae50748631c58687bb051997a23b28b2b1aa824c45dbfea1e2aa36 WHIRLPOOL 7ac585a2644a778cd80696d4f30a93c463f18c86f84eac019a047d3cf70c2245355838deca06ecddca9e773a4fa3f34ae31323c9a216bf304e8cfce5710294be diff --git a/dev-util/antlrcs/antlrcs-3.5.2_beta1_p6.ebuild b/dev-util/antlrcs/antlrcs-3.5.2_beta1_p6.ebuild new file mode 100644 index 0000000..6845e31 --- /dev/null +++ b/dev-util/antlrcs/antlrcs-3.5.2_beta1_p6.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +KEYWORDS="~amd64 ~ppc ~x86" +RESTRICT="mirror" + +SLOT="0" + +USE_DOTNET="net45" + +inherit dotnet msbuild gac + +NAME="antlrcs" +HOMEPAGE="https://github.com/antlr/${NAME}" +SRC_URI="https://github.com/ArsenShnurkov/shnurise-tarballs/raw/dev-utils/antlrcs/antlrcs-3.5.2_beta1.tar.gz -> ${NAME}-${PV}.tar.gz" + +DESCRIPTION="The C# port of ANTLR 3" +LICENSE="BSD" # https://github.com/antlr/antlrcs/blob/master/LICENSE.txt + +IUSE="+${USE_DOTNET} debug developer doc" + +COMMON_DEPEND=">=dev-lang/mono-5.4.0.167 <dev-lang/mono-9999 +" +RDEPEND="${COMMON_DEPEND} +" +DEPEND="${COMMON_DEPEND} + dev-dotnet/antlr3-runtime +" + +TASKSASSEMBLY="AntlrBuildTask/old-AntlrBuildTask.csproj" +ASSEMBLY_NAME="AntlrBuildTask" +EXECUTABLE_PROJ="Antlr3/old-Antlr3.csproj" +EXECUTABLE_NAME="Antlr3" + +function tasksassembly_file ( ) { + local DIR="" + if use debug; then + DIR="Debug" + else + DIR="Release" + fi + echo "AntlrBuildTask/bin/${DIR}/${ASSEMBLY_NAME}.dll" +} + +function executable_file ( ) { + local DIR="" + if use debug; then + DIR="Debug" + else + DIR="Release" + fi + echo "Antlr3/bin/${DIR}/${EXECUTABLE}.exe" +} + +src_prepare() { + cp "${FILESDIR}/old-AntlrBuildTask.csproj" "${S}/${TASKSASSEMBLY}" || die + cp "${FILESDIR}/old-Antlr3.csproj" "${S}/${EXECUTABLE_PROJ}" || die + eapply_user +} + +src_compile() { + emsbuild /p:TargetFrameworkVersion=v4.6 "${S}/${TASKSASSEMBLY}" + emsbuild /p:TargetFrameworkVersion=v4.6 "${S}/${EXECUTABLE_PROJ}" +} + +TASKS_PROPS_FILE="AntlrBuildTask/Antlr3.props" +TASKS_TARGETS_FILE="AntlrBuildTask/Antlr3.targets" + +src_install() { + einstask "${S}/$(tasksassembly_file)" "${S}/${TASKS_PROPS_FILE}" "${S}/${TASKS_TARGETS_FILE}" +} diff --git a/dev-util/antlrcs/metadata.xml b/dev-util/antlrcs/metadata.xml new file mode 100644 index 0000000..7310045 --- /dev/null +++ b/dev-util/antlrcs/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>dotnet@gentoo.org</email> + <description>Gentoo Dotnet Project</description> + </maintainer> + <use> + </use> +</pkgmetadata> |