From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C48DD138334 for ; Sun, 18 Aug 2019 13:11:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0FC36E0AA7; Sun, 18 Aug 2019 13:11:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D7E06E0AA7 for ; Sun, 18 Aug 2019 13:11:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0BF07349DA8 for ; Sun, 18 Aug 2019 13:11:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 33FB2765 for ; Sun, 18 Aug 2019 13:11:55 +0000 (UTC) From: "Aaron Bauman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Aaron Bauman" Message-ID: <1566133897.0fc3f0d3bd5aa70b282165749a03be8a0866155d.bman@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/serdisplib/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/serdisplib/serdisplib-2.01-r1.ebuild X-VCS-Directories: dev-libs/serdisplib/ X-VCS-Committer: bman X-VCS-Committer-Name: Aaron Bauman X-VCS-Revision: 0fc3f0d3bd5aa70b282165749a03be8a0866155d X-VCS-Branch: master Date: Sun, 18 Aug 2019 13:11:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4ded4fb5-797a-42da-93f7-0d197d75e094 X-Archives-Hash: 1f43768d8de082e24cdb4a376a034952 commit: 0fc3f0d3bd5aa70b282165749a03be8a0866155d Author: Conrad Kostecki kostecki com> AuthorDate: Sat Aug 17 21:11:12 2019 +0000 Commit: Aaron Bauman gentoo org> CommitDate: Sun Aug 18 13:11:37 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fc3f0d3 dev-libs/serdisplib: require threads for framebuffer driver If you don't enable threads for the framebuffer driver, compilation will fail. Also bumped to EAPI=7. Package-Manager: Portage-2.3.71, Repoman-2.3.17 Signed-off-by: Conrad Kostecki kostecki.com> Closes: https://github.com/gentoo/gentoo/pull/12736 Signed-off-by: Aaron Bauman gentoo.org> dev-libs/serdisplib/serdisplib-2.01-r1.ebuild | 100 ++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/dev-libs/serdisplib/serdisplib-2.01-r1.ebuild b/dev-libs/serdisplib/serdisplib-2.01-r1.ebuild new file mode 100644 index 00000000000..8a7fa4dd1e1 --- /dev/null +++ b/dev-libs/serdisplib/serdisplib-2.01-r1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit udev + +DESCRIPTION="Library to drive several displays with built-in controllers or display modules" +HOMEPAGE="http://serdisplib.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="threads tools" + +# Define the list of valid lcd devices. +IUSE_LCD_DEVICES=( + acoolsdcm ddusbt directgfx displaylink framebuffer glcd2usb + goldelox i2c ks0108 l4m lc7981 lh155 nokcol pcd8544 + remote rs232 sed133x sed153x sed156x ssdoled stv8105 t6963 +) + +# Add supported drivers from 'IUSE_LCD_DEVICES' to 'IUSE' and 'REQUIRED_USE' +IUSE+=" $(printf 'lcd_devices_%s ' ${IUSE_LCD_DEVICES[@]}) " +REQUIRED_USE+=" + || ( $(printf 'lcd_devices_%s ' ${IUSE_LCD_DEVICES[@]}) ) + lcd_devices_framebuffer? ( threads ) +" + +# Specific drivers will need some features to be enabled +RDEPEND=" + media-libs/gd[jpeg,png,tiff] + lcd_devices_acoolsdcm? ( virtual/libusb:1= ) + lcd_devices_directgfx? ( media-libs/libsdl ) + lcd_devices_displaylink? ( x11-libs/libdlo ) + lcd_devices_glcd2usb? ( virtual/libusb:1= ) +" + +DEPEND="${RDEPEND}" + +DOCS=( "AUTHORS" "BUGS" "DOCS" "HISTORY" "PINOUTS" "README" "TODO" ) + +PATCHES=( "${FILESDIR}/use-destdir.patch" "${FILESDIR}/disable-static-build.patch" ) + +src_prepare() { + default + + # Fix Makefile, as it will fail, when USE="tools" is not set + if ! use tools; then + sed -i -e '/$(INSTALL_PROGRAM) $(PROGRAMS)/d' src/Makefile.in || die + fi + + # Fix QA-Warning "QA Notice: pkg-config files with wrong LDFLAGS detected" + sed -i -e '/@LDFLAGS@/d' serdisplib.pc.in || die +} + +src_configure() { + # Enable all users enabled lcd devices + local myeconfargs_lcd_devices + for lcd_device in ${IUSE_LCD_DEVICES[@]}; do + if use lcd_devices_${lcd_device}; then + myeconfargs_lcd_devices+=",${lcd_device}" + fi + done + + local use_usb="--disable-libusb" + if use lcd_devices_acoolsdcm || use lcd_devices_glcd2usb; then + use_usb="--enable-libusb" + fi + + local myeconfargs=( + $(use_enable lcd_devices_directgfx libSDL) + $(use_enable lcd_devices_displaylink deprecated) + $(use_enable lcd_devices_displaylink libdlo) + $(use_enable lcd_devices_remote experimental) + $(use_enable threads pthread) + $(use_enable tools) + ${use_usb} + --disable-dynloading + --disable-statictools + --with-drivers="${myeconfargs_lcd_devices#,}" + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + udev_dorules 90-libserdisp.rules +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +}