commit: 689e472bea793c0d9cef4f6c9a3394562a0ef4d7 Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com> AuthorDate: Sat Apr 27 07:10:30 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon May 6 06:08:43 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=689e472b
dev-libs/libg15render: C99: Add missing include Closes: https://bugs.gentoo.org/870820 Closes: https://bugs.gentoo.org/919188 Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/36450 Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/libg15render-3.0.4-missing-include.patch | 10 ++++ dev-libs/libg15render/libg15render-3.0.4-r1.ebuild | 53 ++++++++++++++++++++++ dev-libs/libg15render/metadata.xml | 1 + 3 files changed, 64 insertions(+) diff --git a/dev-libs/libg15render/files/libg15render-3.0.4-missing-include.patch b/dev-libs/libg15render/files/libg15render-3.0.4-missing-include.patch new file mode 100644 index 000000000000..ebe043cfc772 --- /dev/null +++ b/dev-libs/libg15render/files/libg15render-3.0.4-missing-include.patch @@ -0,0 +1,10 @@ +--- libg15render-3.0.4.orig/pixel.c 2024-04-27 07:06:42.696360311 +0000 ++++ libg15render-3.0.4/pixel.c 2024-04-27 07:07:19.349161271 +0000 +@@ -19,6 +19,7 @@ + #include <fcntl.h> + #include <stdlib.h> + #include <math.h> ++#include <unistd.h> + #include "libg15render.h" + + void swap (int *x, int *y){ diff --git a/dev-libs/libg15render/libg15render-3.0.4-r1.ebuild b/dev-libs/libg15render/libg15render-3.0.4-r1.ebuild new file mode 100644 index 000000000000..bdf4d4d973fc --- /dev/null +++ b/dev-libs/libg15render/libg15render-3.0.4-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Small library for display text and graphics on a Logitech G15 keyboard" +HOMEPAGE="https://gitlab.com/menelkir/libg15render" +if [[ ${PV} == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/menelkir/libg15render.git" +else + SRC_URI="https://gitlab.com/menelkir/${PN}/-/archive/${PV}/${P}.tar.bz2" + KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="truetype" + +RDEPEND=" + >=dev-libs/libg15-3.0 + truetype? ( media-libs/freetype )" +DEPEND="${RDEPEND}" +BDEPEND=" + truetype? ( virtual/pkgconfig )" + +PATCHES=( + "${FILESDIR}/${P}-freetype_pkgconfig.patch" + "${FILESDIR}/${PN}-3.0.4-docdir.patch" + "${FILESDIR}/${P}-missing-include.patch" +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-static + $(use_enable truetype ttf) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + # no static archives + find "${ED}" -type f -name '*.la' -delete || die +} diff --git a/dev-libs/libg15render/metadata.xml b/dev-libs/libg15render/metadata.xml index 947c62c9e342..10e3efad11d7 100644 --- a/dev-libs/libg15render/metadata.xml +++ b/dev-libs/libg15render/metadata.xml @@ -6,5 +6,6 @@ </maintainer> <upstream> <remote-id type="sourceforge">g15tools</remote-id> + <remote-id type="gitlab">menelkir/libg15render</remote-id> </upstream> </pkgmetadata>
