1 |
commit: 42aa9b9388a2ca4bb05cc0c17c96ab902c945412 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 2 15:23:46 2018 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 2 15:32:13 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42aa9b93 |
7 |
|
8 |
app-editors/jasspa-microemacs: Update desktop database. |
9 |
|
10 |
Modernise ebuild and bump to EAPI 6. |
11 |
|
12 |
Package-Manager: Portage-2.3.27, Repoman-2.3.9 |
13 |
|
14 |
.../jasspa-microemacs-20091011-r3.ebuild | 101 +++++++++++++++++++++ |
15 |
1 file changed, 101 insertions(+) |
16 |
|
17 |
diff --git a/app-editors/jasspa-microemacs/jasspa-microemacs-20091011-r3.ebuild b/app-editors/jasspa-microemacs/jasspa-microemacs-20091011-r3.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..770b292dd3e |
20 |
--- /dev/null |
21 |
+++ b/app-editors/jasspa-microemacs/jasspa-microemacs-20091011-r3.ebuild |
22 |
@@ -0,0 +1,101 @@ |
23 |
+# Copyright 1999-2018 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+ |
28 |
+inherit toolchain-funcs xdg-utils |
29 |
+ |
30 |
+MACROS_PV="20091017" |
31 |
+DESCRIPTION="Jasspa Microemacs" |
32 |
+HOMEPAGE="http://www.jasspa.com/" |
33 |
+SRC_URI="http://www.jasspa.com/release_20090909/jasspa-mesrc-${PV}.tar.gz |
34 |
+ !nanoemacs? ( |
35 |
+ http://www.jasspa.com/release_20090909/jasspa-memacros-${MACROS_PV}.tar.gz |
36 |
+ http://www.jasspa.com/release_20090909/jasspa-mehtml-${PV}.tar.gz |
37 |
+ http://www.jasspa.com/release_20060909/meicons-extra.tar.gz )" |
38 |
+ |
39 |
+LICENSE="GPL-2+" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" |
42 |
+IUSE="nanoemacs X xpm" |
43 |
+ |
44 |
+RDEPEND="sys-libs/ncurses:0= |
45 |
+ X? ( |
46 |
+ x11-libs/libX11 |
47 |
+ xpm? ( x11-libs/libXpm ) |
48 |
+ ) |
49 |
+ nanoemacs? ( !app-editors/ne )" |
50 |
+ |
51 |
+DEPEND="${RDEPEND} |
52 |
+ virtual/pkgconfig |
53 |
+ X? ( |
54 |
+ x11-base/xorg-proto |
55 |
+ x11-libs/libXt |
56 |
+ )" |
57 |
+ |
58 |
+S="${WORKDIR}/me${PV:2}" |
59 |
+PATCHES=( |
60 |
+ "${FILESDIR}"/${PV}-ncurses.patch |
61 |
+ "${FILESDIR}"/${PV}-linux3.patch |
62 |
+) |
63 |
+ |
64 |
+src_unpack() { |
65 |
+ unpack jasspa-mesrc-${PV}.tar.gz |
66 |
+ if ! use nanoemacs; then |
67 |
+ mkdir "${WORKDIR}"/jasspa || die |
68 |
+ cd "${WORKDIR}"/jasspa || die |
69 |
+ # everything except jasspa-mesrc |
70 |
+ unpack ${A/jasspa-mesrc-${PV}.tar.gz/} |
71 |
+ fi |
72 |
+} |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ default |
76 |
+ # allow for some variables to be passed to make |
77 |
+ sed -i -e \ |
78 |
+ '/make/s/\$OPTIONS/& CC="$CC" COPTIMISE="$CFLAGS" LDFLAGS="$LDFLAGS" CONSOLE_LIBS="$CONSOLE_LIBS" STRIP=true/' \ |
79 |
+ src/build || die "sed failed" |
80 |
+} |
81 |
+ |
82 |
+src_compile() { |
83 |
+ local pkgdatadir="${EPREFIX}/usr/share/jasspa" |
84 |
+ local me="" type=c |
85 |
+ use nanoemacs && me="-ne" |
86 |
+ use X && type=cw |
87 |
+ use xpm || export XPM_INCLUDE=. # prevent Xpm autodetection |
88 |
+ |
89 |
+ cd src || die |
90 |
+ CC="$(tc-getCC)" \ |
91 |
+ CONSOLE_LIBS="$("$(tc-getPKG_CONFIG)" --libs ncurses)" \ |
92 |
+ ./build ${me} \ |
93 |
+ -t ${type} \ |
94 |
+ -p "~/.jasspa:${pkgdatadir}/site:${pkgdatadir}" \ |
95 |
+ || die "build failed" |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ local me=me type=c |
100 |
+ use nanoemacs && me=ne |
101 |
+ use X && type=cw |
102 |
+ newbin src/${me}${type} ${me} |
103 |
+ |
104 |
+ if ! use nanoemacs; then |
105 |
+ keepdir /usr/share/jasspa/site |
106 |
+ insinto /usr/share |
107 |
+ doins -r "${WORKDIR}"/jasspa |
108 |
+ if use X; then |
109 |
+ insinto /usr/share/applications |
110 |
+ doins "${FILESDIR}"/${PN}.desktop |
111 |
+ fi |
112 |
+ fi |
113 |
+ |
114 |
+ dodoc faq.txt readme.txt change.log |
115 |
+} |
116 |
+ |
117 |
+pkg_postinst() { |
118 |
+ use X && xdg_desktop_database_update |
119 |
+} |
120 |
+ |
121 |
+pkg_postrm() { |
122 |
+ use X && xdg_desktop_database_update |
123 |
+} |