blob: f6376950d15945b3222fdfaf4cdf9d1d171619c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CMAKE_MAKEFILE_GENERATOR="emake"
inherit cmake desktop git-r3 udev
DESCRIPTION="Canon InkJet Scanner Driver and ScanGear MP for Linux (Pixus/Pixma-Series)."
HOMEPAGE="https://github.com/Ordissimo/scangearmp2"
EGIT_REPO_URI="https://github.com/Ordissimo/${PN}.git"
LICENSE="GPL-2"
RESTRICT="mirror"
SLOT="2"
DEPEND="
dev-util/intltool
media-gfx/sane-backends
media-libs/libjpeg-turbo:=
sys-devel/gettext
virtual/libusb:1
x11-libs/gtk+:3
"
src_configure() {
cmake_src_configure
}
src_compile() {
emake -C"${BUILD_DIR}" || die "Couldn't build ${PN}"
}
src_install() {
cd "${BUILD_DIR}"
emake DESTDIR="${D}" install || die "Couldn't install ${PN}"
domenu "${FILESDIR}"/${PN}.desktop
}
pkg_postinst() {
udev_reload
}
pkg_postrm() {
udev_reload
}
|