1 |
commit: 9bd0e1cc0640bfb849b020f63a85c4dd94993d86 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 10 12:37:04 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 10 13:17:05 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bd0e1cc |
7 |
|
8 |
dev-libs/serdisplib: add dpfax and vssdcp |
9 |
|
10 |
Adding two new drivers, which are supported by dev-libs/serdisplib. |
11 |
Also set lcd_devices_directgfx als default. |
12 |
|
13 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
14 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
15 |
|
16 |
dev-libs/serdisplib/serdisplib-2.02-r1.ebuild | 107 ++++++++++++++++++++++++++ |
17 |
1 file changed, 107 insertions(+) |
18 |
|
19 |
diff --git a/dev-libs/serdisplib/serdisplib-2.02-r1.ebuild b/dev-libs/serdisplib/serdisplib-2.02-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..3703af2d52a |
22 |
--- /dev/null |
23 |
+++ b/dev-libs/serdisplib/serdisplib-2.02-r1.ebuild |
24 |
@@ -0,0 +1,107 @@ |
25 |
+# Copyright 1999-2020 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+inherit udev |
31 |
+ |
32 |
+DESCRIPTION="Library to drive several displays with built-in controllers or display modules" |
33 |
+HOMEPAGE="http://serdisplib.sourceforge.net" |
34 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="GPL-2+" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="amd64 ppc ~ppc64 x86" |
39 |
+IUSE="threads tools" |
40 |
+ |
41 |
+# Define the list of valid lcd devices. |
42 |
+IUSE_LCD_DEVICES=( |
43 |
+ acoolsdcm ddusbt directgfx displaylink dpfax framebuffer glcd2usb |
44 |
+ goldelox i2c ks0108 l4m lc7981 lh155 nokcol pcd8544 remote |
45 |
+ rs232 sed133x sed153x sed156x ssdoled stv8105 t6963 vssdcp |
46 |
+) |
47 |
+ |
48 |
+# Add supported drivers from 'IUSE_LCD_DEVICES' to 'IUSE' and 'REQUIRED_USE'. |
49 |
+# Also enable 'lcd_devices_directgfx' as default. |
50 |
+IUSE+=" $(printf 'lcd_devices_%s ' ${IUSE_LCD_DEVICES[@]}) " |
51 |
+IUSE="${IUSE/lcd_devices_directgfx/+lcd_devices_directgfx}" |
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_dpfax? ( virtual/libusb:1 ) |
64 |
+ lcd_devices_glcd2usb? ( virtual/libusb:1 ) |
65 |
+" |
66 |
+ |
67 |
+DEPEND="${RDEPEND}" |
68 |
+ |
69 |
+DOCS=( "AUTHORS" "BUGS" "DOCS" "HISTORY" "PINOUTS" "README" "TODO" ) |
70 |
+ |
71 |
+PATCHES=( |
72 |
+ "${FILESDIR}/use-destdir.patch" |
73 |
+ "${FILESDIR}/disable-static-build.patch" |
74 |
+) |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ |
79 |
+ # Fix Makefile, as it will fail, when USE="tools" is not set |
80 |
+ if ! use tools; then |
81 |
+ sed -i -e '/$(INSTALL_PROGRAM) $(PROGRAMS)/d' src/Makefile.in || die |
82 |
+ fi |
83 |
+ |
84 |
+ # Fix QA-Warning "QA Notice: pkg-config files with wrong LDFLAGS detected" |
85 |
+ sed -i -e '/@LDFLAGS@/d' serdisplib.pc.in || die |
86 |
+} |
87 |
+ |
88 |
+src_configure() { |
89 |
+ # Enable all users enabled lcd devices |
90 |
+ local myeconfargs_lcd_devices |
91 |
+ for lcd_device in ${IUSE_LCD_DEVICES[@]}; do |
92 |
+ if use lcd_devices_${lcd_device}; then |
93 |
+ myeconfargs_lcd_devices+=",${lcd_device}" |
94 |
+ fi |
95 |
+ done |
96 |
+ |
97 |
+ local use_usb="--disable-libusb" |
98 |
+ if use lcd_devices_acoolsdcm || use lcd_devices_dpfax || use lcd_devices_glcd2usb; then |
99 |
+ use_usb="--enable-libusb" |
100 |
+ fi |
101 |
+ |
102 |
+ local myeconfargs=( |
103 |
+ $(use_enable lcd_devices_directgfx libSDL) |
104 |
+ $(use_enable lcd_devices_displaylink deprecated) |
105 |
+ $(use_enable lcd_devices_displaylink libdlo) |
106 |
+ $(use_enable lcd_devices_remote experimental) |
107 |
+ $(use_enable lcd_devices_vssdcp experimental) |
108 |
+ $(use_enable threads pthread) |
109 |
+ $(use_enable tools) |
110 |
+ ${use_usb} |
111 |
+ --disable-dynloading |
112 |
+ --disable-statictools |
113 |
+ --with-drivers="${myeconfargs_lcd_devices#,}" |
114 |
+ ) |
115 |
+ |
116 |
+ econf "${myeconfargs[@]}" |
117 |
+} |
118 |
+ |
119 |
+src_install() { |
120 |
+ default |
121 |
+ |
122 |
+ udev_dorules 90-libserdisp.rules |
123 |
+} |
124 |
+ |
125 |
+pkg_postinst() { |
126 |
+ udev_reload |
127 |
+} |
128 |
+ |
129 |
+pkg_postrm() { |
130 |
+ udev_reload |
131 |
+} |