commit:     7c4c5cdd8086b4b0b4c86e785ae25c625272399f
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 28 13:52:12 2023 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Thu Dec 28 13:53:15 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c4c5cdd

dev-ruby/rbpdf-font: fix c99 undeclared function getopt

Closes: https://bugs.gentoo.org/919868
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/rbpdf-font/rbpdf-font-1.19.1-r2.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dev-ruby/rbpdf-font/rbpdf-font-1.19.1-r2.ebuild 
b/dev-ruby/rbpdf-font/rbpdf-font-1.19.1-r2.ebuild
index ce8050597779..1d97bbe90fdf 100644
--- a/dev-ruby/rbpdf-font/rbpdf-font-1.19.1-r2.ebuild
+++ b/dev-ruby/rbpdf-font/rbpdf-font-1.19.1-r2.ebuild
@@ -20,7 +20,6 @@ RUBY_S="rbpdf-${PV}/rbpdf-font"
 LICENSE="LGPL-2.1+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
 
 ruby_add_bdepend ">=dev-ruby/test-unit-3:2"
 
@@ -31,7 +30,10 @@ all_ruby_prepare() {
        pushd lib/fonts/src || die
        tar xf ttf2ufm-src.tar.gz || die
        emake -C ttf2ufm-src clean
-       sed -i -e '/^CFLAGS_SYS=/ s/-O/$(CFLAGS)/' -e '/CFLAGS.*LIBS/ 
s/CFLAGS/LDFLAGS/' ttf2ufm-src/Makefile || die
+       sed -e '/^CFLAGS_SYS=/ s/-O/$(CFLAGS)/' \
+               -e '/CFLAGS.*LIBS/ s/CFLAGS/LDFLAGS/' \
+               -i ttf2ufm-src/Makefile || die
+       sed -e '/limits.h/a#include <getopt.h>' -i ttf2ufm-src/t1asm.c || die
        popd || die
 }
 

Reply via email to