blob: 8db334a68b85c89d2e9e78d862aa58189a5ee9df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils gac nupkg
DESCRIPTION="ICSharpCode.TextEditor library"
LICENSE="MIT"
PROJECTNAME="ICSharpCode.TextEditor"
HOMEPAGE="https://github.com/ArsenShnurkov/${PROJECTNAME}"
EGIT_COMMIT="24903d58cddab7d0ff17fc96a8bb25f66e6eea56"
SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.zip -> ${P}-${PR}.zip"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="|| ( >=dev-lang/mono-3.4.0 <dev-lang/mono-9999 ) "
RDEPEND="${DEPEND}"
USE_DOTNET="net45"
IUSE="${USE_DOTNET} gac nupkg"
S="${WORKDIR}/${PROJECTNAME}-${EGIT_COMMIT}"
METAFILETOBUILD=ICSharpCode.TextEditor.sln
# https://devmanual.gentoo.org/ebuild-writing/variables/
#
# PN = Package name, for example vim.
# P = Package name and version (excluding revision, if any), for example vim-6.3.
# FILESDIR = Path to the ebuild's files/ directory, commonly used for small patches and files. Value: "${PORTDIR}/${CATEGORY}/${PN}/files"
# WORKDIR = Path to the ebuild's root build directory. Value: "${PORTAGE_BUILDDIR}/work"
# S = Path to the temporary build directory, used by src_compile and src_install. Default: "${WORKDIR}/${P}".
#src_prepare() {
# patch is from another project and will not apply to this one. new patch should be created for this project
# if use gac; then
# elog "Setting strong name key"
# epatch "${FILESDIR}/add-keyfile-option-to-csproj.patch"
# fi
#}
src_compile() {
exbuild ${METAFILETOBUILD}
enuspec "${FILESDIR}/ICSharpCode.TextEditor.nuspec"
}
src_install() {
DIR=""
if use debug; then
DIR="Debug"
else
DIR="Release"
fi
if use gac; then
egacinstall Project/bin/${DIR}/ICSharpCode.TextEditor.dll
fi
enupkg "${WORKDIR}/ICSharpCode.TextEditor.3.2.2.nupkg"
}
|