1 |
commit: 18c85d9c62fdee60eb12e99a71986672d5cd57fb |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 9 22:47:51 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 9 22:47:51 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18c85d9c |
7 |
|
8 |
app-misc/ddcutil: drop old version |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
12 |
|
13 |
app-misc/ddcutil/ddcutil-0.9.9-r1.ebuild | 116 ------------------------------- |
14 |
1 file changed, 116 deletions(-) |
15 |
|
16 |
diff --git a/app-misc/ddcutil/ddcutil-0.9.9-r1.ebuild b/app-misc/ddcutil/ddcutil-0.9.9-r1.ebuild |
17 |
deleted file mode 100644 |
18 |
index 909b06e1dad..00000000000 |
19 |
--- a/app-misc/ddcutil/ddcutil-0.9.9-r1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,116 +0,0 @@ |
22 |
-# Copyright 1999-2021 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=6 |
26 |
- |
27 |
-inherit autotools flag-o-matic linux-info udev |
28 |
- |
29 |
-DESCRIPTION="Program for querying and changing monitor settings" |
30 |
-HOMEPAGE="http://www.ddcutil.com/" |
31 |
-SRC_URI="https://github.com/rockowitz/ddcutil/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
32 |
- |
33 |
-SLOT="0" |
34 |
-LICENSE="GPL-2" |
35 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
36 |
-IUSE="drm introspection usb-monitor user-permissions video_cards_nvidia X" |
37 |
-REQUIRED_USE="drm? ( X )" |
38 |
- |
39 |
-RDEPEND="dev-libs/glib:2 |
40 |
- sys-apps/i2c-tools |
41 |
- virtual/udev |
42 |
- drm? ( x11-libs/libdrm ) |
43 |
- introspection? ( >=dev-libs/gobject-introspection-1.54.0:= ) |
44 |
- usb-monitor? ( |
45 |
- dev-libs/hidapi |
46 |
- virtual/libusb:1 |
47 |
- sys-apps/usbutils |
48 |
- ) |
49 |
- user-permissions? ( |
50 |
- acct-group/i2c |
51 |
- usb-monitor? ( acct-group/video ) |
52 |
- ) |
53 |
- X? ( |
54 |
- x11-libs/libXrandr |
55 |
- x11-libs/libX11 |
56 |
- )" |
57 |
- |
58 |
-DEPEND="${RDEPEND} |
59 |
- virtual/pkgconfig" |
60 |
- |
61 |
-pkg_pretend() { |
62 |
- # This program needs /dev/ic2-* devices to communicate with the monitor. |
63 |
- CONFIG_CHECK="~I2C_CHARDEV" |
64 |
- ERROR_I2C_CHARDEV="You must enable I2C_CHARDEV in your kernel to continue" |
65 |
- if use usb-monitor; then |
66 |
- CONFIG_CHECK+=" ~HIDRAW ~USB_HIDDEV" |
67 |
- ERROR_HIDRAW="HIDRAW is needed to support USB monitors" |
68 |
- ERROR_I2C_CHARDEV="USB_HIDDEV is needed to support USB monitors" |
69 |
- fi |
70 |
- |
71 |
- # Now do the actual checks setup above |
72 |
- check_extra_config |
73 |
-} |
74 |
- |
75 |
-src_prepare() { |
76 |
- default |
77 |
- eautoreconf |
78 |
- sed -i -e "s#usr/local/bin#usr/bin#" data/etc/udev/rules.d/45-ddcutil-usb.rules || die |
79 |
-} |
80 |
- |
81 |
-src_configure() { |
82 |
- # Bug 607818. |
83 |
- replace-flags -O3 -O2 |
84 |
- |
85 |
- local myeconfargs=( |
86 |
- $(use_enable drm) |
87 |
- $(use_enable usb-monitor usb) |
88 |
- $(use_enable X x11) |
89 |
- --enable-lib |
90 |
- # Please read upstream's note about the original purpose of these flags before re-enabling them: |
91 |
- # https://github.com/rockowitz/ddcutil/issues/128 |
92 |
- # As of 0.9.9 the following no longer compile: |
93 |
- # Python3 & CFFI is already broken as of Python 3.7, with future removal; |
94 |
- # SWIG : Python3.7 breakage as well PyFileObject vs PyCodeObject |
95 |
- --disable-cffi |
96 |
- --disable-cython |
97 |
- --disable-swig |
98 |
- $(use_enable introspection) |
99 |
- ) |
100 |
- |
101 |
- econf "${myeconfargs[@]}" |
102 |
-} |
103 |
- |
104 |
-src_install() { |
105 |
- default |
106 |
- if use user-permissions; then |
107 |
- udev_dorules data/etc/udev/rules.d/45-ddcutil-i2c.rules |
108 |
- if use usb-monitor; then |
109 |
- udev_dorules data/etc/udev/rules.d/45-ddcutil-usb.rules |
110 |
- fi |
111 |
- fi |
112 |
-} |
113 |
- |
114 |
-pkg_postinst() { |
115 |
- if use user-permissions; then |
116 |
- einfo "To allow non-root users access to the /dev/i2c-* devices, add those" |
117 |
- einfo "users to the i2c group: usermod -aG i2c user" |
118 |
- einfo "Restart the computer or reload the i2c-dev module to activate" |
119 |
- einfo "the new udev rule." |
120 |
- einfo "For more information read: http://www.ddcutil.com/i2c_permissions/" |
121 |
- |
122 |
- if use usb-monitor; then |
123 |
- einfo "To allow non-root users access to USB monitors, add those users" |
124 |
- einfo "to the video group: usermod -aG video user" |
125 |
- einfo "Restart the computer, reload the hiddev and hidraw modules, or replug" |
126 |
- einfo "the monitor to activate the new udev rule." |
127 |
- einfo "For more information read: http://www.ddcutil.com/usb/" |
128 |
- fi |
129 |
- |
130 |
- udev_reload |
131 |
- fi |
132 |
- |
133 |
- if use video_cards_nvidia; then |
134 |
- ewarn "Please read the following webpage on proper usage with the nVidia " |
135 |
- ewarn "binary drivers, or it may not work: http://www.ddcutil.com/nvidia/" |
136 |
- fi |
137 |
-} |