Files
gentoo-zh/net-print/epson-inkjet-printer_201207w/epson-inkjet-printer_201207w-1.0.0-r1.ebuild
T
Zakk dcd5752fc6 */*: correct LICENSE declarations that did not match upstream
因为对全部软件包逐一核对上游后发现 42 个的 `LICENSE=` 与上游实际授权不符,所以按上游的授权文件与源码文件头改正,并为其中被误标为开源、实为专有的软件补上
`RESTRICT`。

最严重的一类是专有软件被标成开源:`deepin-wine-helper` 与 `deepin-wine-plugin` 的 deb 内 copyright 写着
`All rights reserved by Wuhan Deepin Technology Co., Ltd.`,`app-misc/z-library` 的 deb
control 写 `License: unknown`,`media-sound/qqmusic` 用的 `CC0-1.0` 是公共领域捐弃、与腾讯的服务协议完全相反。

`net-proxy/clash-rs` 此前只有 `LICENSE+=`、没有基底 `LICENSE=`,主程序的 Apache-2.0 完全没有声明。

`sys-kernel/xanmod-sources` 的 `LICENSE+=" CDDL"` 在 xanmod patch 与 genpatches
中都找不到依据,一并删除。

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-08-02 04:20:36 +10:00

67 lines
2.0 KiB
Bash

# Copyright 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
# This src.rpm ships an uncompressed cpio payload; declaring it silences the
# "rpm_unpack called without supporting app-arch/rpm" QA notice and pins a
# proper unpack dependency. Must be set before inherit (read at global scope).
RPM_COMPRESS_TYPE="none"
inherit rpm autotools
MY_PN=${PN%_*}-${PN##*_}
DESCRIPTION="Epson printer driver (L110, L210, L300, L350, L355, L550, L555)"
HOMEPAGE="https://openprinting.github.io/foomatic/driver/epson-201207w"
SRC_URI="https://web.archive.org/web/20150803102803if_/http://download.ebz.epson.net/dsc/op/stable/SRPMS/epson-inkjet-printer-201207w-1.0.0-1lsb3.2.src.rpm"
S="${WORKDIR}/epson-inkjet-printer-filter-${PV}"
LICENSE="LGPL-2.1+ GPL-2+ EPSON"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="mirror"
RDEPEND="net-print/cups"
DEPEND="${RDEPEND}"
QA_PREBUILT="
/opt/epson-inkjet-printer-201207w/lib64/libEpson_201207w.MT.so.1.0.0
/opt/epson-inkjet-printer-201207w/lib64/libEpson_201207w.so.1.0.0"
# GCC 14+ rejects this 2005-era source: ten .c files call debug_msg() without
# including its err.h declaration, and debugt_msg() returns a value from a void
# function. The patch adds the missing includes and drops the bogus return.
PATCHES=( "${FILESDIR}/${P}-modern-c.patch" )
src_prepare() {
default
eautoreconf
chmod +x configure
}
src_configure() {
econf LDFLAGS="$LDFLAGS -Wl,--no-as-needed" --prefix=/opt/${MY_PN}
# if you have runtime problems:
# add "--enable-debug" and look into /tmp/epson-inkjet-printer-filter.txt
}
src_install() {
insinto /opt/${MY_PN}/cups/lib/filter
doins src/epson_inkjet_printer_filter
chmod 755 "${D}/opt/${MY_PN}/cups/lib/filter/epson_inkjet_printer_filter"
use amd64 && X86LIB=64
insinto /opt/${MY_PN}
for folder in lib"${X86LIB}" resource watermark; do
doins -r ../${MY_PN}-${PV}/$folder
done
insinto /usr/share/cups/model/${MY_PN}
doins ../${MY_PN}-${PV}/ppds/*
dodoc "AUTHORS" "COPYING" "COPYING.LIB" "COPYING.EPSON"
dodoc ../${MY_PN}-${PV}/{Manual.txt,README}
}