diff options
author | ArsenShnurkov <ArsenShnurkov@users.noreply.github.com> | 2017-10-13 09:24:50 +0300 |
---|---|---|
committer | ArsenShnurkov <ArsenShnurkov@users.noreply.github.com> | 2017-10-13 09:24:50 +0300 |
commit | 4fed7388253c7f80c0433ab0a8403c44124a4f8c (patch) | |
tree | 9b353c170d781deb1704606452cb38a67b58c7c3 /dev-util | |
parent | Merge pull request #338 from ArsenShnurkov/SharpZipLib (diff) | |
download | dotnet-4fed7388253c7f80c0433ab0a8403c44124a4f8c.tar.gz dotnet-4fed7388253c7f80c0433ab0a8403c44124a4f8c.tar.bz2 dotnet-4fed7388253c7f80c0433ab0a8403c44124a4f8c.zip |
initial template, digest, manifest added
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/tartool/Manifest | 1 | ||||
-rw-r--r-- | dev-util/tartool/metadata.xml | 10 | ||||
-rw-r--r-- | dev-util/tartool/tartool-1.0.0.0.ebuild | 73 |
3 files changed, 84 insertions, 0 deletions
diff --git a/dev-util/tartool/Manifest b/dev-util/tartool/Manifest new file mode 100644 index 0000000..1146865 --- /dev/null +++ b/dev-util/tartool/Manifest @@ -0,0 +1 @@ +DIST tartool-1.0.0.0.tar.gz 360013 SHA256 1c6e54c3c099efae957ba42180f36f5d9991c7decb685d2c10d0be8a1325fa68 SHA512 e33977f082c4d1c287d9bdac22509eabe69738c3bb97a3104abbeb442bcebe250a671461640ee550fe54fe14f5dd16f33a4912180a2541e5aa6bdb91ef1d482e WHIRLPOOL 300b98ee29c46738995ed521503cdbc0073263a5476aaf665bf3fe29342942b729a8160ce4b77eed6c28f97fe1ca20a371e8b4f7394f71e31be11a8a55ce5649 diff --git a/dev-util/tartool/metadata.xml b/dev-util/tartool/metadata.xml new file mode 100644 index 0000000..7310045 --- /dev/null +++ b/dev-util/tartool/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> diff --git a/dev-util/tartool/tartool-1.0.0.0.ebuild b/dev-util/tartool/tartool-1.0.0.0.ebuild new file mode 100644 index 0000000..ead3d6a --- /dev/null +++ b/dev-util/tartool/tartool-1.0.0.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +KEYWORDS="~amd64 ~x86" +RESTRICT="mirror" + +SLOT="0" + +USE_DOTNET="net45" +IUSE="+${USE_DOTNET} developer debug nupkg gac doc" + +inherit msbuild + +NAME="tartool" +HOMEPAGE="https://github.com/senthilrajasek/${NAME}" + +EGIT_COMMIT="7b22774e464e1a0de547e776236a1631db9f1037" +SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${PV}.tar.gz" +S="${WORKDIR}/${NAME}-${EGIT_COMMIT}" + +DESCRIPTION="command line tool to uncompress and untar .tar.gz (.tgz) files" +LICENSE="MIT" # https://github.com/senthilrajasek/tartool/blob/master/LICENSE + +CDEPEND=">=dev-lang/mono-5.4.0.167 <dev-lang/mono-9999 +" + +RDEPEND="${CDEPEND} +" + +DEPEND="${CDEPEND} +" + +PATH_TO_PROJ="Tools.CommandLine/trunk/Tools.CommandLine.TarTool" +METAFILE_TO_BUILD=Tools.CommandLine +ASSEMBLY_NAME="TarTool" + +#ASSEMBLY_VERSION="${PV}" + +function output_filename ( ) { + local DIR="" + if use debug; then + DIR="Debug" + else + DIR="Release" + fi + echo "${PATH_TO_PROJ}/bin/${DIR}/${ASSEMBLY_NAME}.exe" +} + +src_prepare() { + eapply_user +} + +src_compile() { + emsbuild /p:TargetFrameworkVersion=v4.6 "/p:SignAssembly=true" "/p:PublicSign=true" "/p:AssemblyOriginatorKeyFile=${KEY2}" /p:VersionNumber="${ASSEMBLY_VERSION}" "${S}/${PATH_TO_PROJ}/${METAFILE_TO_BUILD}.csproj" +} + +src_install() { + if [ "${SLOT}" eq "0"] + then + SLOTTEDDIR="/usr/share/${PN}/" + else + SLOTTEDDIR="/usr/share/${PN}-${SLOT}/" + fi + insinto "${SLOTTEDDIR}" + doins "${PATH_TO_PROJ}/bin/${DIR}/${ASSEMBLY_NAME}.{config,dll,exe}" + if use developer; then + doins "${PATH_TO_PROJ}/bin/${DIR}/${ASSEMBLY_NAME}.pdb" + fi + + make_wrapper nunit "mono ${SLOTTEDDIR}/${ASSEMBLY_NAME}.exe" +} |