Magellan Linux

Annotation of /smage/trunk/core/eterm/eterm-0.9.5-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1193 - (hide annotations) (download)
Fri Jan 28 23:04:07 2011 UTC (13 years, 3 months ago) by niro
Original Path: smage/trunk/extras/eterm/eterm-0.9.5-r1.smage2
File size: 1435 byte(s)
auto added: ver bump to 0.9.5-r1
1 niro 1192 # $Id: eterm-0.9.5-r3.smage2 3551 2009-10-26 11:51:10Z niro $
2    
3     PNAME="eterm"
4     PVER="0.9.5"
5     PBUILD="r1"
6    
7     PCATEGORIE="x11-terms"
8     STATE="unstable"
9    
10     DESCRIPTION="Eterm is a color vt102 terminal emulator intended as a replacement for xterm."
11     HOMEPAGE="http://www.eterm.org/"
12    
13     DEPEND=">= x11-libs/libX11-1
14     >= x11-libs/libXmu-1
15     >= x11-libs/libXt-1
16     >= x11-libs/libICE-1
17     >= x11-libs/libSM-1
18     >= x11-libs/libast-0.7
19     >= media-libs/imlib2-1.4"
20    
21     SDEPEND=">= sys-apps/sed-4
22     >= x11-proto/xextproto-1
23     >= x11-proto/xproto-1"
24    
25     SRCFILE="${PNAME/et/Et}-${PVER}.tar.gz"
26     SRCDIR="${BUILDDIR}/${PNAME/et/Et}-${PVER}"
27    
28     sminclude mtools
29    
30     SRC_URI=(
31     http://www.eterm.org/download/${SRCFILE}
32     mirror://${PNAME}/${SRCFILE}
33     )
34    
35     UP2DATE="updatecmd ${HOMEPAGE}/download/ | grep ${PNAME/et/Et}-[0-9] | lasttarball gz"
36    
37     src_prepare()
38     {
39     munpack ${SRCFILE} || die
40     }
41    
42     src_compile()
43     {
44     cd ${SRCDIR}
45    
46     # enable mmx only on x86 but not x86_64 and others
47     local my_opts=--disable-mmx
48     [[ ${ARCH} = i*86 ]] && my_opts=--enable-mmx
49    
50     mconfigure \
51     --with-x \
52     --with-imlib \
53     --with-delete=execute \
54     --with-backspace=auto \
55     --enable-trans \
56     --enable-multi-charset \
57     ${my_opts} \
58     || die
59    
60     mmake || die
61     }
62    
63     src_install()
64     {
65     cd ${SRCDIR}
66    
67     # needed directories
68     minstalldir /usr/share/terminfo || die
69     mmake DESTDIR=${BINDIR} TIC="tic -o ${BINDIR}/usr/share/terminfo" install || die
70     minstalldocs Changelog README ReleaseNotes{,.1} bg/README.backgrounds || die
71     }