commit:     4fe120c19d98f5416bc359513cb4125d927c0f71
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 22 17:44:02 2022 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Mar 22 17:44:02 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fe120c1

dev-ml/ocamlsdl: respect opengl USE

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ml/ocamlsdl/metadata.xml          | 5 ++++-
 dev-ml/ocamlsdl/ocamlsdl-0.9.1.ebuild | 6 ++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/dev-ml/ocamlsdl/metadata.xml b/dev-ml/ocamlsdl/metadata.xml
index 2ce0fe2f56d9..081e3c7960e1 100644
--- a/dev-ml/ocamlsdl/metadata.xml
+++ b/dev-ml/ocamlsdl/metadata.xml
@@ -1,7 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
-       <!-- maintainer-needed -->
+       <maintainer type="project">
+               <email>m...@gentoo.org</email>
+               <name>ML</name>
+       </maintainer>
        <upstream>
                <remote-id type="sourceforge">ocamlsdl</remote-id>
        </upstream>

diff --git a/dev-ml/ocamlsdl/ocamlsdl-0.9.1.ebuild 
b/dev-ml/ocamlsdl/ocamlsdl-0.9.1.ebuild
index c14aa02de8a6..cdf46a78f078 100644
--- a/dev-ml/ocamlsdl/ocamlsdl-0.9.1.ebuild
+++ b/dev-ml/ocamlsdl/ocamlsdl-0.9.1.ebuild
@@ -50,6 +50,12 @@ src_configure() {
        econf \
                $myconf \
                $(use_enable truetype sdl-ttf)
+       if ! use opengl; then
+               sed -i \
+                       -e 's:LABLGLDIR:FALSE:' \
+                       src/Makefile \
+                       || die
+       fi
 }
 
 src_install() {

Reply via email to