summaryrefslogtreecommitdiff
path: root/app-editors
diff options
context:
space:
mode:
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/Manifest.gzbin14090 -> 14100 bytes
-rw-r--r--app-editors/gedit/Manifest2
-rw-r--r--app-editors/gedit/gedit-43.2.ebuild89
-rw-r--r--app-editors/teco/Manifest6
-rw-r--r--app-editors/teco/files/teco-more-warnings.patch149
-rw-r--r--app-editors/teco/files/teco-void-functions.patch20
-rw-r--r--app-editors/teco/metadata.xml6
-rw-r--r--app-editors/teco/teco-36_p19940820-r1.ebuild59
8 files changed, 317 insertions, 14 deletions
diff --git a/app-editors/Manifest.gz b/app-editors/Manifest.gz
index 15e22dacf705..52d8c58f08a9 100644
--- a/app-editors/Manifest.gz
+++ b/app-editors/Manifest.gz
Binary files differ
diff --git a/app-editors/gedit/Manifest b/app-editors/gedit/Manifest
index 140768a53750..efabbbc26231 100644
--- a/app-editors/gedit/Manifest
+++ b/app-editors/gedit/Manifest
@@ -1,5 +1,7 @@
DIST gedit-42.2.tar.xz 6917596 BLAKE2B fd7b0a1c113e944b1b3f0c2bb55a061e76e7ee71ebbfe8d64c6d5b0c7e47b8dd54519bde1b7b095a1cab27a169427eecdf35d06422c1a984f51dab82e19c7cb0 SHA512 d50f021f33764e0cdd3ac51650db0e37dacb5b6edeadddfd8136e8120e83eb740db66ada25ae43eac810896714859d6f8876640a8976ddfd6e7e602c278dcc99
DIST gedit-43.1.tar.xz 2724084 BLAKE2B 4d0227c9287d5415298a50dda72f7997a0cb65032b9d9ac045fc2abe1a1f2a6b44cd6e36277373943cf221323ffdfeb2009fcc93ad9ef863b993bce4afac882f SHA512 00cd2f2b8ce9cc932e5b0fef7acca857d570ea73219caf031aee8a7bc6c146be6c739c01d62e4c9f4c706f025c04f7849ed88e99b996f0599314196eded54bbe
+DIST gedit-43.2.tar.xz 2724036 BLAKE2B 64039018c604874945cc6835bba14d80f969b0a860c0384d969af7fc81cdc4ade568539a80571440af605f14eaf33730140a48b48b92d1bdb652199770ca3411 SHA512 447f0da946ff7474637bb6b88f41eb53e5ba886c66e8b9f8c17e67d2f52e3eb115d905a850300f70488cfebcd6654a14ce8c57044760f4fdb3394cedf4e91f23
EBUILD gedit-42.2.ebuild 1882 BLAKE2B fd260e8df390c8bfc7fa296a3a90260df9de3d9b3594449ee485867eabf382bea8f2c8331800f1227bedea8f22c16d4c2c4d4eb8e70cf8e5975f3c4725f477ed SHA512 cf12494d027f6f150520ffb5d3966a2c801204d89071de3dfab4ab5c4eebb0d8300c11db80ee064df4538a0331c324a7f2041d3d89c7eadd699ac8be012c26d5
EBUILD gedit-43.1.ebuild 1791 BLAKE2B 2980799025293991f32cc05296abb4241c19a35d3d5c5b233f4674f7f9cfced2567fc14f4312eb744a4a702b8529a082a365f541cb38c46ec72fcd029c650712 SHA512 0cd1b52d052fd70d57381b7ac3f771710fd03b206ac7200f7e7ac6da79b03953bae33ad75b54a3eb143ea8f3744103ae152a1e2b1bd1d98698a17a1175805b65
+EBUILD gedit-43.2.ebuild 1773 BLAKE2B 4fada813bc409e5223efa0cc3a01e80a04b3c4fc04773bd282246621fde217f0de2c717992a8722f7508674f244865cfcf5808aad8206fbfdc88c52644ebfb9f SHA512 1e9165d876e5c90b6e2454054d63a18a8677aba67c75b68fe0dbcdb3a07434e6638c9cf40ef30b04940af6a580d29b8071471233b5c938f5faa407f8d19d9641
MISC metadata.xml 346 BLAKE2B 59226b3220bd9b1770fad0f5acf3b1888a57a3496f9e0a6eb0eb09c12b7a5aa461961753dd8a5a6f01db1cdb97af5b28d6a8d1d632b60f499f86e0864e29264f SHA512 3e1d83ad67b85a681b85f8fece9d6c2c3eab2f2f726447230dc1f2399a21cba211d97e11d8c06d0d1b1803fafe67be4b32c04b39c5f8586a421c525624f6697d
diff --git a/app-editors/gedit/gedit-43.2.ebuild b/app-editors/gedit/gedit-43.2.ebuild
new file mode 100644
index 000000000000..86dd0c50ef11
--- /dev/null
+++ b/app-editors/gedit/gedit-43.2.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit gnome.org gnome2-utils meson python-single-r1 vala xdg
+
+DESCRIPTION="A text editor for the GNOME desktop"
+HOMEPAGE="https://wiki.gnome.org/Apps/Gedit"
+
+LICENSE="GPL-2+ CC-BY-SA-3.0"
+SLOT="0"
+
+IUSE="+python gtk-doc"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+DEPEND="
+ >=dev-libs/glib-2.70:2
+ >=x11-libs/gtk+-3.22.0:3[introspection]
+ >=gui-libs/amtk-5.6:=
+ >=gui-libs/tepl-6.2:=
+ >=dev-libs/libpeas-1.14.1[gtk]
+ >=dev-libs/gobject-introspection-1.54:=
+ >=app-text/gspell-0.2.5:0=
+ python? (
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep '
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ >=dev-python/pygobject-3:3[cairo,${PYTHON_USEDEP}]
+ dev-libs/libpeas[python,${PYTHON_SINGLE_USEDEP}]
+ ')
+ )
+
+ >=x11-libs/gtksourceview-4.0.2:4[introspection,vala]
+"
+RDEPEND="${DEPEND}
+ x11-themes/adwaita-icon-theme
+ gnome-base/gsettings-desktop-schemas
+ gnome-base/gvfs
+"
+BDEPEND="
+ $(vala_depend)
+ app-text/docbook-xml-dtd:4.1.2
+ dev-util/glib-utils
+ gtk-doc? ( >=dev-util/gtk-doc-1 )
+ dev-util/itstool
+ >=sys-devel/gettext-0.18
+ virtual/pkgconfig
+"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+ vala_setup
+ xdg_environment_reset
+}
+
+src_configure() {
+ local emesonargs=(
+ $(meson_use gtk-doc gtk_doc)
+ -Duser_documentation=true
+
+ )
+ meson_src_configure
+}
+
+src_install() {
+ meson_src_install
+ if use python; then
+ python_optimize
+ python_optimize "${ED}/usr/$(get_libdir)/gedit/plugins/"
+ fi
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ gnome2_schemas_update
+}
+
+pkg_postrm() {
+ xdg_pkg_postrm
+ gnome2_schemas_update
+}
diff --git a/app-editors/teco/Manifest b/app-editors/teco/Manifest
index f0685cafc904..0934870eb78c 100644
--- a/app-editors/teco/Manifest
+++ b/app-editors/teco/Manifest
@@ -1,9 +1,11 @@
AUX teco-double-free.patch 907 BLAKE2B 4be36191ed98cd9c210ff523dac796ec7a78697abcbb776ccff526cc1172e2bf6e5da0387df65e70020cbc7041ef6e7ca66245fb886fafe78b5d0f1e67e7ebc0 SHA512 01711be1a61217ed3040f3b13fbcaf52160118c90251098bdf65efe1551a3198ff41228bd9895be7f55e11344858898276f162cff1e207595e3f5e6dfef507ba
AUX teco-gcc4.patch 294 BLAKE2B b09e7058029fb3d2fe2ded138ab92389f412cdc9613ae30eb3fd5b050f95e6efd48016e8f816a67d25b7d813e1ac2b813c20d60ac240b9138d635d958c7bc10f SHA512 ed7cf0fbe3a13dfb310be93460e07dcff50773ff1d0a1b5e3cfb304ecf5ef972243a7d3e7d429c743478b5cc2942a9ec562a25c1504324f59045685e69611d2b
+AUX teco-more-warnings.patch 4601 BLAKE2B 085e15a0d54f8c82e1434e66aa0f749ec76059e235db2c9d14abedf1885904a36b4d5d37e50d6c40d8b1653d49b28ac734cd720e50206153dbc538ed8ea6e775 SHA512 476563c69f5c5b52c1dabdca8214af5c5e3d0be3c9d08c9f203028a6e25c5a763925cfb7f87c5d71da751521dfb94d28fdfaa791b1cdea79768364fefdf23222
AUX teco-no-common.patch 289 BLAKE2B ce84e9132f53b0b465ab1118ef53246d83188f9c6b38ff617a63e52e91f2443ee718e495dceb9d32d8bc81b381923fbad5e837f9fb57474bcf98466244d821f3 SHA512 f0059e69090c345925e1ce50d9074d7c7d0e692e2d529233538cb640bb6705b0c27901ee4d780e2b99500f604e17f521db5a39e2a518396514631ee6c6bd05d7
-AUX teco-void-functions.patch 12115 BLAKE2B f72d87f9ae2a03d7b83aed09c009c05fbe89f80101fb9c62ec4273bdf347a554c0bbe80d9c0742c8d3afbcd176c16338641ca0a773ba731d711d4a5d85375b08 SHA512 27568f730408a6ed3d9cb02c32065a53c2b1f3f469824dc4d2c8e69444f190e266b5c396a8284f191880f59ab1ebd2e4422ba9bee716b96ac2f53a9befc56f9b
+AUX teco-void-functions.patch 12183 BLAKE2B 2c13a3e3e3144a334011bad90ed24ab3f1e4a67df4b4a9921d59225bda2df5e8189629ac3e11bd0765d0a906479bb4db0d8046dbffcbe5fd49c6051b4a45cfe3 SHA512 9e2d9d47b46cdb536533abe68526a462816b5424aab2eb2a06ebc88fab275ade4b20aa970b6536bb766df812151d66618a9beed26984f1812c988cce4bcff964
AUX teco-warnings.patch 1206 BLAKE2B f9f8312c66e506d86cdd7544288965927895822eac3ad6f49dd0f1280ddc72f9d2cb2c6e4e7eca7c36c435677559e25bd4c9f6816a9e41816d23a39d64ee445b SHA512 7294ef66917eb549d9437327b32160317313d343c731423e34a07ed407e5595e7ac52d57c55bc1e5c6732f5ed0840533aa9c546ee32f4ea2bef54adf5a91b249
DIST teco-36_p19940820.tar.gz 61305 BLAKE2B 9bb15fcb20948dbcac1928e32b4ac69c4861be3b0c01d5be68836138d9478e71cc0dd5198d9ac6816245605c34f8b21fcd4e62c48c097e56cd585579df119939 SHA512 686b3944a82d088a2fce12a9b770f4aa5f58aaadde064b3d3342114f0ece2d7cbae27d0e92fd026def6f62a3ff0dc82b37146e30a93b2ec195dc7f376b45fdf7
DIST tecodoc.tar.gz 154109 BLAKE2B 70b9cd99281ab6180e4c13845f3fc97ccd6c142b4b9a3454ac9dcf189e2a65bfaf9b033312aeb9773301ff4d2ec166f79d587f79158b2b0f3f985f77b06f86c1 SHA512 1819450a08e296bdd3d4c282d9a9c7c58203acf82a67bdc9713b0cdfa2d0c4aa046c86ee4ee6f3b2d9ef0f3052705a13dd3d8afbf372bd3b1be8d4c5e8e96fef
+EBUILD teco-36_p19940820-r1.ebuild 1590 BLAKE2B 6dba8ac5e56ca743cf533be5058218cc177d5817a24021dc2884476ab9c49c82087e4edd995a0ae6ccab417eb7ed9b909a93a205882a6790d7cf974fe7556fcb SHA512 bd9dc0649b24165d2a972129dfd4ead6963136e681d4b2a25ce5707b878b092e9faee8df6e17b3c0be87d92ada20138d24f9d1d19f63c74e1364073ea1f02890
EBUILD teco-36_p19940820.ebuild 1541 BLAKE2B aa700b2f810c7d59a467a27e9cc76ecb14cd38e0acb9c88ba1eabf19d63a554c918cdac271a30c926a15170233d56b70315e48c69467151dc1e6dc7c706c371a SHA512 e24ea68e94e0fa4acecb799b955558890c8b10a08725fb46b932a45d70f21b9f34a253db876a8750d0b8d0d63947f893ef875510822e3995cb4b47c6b22620ff
-MISC metadata.xml 1357 BLAKE2B fc814edbdf0d0da1a86171d74e50187ba28ec42605697d7b2d1ff417d3854b3a6ddbda9732751266ae7c5a73ba7dea4e745a558dbcc5ec16f55cdf5051fb42d8 SHA512 abea654224cf00d1c0b884e471bdd10baf4483425e3824ab9fde2142e2e41bfc2ed49c359f39f09e02f09e5356bf5229f3e803e2c26c40daafd815362b1ca085
+MISC metadata.xml 1366 BLAKE2B e8bf31b86bdb7420f06588de6af6e9780cc47bfee911fdcdb16a78673a52724e77e2ce5b024050363b969b7fb62251f51ff3992b0e5e891a92fecc73efa74bdf SHA512 da0ed44842294b05c51594d894e3310b1ee9b9093747e5449e4f8f65487635306a16669e5c876a5ce69929dcc44cb4f8242d9e2b00e7c9081019229b02993e96
diff --git a/app-editors/teco/files/teco-more-warnings.patch b/app-editors/teco/files/teco-more-warnings.patch
new file mode 100644
index 000000000000..dd072e6f97eb
--- /dev/null
+++ b/app-editors/teco/files/teco-more-warnings.patch
@@ -0,0 +1,149 @@
+https://bugs.gentoo.org/879041
+
+--- teco/te_defs.h
++++ teco/te_defs.h
+@@ -320,7 +320,72 @@
+ extern char mapch[], mapch_l[]; /* char mapping tables */
+ extern unsigned char spec_chars[]; /* special character table */
+
+-extern char skipto(), getcmdc(), getcmdc0(); /* routines that return chars */
++extern void block_inter(int func);
++extern void crlf(void);
++extern void delete1(int nchars);
++extern void dly_free_blist(struct buffcell *p);
++extern void do_ctlp(void);
++extern void do_e(void);
++extern void do_f(void);
++extern void do_o(void);
++extern void do_window(int ref_flag);
++extern void exec_cmds1(void);
++extern void exec_cmdstr(void);
++extern void find_enditer(void);
++extern void free_blist(struct buffcell *p);
++extern void insert1(void);
++extern void insert2(int count);
++extern void kill_output(struct outfiledata *outptr);
++extern void make_buffer(struct qh *p);
++extern void movenchars(struct qp *from, struct qp *to, int n);
++extern void moveuntil(struct qp *from, struct qp *to, char c,
++ int *n, int max, int trace);
++extern void panic(void);
++extern void pop_iteration(int arg);
++extern void retype_cmdstr(char c);
++extern void set_pointer(int pos, struct qp *ptr);
++extern void set_term_par(int lines, int cols);
++extern void set_var(int *arg);
++extern void setup_tty(int arg);
++extern void te_fx(void);
++extern void type_char(char c);
++extern void vt(int func);
++extern void window(int arg);
++extern void write_file(struct qp *wbuff, int nchars, int ffsw);
++extern char getcmdc(int trace);
++extern char getcmdc0(int trace);
++extern char gettty(void);
++extern char skipto(int arg);
++extern int backc(struct qp *arg);
++extern int build_string(struct qh *sbuff);
++extern int do_en(void);
++extern int do_eq(void);
++extern int do_eq1(char *shell);
++extern int do_fb(void);
++extern int do_glob(struct qh *gbuff);
++extern int do_nsearch(char arg);
++extern int do_search(int count);
++extern int end_search(int result);
++extern int fwdc(struct qp *arg);
++extern int fwdcx(struct qp *arg);
++extern int get_value(int d);
++extern int getqspec(int fors, char c);
++extern int gettty_nowait(void);
++extern int line_args(int d, struct qp *p);
++extern int lines(int arg);
++extern int peekcmdc(char arg);
++extern int read_cmdstr(void);
++extern int read_file(struct qp *rbuff, int *nchars, int endsw);
++extern int read_filename(int flag, char func);
++extern int read_stream(FILE *file, int *ff_found, struct qp *rbuff,
++ int *nchars, int endsw, int crlf_sw, int ff_sw);
++extern int setup_search(void);
++extern int srch_cmp(void);
++extern int tgetent(char *bp, const char *name);
++extern int tgetnum(const char *id);
++extern int w_lines(int n, struct qp *ps, struct qp *pd);
++extern int w_setptr(int loc, struct qp *pp);
++extern int w_overflow(int wd);
+
+ extern FILE *eisw; /* indirect command file pointer */
+ extern FILE *fopen();
+--- teco/te_exec2.c
++++ teco/te_exec2.c
+@@ -8,10 +8,15 @@
+ /* version for multiple buffers 04/19/89 11.29 */
+
+ #include "te_defs.h"
++#include <unistd.h>
+ #include <sys/wait.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+
++/* these shouldn't be necessary, since we include unistd.h and sys/stat.h */
++extern int fchmod(int fd, mode_t mode);
++extern pid_t vfork(void);
++
+ void do_en_next(), set_var(), write_file(), write_stream();
+ void kill_output(), pop_iteration(), find_enditer(), find_endcond();
+
+--- teco/te_fxstub.c
++++ teco/te_fxstub.c
+@@ -10,7 +10,7 @@
+
+ #include "te_defs.h"
+
+-te_fx()
++void te_fx()
+ {
+ ERROR(E_IFC);
+ }
+--- teco/te_main.c
++++ teco/te_main.c
+@@ -46,6 +46,7 @@
+
+ void cleanup(), print_string(), save_args(), read_startup(), get_term_par();
+
++int
+ main(argc, argv)
+ int argc; /* arg count */
+ char *argv[]; /* array of string pointers */
+--- teco/te_rdcmd.c
++++ teco/te_rdcmd.c
+@@ -7,6 +7,7 @@
+ #include "te_defs.h"
+
+ void retype_cmdstr(char c);
++int find_lasteol(void);
+ int ccount; /* count of chars read in */
+
+ int read_cmdstr()
+--- teco/te_srch.c
++++ teco/te_srch.c
+@@ -156,7 +156,7 @@
+ /* routine to do N, _, E_ searches: search, if search fails, then get */
+ /* next page and continue */
+
+-do_nsearch(arg)
++int do_nsearch(arg)
+ char arg; /* arg is 'n', '_', or 'e' to define which search */
+ {
+ int scount; /* search count */
+--- teco/te_utils.c
++++ teco/te_utils.c
+@@ -144,7 +144,7 @@
+ return(1);
+ }
+
+-fwdcx(arg)
++int fwdcx(arg)
+ struct qp *arg;
+ {
+ if ((*arg).c >= CELLSIZE-1) /* test char count for max */
diff --git a/app-editors/teco/files/teco-void-functions.patch b/app-editors/teco/files/teco-void-functions.patch
index f8a1d7ad346e..ee08d1ace9ea 100644
--- a/app-editors/teco/files/teco-void-functions.patch
+++ b/app-editors/teco/files/teco-void-functions.patch
@@ -6,7 +6,7 @@ https://bugs.gentoo.org/729254
#define SIGINTMASK 2
#endif
-+void crlf(), type_char();
++void crlf(), type_char(char c);
+
int lf_sw; /* nonzero: make up a LF following an entered CR */
int ttyflags; /* flags for (stdin) file descriptor */
@@ -178,16 +178,18 @@ https://bugs.gentoo.org/729254
register int icnt;
--- teco-orig/te_main.c
+++ teco/te_main.c
-@@ -44,6 +44,8 @@
+@@ -44,6 +44,10 @@
#include "te_defs.h"
-+void cleanup(), print_string(), save_args(), read_startup(), get_term_par();
++void cleanup(), read_startup(), get_term_par();
++void print_string(int arg);
++void save_args(int argc, char *argv[], struct qh *q);
+
main(argc, argv)
int argc; /* arg count */
char *argv[]; /* array of string pointers */
-@@ -103,6 +105,7 @@
+@@ -103,6 +107,7 @@
/* reset screen state, keyboard state; remove open output files */
@@ -195,7 +197,7 @@ https://bugs.gentoo.org/729254
cleanup()
{
window(WIN_OFF); /* restore screen */
-@@ -115,6 +118,7 @@
+@@ -115,6 +120,7 @@
/* print string for error message */
/* argument is subscript of a qreg qh, prints text from that buffer */
@@ -203,7 +205,7 @@ https://bugs.gentoo.org/729254
print_string(arg)
int arg;
{
-@@ -137,6 +141,7 @@
+@@ -137,6 +143,7 @@
/* copy invocation command line to a text buffer */
@@ -211,7 +213,7 @@ https://bugs.gentoo.org/729254
save_args(argc, argv, q)
int argc;
char *argv[];
-@@ -171,6 +176,7 @@
+@@ -171,6 +178,7 @@
char startup_name[] = "/.tecorc"; /* name of startup file */
@@ -219,7 +221,7 @@ https://bugs.gentoo.org/729254
read_startup()
{
char *hp, *getenv();
-@@ -192,6 +198,7 @@
+@@ -192,6 +200,7 @@
/* routine to get terminal height and width from termcap */
@@ -233,7 +235,7 @@ https://bugs.gentoo.org/729254
/* version for multiple buffers 04/13/89 10.22 */
#include "te_defs.h"
-+void retype_cmdstr();
++void retype_cmdstr(char c);
int ccount; /* count of chars read in */
int read_cmdstr()
diff --git a/app-editors/teco/metadata.xml b/app-editors/teco/metadata.xml
index 2e545ee8b3f1..63946c6a87e5 100644
--- a/app-editors/teco/metadata.xml
+++ b/app-editors/teco/metadata.xml
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer type="person">
- <email>ulm@gentoo.org</email>
- <name>Ulrich Müller</name>
+<maintainer type="project">
+ <email>emacs@gentoo.org</email>
+ <name>Gentoo Emacs project</name>
</maintainer>
<longdescription lang="en">
TECO /tee'koh/ /n.,v. obs./ 1. [originally an acronym for `[paper]
diff --git a/app-editors/teco/teco-36_p19940820-r1.ebuild b/app-editors/teco/teco-36_p19940820-r1.ebuild
new file mode 100644
index 000000000000..8372bb8b385a
--- /dev/null
+++ b/app-editors/teco/teco-36_p19940820-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs flag-o-matic readme.gentoo-r1
+
+DESCRIPTION="Classic TECO editor, Predecessor to EMACS"
+HOMEPAGE="https://www.ibiblio.org/pub/linux/apps/editors/tty/ https://www.ibiblio.org/pub/academic/computer-science/history/pdp-11/teco/"
+SRC_URI="https://www.ibiblio.org/pub/linux/apps/editors/tty/teco.tar.gz -> ${P}.tar.gz
+ doc? ( https://dev.gentoo.org/~ulm/distfiles/tecodoc.tar.gz )"
+S="${WORKDIR}"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
+IUSE="doc"
+
+RDEPEND="sys-libs/ncurses:0="
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-double-free.patch
+ "${FILESDIR}"/${PN}-gcc4.patch
+ "${FILESDIR}"/${PN}-warnings.patch
+ "${FILESDIR}"/${PN}-no-common.patch
+ "${FILESDIR}"/${PN}-void-functions.patch
+ "${FILESDIR}"/${PN}-more-warnings.patch
+)
+
+src_prepare() {
+ default
+ local pkg_config=$("$(tc-getPKG_CONFIG)" --libs ncurses)
+ sed -i -e "s:\$(CC):& \$(LDFLAGS):;s:-ltermcap:${pkg_config}:" \
+ Makefile || die
+}
+
+src_compile() {
+ append-flags -ansi
+ append-cppflags -D_POSIX_SOURCE
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ dobin te
+ doman te.1
+ dodoc sample.tecorc sample.tecorc2 READ.ME
+ use doc && dodoc doc/*
+
+ local DOC_CONTENTS="The TECO binary is called te.
+ \nSample configurations and documentation are available
+ in /usr/share/doc/${PF}/."
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}