diff options
author | NHOrus <jy6x2b32pie9@yahoo.com> | 2024-04-27 11:10:30 +0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-05-06 07:08:43 +0100 |
commit | 689e472bea793c0d9cef4f6c9a3394562a0ef4d7 (patch) | |
tree | 949f7119a09b3ab5d86caa98abe7bb362f21e17e /dev-libs/libg15render | |
parent | dev-games/libnw: update EAPI 7 -> 8 (diff) | |
download | gentoo-689e472bea793c0d9cef4f6c9a3394562a0ef4d7.tar.gz gentoo-689e472bea793c0d9cef4f6c9a3394562a0ef4d7.tar.bz2 gentoo-689e472bea793c0d9cef4f6c9a3394562a0ef4d7.zip |
dev-libs/libg15render: C99: Add missing include
Closes: https://bugs.gentoo.org/870820
Closes: https://bugs.gentoo.org/919188
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/36450
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libg15render')
-rw-r--r-- | dev-libs/libg15render/files/libg15render-3.0.4-missing-include.patch | 10 | ||||
-rw-r--r-- | dev-libs/libg15render/libg15render-3.0.4-r1.ebuild | 53 | ||||
-rw-r--r-- | dev-libs/libg15render/metadata.xml | 1 |
3 files changed, 64 insertions, 0 deletions
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> |