Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/ddccontrol/
Date: Mon, 03 Aug 2020 23:12:56
Message-Id: 1596496360.06132a8a4d498c18aab6797dbbc6eaaf1afd3975.robbat2@gentoo
1 commit: 06132a8a4d498c18aab6797dbbc6eaaf1afd3975
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 3 21:06:18 2020 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 3 23:12:40 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06132a8a
7
8 app-misc/ddccontrol: verbump before fixes for testing
9
10 Package-Manager: Portage-3.0.1, Repoman-2.3.23
11 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
12
13 app-misc/ddccontrol/Manifest | 2 +
14 app-misc/ddccontrol/ddccontrol-0.4.4.ebuild | 76 +++++++++++++++++++++
15 .../ddccontrol/ddccontrol-0.4.4_p20180123.ebuild | 78 ++++++++++++++++++++++
16 3 files changed, 156 insertions(+)
17
18 diff --git a/app-misc/ddccontrol/Manifest b/app-misc/ddccontrol/Manifest
19 index 2fea6e00e67..baf4a8ecc8b 100644
20 --- a/app-misc/ddccontrol/Manifest
21 +++ b/app-misc/ddccontrol/Manifest
22 @@ -1 +1,3 @@
23 DIST ddccontrol-0.4.2_p20140105.tar.gz 177771 BLAKE2B eaaef394a6e9240d1742cc7fbd4ed80ff58315713d3977f8bd1c64f09465fb6a6f9cfb6ccb49e3190291256b6c816512128b95e2dfa16f31e8fadc2aa9367457 SHA512 7a28e9b81ee14e0431c57d372c8d43f861f61c35b441111e1f42d1aa62c333b0cc6a101dcb39d30e9661aaa85a02d755e4adef3a9b20a6952e1599e3ac12c72f
24 +DIST ddccontrol-0.4.4.tar.gz 164389 BLAKE2B 480b712fc5911fde35a55ff8602866888850edfd6366bf0fb78ac3c726afed7745975b70c3359ae81c2583506ec1b2a2fc3c8a7aab9e8032f16bf27612430084 SHA512 6bc5587bc790492f13c677bd7a48f5ddbaa42f680c56c2fa18488ba5d322b853f6fb520c1317415a20a5df03c24c06edddb5e777d6fb34a34ee459170ae92119
25 +DIST ddccontrol-0.4.4_p20180123.tar.gz 165833 BLAKE2B d1af2e5f2d78bb9d8cb817e8f2666f70c5fc431a3a535931ea91fef5a2e9500e20e989d24d4cdea4a1c83631df120071bfbf845d342b1e826760f622c9dc5844 SHA512 c49a37e6231f0002a1dd387e2f2f0e1e4f989406bc84320011a55f596c8d1d7e0f094c8ed574db30fd0546fde64c8bd16350412cd4f64cc83b8d44a5469afe1d
26
27 diff --git a/app-misc/ddccontrol/ddccontrol-0.4.4.ebuild b/app-misc/ddccontrol/ddccontrol-0.4.4.ebuild
28 new file mode 100644
29 index 00000000000..5421c981fa0
30 --- /dev/null
31 +++ b/app-misc/ddccontrol/ddccontrol-0.4.4.ebuild
32 @@ -0,0 +1,76 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=5
37 +
38 +inherit eutils autotools
39 +
40 +DESCRIPTION="DDCControl allows control of monitor parameters via DDC"
41 +HOMEPAGE="http://ddccontrol.sourceforge.net/"
42 +SRC_URI="https://github.com/ddccontrol/ddccontrol/archive/${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~ppc ~x86"
47 +IUSE="doc gtk nls +pci static-libs"
48 +#S=${WORKDIR}/${PN}-${COMMIT_ID}
49 +
50 +RDEPEND="app-misc/ddccontrol-db
51 + dev-libs/libxml2:2
52 + app-arch/xz-utils
53 + gtk? ( x11-libs/gtk+:2 )
54 + nls? ( sys-devel/gettext )
55 + pci? ( sys-apps/pciutils )"
56 +DEPEND="${RDEPEND}
57 + dev-perl/XML-Parser
58 + dev-util/intltool
59 + sys-kernel/linux-headers
60 + doc? (
61 + >=app-text/docbook-xsl-stylesheets-1.65.1
62 + >=dev-libs/libxslt-1.1.6
63 + app-text/htmltidy
64 + )"
65 +
66 +src_prepare() {
67 + sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #467574
68 + sed -i '/;Application/d' src/gddccontrol/gddccontrol.desktop.in || die
69 +
70 + # ppc/ppc64 do not have inb/outb/ioperm
71 + # they also do not have (sys|asm)/io.h
72 + if ! use amd64 && ! use x86 ; then
73 + local card
74 + for card in sis intel810 ; do
75 + sed -r -i \
76 + -e "/${card}.Po/d" \
77 + -e "s~${card}[^[:space:]]*~ ~g" \
78 + src/ddcpci/Makefile.{am,ini} || die
79 + done
80 + sed -i \
81 + -e '/sis_/d' \
82 + -e '/i810_/d' \
83 + src/ddcpci/main.c || die
84 + fi
85 +
86 + ## Save for a rainy day or future patching
87 + touch config.rpath ABOUT-NLS
88 + eautoreconf
89 + intltoolize --force || die "intltoolize failed"
90 +}
91 +
92 +src_configure() {
93 + # amdadl broken, bug #527268
94 + econf \
95 + --htmldir='$(datarootdir)'/doc/${PF}/html \
96 + --disable-gnome-applet \
97 + --disable-amdadl \
98 + $(use_enable doc) \
99 + $(use_enable gtk gnome) \
100 + $(use_enable nls) \
101 + $(use_enable pci ddcpci) \
102 + $(use_enable static-libs static)
103 +}
104 +
105 +src_install() {
106 + default
107 + use static-libs || find "${ED}" -name '*.la' -delete
108 +}
109
110 diff --git a/app-misc/ddccontrol/ddccontrol-0.4.4_p20180123.ebuild b/app-misc/ddccontrol/ddccontrol-0.4.4_p20180123.ebuild
111 new file mode 100644
112 index 00000000000..ef19bb42b26
113 --- /dev/null
114 +++ b/app-misc/ddccontrol/ddccontrol-0.4.4_p20180123.ebuild
115 @@ -0,0 +1,78 @@
116 +# Copyright 1999-2020 Gentoo Authors
117 +# Distributed under the terms of the GNU General Public License v2
118 +
119 +EAPI=5
120 +
121 +inherit eutils autotools
122 +
123 +DESCRIPTION="DDCControl allows control of monitor parameters via DDC"
124 +HOMEPAGE="http://ddccontrol.sourceforge.net/"
125 +COMMIT_ID="7c74181ed03839fb91e36c6012784cfce2ebe1a5"
126 +MY_PV=${COMMIT_ID:-${PV}}
127 +SRC_URI="https://github.com/ddccontrol/ddccontrol/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
128 +
129 +LICENSE="GPL-2"
130 +SLOT="0"
131 +KEYWORDS="~amd64 ~ppc ~x86"
132 +IUSE="doc gtk nls +pci static-libs"
133 +S=${WORKDIR}/${PN}-${COMMIT_ID}
134 +
135 +RDEPEND="app-misc/ddccontrol-db
136 + dev-libs/libxml2:2
137 + app-arch/xz-utils
138 + gtk? ( x11-libs/gtk+:2 )
139 + nls? ( sys-devel/gettext )
140 + pci? ( sys-apps/pciutils )"
141 +DEPEND="${RDEPEND}
142 + dev-perl/XML-Parser
143 + dev-util/intltool
144 + sys-kernel/linux-headers
145 + doc? (
146 + >=app-text/docbook-xsl-stylesheets-1.65.1
147 + >=dev-libs/libxslt-1.1.6
148 + app-text/htmltidy
149 + )"
150 +
151 +src_prepare() {
152 + sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #467574
153 + sed -i '/;Application/d' src/gddccontrol/gddccontrol.desktop.in || die
154 +
155 + # ppc/ppc64 do not have inb/outb/ioperm
156 + # they also do not have (sys|asm)/io.h
157 + if ! use amd64 && ! use x86 ; then
158 + local card
159 + for card in sis intel810 ; do
160 + sed -r -i \
161 + -e "/${card}.Po/d" \
162 + -e "s~${card}[^[:space:]]*~ ~g" \
163 + src/ddcpci/Makefile.{am,ini} || die
164 + done
165 + sed -i \
166 + -e '/sis_/d' \
167 + -e '/i810_/d' \
168 + src/ddcpci/main.c || die
169 + fi
170 +
171 + ## Save for a rainy day or future patching
172 + touch config.rpath ABOUT-NLS
173 + eautoreconf
174 + intltoolize --force || die "intltoolize failed"
175 +}
176 +
177 +src_configure() {
178 + # amdadl broken, bug #527268
179 + econf \
180 + --htmldir='$(datarootdir)'/doc/${PF}/html \
181 + --disable-gnome-applet \
182 + --disable-amdadl \
183 + $(use_enable doc) \
184 + $(use_enable gtk gnome) \
185 + $(use_enable nls) \
186 + $(use_enable pci ddcpci) \
187 + $(use_enable static-libs static)
188 +}
189 +
190 +src_install() {
191 + default
192 + use static-libs || find "${ED}" -name '*.la' -delete
193 +}