commit: 935baea7c0740ecd2917654021d3d3d03278cd57
Author: Nguyen Dinh Dang Duong <dangduong31205 <AT> gmail <DOT> com>
AuthorDate: Mon Nov 3 18:16:01 2025 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Nov 3 18:16:01 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=935baea7
net-print/captdriver: new package, add 0.1.4
Signed-off-by: Nguyen Dinh Dang Duong <dangduong31205 <AT> gmail.com>
net-print/captdriver/Manifest | 1 +
net-print/captdriver/captdriver-0.1.4.ebuild | 71 ++++++++++++++++++++++++++++
net-print/captdriver/metadata.xml | 11 +++++
3 files changed, 83 insertions(+)
diff --git a/net-print/captdriver/Manifest b/net-print/captdriver/Manifest
new file mode 100644
index 0000000000..0c296b89e9
--- /dev/null
+++ b/net-print/captdriver/Manifest
@@ -0,0 +1 @@
+DIST captdriver-0.1.4-m5.tar.gz 36578 BLAKE2B
0e8420755ce936d95403a49face6de8ade858210f12fcb0518a40f957b9b17223744f615f2242305fa4e0cbae9ab6892a0ae3c4cf710d7f9dc5f80f03ba3e323
SHA512
f6dab3ddc5df5c5aceebfdd077ee33ab6bbf26cbc5b518b76f35e35f7fcda256f3e162acaa10b1690ec98ead686be715035123ed05ebabbdd6ac81c3c5b7c3e0
diff --git a/net-print/captdriver/captdriver-0.1.4.ebuild
b/net-print/captdriver/captdriver-0.1.4.ebuild
new file mode 100644
index 0000000000..a9fb37ee6a
--- /dev/null
+++ b/net-print/captdriver/captdriver-0.1.4.ebuild
@@ -0,0 +1,71 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+MY_V="0.1.4-m5"
+MY_P="${PN}-${MY_V}"
+
+DESCRIPTION="Alternative driver for Canon CAPT printers"
+HOMEPAGE="https://github.com/mounaiban/captdriver"
+SRC_URI="https://github.com/mounaiban/captdriver/archive/refs/tags/${MY_V}.tar.gz
-> ${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+ net-print/cups
+ net-print/cups-filters
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ dev-build/automake
+ dev-build/autoconf
+"
+
+src_prepare() {
+ default
+ eaclocal
+ eautoconf
+ eautomake --add-missing
+}
+
+src_configure() {
+ default
+ ./configure || die "./configure failed"
+}
+
+src_compile() {
+ default
+ make
+ ppdc -v -d . src/canon-lbp.drv
+}
+
+ppd_dir="/usr/share/ppd"
+
+src_install() {
+ cups-config --serverbin || die -q "cups-config --serverbin failed"
+ insinto "$ppd_dir"
+ doins *.ppd
+ exeinto "$(cups-config --serverbin)/filter"
+ doexe src/rastertocapt
+ docinto
+ dodoc *.md
+}
+
+pkg_postinst() {
+ einfo "PPD files are installed into $ppd_dir"
+ einfo "You may want to add some printers that use CAPT driver"
+ einfo " lpadmin -p 'LBP2900' -v usb://Canon/LBP2900?serial=<serial>
-P $ppd_dir/Canon-LBP2900-3000.ppd -E"
+ einfo " lpadmin -p 'LBP3000' -v usb://Canon/LBP3000?serial=<serial>
-P $ppd_dir/Canon-LBP2900-3000.ppd -E"
+ einfo " lpadmin -p 'LBP3010' -v usb://Canon/LBP3100?serial=<serial>
-P $ppd_dir/Canon-LBP3010.ppd.ppd -E"
+ einfo "You can find the <serial> with lpinfo -v command"
+}
+
+pkg_postrm() {
+ ewarn "You may want to remove printers that depends on this package."
+}
diff --git a/net-print/captdriver/metadata.xml
b/net-print/captdriver/metadata.xml
new file mode 100644
index 0000000000..c688ce6227
--- /dev/null
+++ b/net-print/captdriver/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>[email protected]</email>
+ <name>Nguyen Dinh Dang Duong</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">mounaiban/captdriver</remote-id>
+ </upstream>
+</pkgmetadata>