diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2022-05-14 18:24:46 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2022-05-15 00:56:08 +0200 |
commit | 5b6cd28e128a57460f3f4be252dafdfeb7d0df48 (patch) | |
tree | 885991319302cdca3dc3bc85a985c08a346d9d78 /dev-libs | |
parent | dev-libs/libg15: Bump to version 3.0.7 (diff) | |
download | gentoo-5b6cd28e128a57460f3f4be252dafdfeb7d0df48.tar.gz gentoo-5b6cd28e128a57460f3f4be252dafdfeb7d0df48.tar.bz2 gentoo-5b6cd28e128a57460f3f4be252dafdfeb7d0df48.zip |
dev-libs/libg15render: Added live ebuild
- new upstream
- Fixed docdir installation
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libg15render/files/libg15render-3.0.4-docdir.patch | 25 | ||||
-rw-r--r-- | dev-libs/libg15render/libg15render-9999.ebuild | 51 |
2 files changed, 76 insertions, 0 deletions
diff --git a/dev-libs/libg15render/files/libg15render-3.0.4-docdir.patch b/dev-libs/libg15render/files/libg15render-3.0.4-docdir.patch new file mode 100644 index 000000000000..781c9b6bfcaf --- /dev/null +++ b/dev-libs/libg15render/files/libg15render-3.0.4-docdir.patch @@ -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 + diff --git a/dev-libs/libg15render/libg15render-9999.ebuild b/dev-libs/libg15render/libg15render-9999.ebuild new file mode 100644 index 000000000000..35bbac68dd31 --- /dev/null +++ b/dev-libs/libg15render/libg15render-9999.ebuild @@ -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 +} |