Browse Source

Vala 0.43.90 added.

master
Kolan Sh 3 months ago
parent
commit
7854fd8292

+ 1
- 1
dev-lang/vala/Manifest View File

@@ -1 +1 @@
1
-DIST vala-0.43.6.tar.xz 3316016 SHA256 ba2c77fa924c7de17c625af61ddc0cdbbfcf9a670740b5eda3dc0c78bffa61e0 SHA512 495dd01907911837439c423ab8698622f1b483b1781901f6e0bd1239c861a8f09a56876503a9e7553192a44683884f69acd6ac4481daf558680581843aa15d41 WHIRLPOOL 5f186a67d5ec5bbe6efc7b136b84d9e0b4a45c0a511aff195faeda05a274993a5f4920e4f36713dd3d04fd6e584ca031d61621c7357603f6a6f388cd079c2fb9
1
+DIST vala-0.43.90.tar.xz 3321328 SHA256 da35a2403aeab4227ae630c6d6ae5a8e2af7aae1868eb3394da8fda8db59cd84 SHA512 2824e82ba9a87f7ccba421bf71ab2d5651b5386ad57d126c8f20c59aa56da310793621ad1f1f790f8da2dcb8c8d30138a6e18328aabe7673b4d5df90bd9fed51 WHIRLPOOL 53463bcf97b41d6977e389e121766b640f1168fa68a1e5a9374c623116ff520789c1ac88a4e53a34763107dc54e307936df91a5f2e059152f0ffb31762ebda7b

dev-lang/vala/vala-0.43.6.ebuild → dev-lang/vala/vala-0.43.90.ebuild View File

@@ -1,4 +1,4 @@
1
-# Copyright 1999-2017 Gentoo Foundation
1
+# Copyright 1999-2019 Gentoo Authors
2 2
 # Distributed under the terms of the GNU General Public License v2
3 3
 
4 4
 EAPI=6
@@ -7,11 +7,11 @@ inherit gnome2
7 7
 DESCRIPTION="Compiler for the GObject type system"
8 8
 HOMEPAGE="https://wiki.gnome.org/Projects/Vala"
9 9
 
10
-SRC_URI="https://download.gnome.org/sources/vala/0.40/vala-${PV}.tar.xz"
10
+SRC_URI="https://download.gnome.org/sources/vala/0.43/vala-${PV}.tar.xz"
11 11
 
12 12
 LICENSE="LGPL-2.1"
13
-SLOT="0.40"
14
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
13
+SLOT="0.44"
14
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
15 15
 IUSE="test"
16 16
 
17 17
 RDEPEND="

+ 1
- 1
dev-libs/vala-common/Manifest View File

@@ -1 +1 @@
1
-DIST vala-0.43.6.tar.xz 3316016 SHA256 ba2c77fa924c7de17c625af61ddc0cdbbfcf9a670740b5eda3dc0c78bffa61e0 SHA512 495dd01907911837439c423ab8698622f1b483b1781901f6e0bd1239c861a8f09a56876503a9e7553192a44683884f69acd6ac4481daf558680581843aa15d41 WHIRLPOOL 5f186a67d5ec5bbe6efc7b136b84d9e0b4a45c0a511aff195faeda05a274993a5f4920e4f36713dd3d04fd6e584ca031d61621c7357603f6a6f388cd079c2fb9
1
+DIST vala-0.43.90.tar.xz 3321328 SHA256 da35a2403aeab4227ae630c6d6ae5a8e2af7aae1868eb3394da8fda8db59cd84 SHA512 2824e82ba9a87f7ccba421bf71ab2d5651b5386ad57d126c8f20c59aa56da310793621ad1f1f790f8da2dcb8c8d30138a6e18328aabe7673b4d5df90bd9fed51 WHIRLPOOL 53463bcf97b41d6977e389e121766b640f1168fa68a1e5a9374c623116ff520789c1ac88a4e53a34763107dc54e307936df91a5f2e059152f0ffb31762ebda7b

dev-libs/vala-common/vala-common-0.43.6.ebuild → dev-libs/vala-common/vala-common-0.43.90.ebuild View File

@@ -1,4 +1,4 @@
1
-# Copyright 1999-2018 Gentoo Foundation
1
+# Copyright 1999-2019 Gentoo Authors
2 2
 # Distributed under the terms of the GNU General Public License v2
3 3
 
4 4
 EAPI=6
@@ -11,7 +11,7 @@ HOMEPAGE="https://wiki.gnome.org/Projects/Vala"
11 11
 
12 12
 LICENSE="LGPL-2.1"
13 13
 SLOT="0"
14
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x64-solaris"
14
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x64-solaris"
15 15
 IUSE=""
16 16
 
17 17
 # Previously ${PN} was part of dev-lang/vala

+ 148
- 0
eclass/vala.eclass View File

@@ -0,0 +1,148 @@
1
+# Copyright 1999-2019 Gentoo Authors
2
+# Distributed under the terms of the GNU General Public License v2
3
+
4
+# @ECLASS: vala.eclass
5
+# @MAINTAINER:
6
+# gnome@gentoo.org
7
+# @AUTHOR:
8
+# Alexandre Rostovtsev <tetromino@gentoo.org>
9
+# @BLURB: Sets up the environment for using a specific version of vala.
10
+# @DESCRIPTION:
11
+# This eclass sets up commonly used environment variables for using a specific
12
+# version of dev-lang/vala to configure and build a package. It is needed for
13
+# packages whose build systems assume the existence of certain unversioned vala
14
+# executables, pkgconfig files, etc., which Gentoo does not provide.
15
+#
16
+# This eclass provides one phase function: src_prepare.
17
+
18
+inherit eutils multilib
19
+
20
+case "${EAPI:-0}" in
21
+	0)	die "EAPI=0 is not supported" ;;
22
+	1)	;;
23
+	*)	EXPORT_FUNCTIONS src_prepare ;;
24
+esac
25
+
26
+# @ECLASS-VARIABLE: VALA_MIN_API_VERSION
27
+# @DESCRIPTION:
28
+# Minimum vala API version (e.g. 0.32).
29
+VALA_MIN_API_VERSION=${VALA_MIN_API_VERSION:-0.32}
30
+
31
+# @ECLASS-VARIABLE: VALA_MAX_API_VERSION
32
+# @DESCRIPTION:
33
+# Maximum vala API version (e.g. 0.44).
34
+VALA_MAX_API_VERSION=${VALA_MAX_API_VERSION:-0.44}
35
+
36
+# @ECLASS-VARIABLE: VALA_USE_DEPEND
37
+# @DEFAULT_UNSET
38
+# @DESCRIPTION:
39
+# USE dependencies that vala must be built with (e.g. vapigen).
40
+
41
+# @FUNCTION: vala_api_versions
42
+# @DESCRIPTION:
43
+# Outputs a list of vala API versions from VALA_MAX_API_VERSION down to
44
+# VALA_MIN_API_VERSION.
45
+vala_api_versions() {
46
+	[[ ${VALA_MIN_API_VERSION} =~ ^0\.[[:digit:]]+$ ]] || die "Invalid syntax of VALA_MIN_API_VERSION"
47
+	[[ ${VALA_MAX_API_VERSION} =~ ^0\.[[:digit:]]+$ ]] || die "Invalid syntax of VALA_MAX_API_VERSION"
48
+
49
+	local minimal_supported_minor_version minor_version
50
+
51
+	# Dependency atoms are not generated for Vala versions older than 0.${minimal_supported_minor_version}.
52
+	minimal_supported_minor_version="32"
53
+
54
+	for ((minor_version = ${VALA_MAX_API_VERSION#*.}; minor_version >= ${VALA_MIN_API_VERSION#*.}; minor_version = minor_version - 2)); do
55
+		if ((minor_version >= minimal_supported_minor_version)); then
56
+			echo "0.${minor_version}"
57
+		fi
58
+	done
59
+}
60
+
61
+# @FUNCTION: vala_depend
62
+# @DESCRIPTION:
63
+# Outputs a ||-dependency string on vala from VALA_MAX_API_VERSION down to
64
+# VALA_MIN_API_VERSION
65
+vala_depend() {
66
+	local u v versions=$(vala_api_versions)
67
+	[[ ${VALA_USE_DEPEND} ]] && u="[${VALA_USE_DEPEND}(+)]"
68
+
69
+	echo -n "|| ("
70
+	for v in ${versions}; do
71
+		echo -n " dev-lang/vala:${v}${u}"
72
+	done
73
+	echo " )"
74
+}
75
+
76
+# @FUNCTION: vala_best_api_version
77
+# @DESCRIPTION:
78
+# Returns the highest installed vala API version satisfying
79
+# VALA_MAX_API_VERSION, VALA_MIN_API_VERSION, and VALA_USE_DEPEND.
80
+vala_best_api_version() {
81
+	local u v
82
+	[[ ${VALA_USE_DEPEND} ]] && u="[${VALA_USE_DEPEND}(+)]"
83
+	for v in $(vala_api_versions); do
84
+		has_version "dev-lang/vala:${v}${u}" && echo "${v}" && return
85
+	done
86
+}
87
+
88
+# @FUNCTION: vala_src_prepare
89
+# @USAGE: [--ignore-use] [--vala-api-version api_version]
90
+# @DESCRIPTION:
91
+# Sets up the environment variables and pkgconfig files for the
92
+# specified API version, or, if no version is specified, for the
93
+# highest installed vala API version satisfying
94
+# VALA_MAX_API_VERSION, VALA_MIN_API_VERSION, and VALA_USE_DEPEND.
95
+# Is a no-op if called without --ignore-use when USE=-vala.
96
+# Dies if the USE check is passed (or ignored) and a suitable vala
97
+# version is not available.
98
+vala_src_prepare() {
99
+	local p d valafoo version ignore_use
100
+
101
+	while [[ $1 ]]; do
102
+		case $1 in
103
+			"--ignore-use" )
104
+				ignore_use=1 ;;
105
+			"--vala-api-version" )
106
+				shift
107
+				version=$1
108
+				[[ ${version} ]] || die "'--vala-api-version' option requires API version parameter."
109
+		esac
110
+		shift
111
+	done
112
+
113
+	if [[ -z ${ignore_use} ]]; then
114
+		in_iuse vala && ! use vala && return 0
115
+	fi
116
+
117
+	if [[ ${version} ]]; then
118
+		has_version "dev-lang/vala:${version}" || die "No installed vala:${version}"
119
+	else
120
+		version=$(vala_best_api_version)
121
+		[[ ${version} ]] || die "No installed vala in $(vala_depend)"
122
+	fi
123
+
124
+	export VALAC=$(type -P valac-${version})
125
+
126
+	valafoo=$(type -P vala-gen-introspect-${version})
127
+	[[ ${valafoo} ]] && export VALA_GEN_INTROSPECT="${valafoo}"
128
+
129
+	valafoo=$(type -P vapigen-${version})
130
+	[[ ${valafoo} ]] && export VAPIGEN="${valafoo}"
131
+
132
+	valafoo="${EPREFIX}/usr/share/vala/Makefile.vapigen"
133
+	[[ -e ${valafoo} ]] && export VAPIGEN_MAKEFILE="${valafoo}"
134
+
135
+	export VAPIGEN_VAPIDIR="${EPREFIX}/usr/share/vala/vapi"
136
+
137
+	mkdir -p "${T}/pkgconfig" || die "mkdir failed"
138
+	for p in libvala vapigen; do
139
+		for d in "${EPREFIX}/usr/$(get_libdir)/pkgconfig" "${EPREFIX}/usr/share/pkgconfig"; do
140
+			if [[ -e ${d}/${p}-${version}.pc ]]; then
141
+				ln -s "${d}/${p}-${version}.pc" "${T}/pkgconfig/${p}.pc" || die "ln failed"
142
+				break
143
+			fi
144
+		done
145
+	done
146
+	: ${PKG_CONFIG_PATH:="${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig"}
147
+	export PKG_CONFIG_PATH="${T}/pkgconfig:${PKG_CONFIG_PATH}"
148
+}

Loading…
Cancel
Save