1 |
commit: b46e21a0589545a8353e39055d0c49c7a444e89c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 15 11:07:35 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 15 11:07:35 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b46e21a0 |
7 |
|
8 |
go-mono.eclass: Remove |
9 |
|
10 |
Closes: https://bugs.gentoo.org/653460 |
11 |
|
12 |
eclass/go-mono.eclass | 142 -------------------------------------------------- |
13 |
1 file changed, 142 deletions(-) |
14 |
|
15 |
diff --git a/eclass/go-mono.eclass b/eclass/go-mono.eclass |
16 |
deleted file mode 100644 |
17 |
index df23356b91c..00000000000 |
18 |
--- a/eclass/go-mono.eclass |
19 |
+++ /dev/null |
20 |
@@ -1,142 +0,0 @@ |
21 |
-# Copyright 1999-2013 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-# @DEAD |
25 |
-# Michał Górny <mgorny@g.o> (17 Jun 2018) |
26 |
-# This eclass was used for old versions of Mono applications, and all |
27 |
-# versions using it have been removed already. It's not maintained, |
28 |
-# uses obsolete (even removed) eclasses, outdated URIs, it has |
29 |
-# documentation problems. Removal in 30 days. |
30 |
- |
31 |
-# @ECLASS: go-mono.eclass |
32 |
-# @MAINTAINER: |
33 |
-# dotnet@g.o |
34 |
-# @BLURB: Common functionality for go-mono.org apps |
35 |
-# @DESCRIPTION: |
36 |
-# Common functionality needed by all go-mono.org apps. |
37 |
- |
38 |
-inherit base versionator mono |
39 |
- |
40 |
-PRE_URI="http://mono.ximian.com/monobuild/preview/sources" |
41 |
- |
42 |
-GIT_PN="${PN/mono-debugger/debugger}" |
43 |
- |
44 |
-ESVN_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/svn-src/mono" |
45 |
- |
46 |
-GO_MONO_SUB_BRANCH=${GO_MONO_SUB_BRANCH} |
47 |
- |
48 |
-if [[ "${PV%_rc*}" != "${PV}" ]] |
49 |
-then |
50 |
- GO_MONO_P="${P%_rc*}" |
51 |
- SRC_URI="${PRE_URI}/${PN}/${GO_MONO_P}.tar.bz2 -> ${P}.tar.bz2" |
52 |
- S="${WORKDIR}/${GO_MONO_P}" |
53 |
-elif [[ "${PV%_pre*}" != "${PV}" ]] |
54 |
-then |
55 |
- GO_MONO_P="${P%_pre*}" |
56 |
- SRC_URI="${PRE_URI}/${PN}/${GO_MONO_P}.tar.bz2 -> ${P}.tar.bz2" |
57 |
- S="${WORKDIR}/${GO_MONO_P}" |
58 |
-elif [[ "${PV}" == "9999" ]] |
59 |
-then |
60 |
- GO_MONO_P=${P} |
61 |
- EGIT_REPO_URI="https://github.com/mono/${GIT_PN}.git" |
62 |
- SRC_URI="" |
63 |
- inherit autotools git |
64 |
-elif [[ "${PV%.9999}" != "${PV}" ]] |
65 |
-then |
66 |
- GO_MONO_P=${P} |
67 |
- EGIT_REPO_URI="https://github.com/mono/${GIT_PN}.git" |
68 |
- EGIT_BRANCH="mono-$(get_version_component_range 1)-$(get_version_component_range 2)${GO_MONO_SUB_BRANCH}" |
69 |
- SRC_URI="" |
70 |
- inherit autotools git |
71 |
-else |
72 |
- GO_MONO_P=${P} |
73 |
- SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.bz2" |
74 |
-fi |
75 |
- |
76 |
- |
77 |
-NO_MONO_DEPEND=( "dev-lang/mono" "dev-dotnet/libgdiplus" "dev-dotnet/gluezilla" ) |
78 |
- |
79 |
-if [[ "$(get_version_component_range 3)" != "9999" ]] |
80 |
-then |
81 |
- GO_MONO_REL_PV="$(get_version_component_range 1-2)" |
82 |
- |
83 |
-else |
84 |
- GO_MONO_REL_PV="${PV}" |
85 |
-fi |
86 |
- |
87 |
-if ! has "${CATEGORY}/${PN}" "${NO_MONO_DEPEND[@]}" |
88 |
-then |
89 |
- RDEPEND=">=dev-lang/mono-${GO_MONO_REL_PV}" |
90 |
- DEPEND="${RDEPEND}" |
91 |
-fi |
92 |
- |
93 |
-DEPEND="${DEPEND} |
94 |
- virtual/pkgconfig" |
95 |
- |
96 |
-# @FUNCTION: go-mono_src_unpack |
97 |
-# @DESCRIPTION: |
98 |
-# Runs default() |
99 |
-go-mono_src_unpack() { |
100 |
- if [[ "${PV%.9999}" != "${PV}" || "${PV}" == "9999" ]] |
101 |
- then |
102 |
- default |
103 |
- git_src_unpack |
104 |
- else |
105 |
- default |
106 |
- fi |
107 |
-} |
108 |
- |
109 |
-# @FUNCTION: go-mono_src_prepare |
110 |
-# @DESCRIPTION: |
111 |
-# Runs autopatch from base.eclass, if PATCHES is set. |
112 |
-go-mono_src_prepare() { |
113 |
- if [[ "${PV%.9999}" != "${PV}" || "${PV}" == "9999" ]] |
114 |
- then |
115 |
- base_src_prepare |
116 |
- [[ "$EAUTOBOOTSTRAP" != "no" ]] && eautoreconf |
117 |
- else |
118 |
- base_src_prepare |
119 |
- fi |
120 |
-} |
121 |
- |
122 |
-# @FUNCTION: go-mono_src_configure |
123 |
-# @DESCRIPTION: |
124 |
-# Runs econf, disabling static libraries and dependency-tracking. |
125 |
-go-mono_src_configure() { |
126 |
- econf --disable-dependency-tracking \ |
127 |
- --disable-static \ |
128 |
- "$@" |
129 |
-} |
130 |
- |
131 |
-# @FUNCTION: go-mono_src_compile |
132 |
-# @DESCRIPTION: |
133 |
-# Runs emake. |
134 |
-go-mono_src_compile() { |
135 |
- emake "$@" || die "emake failed" |
136 |
-} |
137 |
- |
138 |
-# @ECLASS-VARIABLE: DOCS |
139 |
-# @DESCRIPTION: |
140 |
-# Insert path of docs you want installed. If more than one, |
141 |
-# consider using an array. |
142 |
- |
143 |
-# @FUNCTION: go-mono_src_install |
144 |
-# @DESCRIPTION: |
145 |
-# Rune emake, installs common doc files, if DOCS is |
146 |
-# set, installs those. Gets rid of .la files. |
147 |
-go-mono_src_install () { |
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[@]}" |
152 |
- do |
153 |
- [[ -e "${docfile}" ]] && dodoc "${docfile}" |
154 |
- done |
155 |
- if [[ "${DOCS[@]}" ]] |
156 |
- then |
157 |
- dodoc "${DOCS[@]}" || die "dodoc DOCS failed" |
158 |
- fi |
159 |
- find "${D}" -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed" |
160 |
-} |
161 |
- |
162 |
-EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install |