blob: a5a97ff2d67891cf1e3710792393240a3cf17fad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/xview/xview-3.2-r6.ebuild,v 1.4 2007/09/12 21:41:45 armin76 Exp $
inherit eutils
MY_PN="${P}p1.4-18c"
GCC_PATCHVER="0.1"
DESCRIPTION="The X Window-System-based Visual/Integrated Environment for Workstations"
HOMEPAGE="http://physionet.caregroup.harvard.edu/physiotools/xview/"
LICENSE="sun-openlook"
# We use the xview tarball available from the X organization, but xfree86 appears
# to be up and available more often so we use that (it's their primary mirror).
SRC_URI="http://physionet.caregroup.harvard.edu/physiotools/xview/${MY_PN}.tar.gz
mirror://gentoo/${P}-gcc-4.1-v${GCC_PATCHVER}.patch.bz2"
# mirror://debian/pool/main/x/xview/${SRC_PATCH}.gz
SLOT="0"
IUSE=""
KEYWORDS="-alpha -amd64 ~ppc ~sparc x86"
RDEPEND="x11-libs/libXpm
x11-proto/xextproto
media-fonts/font-bh-75dpi
media-fonts/font-sun-misc"
DEPEND="${RDEPEND}
app-text/rman
x11-misc/gccmakedep
x11-misc/imake"
S="${WORKDIR}/${MY_PN}"
src_unpack() {
unpack ${A}
cd "${S}"
# This is our compound patch derived from debian. We use it because:
# * xview is a contribution made by Sun Microsystems (?) to the X community,
# but fixes for it don't appear to be around other than in the other free
# distributions.
# * It does little harm, only some defaults are changed which we can redefine
# anyway.
#
# SRC_PATCH="${PN}_3.2p1.4-16woody2.diff"
epatch "${FILESDIR}"/CAN-2005-0076.patch
epatch "${FILESDIR}"/lseek.diff
epatch "${DISTDIR}"/${P}-gcc-4.1-v${GCC_PATCHVER}.patch.bz2
# Do not build xgettext and msgfmt since they are provided by the gettext
# package. Using the programs provided by xview breaks many packages
# including vim, grep and binutils.
sed -e 's/MSG_UTIL = xgettext msgfmt/#MSG_UTIL = xgettext msgfmt/' \
-i util/Imakefile || die "gettext sed failed"
# (#120910) Look for imake in the right place
sed -i -e 's:\/X11::' imake || die "imake sed failed"
sed -i -e 's:/usr/X11R6:/usr:' "${S}"/config/XView.cf "${S}"/Build-LinuxXView.bash
}
src_compile() {
# Create the makefile
imake -DUseInstalled -I"${S}"/config -I/usr/$(get_libdir)/X11/config \
|| die "imake failed"
export OPENWINHOME="/usr"
export X11DIR="/usr"
# This is crazy and I know it, but wait till you read the code in
# Build-LinuxXView.bash.
bash Build-LinuxXView.bash libs \
|| die "building libs failed"
bash Build-LinuxXView.bash clients \
|| die "building clients failed"
bash Build-LinuxXView.bash contrib \
|| die "building contrib failed"
bash Build-LinuxXView.bash olvwm \
|| die "building olvwm failed"
}
src_install() {
export OPENWINHOME="/usr"
export X11DIR="/usr"
export DESTDIR="${D}"
bash Build-LinuxXView.bash instlibs \
|| die "installing libs failed"
bash Build-LinuxXView.bash instclients \
|| die "installing clients failed"
bash Build-LinuxXView.bash instcontrib \
|| die "installing contrib failed"
bash Build-LinuxXView.bash instolvwm \
|| die "installing olvwm failed"
cd "${D}"/usr
# The rest of the docs is already installed
cd "${S}"/doc
dodoc README xview-info olgx_api.txt olgx_api.ps sel_api.txt \
dnd_api.txt whats_new.ps
rm -rf "${D}"/usr/X11R6/share/doc/xview && rm -rf "${D}"/usr/X11R6/share/doc
}
|