summaryrefslogtreecommitdiff
path: root/app-misc/ddccontrol
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/ddccontrol')
-rw-r--r--app-misc/ddccontrol/Manifest6
-rw-r--r--app-misc/ddccontrol/ddccontrol-0.6.0.ebuild2
-rw-r--r--app-misc/ddccontrol/ddccontrol-0.6.1.ebuild85
-rw-r--r--app-misc/ddccontrol/metadata.xml1
4 files changed, 90 insertions, 4 deletions
diff --git a/app-misc/ddccontrol/Manifest b/app-misc/ddccontrol/Manifest
index 55bf76c11799..1d395afae960 100644
--- a/app-misc/ddccontrol/Manifest
+++ b/app-misc/ddccontrol/Manifest
@@ -1,3 +1,5 @@
DIST ddccontrol-0.6.0.tar.gz 180376 BLAKE2B d844f03ae4843a710a3a7143b1270656202c261b5e412822c49c2096c150052ddb6747b62f7c1d2404cffeb13af5ed604be915061b3fd339c8dcf66473bbd791 SHA512 49e857e8ef8f2ba87dc51056b9511ce55f3e6471222cd9171a324e2ee179b8c96a8f4d90c63bb379260ccc8e1d9653964f90748d6589d298ff2bbe6982efd3e2
-EBUILD ddccontrol-0.6.0.ebuild 1895 BLAKE2B 8b7b558478b93f92fbe731d98649c37529d2122f09bb0006a6969be5592e2528d5d0e8a1db73e9efe84cd4fef4f23f51c8205984e1e515921931f7f23b4ccabe SHA512 578f26d6a9cb368c2c7e3b81fc5b69725af153f765aaa8f04d83c46023e2b021bf539a73d7e774479adbeac968a559aa74e39acfb51f00aef3bbd0a13970d302
-MISC metadata.xml 418 BLAKE2B 0c4f8c520b2ba661bfa763de83a97fe7c1dba5826633e42f03efebdbf9c96b5989ff59068111c9d278017b3942abbff0577217d7c2180c005fc0bc725c50d8b4 SHA512 54b3ebae0357cf2f3e2d81bb493dac58b7c23fe2b0be237128d94a9dcc2ec36c7d782b2cf0979cf15a3c9fee22cf9a4ccd5c30a4798a5c55826d9b2813abc67f
+DIST ddccontrol-0.6.1.tar.gz 180407 BLAKE2B fba90502925320f3eb20e71498456e8b1135af9d67a78a74ec7b28d3d49a2841fcb77806a983c4231e8e97d07ef7fdf29b36145316f130ed8a529ef39ed4d104 SHA512 abc8940dcd651c25e1030bd4f5ae59774cfa08b22352a653140ec924cbcaa93855473385575636ec0cd51ea5f1871e2331ade592846eafddb7eae99f55ff1164
+EBUILD ddccontrol-0.6.0.ebuild 1901 BLAKE2B 472030b31bd03e117076f6983278f6b6ceda215d4b7e85218a7aa438466ead6b3f20f11da0cd6aa04ea2fdfab34c1e716def15a7f1893be73c322c7c4cea7686 SHA512 fb306829a2b02dddb9f5e797c434bd8e58feb786e320db8149102d73147247c2f5fe92d66e6e8b01c16a0bab688621851ea6ba3fbc87b8f22fda48a44d4f5c91
+EBUILD ddccontrol-0.6.1.ebuild 1901 BLAKE2B 472030b31bd03e117076f6983278f6b6ceda215d4b7e85218a7aa438466ead6b3f20f11da0cd6aa04ea2fdfab34c1e716def15a7f1893be73c322c7c4cea7686 SHA512 fb306829a2b02dddb9f5e797c434bd8e58feb786e320db8149102d73147247c2f5fe92d66e6e8b01c16a0bab688621851ea6ba3fbc87b8f22fda48a44d4f5c91
+MISC metadata.xml 361 BLAKE2B 7878bf4653e703c0043af5c6649635fe8592a882378e681e9394b2f076ca50090e47174030a61a0426039448ce6a71115d5b67387aacd8eb96977209c9661b23 SHA512 8cbbe272d36870715ef58f5277c1a9d041b543ef16dc1ec0a19faf4b6cf1fff37088f29e183c1916b3f3d584c4305ed7c2e3cc38dff8f7198a3e68ed06bc9a2e
diff --git a/app-misc/ddccontrol/ddccontrol-0.6.0.ebuild b/app-misc/ddccontrol/ddccontrol-0.6.0.ebuild
index f69c03ac286d..c784c201fd5c 100644
--- a/app-misc/ddccontrol/ddccontrol-0.6.0.ebuild
+++ b/app-misc/ddccontrol/ddccontrol-0.6.0.ebuild
@@ -6,7 +6,7 @@ EAPI=8
inherit autotools
DESCRIPTION="Control monitor parameters, like brightness, contrast, RGB color levels via DDC"
-HOMEPAGE="https://ddccontrol.sourceforge.net/"
+HOMEPAGE="https://github.com/ddccontrol/ddccontrol/"
SRC_URI="https://github.com/ddccontrol/ddccontrol/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2+"
diff --git a/app-misc/ddccontrol/ddccontrol-0.6.1.ebuild b/app-misc/ddccontrol/ddccontrol-0.6.1.ebuild
new file mode 100644
index 000000000000..c784c201fd5c
--- /dev/null
+++ b/app-misc/ddccontrol/ddccontrol-0.6.1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Control monitor parameters, like brightness, contrast, RGB color levels via DDC"
+HOMEPAGE="https://github.com/ddccontrol/ddccontrol/"
+SRC_URI="https://github.com/ddccontrol/ddccontrol/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc gtk nls +pci static-libs"
+
+RDEPEND="app-misc/ddccontrol-db
+ dev-libs/glib:2
+ dev-libs/libxml2:2
+ app-arch/xz-utils
+ gtk? (
+ dev-libs/atk
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/harfbuzz:=
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:2
+ x11-libs/pango
+ )
+ pci? ( sys-apps/pciutils )"
+DEPEND="${RDEPEND}"
+BDEPEND="dev-perl/XML-Parser
+ dev-util/gdbus-codegen
+ dev-util/intltool
+ sys-kernel/linux-headers
+ doc? (
+ >=app-text/docbook-xsl-stylesheets-1.65.1
+ app-text/htmltidy
+ >=dev-libs/libxslt-1.1.6
+ )
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ # 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
+
+ default
+
+ ## 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
+}
diff --git a/app-misc/ddccontrol/metadata.xml b/app-misc/ddccontrol/metadata.xml
index ea7adc5a83f5..0351d3bbfd11 100644
--- a/app-misc/ddccontrol/metadata.xml
+++ b/app-misc/ddccontrol/metadata.xml
@@ -7,6 +7,5 @@
</use>
<upstream>
<remote-id type="github">ddccontrol/ddccontrol</remote-id>
- <remote-id type="sourceforge">ddccontrol</remote-id>
</upstream>
</pkgmetadata>