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 86531158030 for ; Mon, 27 Feb 2023 12:35:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 94B4AE07C5; Mon, 27 Feb 2023 12:35:29 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 6E77DE07C5 for ; Mon, 27 Feb 2023 12:35:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 smtp.gentoo.org (Postfix) with ESMTPS id 6D31533BEEB for ; Mon, 27 Feb 2023 12:35:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E12468B7 for ; Mon, 27 Feb 2023 12:35:26 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1677501324.a6e801b0b3c3e8bde43f3f141e752f07c2b1f646.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/sc-im/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-office/sc-im/Manifest app-office/sc-im/sc-im-0.8.3.ebuild X-VCS-Directories: app-office/sc-im/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: a6e801b0b3c3e8bde43f3f141e752f07c2b1f646 X-VCS-Branch: master Date: Mon, 27 Feb 2023 12:35:26 +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: e508d0ae-c232-40d4-a337-1626505d62a6 X-Archives-Hash: bf13db39d666bd94d8964492de43ab64 commit: a6e801b0b3c3e8bde43f3f141e752f07c2b1f646 Author: Efe İzbudak metu edu tr> AuthorDate: Thu Feb 16 06:32:57 2023 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Mon Feb 27 12:35:24 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6e801b0 app-office/sc-im: add 0.8.3 Signed-off-by: Efe İzbudak metu.edu.tr> Closes: https://github.com/gentoo/gentoo/pull/29600 Signed-off-by: Joonas Niilola gentoo.org> app-office/sc-im/Manifest | 1 + app-office/sc-im/sc-im-0.8.3.ebuild | 141 ++++++++++++++++++++++++++++++++++++ 2 files changed, 142 insertions(+) diff --git a/app-office/sc-im/Manifest b/app-office/sc-im/Manifest index a085c5e62cde..e87e88fee0d7 100644 --- a/app-office/sc-im/Manifest +++ b/app-office/sc-im/Manifest @@ -1 +1,2 @@ DIST sc-im-0.8.2.tar.gz 1619617 BLAKE2B 1957b79749012b5e8b24e26f3cde63c84bf971d2183791f986c98ec823a9ab74bf8a126dcdb2a58920af07e068520ebd7efe9c9394235c5a58670f120495e980 SHA512 ae02fd31eb7254208de26802ed6d8b21d77ce2d6997f4a2de5bd2f0a002c763f67f53e6c8e49d66ded096ecd8bf50b1117015e9a0356eaf11c3caef22cf4552c +DIST sc-im-0.8.3.tar.gz 1664440 BLAKE2B 9f02e265ecd39b4f3a5e3ab61222094a1424f9591c04ff3ddf745576f2aa1c89345ea2e4d4c95a0565d7f287985e81d9eba849113f5b7aa61744cf69284ce312 SHA512 a3d7cf99c7c959d24ebf7e525abb665c02690674c9b3cdf5b234dcdb376fd73e9488bda522106802932084bbfd239928e39b35743c7051178aa14edf61ec2cb8 diff --git a/app-office/sc-im/sc-im-0.8.3.ebuild b/app-office/sc-im/sc-im-0.8.3.ebuild new file mode 100644 index 000000000000..f0befe2dda44 --- /dev/null +++ b/app-office/sc-im/sc-im-0.8.3.ebuild @@ -0,0 +1,141 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-1 luajit ) + +inherit lua-single toolchain-funcs flag-o-matic + +DESCRIPTION="Ncurses based, vim-like spreadsheet calculator" +HOMEPAGE="https://github.com/andmarti1424/sc-im" +SRC_URI="https://github.com/andmarti1424/sc-im/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${P}/src" + +LICENSE="BSD-4" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="lua ods plots tmux wayland X xls xlsx" +REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )" + +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="app-alternatives/yacc + virtual/pkgconfig" + +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_prepare() { + default + + # Clean Makefile from all sorts of flag / lib setting + sed -i -e '/CFLAGS +=\|LDLIBS +=/d' Makefile \ + || die "sed fix failed. Uh-oh..." + # Also clean the now useless comments and logic + sed -i -e '/#\|if\|else/d' Makefile \ + || die "sed fix failed. Uh-oh..." +} + +src_configure() { + tc-export CC PKG_CONFIG + + LDLIBS="-lm" + + # default flags that dont need optional dependencies + append-cflags -Wall -g \ + -DNCURSES \ + -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE \ + '-DSNAME=\"sc-im\"' \ + '-DHELP_PATH=\"/usr/share/sc-im\"' \ + '-DLIBDIR=\"/usr/share/doc/sc-im\"' \ + '-DDFLT_PAGER=\"less\"' \ + '-DDFLT_EDITOR=\"vim\"' \ + -DUSECOLORS \ + '-DHISTORY_FILE=\"sc-iminfo\"' \ + '-DHISTORY_DIR=\".cache\"' \ + '-DCONFIG_FILE=\"scimrc\"' \ + '-DCONFIG_DIR=\".config/sc-im\"' \ + '-DINS_HISTORY_FILE=\"sc-iminfo\"' \ + -DUNDO \ + -DMAXROWS=65536 \ + -DUSELOCALE \ + -DMOUSE \ + '-DDEFAULT_OPEN_FILE_UNDER_CURSOR_CMD=\""scopen"\"' \ + -DAUTOBACKUP \ + -DHAVE_PTHREAD + + # setting default clipboard commands + 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 + + # optional feature dependency + use plots && append-cflags -DGNUPLOT + if use xls; then + append-cflags -DXLS $(${PKG_CONFIG} --cflags libxls) + LDLIBS+=" $(${PKG_CONFIG} --libs libxls)" + fi + if use xlsx || use ods ; then + append-cflags -DODS -DXLSX $(${PKG_CONFIG} --cflags libxml-2.0 libzip) + LDLIBS+=" -DODS -DXLSX $(${PKG_CONFIG} --libs libxml-2.0 libzip)" + fi + if use xlsx ; then + append-cflags -DXLSX_EXPORT $(${PKG_CONFIG} --cflags xlsxwriter) + LDLIBS+=" -DXLSX_EXPORT $(${PKG_CONFIG} --libs xlsxwriter)" + fi + if use lua ; then + append-cflags -DXLUA $(${PKG_CONFIG} --cflags lua) + LDLIBS+=" -DXLUA $(${PKG_CONFIG} --libs lua) -rdynamic" + fi + append-cflags $(${PKG_CONFIG} --cflags ncursesw) || append-cflags $(${PKG_CONFIG} --cflags ncurses) + LDLIBS+=" $(${PKG_CONFIG} --libs ncursesw)" || LDLIBS+=" $(${PKG_CONFIG} --libs ncurses)" +} + +src_compile() { + emake LDLIBS="${LDLIBS}" CFLAGS="${CFLAGS}" +} + +src_install() { + emake DESTDIR="${D}" prefix="/usr" install + einstalldocs +}