aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDex Conner <cantcuckthis@danwin1210.de>2022-04-13 19:26:12 +0300
committerDex Conner <cantcuckthis@danwin1210.de>2022-04-13 19:26:12 +0300
commit4709ec0506b5ba321e1a5a3ba8ab125a9895c441 (patch)
tree0ae28bdb0f8c2a0ab7e7a3b056090c5da2dcd2db /app-office
parentdev-libs/libxlsxwriter: Fix typo (diff)
downloadguru-4709ec0506b5ba321e1a5a3ba8ab125a9895c441.tar.gz
guru-4709ec0506b5ba321e1a5a3ba8ab125a9895c441.tar.bz2
guru-4709ec0506b5ba321e1a5a3ba8ab125a9895c441.zip
app-office/sc-im: initial import
Signed-off-by: Dex Conner <cantcuckthis@danwin1210.de>
Diffstat (limited to 'app-office')
-rw-r--r--app-office/sc-im/Manifest1
-rw-r--r--app-office/sc-im/files/sc-im-0.8.2-prefix.patch11
-rw-r--r--app-office/sc-im/metadata.xml14
-rw-r--r--app-office/sc-im/sc-im-0.8.2.ebuild38
4 files changed, 64 insertions, 0 deletions
diff --git a/app-office/sc-im/Manifest b/app-office/sc-im/Manifest
new file mode 100644
index 000000000..a085c5e62
--- /dev/null
+++ b/app-office/sc-im/Manifest
@@ -0,0 +1 @@
+DIST sc-im-0.8.2.tar.gz 1619617 BLAKE2B 1957b79749012b5e8b24e26f3cde63c84bf971d2183791f986c98ec823a9ab74bf8a126dcdb2a58920af07e068520ebd7efe9c9394235c5a58670f120495e980 SHA512 ae02fd31eb7254208de26802ed6d8b21d77ce2d6997f4a2de5bd2f0a002c763f67f53e6c8e49d66ded096ecd8bf50b1117015e9a0356eaf11c3caef22cf4552c
diff --git a/app-office/sc-im/files/sc-im-0.8.2-prefix.patch b/app-office/sc-im/files/sc-im-0.8.2-prefix.patch
new file mode 100644
index 000000000..c34d226c2
--- /dev/null
+++ b/app-office/sc-im/files/sc-im-0.8.2-prefix.patch
@@ -0,0 +1,11 @@
+--- src/Makefile
++++ src/Makefile
+@@ -2,7 +2,7 @@
+ name = sc-im
+
+ # The base directory where everything should be installed.
+-prefix = /usr/local
++prefix = /usr
+
+ EXDIR = $(prefix)/bin
+ HELPDIR = $(prefix)/share/$(name)
diff --git a/app-office/sc-im/metadata.xml b/app-office/sc-im/metadata.xml
new file mode 100644
index 000000000..ff8f94c7c
--- /dev/null
+++ b/app-office/sc-im/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>cantcuckthis@danwin1210.de</email>
+ <name>Dex Conner</name>
+ </maintainer>
+ <use>
+ <flag name='plots'>Add <pkg>sci-visualization/gnuplot</pkg> for plotting support</flag>
+ <flag name='xls'>Add xls/xlsx support. Pulls in <pkg>dev-python/xlsxwriter</pkg>, <pkg>dev-haskell/libxml</pkg>, <pkg>dev-libs/libzip</pkg> and <pkg>dev-libs/libxls</pkg></flag>
+ <flag name='ods'>Add <pkg>dev-libs/libzip</pkg> for ods import support</flag>
+ <flag name='X'>Use <pkg>x11-misc/xclip</pkg> for clipboard copy/paste</flag>
+ </use>
+</pkgmetadata>
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 000000000..e59b5e8f0
--- /dev/null
+++ b/app-office/sc-im/sc-im-0.8.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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 xls lua ods"
+
+PATCHES=(
+ "${FILESDIR}/${P}-prefix.patch"
+)
+
+DEPEND="
+ sys-libs/ncurses
+ X? ( || ( app-misc/tmux x11-misc/xclip ) )
+ plots? ( sci-visualization/gnuplot )
+ xls? (
+ dev-libs/libxlsxwriter
+ dev-haskell/libxml
+ dev-libs/libzip
+ dev-libs/libxls
+ )
+ lua? (
+ dev-lang/lua
+ )
+ ods? (
+ dev-libs/libzip
+ )
+"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+S="${WORKDIR}/${P}/src"