From 048bd060badd229e3bb596029874760a86d27060 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 30 Aug 2022 04:47:47 +0100 Subject: gentoo auto-resync : 30:08:2022 - 04:47:47 --- app-office/Manifest.gz | Bin 7738 -> 7902 bytes app-office/sc-im/Manifest | 3 + app-office/sc-im/metadata.xml | 24 ++++++ app-office/sc-im/sc-im-0.8.2.ebuild | 141 ++++++++++++++++++++++++++++++++++++ 4 files changed, 168 insertions(+) create mode 100644 app-office/sc-im/Manifest create mode 100644 app-office/sc-im/metadata.xml create mode 100644 app-office/sc-im/sc-im-0.8.2.ebuild (limited to 'app-office') diff --git a/app-office/Manifest.gz b/app-office/Manifest.gz index ca8cbb7591a7..6c2b62538888 100644 Binary files a/app-office/Manifest.gz and b/app-office/Manifest.gz differ diff --git a/app-office/sc-im/Manifest b/app-office/sc-im/Manifest new file mode 100644 index 000000000000..ba02e2b6af15 --- /dev/null +++ b/app-office/sc-im/Manifest @@ -0,0 +1,3 @@ +DIST sc-im-0.8.2.tar.gz 1619617 BLAKE2B 1957b79749012b5e8b24e26f3cde63c84bf971d2183791f986c98ec823a9ab74bf8a126dcdb2a58920af07e068520ebd7efe9c9394235c5a58670f120495e980 SHA512 ae02fd31eb7254208de26802ed6d8b21d77ce2d6997f4a2de5bd2f0a002c763f67f53e6c8e49d66ded096ecd8bf50b1117015e9a0356eaf11c3caef22cf4552c +EBUILD sc-im-0.8.2.ebuild 3960 BLAKE2B 4aafd50d8576ceed91e491d620953d3e7aa525fd57d51271a53b78c498872a7283629969954547714b3a05421b4a18eb5994c6db55b21c2c1e2caee38b408458 SHA512 e10ece28c2683d1d51af1a0efdc8d565a9159f3c01bb5980c96b605db74653cf0fa80291bf384bd0934f155adba2923b0231bf2f1b898fd69e9ea42190d7eb1c +MISC metadata.xml 974 BLAKE2B 2e46ac845ba9978e8b646007003dcf2b53844e5dd2a86f4cbdf812d58850e41f3636ba2807503aa56d6c69a8e04033d868534415c7fd71d424444af1eea392a9 SHA512 1f66c4340b79c43daca9d66be2b3e20e59405fc501a793d0159cbe40e7f541af79b036f53905bca0ea8001a14a9f4d17cb3fd060ce95cfbbc0b0ef9c8e521dff diff --git a/app-office/sc-im/metadata.xml b/app-office/sc-im/metadata.xml new file mode 100644 index 000000000000..8f4ac17a19b5 --- /dev/null +++ b/app-office/sc-im/metadata.xml @@ -0,0 +1,24 @@ + + + + + efe.izbudak@metu.edu.tr + Efe İzbudak + + + proxy-maint@gentoo.org + Proxy Maintainers + + + Add sci-visualization/gnuplot for plotting support + Add xls support + Add xlsx support + Add ods import support + Use x11-misc/xclip for clipboard copy/paste + Use app-misc/tmux for clipboard copy/paste + Use gui-apps/wl-clipboard for clipboard copy/paste + + + andmarti1424/sc-im + + diff --git a/app-office/sc-im/sc-im-0.8.2.ebuild b/app-office/sc-im/sc-im-0.8.2.ebuild new file mode 100644 index 000000000000..bed8ce296550 --- /dev/null +++ b/app-office/sc-im/sc-im-0.8.2.ebuild @@ -0,0 +1,141 @@ +# Copyright 2022 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="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" +S="${WORKDIR}/${P}/src" + +LICENSE="BSD-4" +SLOT="0" +KEYWORDS="~amd64" +IUSE="X plots wayland xls xlsx lua ods tmux" +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="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 +} -- cgit v1.2.3