From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4A6BA1584F2 for ; Sun, 16 Mar 2025 11:05:11 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 36D323430B2 for ; Sun, 16 Mar 2025 11:05:11 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 32A0D1102B7; Sun, 16 Mar 2025 11:05:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 2680E1102B7 for ; Sun, 16 Mar 2025 11:05:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D461B3430B5 for ; Sun, 16 Mar 2025 11:05:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4017120FB for ; Sun, 16 Mar 2025 11:05:08 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1742123088.c2059de126de3dd73ac01481641cf09e3130d3eb.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/lablgl/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ml/lablgl/Manifest dev-ml/lablgl/lablgl-1.07.ebuild X-VCS-Directories: dev-ml/lablgl/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: c2059de126de3dd73ac01481641cf09e3130d3eb X-VCS-Branch: master Date: Sun, 16 Mar 2025 11:05:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7cb29839-9002-4ddf-b385-d6f59963b28f X-Archives-Hash: 3d3e781411838c875f98bbd800078089 commit: c2059de126de3dd73ac01481641cf09e3130d3eb Author: Alfredo Tupone gentoo org> AuthorDate: Sun Mar 16 11:01:03 2025 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Sun Mar 16 11:04:48 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2059de1 dev-ml/lablgl: add 1.07 Signed-off-by: Alfredo Tupone gentoo.org> dev-ml/lablgl/Manifest | 1 + dev-ml/lablgl/lablgl-1.07.ebuild | 97 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) diff --git a/dev-ml/lablgl/Manifest b/dev-ml/lablgl/Manifest index ec64e13dd5df..814ea444768d 100644 --- a/dev-ml/lablgl/Manifest +++ b/dev-ml/lablgl/Manifest @@ -1 +1,2 @@ DIST lablgl-1.06.tar.gz 567281 BLAKE2B 90e42d3f131b2a416b5a1fb9933fbf1178911aabfd571274e987c8e7da12a3c57673268b5e0300950f3b03ddb363626ad93fe3e647e5e7058ee48c0b130fcbfc SHA512 169ac4ed8eaf3635c107c57cd03a76a64fc16a8d3ba1ad261b7e4dcda985c0a83059421e72233f645aec21a1ec27b980530b4ffb7013fba31d446b16521b3f4c +DIST lablgl-1.07.tar.gz 567464 BLAKE2B f5943883d5c3ab34f094d5e6f3254eb5728d662acf07afb10ab0561094bed867a93c4709b32e348b3dfbd6a86f55931bb545c71a927f4c10ea2a232a4176bdb2 SHA512 8091bd79dcb42ea29ad67f8f2da2cc75c640d72b0a5a4bb6a8548a6bfff4e7c1c6412903403b0916a0a5db918aed56a4979881456668d283d2fe4faaf9b4ec9e diff --git a/dev-ml/lablgl/lablgl-1.07.ebuild b/dev-ml/lablgl/lablgl-1.07.ebuild new file mode 100644 index 000000000000..0f941c2e7fad --- /dev/null +++ b/dev-ml/lablgl/lablgl-1.07.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Objective CAML interface for OpenGL" +HOMEPAGE="https://github.com/garrigue/lablgl" +SRC_URI="https://github.com/garrigue/lablgl/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc glut +ocamlopt tk" + +RDEPEND=" + >=dev-lang/ocaml-4.14:=[ocamlopt?] + x11-libs/libXext + x11-libs/libXmu + x11-libs/libX11 + virtual/opengl + virtual/glu + glut? ( media-libs/freeglut ) + tk? ( + >=dev-lang/tcl-8.3:0= + >=dev-lang/tk-8.3:0= + dev-ml/labltk:= + ) +" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}"/${PN}-1.06-makefile.patch ) + +src_configure() { + # make configuration file + echo "BINDIR=/usr/bin" > Makefile.config || die + echo "GLLIBS = -lGL -lGLU" >> Makefile.config || die + if use glut; then + echo "GLUTLIBS = -lglut" >> Makefile.config || die + else + echo "GLUTLIBS = " >> Makefile.config || die + fi + echo "XLIBS = -lXext -lXmu -lX11" >> Makefile.config || die + echo "RANLIB = $(tc-getRANLIB)" >> Makefile.config || die + echo 'COPTS = -c -O $(CFLAGS)' >> Makefile.config || die + echo 'INCLUDES = $(TKINCLUDES) $(GLINCLUDES) $(XINCLUDES)' >> Makefile.config || die +} + +src_compile() { + # Workaround for bug #834870 + MAKEOPTS+=" -j1" + + if use tk; then + emake togl + if use ocamlopt; then + emake toglopt + fi + fi + + emake lib + if use ocamlopt; then + emake libopt + fi + + if use glut; then + emake glut + if use ocamlopt; then + emake glutopt + fi + fi +} + +src_install() { + # Makefile do not use mkdir so the library is not installed + # but copied as a 'stublibs' file. + dodir /usr/$(get_libdir)/ocaml/stublibs + + # Same for lablglut's toplevel + if use tk ; then + dodir /usr/bin + fi + + BINDIR="${ED}/usr/bin" + BASE="${ED}/usr/$(get_libdir)/ocaml" + emake BINDIR="${BINDIR}" INSTALLDIR="${BASE}/lablGL" DLLDIR="${BASE}/stublibs" install + + dodoc README CHANGES + + if use doc ; then + mv Togl/examples{,.togl} || die + dodoc -r Togl/examples.togl + + mv LablGlut/examples{,.glut} || die + dodoc -r LablGlut/examples.glut + fi +}