1 |
commit: da21d58bc9469d11036a13a72a638d6d0f1f0b8a |
2 |
Author: Efe İzbudak <efe.izbudak <AT> metu <DOT> edu <DOT> tr> |
3 |
AuthorDate: Mon Aug 29 23:14:57 2022 +0000 |
4 |
Commit: Efe İzbudak <efe.izbudak <AT> metu <DOT> edu <DOT> tr> |
5 |
CommitDate: Mon Aug 29 23:14:57 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=da21d58b |
7 |
|
8 |
app-office/sc-im: treeclean |
9 |
|
10 |
Signed-off-by: Efe İzbudak <efe.izbudak <AT> metu.edu.tr> |
11 |
|
12 |
app-office/sc-im/Manifest | 1 - |
13 |
app-office/sc-im/metadata.xml | 17 ---- |
14 |
app-office/sc-im/sc-im-0.8.2-r1.ebuild | 143 --------------------------------- |
15 |
3 files changed, 161 deletions(-) |
16 |
|
17 |
diff --git a/app-office/sc-im/Manifest b/app-office/sc-im/Manifest |
18 |
deleted file mode 100644 |
19 |
index a085c5e62..000000000 |
20 |
--- a/app-office/sc-im/Manifest |
21 |
+++ /dev/null |
22 |
@@ -1 +0,0 @@ |
23 |
-DIST sc-im-0.8.2.tar.gz 1619617 BLAKE2B 1957b79749012b5e8b24e26f3cde63c84bf971d2183791f986c98ec823a9ab74bf8a126dcdb2a58920af07e068520ebd7efe9c9394235c5a58670f120495e980 SHA512 ae02fd31eb7254208de26802ed6d8b21d77ce2d6997f4a2de5bd2f0a002c763f67f53e6c8e49d66ded096ecd8bf50b1117015e9a0356eaf11c3caef22cf4552c |
24 |
|
25 |
diff --git a/app-office/sc-im/metadata.xml b/app-office/sc-im/metadata.xml |
26 |
deleted file mode 100644 |
27 |
index 9119e904f..000000000 |
28 |
--- a/app-office/sc-im/metadata.xml |
29 |
+++ /dev/null |
30 |
@@ -1,17 +0,0 @@ |
31 |
-<?xml version="1.0" encoding="UTF-8"?> |
32 |
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
33 |
-<pkgmetadata> |
34 |
- <maintainer type="person"> |
35 |
- <email>efe.izbudak@××××××××.tr</email> |
36 |
- <name>Efe İzbudak</name> |
37 |
- </maintainer> |
38 |
- <use> |
39 |
- <flag name='plots'>Add <pkg>sci-visualization/gnuplot</pkg> for plotting support</flag> |
40 |
- <flag name='xls'>Add xls support</flag> |
41 |
- <flag name='xlsx'>Add xlsx support</flag> |
42 |
- <flag name='ods'>Add ods import support</flag> |
43 |
- <flag name='X'>Use <pkg>x11-misc/xclip</pkg> for clipboard copy/paste</flag> |
44 |
- <flag name='tmux'>Use <pkg>app-misc/tmux</pkg> for clipboard copy/paste</flag> |
45 |
- <flag name='wayland'>Use <pkg>gui-apps/wl-clipboard</pkg> for clipboard copy/paste</flag> |
46 |
- </use> |
47 |
-</pkgmetadata> |
48 |
|
49 |
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 |
50 |
deleted file mode 100644 |
51 |
index 8f65e8d0f..000000000 |
52 |
--- a/app-office/sc-im/sc-im-0.8.2-r1.ebuild |
53 |
+++ /dev/null |
54 |
@@ -1,143 +0,0 @@ |
55 |
-# Copyright 2022 Gentoo Authors |
56 |
-# Distributed under the terms of the GNU General Public License v2 |
57 |
- |
58 |
-EAPI=7 |
59 |
- |
60 |
-LUA_COMPAT=( lua5-1 luajit ) |
61 |
- |
62 |
-inherit lua-single toolchain-funcs flag-o-matic |
63 |
- |
64 |
-DESCRIPTION="Spreadsheet Calculator Improvised -- An ncurses spreadsheet program for terminal" |
65 |
-HOMEPAGE="https://github.com/andmarti1424/sc-im" |
66 |
-SRC_URI="https://github.com/andmarti1424/sc-im/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
67 |
- |
68 |
-LICENSE="BSD-4" |
69 |
-SLOT="0" |
70 |
-KEYWORDS="~amd64" |
71 |
-IUSE="X plots wayland xls xlsx lua ods tmux" |
72 |
-REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )" |
73 |
- |
74 |
-DEPEND=" |
75 |
- sys-libs/ncurses |
76 |
- |
77 |
- lua? ( |
78 |
- ${LUA_DEPS} |
79 |
- ) |
80 |
- ods? ( |
81 |
- dev-libs/libxml2 |
82 |
- dev-libs/libzip |
83 |
- ) |
84 |
- plots? ( sci-visualization/gnuplot ) |
85 |
- tmux? ( app-misc/tmux ) |
86 |
- wayland? ( gui-apps/wl-clipboard ) |
87 |
- X? ( x11-misc/xclip ) |
88 |
- xls? ( |
89 |
- dev-libs/libxls |
90 |
- ) |
91 |
- xlsx? ( |
92 |
- dev-libs/libxlsxwriter |
93 |
- dev-libs/libxml2 |
94 |
- dev-libs/libzip |
95 |
- ) |
96 |
-" |
97 |
-RDEPEND="${DEPEND}" |
98 |
-BDEPEND="virtual/pkgconfig" |
99 |
-S="${WORKDIR}/${P}/src" |
100 |
- |
101 |
-pkg_setup() { |
102 |
- CONFLICTING=$(usex tmux "tmux " "")$(usex wayland "wayland " "")$(usex X "X" "") |
103 |
- if ( use tmux && ( use wayland || use X ) ) ; then |
104 |
- elog "Conflicting flags for clipboard support are set: ${CONFLICTING}" |
105 |
- elog "tmux support has been preferred." |
106 |
- elif ( use wayland && use X ) ; then |
107 |
- elog "Conflicting flags for clipboard support are set: ${CONFLICTING}" |
108 |
- elog "Wayland support has been preferred." |
109 |
- fi |
110 |
- |
111 |
- # Run lua setup |
112 |
- lua-single_pkg_setup |
113 |
-} |
114 |
- |
115 |
-src_prepare() { |
116 |
- default |
117 |
- |
118 |
- # Clean Makefile from all sorts of flag / lib setting |
119 |
- sed -i -e '/CFLAGS +=\|LDLIBS +=/d' Makefile \ |
120 |
- || die "sed fix failed. Uh-oh..." |
121 |
- # Also clean the now useless comments and logic |
122 |
- sed -i -e '/#\|if\|else/d' Makefile \ |
123 |
- || die "sed fix failed. Uh-oh..." |
124 |
-} |
125 |
- |
126 |
-src_configure() { |
127 |
- tc-export CC |
128 |
- |
129 |
- PKGCONF=$(tc-getPKG_CONFIG) |
130 |
- |
131 |
- LDLIBS="-lm" |
132 |
- |
133 |
- # default flags that dont need optional dependencies |
134 |
- append-cflags -Wall -g \ |
135 |
- -DNCURSES \ |
136 |
- -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE \ |
137 |
- '-DSNAME=\"sc-im\"' \ |
138 |
- '-DHELP_PATH=\"/usr/share/sc-im\"' \ |
139 |
- '-DLIBDIR=\"/usr/share/doc/sc-im\"' \ |
140 |
- '-DDFLT_PAGER=\"less\"' \ |
141 |
- '-DDFLT_EDITOR=\"vim\"' \ |
142 |
- -DUSECOLORS \ |
143 |
- '-DHISTORY_FILE=\"sc-iminfo\"' \ |
144 |
- '-DHISTORY_DIR=\".cache\"' \ |
145 |
- '-DCONFIG_FILE=\"scimrc\"' \ |
146 |
- '-DCONFIG_DIR=\".config/sc-im\"' \ |
147 |
- '-DINS_HISTORY_FILE=\"sc-iminfo\"' \ |
148 |
- -DUNDO \ |
149 |
- -DMAXROWS=65536 \ |
150 |
- -DUSELOCALE \ |
151 |
- -DMOUSE \ |
152 |
- '-DDEFAULT_OPEN_FILE_UNDER_CURSOR_CMD=\""scopen"\"' \ |
153 |
- -DAUTOBACKUP \ |
154 |
- -DHAVE_PTHREAD |
155 |
- |
156 |
- # setting default clipboard commands |
157 |
- if use tmux ; then |
158 |
- append-cflags '-DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""tmux load-buffer"\"' |
159 |
- append-cflags '-DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""tmux show-buffer"\"' |
160 |
- elif use wayland ; then |
161 |
- append-cflags '-DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""wl-copy <"\"' |
162 |
- append-cflags '-DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""wl-paste"\"' |
163 |
- elif use X ; then |
164 |
- append-cflags '-DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""xclip -i -selection clipboard <"\"' |
165 |
- append-cflags '-DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""xclip -o -selection clipboard"\"' |
166 |
- fi |
167 |
- |
168 |
- # optional feature dependency |
169 |
- use plots && append-cflags -DGNUPLOT |
170 |
- if use xls; then |
171 |
- append-cflags -DXLS $(${PKGCONF} --cflags libxls) |
172 |
- LDLIBS+=" $(${PKGCONF} --libs libxls)" |
173 |
- fi |
174 |
- if use xlsx || use ods ; then |
175 |
- append-cflags -DODS -DXLSX $(${PKGCONF} --cflags libxml-2.0 libzip) |
176 |
- LDLIBS+=" -DODS -DXLSX $(${PKGCONF} --libs libxml-2.0 libzip)" |
177 |
- fi |
178 |
- if use xlsx ; then |
179 |
- append-cflags -DXLSX_EXPORT $(${PKGCONF} --cflags xlsxwriter) |
180 |
- LDLIBS+=" -DXLSX_EXPORT $(${PKGCONF} --libs xlsxwriter)" |
181 |
- fi |
182 |
- if use lua ; then |
183 |
- append-cflags -DXLUA $(${PKGCONF} --cflags lua) |
184 |
- LDLIBS+=" -DXLUA $(${PKGCONF} --libs lua) -rdynamic" |
185 |
- fi |
186 |
- append-cflags $(${PKGCONF} --cflags ncursesw) || append-cflags $(${PKGCONF} --cflags ncurses) |
187 |
- LDLIBS+=" $(${PKGCONF} --libs ncursesw)" || LDLIBS+=" $(${PKGCONF} --libs ncurses)" |
188 |
-} |
189 |
- |
190 |
-src_compile() { |
191 |
- emake LDLIBS="${LDLIBS}" CFLAGS="${CFLAGS}" |
192 |
-} |
193 |
- |
194 |
-src_install() { |
195 |
- emake DESTDIR="${D}" prefix="/usr" install |
196 |
- einstalldocs |
197 |
-} |