From ee02405147104ab40880c42712cc65b46ccb0667 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 18 Jun 2021 23:05:30 +0200 Subject: dev-ml/cudf: add pkgconfig or pkgconfig-referenced libs deps Add dependencies for either virtual/pkgconfig, move it into BDEPEND where applicable, or add dependencies for libraries we're trying to find with pkgconfig. Package-Manager: Portage-3.0.18-prefix, Repoman-3.0.3 Signed-off-by: Sam James Signed-off-by: David Seifert --- dev-ml/cudf/cudf-0.9-r1.ebuild | 74 ++++++++++++++++++++++++++++++++++++++++++ dev-ml/cudf/cudf-0.9.ebuild | 72 ---------------------------------------- 2 files changed, 74 insertions(+), 72 deletions(-) create mode 100644 dev-ml/cudf/cudf-0.9-r1.ebuild delete mode 100644 dev-ml/cudf/cudf-0.9.ebuild (limited to 'dev-ml/cudf') diff --git a/dev-ml/cudf/cudf-0.9-r1.ebuild b/dev-ml/cudf/cudf-0.9-r1.ebuild new file mode 100644 index 000000000000..769436a427c4 --- /dev/null +++ b/dev-ml/cudf/cudf-0.9-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Library to parse, pretty print, and evaluate CUDF documents" +HOMEPAGE="http://www.mancoosi.org/cudf/" +SRC_URI="https://gforge.inria.fr/frs/download.php/file/36602/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0/${PV}" +KEYWORDS="amd64 arm arm64 ppc ppc64 x86" +IUSE="+ocamlopt test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-lang/ocaml-3.12:=[ocamlopt?] + dev-ml/extlib:= + dev-ml/findlib:= + dev-libs/glib:2 + sys-libs/libunwind:= + sys-libs/ncurses:= +" +DEPEND="${RDEPEND} + test? ( dev-ml/ounit2 ) + dev-ml/ocamlbuild + dev-lang/perl +" +BDEPEND="virtual/pkgconfig" + +PATCHES=( "${FILESDIR}/ounit2.patch" ) + +QA_FLAGS_IGNORED='.*' + +src_prepare() { + default + + sed -i \ + -e 's|make|$(MAKE)|g' \ + Makefile || die + sed -i \ + -e 's|-lncurses|$(shell ${PKG_CONFIG} --libs ncurses glib-2.0 libunwind)|g' \ + c-lib/Makefile || die + sed -i \ + -e 's|-lcurses|$(shell ${PKG_CONFIG} --libs ncurses glib-2.0 libunwind)|g' \ + c-lib/Makefile.variants || die + + tc-export CC PKG_CONFIG + + sed -i \ + -e "s|-lncurses|$( $(tc-getPKG_CONFIG) --libs ncurses)|g" \ + c-lib/cudf.pc.in || die +} + +src_compile() { + emake OCAMLBUILD="ocamlbuild -classic-display" -j1 all + emake OCAMLBUILD="ocamlbuild -classic-display" c-lib + if use ocamlopt ; then + emake OCAMLBUILD="ocamlbuild -classic-display" -j1 opt + emake OCAMLBUILD="ocamlbuild -classic-display" c-lib-opt + fi +} + +src_test() { + emake OCAMLBUILD="ocamlbuild -classic-display" test + emake OCAMLBUILD="ocamlbuild -classic-display" c-lib-test +} + +src_install() { + emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install + dodoc BUGS ChangeLog README TODO +} diff --git a/dev-ml/cudf/cudf-0.9.ebuild b/dev-ml/cudf/cudf-0.9.ebuild deleted file mode 100644 index 815a1af28ef7..000000000000 --- a/dev-ml/cudf/cudf-0.9.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit toolchain-funcs - -DESCRIPTION="Library to parse, pretty print, and evaluate CUDF documents" -HOMEPAGE="http://www.mancoosi.org/cudf/" -SRC_URI="https://gforge.inria.fr/frs/download.php/file/36602/${P}.tar.gz" - -LICENSE="LGPL-3" -SLOT="0/${PV}" -KEYWORDS="amd64 arm arm64 ppc ppc64 x86" -IUSE="+ocamlopt test" -RESTRICT="!test? ( test )" - -RDEPEND=" - >=dev-lang/ocaml-3.12:=[ocamlopt?] - dev-ml/extlib:= - dev-ml/findlib:= - dev-libs/glib:2 -" -DEPEND="${RDEPEND} - test? ( dev-ml/ounit2 ) - dev-ml/ocamlbuild - dev-lang/perl -" -BDEPEND="virtual/pkgconfig" - -PATCHES=( "${FILESDIR}/ounit2.patch" ) - -QA_FLAGS_IGNORED='.*' - -src_prepare() { - default - - sed -i \ - -e 's|make|$(MAKE)|g' \ - Makefile || die - sed -i \ - -e 's|-lncurses|$(shell ${PKG_CONFIG} --libs ncurses glib-2.0 libunwind)|g' \ - c-lib/Makefile || die - sed -i \ - -e 's|-lcurses|$(shell ${PKG_CONFIG} --libs ncurses glib-2.0 libunwind)|g' \ - c-lib/Makefile.variants || die - - tc-export CC PKG_CONFIG - - sed -i \ - -e "s|-lncurses|$( $(tc-getPKG_CONFIG) --libs ncurses)|g" \ - c-lib/cudf.pc.in || die -} - -src_compile() { - emake OCAMLBUILD="ocamlbuild -classic-display" -j1 all - emake OCAMLBUILD="ocamlbuild -classic-display" c-lib - if use ocamlopt ; then - emake OCAMLBUILD="ocamlbuild -classic-display" -j1 opt - emake OCAMLBUILD="ocamlbuild -classic-display" c-lib-opt - fi -} - -src_test() { - emake OCAMLBUILD="ocamlbuild -classic-display" test - emake OCAMLBUILD="ocamlbuild -classic-display" c-lib-test -} - -src_install() { - emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install - dodoc BUGS ChangeLog README TODO -} -- cgit v1.2.3-65-gdbad