dev-libs/libg15render: Added live ebuild

- new upstream
- Fixed docdir installation

Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
Lars Wendler
2022-05-15 00:56:08 +02:00
parent 0bf8786daf
commit 5b6cd28e12
2 changed files with 76 additions and 0 deletions
@@ -0,0 +1,25 @@
From 2900f3f8a90915f59a25c8b3fb27912492e7b044 Mon Sep 17 00:00:00 2001
From: Lars Wendler <polynomial-c@gentoo.org>
Date: Sat, 14 May 2022 18:20:24 +0200
Subject: [PATCH] Makefile.am: Make docdir selectable
---
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 2fdacd7..cf00f1c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,7 +7,7 @@ libg15render_la_LDFLAGS = -version-info 3:0
include_HEADERS= libg15render.h
EXTRA_DIST = debian libg15render.3
man3_MANS = $(top_srcdir)/libg15render.3
-docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
+docdir = @docdir@
doc_DATA = AUTHORS ChangeLog COPYING NEWS README
ACLOCAL_AMFLAGS = -I m4
--
2.36.1
@@ -0,0 +1,51 @@
# Copyright 1999-2022 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://sourceforge.net/projects/g15tools/"
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}/${PN}-3.0.4-docdir.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
}