Magellan Linux

Contents of /trunk/extras/xterm/xterm-232-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 2101 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/xterm/xterm-232-r1.smage2,v 1.1 2008/02/12 21:08:01 niro Exp $
2
3 PNAME="xterm"
4 PVER="232"
5 PBUILD="r1"
6
7 PCATEGORIE="x11-terms"
8 STATE="unstable"
9
10 DESCRIPTION="Terminal Emulator for X Windows."
11 HOMEPAGE="http://dickey.his.com/xterm/"
12
13 DEPEND=">= x11-libs/libX11-1
14 >= x11-libs/libXrender-1
15 >= x11-libs/libXt-1
16 >= x11-libs/libXmu-1
17 >= x11-libs/libxkbfile-1
18 >= x11-libs/libXft-1
19 >= x11-libs/libXaw-1
20 >= sys-apps/utempter-0.5
21 >= x11-apps/luit-1"
22
23 SDEPEND=">= x11-proto/xproto-1"
24
25 SRCFILE="${PNAME}-${PVER}.tgz"
26 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
27
28 sminclude mtools
29
30 # fetch'em at ftp://invisible-island.net/xterm/
31 SRC_URI=(
32 ftp://invisible-island.net/${PNAME}/${SRCFILE}
33 http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE}
34 mirror://${PNAME}/${SRCFILE}
35 )
36
37 src_prepare()
38 {
39 munpack ${SRCFILE} || die
40 }
41
42 src_compile()
43 {
44 cd ${SRCDIR}
45
46 mconfigure \
47 --libdir=/etc \
48 --disable-narrowproto \
49 --with-app-defaults=/usr/$(mlibdir)/X11/app-defaults \
50 --with-utempter \
51 --disable-setuid \
52 --disable-full-tgetent \
53 --disable-imake \
54 --with-x \
55 --enable-ansi-color \
56 --enable-88-color \
57 --enable-256-color \
58 --enable-broken-osc \
59 --enable-broken-st \
60 --enable-load-vt-fonts \
61 --enable-i18n \
62 --enable-wide-chars \
63 --enable-doublechars \
64 --enable-warnings \
65 --enable-tcap-query \
66 --enable-logging \
67 --enable-dabbrev \
68 --enable-freetype \
69 --enable-luit \
70 || die
71
72 mmake || die
73 }
74
75 src_install()
76 {
77 cd ${SRCDIR}
78
79 mmake DESTDIR=${BINDIR} install || die
80
81 # fix perms
82 mchmod 0755 /usr/bin/xterm || die
83
84 # restore the navy blue
85 sed -i "s:blue2$:blue:" ${BINDIR}/usr/$(mlibdir)/X11/app-defaults/XTerm-color || die
86
87 # security issues
88 echo "*allowWindowOps: false" >> ${BINDIR}/usr/$(mlibdir)/X11/app-defaults/XTerm || die
89 echo "*allowWindowOps: false" >> ${BINDIR}/usr/$(mlibdir)/X11/app-defaults/UXTerm || die
90
91 minstalldocs README README.i18n || die
92 }
93
94 pkg_preinst()
95 {
96 # prevent the terminfo files from being removed
97 touch ${MROOT}/usr/share/terminfo/v/vs100
98 touch ${MROOT}/usr/share/terminfo/x/x*
99 }

Properties

Name Value
svn:keywords Id