diff options
author | 2025-02-12 16:45:39 +0400 | |
---|---|---|
committer | 2025-02-13 12:05:39 +0000 | |
commit | 0a4a68bf25fa4ce1fee975d437b59a7affe71794 (patch) | |
tree | 8b884fd41032a04acc11aba4d450be60f9297382 | |
parent | net-print/libinklevel: update HOMEPAGE (diff) | |
download | gentoo-0a4a68bf25fa4ce1fee975d437b59a7affe71794.tar.gz gentoo-0a4a68bf25fa4ce1fee975d437b59a7affe71794.tar.bz2 gentoo-0a4a68bf25fa4ce1fee975d437b59a7affe71794.zip |
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>
-rw-r--r-- | net-print/libinklevel/files/libinklevel-0.9.7-disable-docs.patch | 16 | ||||
-rw-r--r-- | net-print/libinklevel/libinklevel-0.9.7.ebuild | 41 |
2 files changed, 57 insertions, 0 deletions
diff --git a/net-print/libinklevel/files/libinklevel-0.9.7-disable-docs.patch b/net-print/libinklevel/files/libinklevel-0.9.7-disable-docs.patch new file mode 100644 index 000000000000..09314bda3aa9 --- /dev/null +++ b/net-print/libinklevel/files/libinklevel-0.9.7-disable-docs.patch @@ -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 + diff --git a/net-print/libinklevel/libinklevel-0.9.7.ebuild b/net-print/libinklevel/libinklevel-0.9.7.ebuild new file mode 100644 index 000000000000..0fb001aa09d9 --- /dev/null +++ b/net-print/libinklevel/libinklevel-0.9.7.ebuild @@ -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 +} |