-
Notifications
You must be signed in to change notification settings - Fork 27
/
nuget.inc
43 lines (31 loc) · 1.43 KB
/
nuget.inc
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
SUMMARY = "Package manager for .Net/Mono development platform"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://Apache-LICENSE-2.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
HOMEPAGE = "http://nuget.org/"
# This package ships Mono EXE and a shell script
PACKAGE_ARCH="all"
inherit mono
SRC_URI = " \
http://dist.nuget.org/win-x86-commandline/v${PV}/nuget.exe;downloadfilename=NuGet-v${PV}.exe \
http://www.apache.org/licenses/LICENSE-2.0.txt;downloadfilename=Apache-LICENSE-2.0.txt;name=lic \
file://nuget.sh.in \
"
SRC_URI[lic.md5sum] = "3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI[lic.sha256sum] = "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30"
S = "${WORKDIR}"
do_install () {
install -d -m0755 ${D}${bindir}
install -m0755 ${WORKDIR}/nuget.sh.in ${D}${bindir}/nuget
sed -i -e 's:@bindir@:${bindir}:g' -e 's:@libdir@:${libdir}:g' ${D}${bindir}/nuget
install -d -m0755 ${D}${libdir}/mono/nuget
install -m0755 ${WORKDIR}/NuGet-v${PV}.exe ${D}${libdir}/mono/nuget/NuGet.exe
}
FILES_${PN} += "${libdir}/mono/nuget"
SYSROOT_PREPROCESS_FUNCS += "nuget_sysroot_preprocess"
nuget_sysroot_preprocess () {
install -d -m0755 ${SYSROOT_DESTDIR}${bindir_crossscripts}/
install -m0755 ${WORKDIR}/nuget.sh.in ${SYSROOT_DESTDIR}${bindir_crossscripts}/nuget
sed -i -e 's:@bindir@:${STAGING_BINDIR_NATIVE}:g' -e 's:@libdir@:${STAGING_LIBDIR}:g' ${SYSROOT_DESTDIR}${bindir_crossscripts}/nuget
}
DIRFILES = "1"
BBCLASSEXTEND = "native"