diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-21 12:39:53 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-21 12:39:53 +0000 |
commit | 9d5a20176934a287f9e0970722062db5242d30fa (patch) | |
tree | 38fe74a0c66384df6a03863d36d16c0a1f2c804e /dev-ada/ada_libfswatch/ada_libfswatch-20201105-r1.ebuild | |
parent | 0464b87d8be9fcf33aebbd906bc0d3a65c953cff (diff) |
gentoo auto-resync : 21:03:2023 - 12:39:52
Diffstat (limited to 'dev-ada/ada_libfswatch/ada_libfswatch-20201105-r1.ebuild')
-rw-r--r-- | dev-ada/ada_libfswatch/ada_libfswatch-20201105-r1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-ada/ada_libfswatch/ada_libfswatch-20201105-r1.ebuild b/dev-ada/ada_libfswatch/ada_libfswatch-20201105-r1.ebuild new file mode 100644 index 000000000000..e7500b8a6e22 --- /dev/null +++ b/dev-ada/ada_libfswatch/ada_libfswatch-20201105-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ADA_COMPAT=( gnat_2021 gcc_12_2_0 gcc_12 ) +inherit ada + +commitId=94c0a5f137b88113a791a148b60e5e7d019d6fa1 + +DESCRIPTION="Ada binding to the libfswatch library" +HOMEPAGE="https://github.com/AdaCore/ada_libfswatch" +SRC_URI="https://github.com/AdaCore/${PN}/archive/${commitId}.tar.gz + -> ${P}.tar.gz" + +LICENSE="GPL-3 gcc-runtime-library-exception-3.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="${ADA_DEPS} + dev-ada/gnatcoll-core[${ADA_USEDEP},shared] + sys-fs/fswatch" +DEPEND="${RDEPEND}" +BDEPEND="dev-ada/gprbuild[${ADA_USEDEP}]" + +S="${WORKDIR}"/${PN}-${commitId} + +PATCHES=( + "${FILESDIR}"/${P}-link.patch +) + +src_prepare() { + default + mkdir -p generated || die + cp /usr/include/libfswatch/c/* generated || die + (cd generated && gcc -C -fdump-ada-spec libfswatch.h -D_TIMEZONE_DEFINED) \ + || die + rm generated/*h || die + sed -i \ + -e "1d" \ + ada_libfswatch.gpr || die +} + +src_compile() { + gprbuild -p -v -P ada_libfswatch -XLIBRARY_TYPE=relocatable \ + -cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS} \ + || die +} + +src_install() { + gprinstall -v -r -p -P ada_libfswatch -XLIBRARY_TYPE=relocatable \ + --prefix="${D}"/usr || die + einstalldocs +} |