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: 1596496361.84fec56d8b2e68e251d409ce57a48bac8d970897.robbat2@gentoo
1 commit: 84fec56d8b2e68e251d409ce57a48bac8d970897
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 3 23:11:51 2020 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 3 23:12:41 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84fec56d
7
8 app-misc/ddccontrol: bump
9
10 Closes: https://bugs.gentoo.org/show_bug.cgi?id=521082
11 Closes: https://bugs.gentoo.org/show_bug.cgi?id=707184
12 Closes: https://bugs.gentoo.org/show_bug.cgi?id=729556
13 Package-Manager: Portage-3.0.1, Repoman-2.3.23
14 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
15
16 app-misc/ddccontrol/Manifest | 1 +
17 .../ddccontrol/ddccontrol-0.4.4_p20200630.ebuild | 80 ++++++++++++++++++++++
18 2 files changed, 81 insertions(+)
19
20 diff --git a/app-misc/ddccontrol/Manifest b/app-misc/ddccontrol/Manifest
21 index baf4a8ecc8b..5f850579a23 100644
22 --- a/app-misc/ddccontrol/Manifest
23 +++ b/app-misc/ddccontrol/Manifest
24 @@ -1,3 +1,4 @@
25 DIST ddccontrol-0.4.2_p20140105.tar.gz 177771 BLAKE2B eaaef394a6e9240d1742cc7fbd4ed80ff58315713d3977f8bd1c64f09465fb6a6f9cfb6ccb49e3190291256b6c816512128b95e2dfa16f31e8fadc2aa9367457 SHA512 7a28e9b81ee14e0431c57d372c8d43f861f61c35b441111e1f42d1aa62c333b0cc6a101dcb39d30e9661aaa85a02d755e4adef3a9b20a6952e1599e3ac12c72f
26 DIST ddccontrol-0.4.4.tar.gz 164389 BLAKE2B 480b712fc5911fde35a55ff8602866888850edfd6366bf0fb78ac3c726afed7745975b70c3359ae81c2583506ec1b2a2fc3c8a7aab9e8032f16bf27612430084 SHA512 6bc5587bc790492f13c677bd7a48f5ddbaa42f680c56c2fa18488ba5d322b853f6fb520c1317415a20a5df03c24c06edddb5e777d6fb34a34ee459170ae92119
27 DIST ddccontrol-0.4.4_p20180123.tar.gz 165833 BLAKE2B d1af2e5f2d78bb9d8cb817e8f2666f70c5fc431a3a535931ea91fef5a2e9500e20e989d24d4cdea4a1c83631df120071bfbf845d342b1e826760f622c9dc5844 SHA512 c49a37e6231f0002a1dd387e2f2f0e1e4f989406bc84320011a55f596c8d1d7e0f094c8ed574db30fd0546fde64c8bd16350412cd4f64cc83b8d44a5469afe1d
28 +DIST ddccontrol-0.4.4_p20200630.tar.gz 173792 BLAKE2B 7a7ef330eb471f1cbddbfd90745e212a8a66f4be6cc6a4ccb8014c41498a86a09e4bc0226a300201102c202da37c0f4b8020aa88f08b5e2acaa92ac0dc2971b6 SHA512 7aaadf98eaf24d4b040073dce6f469e6e4aaae1efde0e8f988fb9c5fb99b776b1836573c069b9d8f12eaa724d3b39df5d4f247aa47ca2b7911dc9a9df727a50a
29
30 diff --git a/app-misc/ddccontrol/ddccontrol-0.4.4_p20200630.ebuild b/app-misc/ddccontrol/ddccontrol-0.4.4_p20200630.ebuild
31 new file mode 100644
32 index 00000000000..2f7c7e8748e
33 --- /dev/null
34 +++ b/app-misc/ddccontrol/ddccontrol-0.4.4_p20200630.ebuild
35 @@ -0,0 +1,80 @@
36 +# Copyright 1999-2020 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +inherit eutils autotools
42 +
43 +DESCRIPTION="DDCControl allows control of monitor parameters via DDC"
44 +HOMEPAGE="http://ddccontrol.sourceforge.net/"
45 +COMMIT_ID="f3d003f63aaa0407d3147b04848e0722f78695d5"
46 +MY_PV=${COMMIT_ID:-${PV}}
47 +SRC_URI="https://github.com/ddccontrol/ddccontrol/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
48 +
49 +LICENSE="GPL-2"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~ppc ~x86"
52 +IUSE="doc gtk nls +pci static-libs"
53 +S=${WORKDIR}/${PN}-${COMMIT_ID}
54 +
55 +RDEPEND="app-misc/ddccontrol-db
56 + dev-libs/libxml2:2
57 + app-arch/xz-utils
58 + gtk? ( x11-libs/gtk+:2 )
59 + nls? ( sys-devel/gettext )
60 + pci? ( sys-apps/pciutils )"
61 +DEPEND="${RDEPEND}
62 + dev-perl/XML-Parser
63 + dev-util/intltool
64 + sys-kernel/linux-headers
65 + doc? (
66 + >=app-text/docbook-xsl-stylesheets-1.65.1
67 + >=dev-libs/libxslt-1.1.6
68 + app-text/htmltidy
69 + )"
70 +
71 +src_prepare() {
72 + sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #467574
73 + sed -i '/;Application/d' src/gddccontrol/gddccontrol.desktop.in || die
74 +
75 + # ppc/ppc64 do not have inb/outb/ioperm
76 + # they also do not have (sys|asm)/io.h
77 + if ! use amd64 && ! use x86 ; then
78 + local card
79 + for card in sis intel810 ; do
80 + sed -r -i \
81 + -e "/${card}.Po/d" \
82 + -e "s~${card}[^[:space:]]*~ ~g" \
83 + src/ddcpci/Makefile.{am,ini} || die
84 + done
85 + sed -i \
86 + -e '/sis_/d' \
87 + -e '/i810_/d' \
88 + src/ddcpci/main.c || die
89 + fi
90 +
91 + eapply_user
92 +
93 + ## Save for a rainy day or future patching
94 + touch config.rpath ABOUT-NLS
95 + eautoreconf
96 + intltoolize --force || die "intltoolize failed"
97 +}
98 +
99 +src_configure() {
100 + # amdadl broken, bug #527268
101 + econf \
102 + --htmldir='$(datarootdir)'/doc/${PF}/html \
103 + --disable-gnome-applet \
104 + --disable-amdadl \
105 + $(use_enable doc) \
106 + $(use_enable gtk gnome) \
107 + $(use_enable nls) \
108 + $(use_enable pci ddcpci) \
109 + $(use_enable static-libs static)
110 +}
111 +
112 +src_install() {
113 + default
114 + use static-libs || find "${ED}" -name '*.la' -delete
115 +}