Contents of /trunk/extras/eterm/eterm-0.9.6-r3.smage2
Parent Directory | Revision Log
Revision 20715 -
(show annotations)
(download)
Tue Feb 4 09:17:02 2014 UTC (10 years, 7 months ago) by niro
File size: 1537 byte(s)
Tue Feb 4 09:17:02 2014 UTC (10 years, 7 months ago) by niro
File size: 1537 byte(s)
-fixed dependencies sys-apps/sed -> virtual/sed
1 | # $Id$ |
2 | |
3 | PNAME="eterm" |
4 | PVER="0.9.6" |
5 | PBUILD="r3" |
6 | |
7 | PCAT="x11-terms" |
8 | |
9 | DESCRIPTION="Eterm is a color vt102 terminal emulator intended as a replacement for xterm." |
10 | HOMEPAGE="http://www.eterm.org/" |
11 | |
12 | DEPEND=">= x11-libs/libX11-1 |
13 | >= x11-libs/libXmu-1 |
14 | >= x11-libs/libXt-1 |
15 | >= x11-libs/libICE-1 |
16 | >= x11-libs/libSM-1 |
17 | >= x11-libs/libast-0.7 |
18 | >= dev-libs/libpcre-8.30 |
19 | >= media-libs/imlib2-1.4" |
20 | |
21 | SDEPEND=">= virtual/sed |
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 | SRCFILE2="${PNAME/et/Et}-bg-${PVER}.tar.gz" |
29 | |
30 | sminclude mtools |
31 | |
32 | SRC_URI=( |
33 | http://www.eterm.org/download/${SRCFILE} |
34 | http://www.eterm.org/download/${SRCFILE2} |
35 | mirror://${PNAME}/${SRCFILE} |
36 | mirror://${PNAME}/${SRCFILE2} |
37 | ) |
38 | |
39 | UP2DATE="updatecmd ${HOMEPAGE}/download/ | grep ${PNAME/et/Et}-[0-9] | lasttarball gz" |
40 | |
41 | src_prepare() |
42 | { |
43 | munpack ${SRCFILE} || die |
44 | munpack ${SRCFILE2} ${SRCDIR} || die |
45 | } |
46 | |
47 | src_compile() |
48 | { |
49 | cd ${SRCDIR} |
50 | |
51 | # enable mmx only on x86 but not x86_64 and others |
52 | local my_opts=--disable-mmx |
53 | [[ ${ARCH} = i*86 ]] && my_opts=--enable-mmx |
54 | |
55 | mconfigure \ |
56 | --with-x \ |
57 | --with-imlib \ |
58 | --with-delete=execute \ |
59 | --with-backspace=auto \ |
60 | --enable-trans \ |
61 | --enable-multi-charset \ |
62 | ${my_opts} \ |
63 | || die |
64 | |
65 | mmake || die |
66 | } |
67 | |
68 | src_install() |
69 | { |
70 | cd ${SRCDIR} |
71 | |
72 | # needed directories |
73 | minstalldir /usr/share/terminfo || die |
74 | mmake DESTDIR=${BINDIR} TIC="tic -o ${BINDIR}/usr/share/terminfo" install || die |
75 | minstalldocs Changelog README ReleaseNotes{,.1} bg/README.backgrounds || die |
76 | } |