1 |
commit: 125841110e82a2297aaf0015d85262706433fb34 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 27 10:18:04 2019 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 27 10:24:08 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12584111 |
7 |
|
8 |
app-editors/jed: Bump EAPI to 7. |
9 |
|
10 |
Package-Manager: Portage-2.3.73, Repoman-2.3.17 |
11 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
12 |
|
13 |
app-editors/jed/jed-0.99.19-r1.ebuild | 60 +++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 60 insertions(+) |
15 |
|
16 |
diff --git a/app-editors/jed/jed-0.99.19-r1.ebuild b/app-editors/jed/jed-0.99.19-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..ec91058ed13 |
19 |
--- /dev/null |
20 |
+++ b/app-editors/jed/jed-0.99.19-r1.ebuild |
21 |
@@ -0,0 +1,60 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+MY_P="${PN}-$(ver_rs 2 -)" |
28 |
+DESCRIPTION="Console S-Lang-based editor" |
29 |
+HOMEPAGE="http://www.jedsoft.org/jed/" |
30 |
+SRC_URI="ftp://space.mit.edu/pub/davis/jed/v${PV%.*}/${MY_P}.tar.bz2" |
31 |
+ |
32 |
+LICENSE="GPL-2+" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos" |
35 |
+IUSE="X gpm xft" |
36 |
+ |
37 |
+RDEPEND=">=sys-libs/slang-2 |
38 |
+ gpm? ( sys-libs/gpm ) |
39 |
+ X? ( |
40 |
+ x11-libs/libX11 |
41 |
+ xft? ( |
42 |
+ >=media-libs/freetype-2 |
43 |
+ x11-libs/libXft |
44 |
+ ) |
45 |
+ )" |
46 |
+DEPEND="${RDEPEND} |
47 |
+ X? ( |
48 |
+ x11-libs/libXt |
49 |
+ x11-base/xorg-proto |
50 |
+ )" |
51 |
+ |
52 |
+S="${WORKDIR}/${MY_P}" |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ # replace IDE mode with EMACS mode |
56 |
+ sed -i -e 's/\(_Jed_Default_Emulation = \).*/\1"emacs";/' \ |
57 |
+ lib/jed.conf || die |
58 |
+ eapply_user |
59 |
+} |
60 |
+ |
61 |
+src_configure() { |
62 |
+ econf \ |
63 |
+ $(use_enable gpm) \ |
64 |
+ $(use_enable xft) \ |
65 |
+ JED_ROOT="${EPREFIX}"/usr/share/jed |
66 |
+} |
67 |
+ |
68 |
+src_compile() { |
69 |
+ emake |
70 |
+ use X && emake xjed |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ emake -j1 DESTDIR="${D}" install |
75 |
+ |
76 |
+ dodoc changes.txt INSTALL{,.unx} README |
77 |
+ doinfo info/jed* |
78 |
+ |
79 |
+ insinto /etc |
80 |
+ doins lib/jed.conf |
81 |
+} |