net-print/epson-inkjet-printer_201207w: update SRC_URI
[gentoo-zh.git] / net-print / epson-inkjet-printer_201207w / epson-inkjet-printer_201207w-1.0.0.ebuild
blob044a55afd0a1e63e657151004dbc935d20e75be3
1 # Copyright 2021-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=7
6 inherit rpm autotools
8 MY_PN=${PN%_*}-${PN##*_}
10 DESCRIPTION="Epson printer driver (L110, L210, L300, L350, L355, L550, L555)"
11 HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX
12 http://www.openprinting.org/driver/epson-201207w"
13 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"
15 LICENSE="LGPL-2.1 EPSON"
16 SLOT="0"
17 KEYWORDS="amd64 x86"
18 RESTRICT="mirror"
20 RDEPEND="net-print/cups"
21 DEPEND="${RDEPEND}"
23 S="${WORKDIR}/epson-inkjet-printer-filter-${PV}"
25 QA_PREBUILT="
26 /opt/epson-inkjet-printer-201207w/lib64/libEpson_201207w.MT.so.1.0.0
27 /opt/epson-inkjet-printer-201207w/lib64/libEpson_201207w.so.1.0.0"
29 src_prepare() {
30 eautoreconf
31 chmod +x configure
32 eapply_user
35 src_configure() {
36 econf LDFLAGS="$LDFLAGS -Wl,--no-as-needed" --prefix=/opt/${MY_PN}
37 # if you have runtime problems:
38 # add "--enable-debug" and look into /tmp/epson-inkjet-printer-filter.txt
41 src_install() {
42 insinto /opt/${MY_PN}/cups/lib/filter
43 doins src/epson_inkjet_printer_filter
44 chmod 755 "${D}/opt/${MY_PN}/cups/lib/filter/epson_inkjet_printer_filter"
46 use amd64 && X86LIB=64
48 insinto /opt/${MY_PN}
49 for folder in lib"${X86LIB}" resource watermark; do
50 doins -r ../${MY_PN}-${PV}/$folder
51 done
53 insinto /usr/share/cups/model/${MY_PN}
54 doins ../${MY_PN}-${PV}/ppds/*
56 dodoc "AUTHORS" "COPYING" "COPYING.LIB" "COPYING.EPSON"
57 dodoc ../${MY_PN}-${PV}/{Manual.txt,README}