diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2023-02-20 20:59:22 +0100 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2023-02-20 21:00:15 +0100 |
commit | 13d9a2bbd1d747f59d9fd390b6bc339d643fecf6 (patch) | |
tree | f1782578203819e0557d5d6bbb999bd36efbe2fa /net-print/cnijfilter2 | |
parent | dev-python/markupsafe: Stabilize 2.1.2 amd64, #895592 (diff) | |
download | gentoo-13d9a2bbd1d747f59d9fd390b6bc339d643fecf6.tar.gz gentoo-13d9a2bbd1d747f59d9fd390b6bc339d643fecf6.tar.bz2 gentoo-13d9a2bbd1d747f59d9fd390b6bc339d643fecf6.zip |
net-print/cnijfilter2: add 6.50
Closes: https://bugs.gentoo.org/894972
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'net-print/cnijfilter2')
-rw-r--r-- | net-print/cnijfilter2/Manifest | 1 | ||||
-rw-r--r-- | net-print/cnijfilter2/cnijfilter2-6.50.ebuild | 77 | ||||
-rw-r--r-- | net-print/cnijfilter2/files/cnijfilter2-6.50-gentoo.patch | 58 |
3 files changed, 136 insertions, 0 deletions
diff --git a/net-print/cnijfilter2/Manifest b/net-print/cnijfilter2/Manifest index 83806d362510..412c42e2a1ea 100644 --- a/net-print/cnijfilter2/Manifest +++ b/net-print/cnijfilter2/Manifest @@ -1 +1,2 @@ DIST cnijfilter2-source-5.90-1.tar.gz 1707084 BLAKE2B 3df5786785b12c410f4ae72e1d20fcd7686e0b8de60e7a713392076c2cd9edc1bd3d7f7494712ec6a4f50197fdb79e4cb708fcbe5f3b9e38cb3353e74cc8291a SHA512 d31f5133b6f81114d46cb067779260d5d74b5616e6e1b3924ef9db0db233fbb2b16132f7a003342e2ed14742c3123c644619dc1d5c93bca5d16425a77d45c632 +DIST cnijfilter2-source-6.50-1.tar.gz 2671420 BLAKE2B 2329388686b14430b84d928fb5197cbc58c2a44c25f0edc4c95d8be8d72d313a4c9a7daf09dba1f2bdc73d424a96a7aa3934d83235440bbe1e6edaf95bc5cf31 SHA512 98536a1f0677b1ead6d364b737d9873abf2140cf9646194937075c391929457d23bc792f9314badc27d1649cca6376bee20506e1922d6e16e857037bf7ce3508 diff --git a/net-print/cnijfilter2/cnijfilter2-6.50.ebuild b/net-print/cnijfilter2/cnijfilter2-6.50.ebuild new file mode 100644 index 000000000000..46010386b7b7 --- /dev/null +++ b/net-print/cnijfilter2/cnijfilter2-6.50.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +MY_P="${PN}-source-${PV}-1" + +DESCRIPTION="IJ Printer Driver" +HOMEPAGE="https://asia.canon/en/support/0101163901?model=5777C" +SRC_URI="https://pdisp01.c-wss.com/gdl/WWUFORedirectTarget.do?id=MDEwMDAxMTYzOTAx& -> cnijfilter2-source-${PV}-1.tar.gz" + +LICENSE="Canon-IJ" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="virtual/libusb:1 + dev-libs/libxml2 + net-print/cups" +RDEPEND="${DEPEND}" + +QA_FLAGS_IGNORED=( + /usr/lib64/libcnbpnet30.so.1.0.0 + /usr/lib64/libcnbpcnclapicom2.so.5.0.0 + /usr/lib64/libcnnet2.so.1.2.5 + /usr/lib64/libcnbpnet20.so.1.0.0 + /usr/bin/cnijlgmon3 +) + +S="${WORKDIR}"/${MY_P} + +PATCHES=( + "${FILESDIR}"/${PN}-6.50-gentoo.patch + "${FILESDIR}"/${PN}-5.80-cflags.patch + "${FILESDIR}"/${PN}-5.80-fno-common.patch +) + +src_prepare() { + default + DIRS="cmdtocanonij2 cmdtocanonij3 cnijbe2 lgmon3 rastertocanonij tocanonij tocnpwg" + LIBDIR=com/libs_bin$(usex amd64 _x86_64 _i686) + for d in ${DIRS}; do + mv "${d}"/configure.{in,ac} || die + done + echo "AC_INIT([${PN}], [${PV}])" >> configure.ac + echo "AM_INIT_AUTOMAKE" >> configure.ac + echo "AC_CONFIG_SUBDIRS([${DIRS}])" >> configure.ac + echo "AC_CONFIG_FILES([Makefile])" >> configure.ac + echo "AC_OUTPUT()" >> configure.ac + echo "SUBDIRS= ${DIRS}" >> Makefile.am + sed -i \ + -e "/^CFLAGS/d" \ + */configure.ac \ + cnijbe2/src/Makefile.am || die + eautoreconf + cd ${LIBDIR} + rm libcn*.so || die + ln -sf libcnbpcnclapicom2.so.5.0.0 libcnbpcnclapicom2.so || die + ln -sf libcnbpnet20.so.1.0.0 libcnbpnet20.so || die + ln -sf libcnbpnet30.so.1.0.0 libcnbpnet30.so || die + ln -sf libcnnet2.so.1.2.5 libcnnet2.so || die + + cd - +} + +src_configure() { + econf --enable-progpath="${EPREFIX}/usr/bin" LDFLAGS="-L${S}/${LIBDIR} ${LDFLAGS}" +} + +src_install() { + default + insinto /usr/share/ppd/cupsfilters + doins ppd/*ppd + dolib.so ${LIBDIR}/* +} diff --git a/net-print/cnijfilter2/files/cnijfilter2-6.50-gentoo.patch b/net-print/cnijfilter2/files/cnijfilter2-6.50-gentoo.patch new file mode 100644 index 000000000000..cdc5f936824e --- /dev/null +++ b/net-print/cnijfilter2/files/cnijfilter2-6.50-gentoo.patch @@ -0,0 +1,58 @@ +--- a/cmdtocanonij2/filter/Makefile.am 2018-01-14 18:14:20.645473030 +0100 ++++ b/cmdtocanonij2/filter/Makefile.am 2018-01-14 18:14:36.078219959 +0100 +@@ -1,4 +1,4 @@ +-filterdir=$(libdir)/cups/filter ++filterdir=$(libexecdir)/cups/filter + + filter_PROGRAMS= cmdtocanonij2 + +--- a/cmdtocanonij3/filter/Makefile.am 2018-01-14 18:14:20.645473030 +0100 ++++ b/cmdtocanonij3/filter/Makefile.am 2018-01-14 18:14:36.078219959 +0100 +@@ -1,4 +1,4 @@ +-filterdir=$(libdir)/cups/filter ++filterdir=$(libexecdir)/cups/filter + + filter_PROGRAMS= cmdtocanonij3 + +--- a/cnijbe2/src/Makefile.am 2023-02-15 19:25:48.823470121 +0100 ++++ b/cnijbe2/src/Makefile.am 2023-02-15 19:25:59.316275741 +0100 +@@ -1,6 +1,6 @@ + ## Process this file with automake to produce Makefile.in + +-backend_bindir = $(libdir)/cups/backend ++backend_bindir = $(libexecdir)/cups/backend + backend_bin_PROGRAMS = cnijbe2 + transform = + +--- a/rastertocanonij/src/Makefile.am 2018-01-14 21:31:33.053307218 +0100 ++++ b/rastertocanonij/src/Makefile.am 2018-01-14 21:31:41.106166479 +0100 +@@ -1,4 +1,4 @@ +-filterdir=$(libdir)/cups/filter ++filterdir=$(libexecdir)/cups/filter + + filter_PROGRAMS= rastertocanonij + +--- a/tocanonij/src/Makefile.am 2018-01-15 22:38:14.236460663 +0100 ++++ b/tocanonij/src/Makefile.am 2018-01-15 22:38:39.184018933 +0100 +@@ -1,7 +1,8 @@ + INCLUDES = \ + -I$(top_srcdir)/include/cncl + +-bin_PROGRAMS= tocanonij ++filterdir=$(libexecdir)/cups/filter ++filter_PROGRAMS= tocanonij + + tocanonij_SOURCES= \ + main.c +--- a/tocnpwg/src/Makefile.am 2018-01-15 22:42:43.759703863 +0100 ++++ b/tocnpwg/src/Makefile.am 2018-01-15 22:43:10.442232986 +0100 +@@ -2,7 +2,8 @@ + INCLUDES = \ + @XML_2_CFLAGS@ + +-bin_PROGRAMS= tocnpwg ++filterdir=$(libexecdir)/cups/filter ++filter_PROGRAMS= tocnpwg + + tocnpwg_SOURCES= \ + main.c mkpset.c |