1 |
loki_val 09/05/03 12:19:35 |
2 |
|
3 |
Modified: go-mono.eclass |
4 |
Log: |
5 |
Eclass updated to support SVN ebuilds, plus nitpicks. |
6 |
|
7 |
Revision Changes Path |
8 |
1.6 eclass/go-mono.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/go-mono.eclass?rev=1.6&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/go-mono.eclass?rev=1.6&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/go-mono.eclass?r1=1.5&r2=1.6 |
13 |
|
14 |
Index: go-mono.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/go-mono.eclass,v |
17 |
retrieving revision 1.5 |
18 |
retrieving revision 1.6 |
19 |
diff -u -r1.5 -r1.6 |
20 |
--- go-mono.eclass 29 Jan 2009 16:26:48 -0000 1.5 |
21 |
+++ go-mono.eclass 3 May 2009 12:19:35 -0000 1.6 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2008 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/go-mono.eclass,v 1.5 2009/01/29 16:26:48 loki_val Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/go-mono.eclass,v 1.6 2009/05/03 12:19:35 loki_val Exp $ |
27 |
|
28 |
# @ECLASS: go-mono.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -13,31 +13,12 @@ |
31 |
inherit base versionator mono |
32 |
|
33 |
|
34 |
-NO_MONO_DEPEND=( |
35 |
- "dev-lang/mono" |
36 |
- "dev-dotnet/libgdiplus" |
37 |
-) |
38 |
+PRE_URI="http://mono.ximian.com/monobuild/preview/sources" |
39 |
|
40 |
-GO_MONO_REL_PV="$(get_version_component_range 1-2)" |
41 |
+SVN_PN="${PN/mono-debugger/debugger}" |
42 |
|
43 |
-if ! has "${CATEGORY}/${PN}" "${NO_MONO_DEPEND[@]}" |
44 |
-then |
45 |
- RDEPEND="=dev-lang/mono-${GO_MONO_REL_PV}*" |
46 |
- DEPEND="${RDEPEND}" |
47 |
-fi |
48 |
+ESVN_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/svn-src/mono" |
49 |
|
50 |
-# @ECLASS-VARIABLE: PRE_URI |
51 |
-# @DESCRIPTION: If installing a preview, set this variable to the base |
52 |
-# path on ximians's servers from which to install. |
53 |
- |
54 |
-DEPEND="${DEPEND} |
55 |
- >=dev-util/pkgconfig-0.23 |
56 |
- userland_GNU? ( >=sys-apps/findutils-4.4.0 )" |
57 |
- |
58 |
-if [[ "${GO_MONO_REL_PV}" = "2.4" ]] |
59 |
-then |
60 |
- PRE_URI="http://mono.ximian.com/monobuild/preview/sources" |
61 |
-fi |
62 |
|
63 |
if [[ "${PV%_rc*}" != "${PV}" ]] |
64 |
then |
65 |
@@ -49,21 +30,66 @@ |
66 |
GO_MONO_P="${P%_pre*}" |
67 |
SRC_URI="${PRE_URI}/${PN}/${GO_MONO_P}.tar.bz2 -> ${P}.tar.bz2" |
68 |
S="${WORKDIR}/${GO_MONO_P}" |
69 |
+elif [[ "${PV}" == "9999" ]] |
70 |
+then |
71 |
+ GO_MONO_P=${P} |
72 |
+ ESVN_REPO_URI="svn://anonsvn.mono-project.com/source/trunk/${SVN_PN}" |
73 |
+ SRC_URI="" |
74 |
+ inherit autotools subversion |
75 |
+elif [[ "${PV%.9999}" != "${PV}" ]] |
76 |
+then |
77 |
+ GO_MONO_P=${P} |
78 |
+ ESVN_REPO_URI="svn://anonsvn.mono-project.com/source/branches/mono-$(get_version_component_range 1)-$(get_version_component_range 2)/${SVN_PN}" |
79 |
+ SRC_URI="" |
80 |
+ inherit autotools subversion |
81 |
else |
82 |
GO_MONO_P=${P} |
83 |
SRC_URI="http://ftp.novell.com/pub/mono/sources/${PN}/${P}.tar.bz2" |
84 |
fi |
85 |
|
86 |
+ |
87 |
+NO_MONO_DEPEND=( "dev-lang/mono" "dev-dotnet/libgdiplus" ) |
88 |
+ |
89 |
+if [[ "$(get_version_component_range 3)" != "9999" ]] |
90 |
+then |
91 |
+ GO_MONO_REL_PV="$(get_version_component_range 1-2)" |
92 |
+ |
93 |
+else |
94 |
+ GO_MONO_REL_PV="${PV}" |
95 |
+fi |
96 |
+ |
97 |
+if ! has "${CATEGORY}/${PN}" "${NO_MONO_DEPEND[@]}" |
98 |
+then |
99 |
+ RDEPEND="=dev-lang/mono-${GO_MONO_REL_PV}*" |
100 |
+ DEPEND="${RDEPEND}" |
101 |
+fi |
102 |
+ |
103 |
+DEPEND="${DEPEND} |
104 |
+ >=dev-util/pkgconfig-0.23 |
105 |
+ userland_GNU? ( >=sys-apps/findutils-4.4.0 )" |
106 |
+ |
107 |
# @FUNCTION: go-mono_src_unpack |
108 |
# @DESCRIPTION: Runs default() |
109 |
go-mono_src_unpack() { |
110 |
- default |
111 |
+ if [[ "${PV%.9999}" != "${PV}" || "${PV}" == "9999" ]] |
112 |
+ then |
113 |
+ default |
114 |
+ subversion_src_unpack |
115 |
+ else |
116 |
+ default |
117 |
+ fi |
118 |
} |
119 |
|
120 |
# @FUNCTION: go-mono_src_prepare |
121 |
# @DESCRIPTION: Runs autopatch from base.eclass, if PATCHES is set. |
122 |
go-mono_src_prepare() { |
123 |
- base_src_util autopatch |
124 |
+ if [[ "${PV%.9999}" != "${PV}" || "${PV}" == "9999" ]] |
125 |
+ then |
126 |
+ base_src_util autopatch |
127 |
+ [[ "$EAUTOBOOTSTRAP" != "no" ]] && eautoreconf |
128 |
+ else |
129 |
+ base_src_util autopatch |
130 |
+ fi |
131 |
} |
132 |
|
133 |
# @FUNCTION: go-mono_src_configure |
134 |
@@ -77,7 +103,7 @@ |
135 |
# @FUNCTION: go-mono_src_configure |
136 |
# @DESCRIPTION: Runs default() |
137 |
go-mono_src_compile() { |
138 |
- default |
139 |
+ emake "$@" || die "emake failed" |
140 |
} |
141 |
|
142 |
# @ECLASS-VARIABLE: DOCS |
143 |
@@ -88,7 +114,7 @@ |
144 |
# @DESCRIPTION: Rune emake, installs common doc files, if DOCS is |
145 |
# set, installs those. Gets rid of .la files. |
146 |
go-mono_src_install () { |
147 |
- emake -j1 DESTDIR="${D}" install || die "install failed" |
148 |
+ emake -j1 DESTDIR="${D}" "$@" install || die "install failed" |
149 |
mono_multilib_comply |
150 |
local commondoc=( AUTHORS ChangeLog README TODO ) |
151 |
for docfile in "${commondoc[@]}" |