Added Vala

This commit is contained in:
Gerben Jan Dijkman 2021-04-01 22:14:14 +02:00
parent 3462a35bfd
commit 99b5b67dd9
4 changed files with 81 additions and 0 deletions

1
dev-lang/vala/Manifest Normal file
View File

@ -0,0 +1 @@
DIST vala-0.52.0.tar.xz 3570516 BLAKE2B fe412a4d2fa9adb86629820cccef2c75d77489f9a5d3f7c62e51cd273282954a9adb9f7402331220b38bfcd4bb47f69fdafe6248c7ea1d131a3e2d3859ed5b11 SHA512 46d862ba657e5367be7e78751dbedbd7ad65e7d2de7322985d25c60af3fe18ff9e3046fee32c167bd699e5c62b1bf308d2a0a7202d9db82ded9fefd6b25f39a9

View File

@ -0,0 +1,49 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit gnome2
DESCRIPTION="Compiler for the GObject type system"
HOMEPAGE="https://wiki.gnome.org/Projects/Vala"
LICENSE="LGPL-2.1+"
SLOT="0.50"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-linux"
IUSE="test valadoc"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-libs/glib-2.48.0:2
>=dev-libs/vala-common-${PV}
valadoc? ( >=media-gfx/graphviz-2.16 )
!<net-libs/libsoup-2.66.2[vala]
" # Older libsoup generates a libsoup-2.4.vapi that isn't fine for vala:0.46 anymore
# We block here, so libsoup[vala] consumers wouldn't have to >= it, which would be bad
# as the newer is not required with older vala when those are picked instead of 0.46.
# vala-0.45.91 ships a broken libsoup-2.4.vapi copy too, but that'll be fixed by 0.45.92
DEPEND="${RDEPEND}
dev-libs/libxslt
sys-devel/flex
virtual/pkgconfig
virtual/yacc
test? (
dev-libs/dbus-glib
>=dev-libs/glib-2.26:2
dev-libs/gobject-introspection )
"
src_configure() {
# weasyprint enables generation of PDF from HTML
gnome2_src_configure \
--disable-unversioned \
$(use_enable valadoc) \
VALAC=: \
WEASYPRINT=:
}
src_install() {
default
find "${D}" -name "*.la" -delete || die
}

View File

@ -0,0 +1 @@
DIST vala-0.52.0.tar.xz 3570516 BLAKE2B fe412a4d2fa9adb86629820cccef2c75d77489f9a5d3f7c62e51cd273282954a9adb9f7402331220b38bfcd4bb47f69fdafe6248c7ea1d131a3e2d3859ed5b11 SHA512 46d862ba657e5367be7e78751dbedbd7ad65e7d2de7322985d25c60af3fe18ff9e3046fee32c167bd699e5c62b1bf308d2a0a7202d9db82ded9fefd6b25f39a9

View File

@ -0,0 +1,30 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
GNOME_ORG_MODULE="vala"
inherit gnome.org
DESCRIPTION="Build infrastructure for packages that use Vala"
HOMEPAGE="https://wiki.gnome.org/Projects/Vala"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
IUSE=""
RDEPEND=""
DEPEND=""
BDEPEND=""
src_configure() { :; }
src_compile() { :; }
src_install() {
insinto /usr/share/aclocal
doins vala.m4 vapigen/vapigen.m4
insinto /usr/share/vala
doins vapigen/Makefile.vapigen
}