summaryrefslogtreecommitdiff
path: root/net-print/cups-bjnp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-03 08:59:05 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-03 08:59:05 +0000
commite6ba529df30e3fc9dfdf55ec5797f2f764df6e54 (patch)
tree6b38c918c796f792ef4b18b57437c05a1fd46ae8 /net-print/cups-bjnp
parentfbe7acf59ebf6dc3f04a6ef108ff3887fa5d7972 (diff)
gentoo auto-resync : 03:12:2022 - 08:59:05
Diffstat (limited to 'net-print/cups-bjnp')
-rw-r--r--net-print/cups-bjnp/Manifest2
-rw-r--r--net-print/cups-bjnp/cups-bjnp-2.0.3-r1.ebuild32
-rw-r--r--net-print/cups-bjnp/files/cups-bjnp-2.0.3-configure-clang16.patch34
3 files changed, 68 insertions, 0 deletions
diff --git a/net-print/cups-bjnp/Manifest b/net-print/cups-bjnp/Manifest
index ef626d60ac00..0be26eb8b7af 100644
--- a/net-print/cups-bjnp/Manifest
+++ b/net-print/cups-bjnp/Manifest
@@ -1,3 +1,5 @@
+AUX cups-bjnp-2.0.3-configure-clang16.patch 1063 BLAKE2B 7554837287f2c694aed2f83c4cc6d2a505341938b454e5309d1c45a63d7c86134677c4cd3a342ad50ba4a94985ad74fb5d778fc31cdcc855810f118793ca16cc SHA512 4054a2f66204a5f23ba52ed3e222b02c92652a25f832ca4e53b599416fd638f44165221d5338136663bbf268a5954aa6c516962db5838f59ba3996b9ed6e4b2a
DIST cups-bjnp-2.0.3.tar.gz 140764 BLAKE2B 4b8d3c823abd9057be91a246b463fd17a26362c7f11959989749e023d3bdb70a0cba444b86d5f2302f6da13324f7fb6f6c84970933919be67c023e03842b124a SHA512 57db45e85ca016b823563ed6a2aa07a32b9fb733fc01af0aa488bd2fc3cf02388ae1dfb63234ce80d64616dd97209153bb8c047ff549405e7bfdcca0c57fcd5c
+EBUILD cups-bjnp-2.0.3-r1.ebuild 601 BLAKE2B be2d7a1f797b2527a0a3204dcfac03b5cb84bb096790b32bcfe7a37f3f2fad0a42d440592cdc5bb586e6e36097b13dd0457b9d0c0928f1e0b9ac387e6621495e SHA512 0b70cab826ba10dadf4a18e4e9ad234e3940310c8573db062196c11003536779013006993ce1a8f8f8d321e16361d479967c5a679cca00c413a3bea1036db899
EBUILD cups-bjnp-2.0.3.ebuild 462 BLAKE2B 7e1e3c96704ba9ecd7e092a926501fc423d9a4f9eb7eca1f1a46e2fd7e6a850a915b679ad5870fd28b33bbe3d37acd15c06255ab8c8bcf364d0201a162da11fd SHA512 0d1f3242b6eb32a45e7d104362874f6e2b32ebfe294d740dc83527a02933b0b56eed8385e4b5634fa14ce01fb587ca51972508ce0dab4a43e4fd02f76b04d0ce
MISC metadata.xml 339 BLAKE2B d0942c8c3b9bb3615349d26240aa776927ed964e9c57c72416c433ef763b087bf14378c2b600d49999d142ad973712f20ee35b961f1610a46f29a7a418b977b3 SHA512 a37a0d7d0f2d04b542a8764231f7e8aab6b4251aa241e255ded335248a6442fd7b04ba253ac67924860dc8975f58d42ceae5b6daf6e0b40388c543e8c5208914
diff --git a/net-print/cups-bjnp/cups-bjnp-2.0.3-r1.ebuild b/net-print/cups-bjnp/cups-bjnp-2.0.3-r1.ebuild
new file mode 100644
index 000000000000..55fb1e8a2677
--- /dev/null
+++ b/net-print/cups-bjnp/cups-bjnp-2.0.3-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="CUPS backend for canon printers using proprietary USB over IP BJNP protocol"
+HOMEPAGE="https://sourceforge.net/projects/cups-bjnp/"
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+DEPEND="net-print/cups"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0.3-configure-clang16.patch
+)
+
+src_prepare() {
+ default
+
+ # Clang 16
+ eautoreconf
+}
+
+src_configure() {
+ econf --disable-Werror
+}
diff --git a/net-print/cups-bjnp/files/cups-bjnp-2.0.3-configure-clang16.patch b/net-print/cups-bjnp/files/cups-bjnp-2.0.3-configure-clang16.patch
new file mode 100644
index 000000000000..e1d37445f89d
--- /dev/null
+++ b/net-print/cups-bjnp/files/cups-bjnp-2.0.3-configure-clang16.patch
@@ -0,0 +1,34 @@
+https://sourceforge.net/p/cups-bjnp/patches/5/
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -25,9 +25,9 @@
+ #include <sys/socket.h> ], [
+ /* AF_INET6 available check */
+ if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
+- exit(1);
++ return 1;
+ else
+- exit(0);
++ return 0;
+ ],[
+ AC_MSG_RESULT(yes)
+ AC_DEFINE([ENABLE_IPV6], 1, [Define to 1 if the system supports IPv6])
+@@ -47,7 +47,7 @@
+ /* test if the ss_family member exists in struct sockaddr_storage */
+ struct sockaddr_storage ss;
+ ss.ss_family = AF_INET;
+- exit (0);
++ return 0;
+ ], [
+ AC_MSG_RESULT(yes)
+ AC_DEFINE([HAS_SS_FAMILY], 1, [Define to 1 if struct sockaddr_storage has an ss_family member])
+@@ -59,7 +59,7 @@
+ /* test if the __ss_family member exists in struct sockaddr_storage */
+ struct sockaddr_storage ss;
+ ss.__ss_family = AF_INET;
+- exit (0);
++ return 0;
+ ], [
+ AC_MSG_RESULT([no, but __ss_family exists])
+ AC_DEFINE([HAS___SS_FAMILY], 1, [Define to 1 if struct sockaddr_storage has __ss_family instead of ss_family])
+