mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
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:
@@ -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
|
||||
|
||||
41
net-print/libinklevel/libinklevel-0.9.7.ebuild
Normal file
41
net-print/libinklevel/libinklevel-0.9.7.ebuild
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user