commit:     84fec56d8b2e68e251d409ce57a48bac8d970897
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  3 23:11:51 2020 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Aug  3 23:12:41 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84fec56d

app-misc/ddccontrol: bump

Closes: https://bugs.gentoo.org/show_bug.cgi?id=521082
Closes: https://bugs.gentoo.org/show_bug.cgi?id=707184
Closes: https://bugs.gentoo.org/show_bug.cgi?id=729556
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 app-misc/ddccontrol/Manifest                       |  1 +
 .../ddccontrol/ddccontrol-0.4.4_p20200630.ebuild   | 80 ++++++++++++++++++++++
 2 files changed, 81 insertions(+)

diff --git a/app-misc/ddccontrol/Manifest b/app-misc/ddccontrol/Manifest
index baf4a8ecc8b..5f850579a23 100644
--- a/app-misc/ddccontrol/Manifest
+++ b/app-misc/ddccontrol/Manifest
@@ -1,3 +1,4 @@
 DIST ddccontrol-0.4.2_p20140105.tar.gz 177771 BLAKE2B 
eaaef394a6e9240d1742cc7fbd4ed80ff58315713d3977f8bd1c64f09465fb6a6f9cfb6ccb49e3190291256b6c816512128b95e2dfa16f31e8fadc2aa9367457
 SHA512 
7a28e9b81ee14e0431c57d372c8d43f861f61c35b441111e1f42d1aa62c333b0cc6a101dcb39d30e9661aaa85a02d755e4adef3a9b20a6952e1599e3ac12c72f
 DIST ddccontrol-0.4.4.tar.gz 164389 BLAKE2B 
480b712fc5911fde35a55ff8602866888850edfd6366bf0fb78ac3c726afed7745975b70c3359ae81c2583506ec1b2a2fc3c8a7aab9e8032f16bf27612430084
 SHA512 
6bc5587bc790492f13c677bd7a48f5ddbaa42f680c56c2fa18488ba5d322b853f6fb520c1317415a20a5df03c24c06edddb5e777d6fb34a34ee459170ae92119
 DIST ddccontrol-0.4.4_p20180123.tar.gz 165833 BLAKE2B 
d1af2e5f2d78bb9d8cb817e8f2666f70c5fc431a3a535931ea91fef5a2e9500e20e989d24d4cdea4a1c83631df120071bfbf845d342b1e826760f622c9dc5844
 SHA512 
c49a37e6231f0002a1dd387e2f2f0e1e4f989406bc84320011a55f596c8d1d7e0f094c8ed574db30fd0546fde64c8bd16350412cd4f64cc83b8d44a5469afe1d
+DIST ddccontrol-0.4.4_p20200630.tar.gz 173792 BLAKE2B 
7a7ef330eb471f1cbddbfd90745e212a8a66f4be6cc6a4ccb8014c41498a86a09e4bc0226a300201102c202da37c0f4b8020aa88f08b5e2acaa92ac0dc2971b6
 SHA512 
7aaadf98eaf24d4b040073dce6f469e6e4aaae1efde0e8f988fb9c5fb99b776b1836573c069b9d8f12eaa724d3b39df5d4f247aa47ca2b7911dc9a9df727a50a

diff --git a/app-misc/ddccontrol/ddccontrol-0.4.4_p20200630.ebuild 
b/app-misc/ddccontrol/ddccontrol-0.4.4_p20200630.ebuild
new file mode 100644
index 00000000000..2f7c7e8748e
--- /dev/null
+++ b/app-misc/ddccontrol/ddccontrol-0.4.4_p20200630.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit eutils autotools
+
+DESCRIPTION="DDCControl allows control of monitor parameters via DDC"
+HOMEPAGE="http://ddccontrol.sourceforge.net/";
+COMMIT_ID="f3d003f63aaa0407d3147b04848e0722f78695d5"
+MY_PV=${COMMIT_ID:-${PV}}
+SRC_URI="https://github.com/ddccontrol/ddccontrol/archive/${MY_PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc gtk nls +pci static-libs"
+S=${WORKDIR}/${PN}-${COMMIT_ID}
+
+RDEPEND="app-misc/ddccontrol-db
+       dev-libs/libxml2:2
+       app-arch/xz-utils
+       gtk? ( x11-libs/gtk+:2 )
+       nls? ( sys-devel/gettext )
+       pci? ( sys-apps/pciutils )"
+DEPEND="${RDEPEND}
+       dev-perl/XML-Parser
+       dev-util/intltool
+       sys-kernel/linux-headers
+       doc? (
+               >=app-text/docbook-xsl-stylesheets-1.65.1
+               >=dev-libs/libxslt-1.1.6
+               app-text/htmltidy
+       )"
+
+src_prepare() {
+       sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die 
#467574
+       sed -i '/;Application/d' src/gddccontrol/gddccontrol.desktop.in || die
+
+       # ppc/ppc64 do not have inb/outb/ioperm
+       # they also do not have (sys|asm)/io.h
+       if ! use amd64 && ! use x86 ; then
+               local card
+               for card in sis intel810 ; do
+                       sed -r -i \
+                               -e "/${card}.Po/d" \
+                               -e "s~${card}[^[:space:]]*~ ~g" \
+                               src/ddcpci/Makefile.{am,ini} || die
+               done
+               sed -i \
+                       -e '/sis_/d' \
+                       -e '/i810_/d' \
+                       src/ddcpci/main.c || die
+       fi
+
+       eapply_user
+
+       ## Save for a rainy day or future patching
+       touch config.rpath ABOUT-NLS
+       eautoreconf
+       intltoolize --force || die "intltoolize failed"
+}
+
+src_configure() {
+       # amdadl broken, bug #527268
+       econf \
+               --htmldir='$(datarootdir)'/doc/${PF}/html \
+               --disable-gnome-applet \
+               --disable-amdadl \
+               $(use_enable doc) \
+               $(use_enable gtk gnome) \
+               $(use_enable nls) \
+               $(use_enable pci ddcpci) \
+               $(use_enable static-libs static)
+}
+
+src_install() {
+       default
+       use static-libs || find "${ED}" -name '*.la' -delete
+}

Reply via email to