# Copyright 2019 Maxime Sorin # Distributed under the terms of the GNU General Public License v2 LICENCES="GPL-2" PLATFORMS="~amd64" SLOT="0" SUMMARY="Command line based tool for managing the development of (primarily) Java code" require github [ user=graalvm project=mx tag=${PV} ] DEPENDENCIES=" run: dev-lang/python:* " src_prepare() { edo sed -E 's|CC = ]+>|CC = '"${CC}"'|' -i ninja-toolchains/gcc.ninja_template edo sed -E 's|CXX = ]+>|CXX = '"${CXX}"'|' -i ninja-toolchains/gcc.ninja_template edo sed -E 's|AR = ]+>|AR = '"${AR}"'|' -i ninja-toolchains/gcc.ninja_template edo sed -e '/add_debug_prefix(self.suite.vc_dir)/d' -i src/mx/_impl/mx_native.py } src_install() { insinto /usr/share/${PNV} doins -r */ exeinto /usr/share/${PNV} doexe mx *.py dodir /usr/$(exhost --target)/bin dosym /usr/share/${PNV}/mx /usr/$(exhost --target)/bin/mx } pkg_postinst() { edo mkdir -p /usr/share/${PNV}/java/com.oracle.jvmtiasmagent/include }