aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerion Entrup <gerion.entrup@flump.de>2019-10-07 13:33:20 +0200
committerGerion Entrup <gerion.entrup@flump.de>2019-10-07 13:33:20 +0200
commit7c68e6aef1a76cc9bd971d51d3fb0d2912d23024 (patch)
tree0d193f8279c54b5982e246e7cc3f05daff93f985
parentdev-python/bibtexparser: drop, in tree now (diff)
downloadgerislay-7c68e6aef1a76cc9bd971d51d3fb0d2912d23024.tar.gz
gerislay-7c68e6aef1a76cc9bd971d51d3fb0d2912d23024.tar.bz2
gerislay-7c68e6aef1a76cc9bd971d51d3fb0d2912d23024.zip
dev-util/meson: add 0.52
Signed-off-by: Gerion Entrup <gerion.entrup@flump.de>
-rw-r--r--dev-util/meson/Manifest3
-rw-r--r--dev-util/meson/meson-0.52.0.ebuild79
-rw-r--r--dev-util/meson/metadata.xml11
3 files changed, 93 insertions, 0 deletions
diff --git a/dev-util/meson/Manifest b/dev-util/meson/Manifest
new file mode 100644
index 0000000..54b6ceb
--- /dev/null
+++ b/dev-util/meson/Manifest
@@ -0,0 +1,3 @@
+DIST meson-0.52.0.tar.gz 1507218 BLAKE2B d3d869cf4a992ba89f150960ed742ac5da2b63b60a3583f2c4c7cce1e2a86f5101a90a05f59000af70c7ada00c119268df87aaadc55ccee50b85c24e308c1d5c SHA512 b32206c5499580a74bb5442d21263b5328cc3302c3226452fb3a2434fdcf55d5fc16fc841102b09a85abc19dbd00e836a571f917833ef3d726d84524f89b2e1c
+EBUILD meson-0.52.0.ebuild 1809 BLAKE2B 31b84519e13aabfc8592c9465b8b0a287897061352d18ef7c29ebf06181f6ba0d3e3cd911e25fe68100fd9c15a847e89831deebd4a6cd21802535cc08d48435c SHA512 51f83368a4a639e107ef6e4386eddde70583b9d95044d6ce496e810c0bc28af38e4b632314a1661665c5c391ef28611ac7fd0f8eabb7f0d0afd669865ac26f3a
+MISC metadata.xml 319 BLAKE2B 227e571b328c9758e2ad5d4683f7b6c19822a8b1aecbd67d81f16272dc87b0ef46e04bd4a3b83225a73da8b08d6851b3aa7df207ab996aa4ba129a13c1131a30 SHA512 9a3d42bf7e30882fcd013c881c371769a204a474fb2673b0fb1d1cd6e1a2eb537489d9c04a0de4760bab89a751f0475a53a659c8b54dcb5b8895ac444627f299
diff --git a/dev-util/meson/meson-0.52.0.ebuild b/dev-util/meson/meson-0.52.0.ebuild
new file mode 100644
index 0000000..ebfa5f5
--- /dev/null
+++ b/dev-util/meson/meson-0.52.0.ebuild
@@ -0,0 +1,79 @@
+# Copyright 2016-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{5,6,7} )
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/mesonbuild/meson"
+ inherit git-r3
+else
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+inherit distutils-r1 toolchain-funcs
+
+DESCRIPTION="Open source build system"
+HOMEPAGE="http://mesonbuild.com/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? (
+ dev-libs/glib:2
+ dev-libs/gobject-introspection
+ dev-util/ninja
+ dev-vcs/git
+ sys-libs/zlib[static-libs(+)]
+ virtual/pkgconfig
+ )
+"
+
+python_prepare_all() {
+ # ASAN and sandbox both want control over LD_PRELOAD
+ # https://bugs.gentoo.org/673016
+ sed -i -e 's/test_generate_gir_with_address_sanitizer/_&/' run_unittests.py || die
+
+ # ASAN is unsupported on some targets
+ # https://bugs.gentoo.org/692822
+ sed -i -e 's/test_pch_with_address_sanitizer/_&/' run_unittests.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+src_test() {
+ tc-export PKG_CONFIG
+ if ${PKG_CONFIG} --exists Qt5Core && ! ${PKG_CONFIG} --exists Qt5Gui; then
+ ewarn "Found Qt5Core but not Qt5Gui; skipping tests"
+ else
+ # https://bugs.gentoo.org/687792
+ unset PKG_CONFIG
+ distutils-r1_src_test
+ fi
+}
+
+python_test() {
+ (
+ # test_meson_installed
+ unset PYTHONDONTWRITEBYTECODE
+
+ # test_cross_file_system_paths
+ unset XDG_DATA_HOME
+
+ ${EPYTHON} -u run_tests.py
+ ) || die "Testing failed with ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ insinto /usr/share/vim/vimfiles
+ doins -r data/syntax-highlighting/vim/{ftdetect,indent,syntax}
+ insinto /usr/share/zsh/site-functions
+ doins data/shell-completions/zsh/_meson
+}
diff --git a/dev-util/meson/metadata.xml b/dev-util/meson/metadata.xml
new file mode 100644
index 0000000..c89b5d2
--- /dev/null
+++ b/dev-util/meson/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>gerion.entrup@flump.de</email>
+ <name>Gerion Entrup</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">meson</remote-id>
+ </upstream>
+</pkgmetadata>