Gentoo Archives: gentoo-commits

From: Mikhail Pukhlikov <cynede@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/gnome-sharp/
Date: Fri, 06 Jul 2018 06:24:20
Message-Id: 1525708449.3be113abaed36ab4ccfe0f9b1fc3aa960f33022f.cynede@gentoo
1 commit: 3be113abaed36ab4ccfe0f9b1fc3aa960f33022f
2 Author: Ilya Trukhanov <lahvuun <AT> gmail <DOT> com>
3 AuthorDate: Mon May 7 15:54:09 2018 +0000
4 Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
5 CommitDate: Mon May 7 15:54:09 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=3be113ab
7
8 Add ebuilds for 2.24.4 and git
9
10 dev-dotnet/gnome-sharp/gnome-sharp-2.24.4.ebuild | 82 ++++++++++++++++++++++++
11 dev-dotnet/gnome-sharp/gnome-sharp-9999.ebuild | 82 ++++++++++++++++++++++++
12 2 files changed, 164 insertions(+)
13
14 diff --git a/dev-dotnet/gnome-sharp/gnome-sharp-2.24.4.ebuild b/dev-dotnet/gnome-sharp/gnome-sharp-2.24.4.ebuild
15 new file mode 100644
16 index 0000000..e397cae
17 --- /dev/null
18 +++ b/dev-dotnet/gnome-sharp/gnome-sharp-2.24.4.ebuild
19 @@ -0,0 +1,82 @@
20 +# Copyright 1999-2018 Gentoo Foundation
21 +# Distributed under the terms of the GNU General Public License v2
22 +
23 +EAPI="6"
24 +
25 +inherit dotnet autotools
26 +
27 +SLOT="2"
28 +DESCRIPTION="gnome bindings for mono"
29 +HOMEPAGE="http://www.mono-project.com/GtkSharp"
30 +LICENSE="GPL-2"
31 +
32 +# Taken from the bootstrap configure script to allow using portage
33 +# functions for building. Should be updated accordingly.
34 +GNOME_SHARP_VERSION=2.24.4 # Not using ${PV} because 9999 depends on this value. Must be bumped with every release.
35 +ASSEMBLY_VERSION=2.24.0.0
36 +POLICY_VERSIONS="2.4 2.6 2.8 2.16 2.20"
37 +GTK_REQUIRED_VERSION=2.13.0
38 +GTK_SHARP_REQUIRED_VERSION=2.12.2
39 +GNOME_REQUIRED_VERSION=2.23.0
40 +GNOMECANVAS_REQUIRED_VERSION=2.20.0
41 +VERSIONCSDEFINES="-define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GNOME_SHARP_2_16 -define:GNOME_SHARP_2_20 -define:GNOME_SHARP_2_24"
42 +VERSIONCFLAGS="-DGTK_SHARP_2_6 -DGTK_SHARP_2_8 -DGNOME_SHARP_2_16 -DGNOME_SHARP_2_20 -DGNOME_SHARP_2_24"
43 +GNOME_API_TAG=2.20
44 +
45 +if [[ ${PV} == "9999" ]] ; then
46 + EGIT_REPO_URI="https://github.com/mono/gnome-sharp.git"
47 + inherit git-r3
48 +else
49 + KEYWORDS="~amd64 ~x86 ~ppc"
50 + SRC_URI="https://github.com/mono/${PN}/archive/${PV}.tar.gz"
51 +fi
52 +
53 +IUSE="debug"
54 +
55 +RESTRICT="test"
56 +
57 +RDEPEND="
58 + >=dev-dotnet/gtk-sharp-2.12.21:2
59 + gnome-base/gconf
60 + gnome-base/libgnomecanvas
61 + gnome-base/libgnomeui
62 + media-libs/libart_lgpl
63 + !dev-dotnet/gnomevfs-sharp
64 + !dev-dotnet/gconf-sharp
65 + !dev-dotnet/art-sharp
66 + "
67 +DEPEND="${RDEPEND}
68 + sys-devel/automake:1.11"
69 +
70 +pkg_pretend() {
71 + if [[ ${PV} != "9999" ]] ; then
72 + if [[ ${PV} > ${GNOME_SHARP_VERSION} ]] ; then
73 + die "Revision bumps must also update the GNOME_SHARP_VERSION variable."
74 + fi
75 + fi
76 +}
77 +
78 +src_prepare() {
79 + sed -e "s/@GNOME_SHARP_VERSION@/$GNOME_SHARP_VERSION/" \
80 + -e "s/@GTK_REQUIRED_VERSION@/$GTK_REQUIRED_VERSION/" \
81 + -e "s/@GTK_SHARP_REQUIRED_VERSION@/$GTK_SHARP_REQUIRED_VERSION/" \
82 + -e "s/@GNOME_REQUIRED_VERSION@/$GNOME_REQUIRED_VERSION/" \
83 + -e "s/@GNOMECANVAS_REQUIRED_VERSION@/$GNOMECANVAS_REQUIRED_VERSION/" \
84 + -e "s/@VERSIONCSDEFINES@/$VERSIONCSDEFINES/" \
85 + -e "s/@VERSIONCFLAGS@/$VERSIONCFLAGS/" \
86 + -e "s/@POLICY_VERSIONS@/$POLICY_VERSIONS/" \
87 + -e "s/@ASSEMBLY_VERSION@/$ASSEMBLY_VERSION/" "$S/configure.in.in" > "$S/configure.in"
88 +
89 + default
90 + eautoreconf
91 + elibtoolize
92 +}
93 +
94 +src_configure() {
95 + econf $(use_enable debug)
96 +}
97 +
98 +src_install() {
99 + default
100 + dotnet_multilib_comply
101 +}
102
103 diff --git a/dev-dotnet/gnome-sharp/gnome-sharp-9999.ebuild b/dev-dotnet/gnome-sharp/gnome-sharp-9999.ebuild
104 new file mode 100644
105 index 0000000..e397cae
106 --- /dev/null
107 +++ b/dev-dotnet/gnome-sharp/gnome-sharp-9999.ebuild
108 @@ -0,0 +1,82 @@
109 +# Copyright 1999-2018 Gentoo Foundation
110 +# Distributed under the terms of the GNU General Public License v2
111 +
112 +EAPI="6"
113 +
114 +inherit dotnet autotools
115 +
116 +SLOT="2"
117 +DESCRIPTION="gnome bindings for mono"
118 +HOMEPAGE="http://www.mono-project.com/GtkSharp"
119 +LICENSE="GPL-2"
120 +
121 +# Taken from the bootstrap configure script to allow using portage
122 +# functions for building. Should be updated accordingly.
123 +GNOME_SHARP_VERSION=2.24.4 # Not using ${PV} because 9999 depends on this value. Must be bumped with every release.
124 +ASSEMBLY_VERSION=2.24.0.0
125 +POLICY_VERSIONS="2.4 2.6 2.8 2.16 2.20"
126 +GTK_REQUIRED_VERSION=2.13.0
127 +GTK_SHARP_REQUIRED_VERSION=2.12.2
128 +GNOME_REQUIRED_VERSION=2.23.0
129 +GNOMECANVAS_REQUIRED_VERSION=2.20.0
130 +VERSIONCSDEFINES="-define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GNOME_SHARP_2_16 -define:GNOME_SHARP_2_20 -define:GNOME_SHARP_2_24"
131 +VERSIONCFLAGS="-DGTK_SHARP_2_6 -DGTK_SHARP_2_8 -DGNOME_SHARP_2_16 -DGNOME_SHARP_2_20 -DGNOME_SHARP_2_24"
132 +GNOME_API_TAG=2.20
133 +
134 +if [[ ${PV} == "9999" ]] ; then
135 + EGIT_REPO_URI="https://github.com/mono/gnome-sharp.git"
136 + inherit git-r3
137 +else
138 + KEYWORDS="~amd64 ~x86 ~ppc"
139 + SRC_URI="https://github.com/mono/${PN}/archive/${PV}.tar.gz"
140 +fi
141 +
142 +IUSE="debug"
143 +
144 +RESTRICT="test"
145 +
146 +RDEPEND="
147 + >=dev-dotnet/gtk-sharp-2.12.21:2
148 + gnome-base/gconf
149 + gnome-base/libgnomecanvas
150 + gnome-base/libgnomeui
151 + media-libs/libart_lgpl
152 + !dev-dotnet/gnomevfs-sharp
153 + !dev-dotnet/gconf-sharp
154 + !dev-dotnet/art-sharp
155 + "
156 +DEPEND="${RDEPEND}
157 + sys-devel/automake:1.11"
158 +
159 +pkg_pretend() {
160 + if [[ ${PV} != "9999" ]] ; then
161 + if [[ ${PV} > ${GNOME_SHARP_VERSION} ]] ; then
162 + die "Revision bumps must also update the GNOME_SHARP_VERSION variable."
163 + fi
164 + fi
165 +}
166 +
167 +src_prepare() {
168 + sed -e "s/@GNOME_SHARP_VERSION@/$GNOME_SHARP_VERSION/" \
169 + -e "s/@GTK_REQUIRED_VERSION@/$GTK_REQUIRED_VERSION/" \
170 + -e "s/@GTK_SHARP_REQUIRED_VERSION@/$GTK_SHARP_REQUIRED_VERSION/" \
171 + -e "s/@GNOME_REQUIRED_VERSION@/$GNOME_REQUIRED_VERSION/" \
172 + -e "s/@GNOMECANVAS_REQUIRED_VERSION@/$GNOMECANVAS_REQUIRED_VERSION/" \
173 + -e "s/@VERSIONCSDEFINES@/$VERSIONCSDEFINES/" \
174 + -e "s/@VERSIONCFLAGS@/$VERSIONCFLAGS/" \
175 + -e "s/@POLICY_VERSIONS@/$POLICY_VERSIONS/" \
176 + -e "s/@ASSEMBLY_VERSION@/$ASSEMBLY_VERSION/" "$S/configure.in.in" > "$S/configure.in"
177 +
178 + default
179 + eautoreconf
180 + elibtoolize
181 +}
182 +
183 +src_configure() {
184 + econf $(use_enable debug)
185 +}
186 +
187 +src_install() {
188 + default
189 + dotnet_multilib_comply
190 +}