Created
March 16, 2016 07:02
-
-
Save pluser/72bf6a888cb844b6c410 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1999-2016 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: $ | |
EAPI=6 | |
inherit dotnet | |
if [[ ${PV} == "9999" ]]; then | |
inherit git-r3 | |
EGIT_REPO_URI="https://github.com/Sonarr/Sonarr.git" | |
SRC_URI="" | |
else | |
SRC_URI="https://github.com/Sonarr/Sonarr/archive/v${PV}.tar.gz" | |
fi | |
DESCRIPTION="Sonarr is a PVR for Usenet and BitTorrent users." | |
HOMEPAGE="https://github.com/Sonarr/Sonarr" | |
LICENSE="GPL-3" | |
SLOT="0" | |
KEYWORDS="~amd64 ~x86" | |
RDEPEND=" | |
>=dev-lang/mono-3.12.1 | |
media-video/mediainfo | |
dev-db/sqlite" | |
IUSE="updater" | |
SLNFILE="${S}/src/NzbDrone.sln" | |
pkg_setup() { | |
export MONO_IOMAP="case" | |
dotnet_pkg_setup | |
} | |
src_unpack() { | |
if [[ -v _GIT_R3 ]]; then | |
git-r3_src_unpack | |
else | |
unpack ${A} | |
fi | |
} | |
src_prepare() { | |
mono "${S}/tools/nuget/nuget.exe" restore "${SLNFILE}" | |
} | |
src_compile() { | |
exbuild "${SLNFILE}" /p:AllowedReferenceRelatedFileExtensions=.pdb | |
} | |
src_install() { | |
rm "${S}/src/_output/Newtonsoft.Json.*" | |
cp "${S}/src/packages/Newtonsoft.Json.*/lib/net35/*.dll" "${S}/src/_output" | |
cp "${S}/src/packages/Newtonsoft.Json.*/lib/net35/*.dll" "${S}/src/_output/NzbDrone.Update" | |
egacinstall | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment