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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9774D15808E for ; Sun, 24 Apr 2022 15:26:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8FDF9E08CD; Sun, 24 Apr 2022 15:26:31 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 715EEE08CD for ; Sun, 24 Apr 2022 15:26:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 46E353416E4 for ; Sun, 24 Apr 2022 15:26:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A3A5B105 for ; Sun, 24 Apr 2022 15:26:28 +0000 (UTC) From: "Dex Conner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Dex Conner" Message-ID: <1650813961.03ed3db1f7003bc01926cd6680b1692a5a4af2d2.cantcuckthis@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-office/sc-im/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-office/sc-im/sc-im-0.8.2-r1.ebuild X-VCS-Directories: app-office/sc-im/ X-VCS-Committer: cantcuckthis X-VCS-Committer-Name: Dex Conner X-VCS-Revision: 03ed3db1f7003bc01926cd6680b1692a5a4af2d2 X-VCS-Branch: dev Date: Sun, 24 Apr 2022 15:26:28 +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: 4e9b3dad-d418-448b-b26a-dd51fc6805b5 X-Archives-Hash: 108e694aabeb929d8a602685992e0253 commit: 03ed3db1f7003bc01926cd6680b1692a5a4af2d2 Author: Dex Conner danwin1210 de> AuthorDate: Sun Apr 24 15:21:06 2022 +0000 Commit: Dex Conner danwin1210 de> CommitDate: Sun Apr 24 15:26:01 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=03ed3db1 app-office/sc-im: runtime dep change revbump Signed-off-by: Dex Conner danwin1210.de> app-office/sc-im/sc-im-0.8.2-r1.ebuild | 103 +++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) diff --git a/app-office/sc-im/sc-im-0.8.2-r1.ebuild b/app-office/sc-im/sc-im-0.8.2-r1.ebuild new file mode 100644 index 000000000..15abb065d --- /dev/null +++ b/app-office/sc-im/sc-im-0.8.2-r1.ebuild @@ -0,0 +1,103 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-1 luajit ) + +inherit lua-single toolchain-funcs flag-o-matic + +DESCRIPTION="Spreadsheet Calculator Improvised -- An ncurses spreadsheet program for terminal" +HOMEPAGE="https://github.com/andmarti1424/sc-im" +SRC_URI="https://github.com/andmarti1424/sc-im/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-4" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X plots wayland xls xlsx lua ods tmux" +REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )" + +PATCHES=( + "${FILESDIR}/${P}-prefix.patch" + "${FILESDIR}/${P}-automagic.patch" + "${FILESDIR}/${P}-clipboard.patch" +) + +DEPEND=" + sys-libs/ncurses + + lua? ( + ${LUA_DEPS} + ) + ods? ( + dev-libs/libxml2 + dev-libs/libzip + ) + plots? ( sci-visualization/gnuplot ) + tmux? ( app-misc/tmux ) + wayland? ( gui-apps/wl-clipboard ) + X? ( x11-misc/xclip ) + xls? ( + dev-libs/libxls + ) + xlsx? ( + dev-libs/libxlsxwriter + dev-libs/libxml2 + dev-libs/libzip + ) +" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" +S="${WORKDIR}/${P}/src" + +pkg_setup() { + CONFLICTING=$(usex tmux "tmux " "")$(usex wayland "wayland " "")$(usex X "X" "") + if ( use tmux && ( use wayland || use X ) ) ; then + elog "Conflicting flags for clipboard support are set: ${CONFLICTING}" + elog "tmux support has been preferred." + elif ( use wayland && use X ) ; then + elog "Conflicting flags for clipboard support are set: ${CONFLICTING}" + elog "Wayland support has been preferred." + fi + + # Run lua setup + lua-single_pkg_setup +} + +src_configure() { + tc-export CC + + PKGCONF=$(tc-getPKG_CONFIG) + + if use tmux ; then + append-cflags '-DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""tmux load-buffer"\"' + append-cflags '-DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""tmux show-buffer"\"' + elif use wayland ; then + append-cflags '-DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""wl-copy <"\"' + append-cflags '-DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""wl-paste"\"' + elif use X ; then + append-cflags '-DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""xclip -i -selection clipboard <"\"' + append-cflags '-DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""xclip -o -selection clipboard"\"' + fi + + use plots && append-cflags -DGNUPLOT + if use xls; then + append-cflags -DXLS $(${PKGCONF} --cflags libxls) + LDLIBS+=" $(${PKGCONF} --libs libxls)" + fi + if use xlsx || use ods ; then + append-cflags -DODS -DXLSX $(${PKGCONF} --cflags libxml-2.0 libzip) + LDLIBS+=" -DODS -DXLSX $(${PKGCONF} --libs libxml-2.0 libzip)" + fi + if use xlsx ; then + append-cflags -DXLSX_EXPORT $(${PKGCONF} --cflags xlsxwriter) + LDLIBS+=" -DXLSX_EXPORT $(${PKGCONF} --libs xlsxwriter)" + fi + if use lua ; then + append-cflags -DXLUA $(${PKGCONF} --cflags lua) + LDLIBS+=" -DXLUA $(${PKGCONF} --libs lua) -rdynamic" + fi + append-cflags $(${PKGCONF} --cflags ncursesw) || append-cflags $(${PKGCONF} --cflags ncurses) + LDLIBS+=" $(${PKGCONF} --libs ncursesw)" || LDLIBS+=" $(${PKGCONF} --libs ncurses)" + export LDLIBS +}