public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Dex Conner" <cantcuckthis@danwin1210.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-office/sc-im/
Date: Sun, 24 Apr 2022 15:26:28 +0000 (UTC)	[thread overview]
Message-ID: <1650813961.03ed3db1f7003bc01926cd6680b1692a5a4af2d2.cantcuckthis@gentoo> (raw)

commit:     03ed3db1f7003bc01926cd6680b1692a5a4af2d2
Author:     Dex Conner <cantcuckthis <AT> danwin1210 <DOT> de>
AuthorDate: Sun Apr 24 15:21:06 2022 +0000
Commit:     Dex Conner <cantcuckthis <AT> danwin1210 <DOT> 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 <cantcuckthis <AT> 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
+}


             reply	other threads:[~2022-04-24 15:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-24 15:26 Dex Conner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-08-29 23:18 [gentoo-commits] repo/proj/guru:dev commit in: app-office/sc-im/ Efe İzbudak
2022-06-27 22:13 Dex Conner
2022-05-07  5:57 Dex Conner
2022-05-04  6:38 Dex Conner
2022-04-26 12:44 Dex Conner
2022-04-24  6:33 Dex Conner
2022-04-18 10:22 Dex Conner
2022-04-16 10:08 Dex Conner
2022-04-15  5:41 Dex Conner
2022-04-14 16:24 Dex Conner
2022-04-14 10:38 Dex Conner
2022-04-13 16:34 Dex Conner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1650813961.03ed3db1f7003bc01926cd6680b1692a5a4af2d2.cantcuckthis@gentoo \
    --to=cantcuckthis@danwin1210.de \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox