Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/serdisplib/
Date: Sun, 18 Aug 2019 13:11:59
Message-Id: 1566133897.0fc3f0d3bd5aa70b282165749a03be8a0866155d.bman@gentoo
1 commit: 0fc3f0d3bd5aa70b282165749a03be8a0866155d
2 Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
3 AuthorDate: Sat Aug 17 21:11:12 2019 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 18 13:11:37 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fc3f0d3
7
8 dev-libs/serdisplib: require threads for framebuffer driver
9
10 If you don't enable threads for the framebuffer driver, compilation will
11 fail. Also bumped to EAPI=7.
12
13 Package-Manager: Portage-2.3.71, Repoman-2.3.17
14 Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
15 Closes: https://github.com/gentoo/gentoo/pull/12736
16 Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
17
18 dev-libs/serdisplib/serdisplib-2.01-r1.ebuild | 100 ++++++++++++++++++++++++++
19 1 file changed, 100 insertions(+)
20
21 diff --git a/dev-libs/serdisplib/serdisplib-2.01-r1.ebuild b/dev-libs/serdisplib/serdisplib-2.01-r1.ebuild
22 new file mode 100644
23 index 00000000000..8a7fa4dd1e1
24 --- /dev/null
25 +++ b/dev-libs/serdisplib/serdisplib-2.01-r1.ebuild
26 @@ -0,0 +1,100 @@
27 +# Copyright 1999-2019 Gentoo Authors
28 +# Distributed under the terms of the GNU General Public License v2
29 +
30 +EAPI=7
31 +
32 +inherit udev
33 +
34 +DESCRIPTION="Library to drive several displays with built-in controllers or display modules"
35 +HOMEPAGE="http://serdisplib.sourceforge.net"
36 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
37 +
38 +LICENSE="GPL-2"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~ppc ~x86"
41 +IUSE="threads tools"
42 +
43 +# Define the list of valid lcd devices.
44 +IUSE_LCD_DEVICES=(
45 + acoolsdcm ddusbt directgfx displaylink framebuffer glcd2usb
46 + goldelox i2c ks0108 l4m lc7981 lh155 nokcol pcd8544
47 + remote rs232 sed133x sed153x sed156x ssdoled stv8105 t6963
48 +)
49 +
50 +# Add supported drivers from 'IUSE_LCD_DEVICES' to 'IUSE' and 'REQUIRED_USE'
51 +IUSE+=" $(printf 'lcd_devices_%s ' ${IUSE_LCD_DEVICES[@]}) "
52 +REQUIRED_USE+="
53 + || ( $(printf 'lcd_devices_%s ' ${IUSE_LCD_DEVICES[@]}) )
54 + lcd_devices_framebuffer? ( threads )
55 +"
56 +
57 +# Specific drivers will need some features to be enabled
58 +RDEPEND="
59 + media-libs/gd[jpeg,png,tiff]
60 + lcd_devices_acoolsdcm? ( virtual/libusb:1= )
61 + lcd_devices_directgfx? ( media-libs/libsdl )
62 + lcd_devices_displaylink? ( x11-libs/libdlo )
63 + lcd_devices_glcd2usb? ( virtual/libusb:1= )
64 +"
65 +
66 +DEPEND="${RDEPEND}"
67 +
68 +DOCS=( "AUTHORS" "BUGS" "DOCS" "HISTORY" "PINOUTS" "README" "TODO" )
69 +
70 +PATCHES=( "${FILESDIR}/use-destdir.patch" "${FILESDIR}/disable-static-build.patch" )
71 +
72 +src_prepare() {
73 + default
74 +
75 + # Fix Makefile, as it will fail, when USE="tools" is not set
76 + if ! use tools; then
77 + sed -i -e '/$(INSTALL_PROGRAM) $(PROGRAMS)/d' src/Makefile.in || die
78 + fi
79 +
80 + # Fix QA-Warning "QA Notice: pkg-config files with wrong LDFLAGS detected"
81 + sed -i -e '/@LDFLAGS@/d' serdisplib.pc.in || die
82 +}
83 +
84 +src_configure() {
85 + # Enable all users enabled lcd devices
86 + local myeconfargs_lcd_devices
87 + for lcd_device in ${IUSE_LCD_DEVICES[@]}; do
88 + if use lcd_devices_${lcd_device}; then
89 + myeconfargs_lcd_devices+=",${lcd_device}"
90 + fi
91 + done
92 +
93 + local use_usb="--disable-libusb"
94 + if use lcd_devices_acoolsdcm || use lcd_devices_glcd2usb; then
95 + use_usb="--enable-libusb"
96 + fi
97 +
98 + local myeconfargs=(
99 + $(use_enable lcd_devices_directgfx libSDL)
100 + $(use_enable lcd_devices_displaylink deprecated)
101 + $(use_enable lcd_devices_displaylink libdlo)
102 + $(use_enable lcd_devices_remote experimental)
103 + $(use_enable threads pthread)
104 + $(use_enable tools)
105 + ${use_usb}
106 + --disable-dynloading
107 + --disable-statictools
108 + --with-drivers="${myeconfargs_lcd_devices#,}"
109 + )
110 +
111 + econf "${myeconfargs[@]}"
112 +}
113 +
114 +src_install() {
115 + default
116 +
117 + udev_dorules 90-libserdisp.rules
118 +}
119 +
120 +pkg_postinst() {
121 + udev_reload
122 +}
123 +
124 +pkg_postrm() {
125 + udev_reload
126 +}