summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-03-13 04:33:41 +0000
committerSam James <sam@gentoo.org>2024-03-13 04:35:02 +0000
commitf72870d9ad8e75d818224f321ffaa1e7d0c7ae1a (patch)
tree872f89ad724e1c78b91dec99a611da29855e1715 /app-misc/ddccontrol
parentgames-emulation/gnuboy: filter LTO, no-SA (diff)
downloadgentoo-f72870d9ad8e75d818224f321ffaa1e7d0c7ae1a.tar.gz
gentoo-f72870d9ad8e75d818224f321ffaa1e7d0c7ae1a.tar.bz2
gentoo-f72870d9ad8e75d818224f321ffaa1e7d0c7ae1a.zip
app-misc/ddccontrol: add 1.0.3
* Drop XML-Parser dep (guessing it was added as workaround for intltool issues) * Put linux-headers in DEPEND where it belongs, not BDEPEND * USE=gtk -> USE=gui per QA policy * Drop USE=static-libs (nothing uses it here) Closes: https://bugs.gentoo.org/920454 Closes: https://bugs.gentoo.org/923582 Closes: https://bugs.gentoo.org/924411 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-misc/ddccontrol')
-rw-r--r--app-misc/ddccontrol/Manifest1
-rw-r--r--app-misc/ddccontrol/ddccontrol-1.0.3.ebuild92
2 files changed, 93 insertions, 0 deletions
diff --git a/app-misc/ddccontrol/Manifest b/app-misc/ddccontrol/Manifest
index e8e6f83e74ad..bbe05a064cac 100644
--- a/app-misc/ddccontrol/Manifest
+++ b/app-misc/ddccontrol/Manifest
@@ -1,2 +1,3 @@
DIST ddccontrol-0.6.0.tar.gz 180376 BLAKE2B d844f03ae4843a710a3a7143b1270656202c261b5e412822c49c2096c150052ddb6747b62f7c1d2404cffeb13af5ed604be915061b3fd339c8dcf66473bbd791 SHA512 49e857e8ef8f2ba87dc51056b9511ce55f3e6471222cd9171a324e2ee179b8c96a8f4d90c63bb379260ccc8e1d9653964f90748d6589d298ff2bbe6982efd3e2
DIST ddccontrol-0.6.1.tar.gz 180407 BLAKE2B fba90502925320f3eb20e71498456e8b1135af9d67a78a74ec7b28d3d49a2841fcb77806a983c4231e8e97d07ef7fdf29b36145316f130ed8a529ef39ed4d104 SHA512 abc8940dcd651c25e1030bd4f5ae59774cfa08b22352a653140ec924cbcaa93855473385575636ec0cd51ea5f1871e2331ade592846eafddb7eae99f55ff1164
+DIST ddccontrol-1.0.3.tar.gz 175621 BLAKE2B f3a2f477f1e2553da0069da020fa49e06ab4be5d13f2c238fa0e4e800d7632490ed91e3f3fcb234b90bdff9ea03a0a8c32613153ae45ff450b4bac4ff568e96b SHA512 5e49217c8560245d53d5a2dc71cda5683698e798bd1f75ca69e445b68b33d2fb826ff05dced1c0a40f2baf8fd26396c78d1c1bf6f95f30287da6d5b149bb98e2
diff --git a/app-misc/ddccontrol/ddccontrol-1.0.3.ebuild b/app-misc/ddccontrol/ddccontrol-1.0.3.ebuild
new file mode 100644
index 000000000000..6cbf5efddb67
--- /dev/null
+++ b/app-misc/ddccontrol/ddccontrol-1.0.3.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2024 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 gui nls +pci"
+
+# Upstream doesn't seem to care about tests: failures for lack of translations,
+# and no real test targets.
+RESTRICT='test'
+
+RDEPEND="
+ app-arch/xz-utils
+ app-misc/ddccontrol-db
+ dev-libs/glib:2
+ dev-libs/libxml2:2
+ gui? (
+ >=app-accessibility/at-spi2-core-2.46.0
+ 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}
+ sys-kernel/linux-headers
+"
+BDEPEND="
+ dev-util/gdbus-codegen
+ dev-util/intltool
+ 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 || die
+ eautoreconf
+ intltoolize --force || die "intltoolize failed"
+}
+
+src_configure() {
+ # amdadl broken, bug #527268
+ econf \
+ --htmldir='$(datarootdir)'/doc/${PF}/html \
+ --disable-amdadl \
+ $(use_enable doc) \
+ $(use_enable gui gnome) \
+ $(use_enable nls) \
+ $(use_enable pci ddcpci)
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -delete || die
+}