commit: 42b18e763d890b7e6a37071615e71332c5c7d844 Author: Bennjamin Blast <bennjamin.blast <AT> gmail <DOT> com> AuthorDate: Sat Feb 18 04:45:08 2017 +0000 Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org> CommitDate: Sat Feb 18 05:36:23 2017 +0000 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=42b18e76
net-misc/simpleDLNA (new ebuild) net-misc/simpleDLNA/simpleDLNA-1.0.2.ebuild | 63 +++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/net-misc/simpleDLNA/simpleDLNA-1.0.2.ebuild b/net-misc/simpleDLNA/simpleDLNA-1.0.2.ebuild new file mode 100644 index 0000000..cf8502a --- /dev/null +++ b/net-misc/simpleDLNA/simpleDLNA-1.0.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit dotnet eutils + +DESCRIPTION="A simple, zero-config DLNA media server, that you can just fire up and be done with it." +HOMEPAGE="https://github.com/nmaier/${PN}" +SRC_URI="https://github.com/nmaier/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +# Need patched version until upstream merges https://github.com/nmaier/simpleDLNA/pull/29 +# I tried to epatch locally, but it chokes on mixed line endings (some LF, some CRLF) +SRC_URI="https://github.com/piedar/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" # simpleDLNA, GetOptNet +LICENSE+=" MIT" # Microsoft.IO.RecyclableMemoryStream +LICENSE+=" Apache-2.0" # log4net +LICENSE+=" LGPL-2.1" # taglib +LICENSE+=" public-domain" # System.Data.SQLite.Core + +KEYWORDS="~amd64 ~x86" +SLOT="0" + +USE_DOTNET="net45" # todo: necessary? +IUSE="${USE_DOTNET} debug developer" + +COMMON_DEPEND=">=dev-lang/mono-4.4.1" +RDEPEND="${COMMON_DEPEND}" +DEPEND="${COMMON_DEPEND} dev-dotnet/nuget" + +src_prepare() { + # use system nuget + sed -i 's|mono .* "$(NuGetExePath)"|nuget|g' .nuget/NuGet.targets || die + + default +} + +APPS="sdlna SimpleDLNA" + +src_compile() { + for APP in ${APPS}; do + exbuild "${APP}/${APP}".csproj + done +} + +src_install() { + einstalldocs + + use debug && BINDIR="bin/Debug" || BINDIR="bin/Release" + DESTDIR="/usr/lib/mono/${P}" + + for APP in ${APPS}; do + insinto "${DESTDIR}" + doins "${APP}/${BINDIR}"/* + + mkdir -p shells || die + echo \ +"#!/bin/sh +exec mono ${DESTDIR}/${APP}.exe \"\$@\"" > shells/"${APP}" + dobin shells/"${APP}" + done +}