summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2019-12-24 18:40:10 +0100
committerDavid Seifert <soap@gentoo.org>2019-12-24 18:40:10 +0100
commit4590ec2b93440bd8915ec61d156ca14fb96d00a0 (patch)
tree2b79a09209ee511cad441efa6803374aadcc9a25 /x11-misc/i855crt
parentx11-misc/iconbox: Port to EAPI 7 (diff)
downloadgentoo-4590ec2b93440bd8915ec61d156ca14fb96d00a0.tar.gz
gentoo-4590ec2b93440bd8915ec61d156ca14fb96d00a0.tar.bz2
gentoo-4590ec2b93440bd8915ec61d156ca14fb96d00a0.zip
x11-misc/i855crt: Port to EAPI 7
Package-Manager: Portage-2.3.82, Repoman-2.3.20 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'x11-misc/i855crt')
-rw-r--r--x11-misc/i855crt/files/i855crt-0.4-makefile.patch16
-rw-r--r--x11-misc/i855crt/i855crt-0.4-r1.ebuild33
2 files changed, 33 insertions, 16 deletions
diff --git a/x11-misc/i855crt/files/i855crt-0.4-makefile.patch b/x11-misc/i855crt/files/i855crt-0.4-makefile.patch
new file mode 100644
index 000000000000..e7deffb4d30a
--- /dev/null
+++ b/x11-misc/i855crt/files/i855crt-0.4-makefile.patch
@@ -0,0 +1,16 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,11 +1,6 @@
+-i855crt: i855crt.o vmodes.o
+- gcc $(LDFLAGS) -o i855crt i855crt.o vmodes.o -L /usr/X11R6/lib -lXext -lXv
++LDLIBS = -lXv -lX11
+
+-i855crt.o: i855crt.c i855crt.h vmodes.h hw.h
+- gcc $(CFLAGS) -c i855crt.c
+-
+-vmodes.o: vmodes.c vmodes.h
+- gcc $(CFLAGS) -c vmodes.c
++i855crt: vmodes.o
+
+ clean:
+ rm *.o -f
diff --git a/x11-misc/i855crt/i855crt-0.4-r1.ebuild b/x11-misc/i855crt/i855crt-0.4-r1.ebuild
index 1b8581227cd6..25df8327c91c 100644
--- a/x11-misc/i855crt/i855crt-0.4-r1.ebuild
+++ b/x11-misc/i855crt/i855crt-0.4-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=4
+EAPI=7
-inherit eutils toolchain-funcs
+inherit toolchain-funcs
DESCRIPTION="Intel Montara 855GM CRT out auxiliary driver"
HOMEPAGE="http://i855crt.sourceforge.net/"
@@ -12,30 +12,31 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
-IUSE=""
-DEPEND="
+RDEPEND="
x11-libs/libX11
- x11-libs/libXv
-"
-RDEPEND="${DEPEND}"
+ x11-libs/libXv"
+DEPEND="${RDEPEND}"
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-i915support.diff
+PATCHES=(
+ "${FILESDIR}"/${PN}-i915support.diff
+ "${FILESDIR}"/${PN}-0.4-makefile.patch
+)
- # respect CC, fix underlinking
- sed -i Makefile \
- -e 's|gcc|$(CC)|g;/LDFLAGS/{s|$| -lX11|g};s|-lXext||g' \
- || die
- export LIBS="-lX11"
- tc-export CC
+src_prepare() {
+ default
# upstream ships it with the binary, we want to make sure we compile it
emake clean
}
+src_configure() {
+ tc-export CC
+}
+
src_install() {
dobin i855crt
insinto /etc
doins i855crt.conf
+ einstalldocs
}