/[gentoo-x86]/app-editors/jasspa-microemacs/jasspa-microemacs-20040301.ebuild
Gentoo

Contents of /app-editors/jasspa-microemacs/jasspa-microemacs-20040301.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Mar 11 19:26:15 2006 UTC (13 years, 2 months ago) by mkennedy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Add Freedesktop.org .desktop file; Resolves Bug #107026; Corrected build system to obey CFLAGS; Port to modular X dependencies; Remove old ebuilds.
(Portage version: 2.1_pre5-r4)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-editors/jasspa-microemacs/jasspa-microemacs-20040301.ebuild,v 1.7 2005/01/01 13:28:01 eradicator Exp $
4
5 MY_PV=${PV:2} # 20021205 -> 021205
6
7 DESCRIPTION="Jasspa Microemacs"
8 HOMEPAGE="http://www.jasspa.com/"
9 SRC_URI="http://www.jasspa.com/release_${MY_PV}/jasspa-memacros-${PV}.tar.gz
10 http://www.jasspa.com/release_${MY_PV}/jasspa-mehtml-${PV}.tar.gz
11 http://www.jasspa.com/release_${MY_PV}/jasspa-mesrc-${PV}.tar.gz
12 http://www.jasspa.com/release_${MY_PV}/meicons-extra.tar.gz"
13 # http://www.jasspa.com/release_${MY_PV}/me.ehf.gz
14 # http://www.jasspa.com/release_${MY_PV}/meicons.tar.gz
15 ## http://www.jasspa.com/spelling/ls_enus.tar.gz
16 ## http://www.jasspa.com/release_${MY_PV}/readme.jasspa_gnome
17
18 LICENSE="GPL-2"
19 SLOT="0"
20 KEYWORDS="x86 ppc"
21 IUSE="X"
22
23 DEPEND="virtual/libc
24 sys-libs/ncurses
25 X? ( virtual/x11 )"
26
27 S="${WORKDIR}/me${MY_PV}/src"
28
29 src_unpack() {
30 unpack jasspa-mesrc-${PV}.tar.gz
31 cd ${T}
32 # everything except jasspa-mesrc
33 unpack ${A/jasspa-mesrc-${PV}.tar.gz/}
34 }
35
36 src_compile() {
37 sed -i "/^COPTIMISE/s/.*/COPTIMISE = ${CFLAGS}/" linux2.gmk
38 local loadpath="~/.jasspa:/usr/share/jasspa/site:/usr/share/jasspa"
39 if use X
40 then
41 ./build -p "$loadpath"
42 else
43 ./build -t c -p "$loadpath"
44 fi
45 mv me me32
46 cat >me <<'EOT'
47 #!/bin/bash
48 if [[ -n "$DISPLAY" ]]
49 then
50 set +m; /usr/bin/me32 "$@"
51 else
52 # ixon allows ctrl S to be used for searching
53 stty -ixon; /usr/bin/me32 "$@"; stty ixon
54 fi
55 EOT
56 }
57
58 src_install() {
59 dodir /usr/share/jasspa
60 keepdir /usr/share/jasspa/site
61 dobin me me32 || die
62 dodoc ../*.txt ../change.log
63 cp -r ${T}/* ${D}/usr/share/jasspa
64 }

  ViewVC Help
Powered by ViewVC 1.1.20