summaryrefslogtreecommitdiff
path: root/app-misc/acdctl
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-31 15:12:39 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-31 15:12:39 +0100
commit2cfae1fadeca2d0c51a301318c96c2cf5073eb6f (patch)
tree711cd9c9044cc9edd306df0c2c17f06558024a29 /app-misc/acdctl
parent100ce16c6fb75a4911f388aa77f860324607c869 (diff)
gentoo auto-resync : 31:07:2022 - 15:12:39
Diffstat (limited to 'app-misc/acdctl')
-rw-r--r--app-misc/acdctl/Manifest4
-rw-r--r--app-misc/acdctl/acdctl-1.1-r2.ebuild (renamed from app-misc/acdctl/acdctl-1.1-r1.ebuild)17
-rw-r--r--app-misc/acdctl/files/acdctl-1.1-makefile.patch13
-rw-r--r--app-misc/acdctl/files/acdctl-1.1-warnings.patch20
4 files changed, 50 insertions, 4 deletions
diff --git a/app-misc/acdctl/Manifest b/app-misc/acdctl/Manifest
index 5570099003db..1e10c3a8da63 100644
--- a/app-misc/acdctl/Manifest
+++ b/app-misc/acdctl/Manifest
@@ -1,3 +1,5 @@
+AUX acdctl-1.1-makefile.patch 209 BLAKE2B 121f18c6a0e871e58851d6f9a4f537c665ff4519cc836675b1ad66af97385a84c697fd2f34ae79e2459d676e6fa1a39cabea28d6abd6139c1ec5de03a5965b00 SHA512 204098e675dd9a76882d027f4e20e944d1f1e559474af589b2776832e4172984c0505fd7bef4ef59dc194a755d0e87a7c952fe8ba594004afbe939defdf08eb9
+AUX acdctl-1.1-warnings.patch 476 BLAKE2B 5a39976931d98ac613ce6cce028dff59b11ed740ae2221a9668cc09760d757fe8db48a1acca45bdd36c11d8f2dff9edc963379c0eba138c1f02e37e84784c132 SHA512 e9214ee9d106e62c825294e4c8789f2550e717f94d05b3790fdac9df615601c3ab7839907672bb7032a45ae51b390aaaf33284763d30034f43730052ea1aae75
DIST acdctl-1.1.tar.bz2 10827 BLAKE2B d52f1df87844ecfd5fe361b43d20ddef9d10b1f53cbd692540a869e1f26974abd8e758167d781ce8ebdc17cb09548ae9aeb4ebe4553bb55a2fd14280874127bb SHA512 3a41aba7b6385f4d823694bfd387036759b7d47355f2d69e92de9e80bb9491aeaf5e060cf6695ae5ec23ba7580e203c13210b7d2bc5aaf796adf52925557043d
-EBUILD acdctl-1.1-r1.ebuild 464 BLAKE2B 802d011aecd6337bdba2971e0599ec11cbdee5a4c5c0046f5232f3360fe43810b1e8e607358adf39f79e0350fe64a34469bc4f7f2483c1aa177be70f3cf531fb SHA512 666cd76bdbcb7cd6215f352bf4473ee2b4f839c1de47ac146cca5795ff9f4fcd378a7e47ba900b7966ae58d341c4c72c7d72d60e8f3a03656b14831049f33ed4
+EBUILD acdctl-1.1-r2.ebuild 603 BLAKE2B f1efcd45d86765ac4b79fbd9ecddd69d014ac286e4c94d6be6e7d7c3b334cc89d6726fa2d96401c95b8b40cad010b5bab7a424351ae44ed2b9689be2ff9e0255 SHA512 78e085de3ebc096a7ce520480a9fe6631f234b423c57437e0d31b23d0986c1a518760f2e2b603a616eac855556a4745e482bd67f62e86008c39aebc5a5c84fc2
MISC metadata.xml 374 BLAKE2B 3593fdf25daa81b4a951157c71d8996b006cd8cff52c5cfa9763c08862361abc4f7775959137b80b21c10c81863bfeb574c74efc72b3d962724373d82996427d SHA512 cf7e818fe1c642e90f3c82052e8f5dc95eb7852585b2ea2d1e21524985dd1a8641350e04a5d41b702f337b44505dda0c0d51c8f7fb7e95e6de74187361f0142d
diff --git a/app-misc/acdctl/acdctl-1.1-r1.ebuild b/app-misc/acdctl/acdctl-1.1-r2.ebuild
index bde44c11ce75..df2784238b54 100644
--- a/app-misc/acdctl/acdctl-1.1-r1.ebuild
+++ b/app-misc/acdctl/acdctl-1.1-r2.ebuild
@@ -1,7 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=8
+
+inherit toolchain-funcs
DESCRIPTION="Apple Cinema Display Control"
HOMEPAGE="https://web.archive.org/web/20090725222711/http://technocage.com:80/~caskey/acdctl/"
@@ -14,7 +16,16 @@ KEYWORDS="ppc"
RDEPEND="virtual/libusb:0"
DEPEND="${RDEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${P}-makefile.patch
+ "${FILESDIR}"/${P}-warnings.patch
+)
+
+src_configure() {
+ tc-export CC
+}
+
src_install() {
+ dobin acdctl
einstalldocs
- dobin "${PN}"
}
diff --git a/app-misc/acdctl/files/acdctl-1.1-makefile.patch b/app-misc/acdctl/files/acdctl-1.1-makefile.patch
new file mode 100644
index 000000000000..ac63da0c5e1d
--- /dev/null
+++ b/app-misc/acdctl/files/acdctl-1.1-makefile.patch
@@ -0,0 +1,13 @@
+--- a/Makefile
++++ b/Makefile
+@@ -25,8 +25,8 @@
+ #****************************************************************************
+
+
+-CFLAGS=-Wall
+-LDFLAGS=-lusb
++CFLAGS += -Wall
++LDLIBS = -lusb
+
+ all:acdctl
+
diff --git a/app-misc/acdctl/files/acdctl-1.1-warnings.patch b/app-misc/acdctl/files/acdctl-1.1-warnings.patch
new file mode 100644
index 000000000000..e86d80918b4a
--- /dev/null
+++ b/app-misc/acdctl/files/acdctl-1.1-warnings.patch
@@ -0,0 +1,20 @@
+--- a/acdctl.c
++++ b/acdctl.c
+@@ -130,7 +130,7 @@
+ next->vendor, next->product, next->description, next->year);
+ next++;
+ }
+- printf("\n%d displays supported\n", displayCount);
++ printf("\n%ld displays supported\n", displayCount);
+ }
+
+ void help(const char* program_name) {
+@@ -277,7 +277,7 @@
+ }
+
+ void found_display(int index, struct usb_device *dev) {
+- int ret;
++ int ret = 0;
+ usb_dev_handle* display_device = usb_open(dev);
+
+ if(display_device) {