net-print/libinklevel: add 0.9.7

Closes Musl build bug, also fixes autotools bug for which we have
a patch.
Changed dependencies according to configure.ac
sed in src_prepare is transformed into a patch

Closes: https://bugs.gentoo.org/934208
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40488
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
NHOrus
2025-02-12 16:45:39 +04:00
committed by Sam James
parent 88f5ddd2a8
commit 0a4a68bf25
2 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
was sed in 0.9.3
Disables manual installation of docs that conflicts with ebuild
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,11 +2,10 @@
AM_CFLAGS = -Wall $(LIBUSB1_CFLAGS) $(LIBXML2_CFLAGS)
ACLOCAL_AMFLAGS = -I m4
lib_LTLIBRARIES = libinklevel.la
-dist_doc_DATA = NEWS README AUTHORS COPYING ChangeLog
LIBTOOL_DEPS = @LIBTOOL_DEPS@
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck

View File

@@ -0,0 +1,41 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
MY_P="${P/_/}"
DESCRIPTION="A library to get the ink level of your printer"
HOMEPAGE="https://libinklevel.sourceforge.net/"
SRC_URI="https://downloads.sourceforge.net/libinklevel/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug"
DEPEND="
dev-libs/libxml2:=
virtual/libusb:1
"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=( "${FILESDIR}/${PN}-0.9.7-disable-docs.patch" )
src_prepare() {
default
eautoreconf
}
src_configure() {
econf $(use_enable debug)
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}