1 |
commit: e5eb6348045ed19435945ea9aa972dfa2e110abc |
2 |
Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Oct 29 07:04:27 2015 +0000 |
4 |
Commit: Heather Cynede <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 29 07:04:27 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=e5eb6348 |
7 |
|
8 |
|| die added into .pc file install |
9 |
|
10 |
.../monotorrent-1.0.0-r201510130.ebuild | 42 +++++++++------------- |
11 |
1 file changed, 17 insertions(+), 25 deletions(-) |
12 |
|
13 |
diff --git a/dev-dotnet/monotorrent/monotorrent-1.0.0-r201510130.ebuild b/dev-dotnet/monotorrent/monotorrent-1.0.0-r201510130.ebuild |
14 |
index 61cf473..fd15cb0 100644 |
15 |
--- a/dev-dotnet/monotorrent/monotorrent-1.0.0-r201510130.ebuild |
16 |
+++ b/dev-dotnet/monotorrent/monotorrent-1.0.0-r201510130.ebuild |
17 |
@@ -4,15 +4,14 @@ |
18 |
|
19 |
EAPI=5 |
20 |
|
21 |
-# mono-env |
22 |
-inherit dotnet nupkg |
23 |
+inherit nupkg |
24 |
|
25 |
HOMEPAGE="http://projects.qnetp.net/projects/show/monotorrent" |
26 |
DESCRIPTION="Monotorrent is an open source C# bittorrent library" |
27 |
LICENSE="MIT" |
28 |
SLOT="0" |
29 |
KEYWORDS="~amd64 ~x86" |
30 |
-IUSE="net45 +gac +nupkg pkg-config debug developer" |
31 |
+IUSE="net45 +gac +nupkg +pkg-config debug developer" |
32 |
USE_DOTNET="net45" |
33 |
|
34 |
COMMON_DEPEND=">=dev-lang/mono-4.0.2.5 |
35 |
@@ -25,18 +24,16 @@ DEPEND="${COMMON_DEPEND} |
36 |
virtual/pkgconfig |
37 |
" |
38 |
|
39 |
-NAME="monotorrent" |
40 |
+NAME="MonoTorrent" |
41 |
REPOSITORY="https://github.com/ArsenShnurkov/${NAME}" |
42 |
LICENSE_URL="${REPOSITORY}/blob/master/src/LICENSE" |
43 |
ICONMETA="https://openclipart.org/detail/198771/mono-torrent" |
44 |
ICON_URL="https://openclipart.org/download/198771/mono-torrent.svg" |
45 |
|
46 |
-# monotorrent-1.0.0-r201510130 |
47 |
EGIT_BRANCH="master" |
48 |
EGIT_COMMIT="a76e4cd552d0fff51e47a25fe050efff672f34b2" |
49 |
SRC_URI="${REPOSITORY}/archive/${EGIT_BRANCH}/${EGIT_COMMIT}.zip -> ${PF}.zip |
50 |
mirror://gentoo/mono.snk.bz2" |
51 |
-#S="${WORKDIR}/${NAME}-${EGIT_COMMIT}" |
52 |
S="${WORKDIR}/${NAME}-${EGIT_BRANCH}" |
53 |
|
54 |
# The hack we do to get the dll installed in the GAC makes the unit-tests |
55 |
@@ -45,12 +42,8 @@ RESTRICT="test" |
56 |
|
57 |
FILE_TO_BUILD=./src/MonoTorrent.sln |
58 |
|
59 |
-#METAFILETOBUILD="${S}/${FILE_TO_BUILD}" |
60 |
-#gives Reference 'AlphaFS, Version=2.0.0.0, Culture=neutral, PublicKeyToken=4d31a58f7d7ad5c9, processorArchitecture=MSIL' not resolved |
61 |
- |
62 |
METAFILETOBUILD="src/MonoTorrent/MonoTorrent.csproj" |
63 |
|
64 |
-# leafpad /var/lib/layman/dotnet/eclass/nupkg.eclass & |
65 |
NUGET_VERSION="${PVR//-r/.}" |
66 |
|
67 |
src_prepare() { |
68 |
@@ -72,7 +65,6 @@ src_configure() { |
69 |
} |
70 |
|
71 |
src_compile() { |
72 |
- # emake -j1 ASSEMBLY_COMPILER_COMMAND="/usr/bin/gmcs" -keyfile:${WORKDIR}/mono.snk |
73 |
exbuild /p:SignAssembly=true "/p:AssemblyOriginatorKeyFile=${WORKDIR}/mono.snk" "${METAFILETOBUILD}" |
74 |
|
75 |
# run nuget_pack |
76 |
@@ -84,9 +76,7 @@ src_install() { |
77 |
|
78 |
enupkg "${WORKDIR}/monotorrent.${NUGET_VERSION}.nupkg" |
79 |
|
80 |
- if use pkg-config; then |
81 |
- install_pc_file |
82 |
- fi |
83 |
+ install_pc_file |
84 |
} |
85 |
|
86 |
create_nuspec_file() |
87 |
@@ -122,15 +112,17 @@ EOF |
88 |
|
89 |
install_pc_file() |
90 |
{ |
91 |
- dodir /usr/$(get_libdir)/pkgconfig |
92 |
- ebegin "Installing .pc file" |
93 |
- sed \ |
94 |
- -e "s:@LIBDIR@:$(get_libdir):" \ |
95 |
- -e "s:@PACKAGENAME@:${PN}:" \ |
96 |
- -e "s:@DESCRIPTION@:${DESCRIPTION}:" \ |
97 |
- -e "s:@VERSION@:${PV}:" \ |
98 |
- -e 's;@LIBS@;-r:${libdir}/mono/monotorrent/MonoTorrent.dll;' \ |
99 |
- "${FILESDIR}"/${PN}.pc.in > "${D}"/usr/$(get_libdir)/pkgconfig/${PN}.pc |
100 |
- PKG_CONFIG_PATH="${D}/usr/$(get_libdir)/pkgconfig/" pkg-config --exists monotorrent || die ".pc file failed to validate." |
101 |
- eend $? |
102 |
+ if use pkg-config; then |
103 |
+ dodir /usr/$(get_libdir)/pkgconfig |
104 |
+ ebegin "Installing .pc file" |
105 |
+ sed \ |
106 |
+ -e "s:@LIBDIR@:$(get_libdir):" \ |
107 |
+ -e "s:@PACKAGENAME@:${PN}:" \ |
108 |
+ -e "s:@DESCRIPTION@:${DESCRIPTION}:" \ |
109 |
+ -e "s:@VERSION@:${PV}:" \ |
110 |
+ -e 's;@LIBS@;-r:${libdir}/mono/monotorrent/MonoTorrent.dll;' \ |
111 |
+ "${FILESDIR}"/${PN}.pc.in > "${D}"/usr/$(get_libdir)/pkgconfig/${PN}.pc || die |
112 |
+ PKG_CONFIG_PATH="${D}/usr/$(get_libdir)/pkgconfig/" pkg-config --exists monotorrent || die ".pc file failed to validate." |
113 |
+ eend $? |
114 |
+ fi |
115 |
} |