Lines 2-10
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/xview/xview-3.2-r6.ebuild,v 1.5 2008/06/18 00:44:24 darkside Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/xview/xview-3.2-r6.ebuild,v 1.5 2008/06/18 00:44:24 darkside Exp $ |
4 |
|
4 |
|
5 |
inherit eutils |
5 |
inherit eutils toolchain-funcs |
6 |
|
6 |
|
7 |
MY_PN="${P}p1.4-18c" |
7 |
MY_PN="${P}p1.4-19c" |
8 |
GCC_PATCHVER="0.1" |
8 |
GCC_PATCHVER="0.1" |
9 |
|
9 |
|
10 |
DESCRIPTION="The X Window-System-based Visual/Integrated Environment for Workstations" |
10 |
DESCRIPTION="The X Window-System-based Visual/Integrated Environment for Workstations" |
Lines 12-24
Link Here
|
12 |
LICENSE="sun-openlook" |
12 |
LICENSE="sun-openlook" |
13 |
# We use the xview tarball available from the X organization, but xfree86 appears |
13 |
# We use the xview tarball available from the X organization, but xfree86 appears |
14 |
# to be up and available more often so we use that (it's their primary mirror). |
14 |
# to be up and available more often so we use that (it's their primary mirror). |
15 |
SRC_URI="http://physionet.caregroup.harvard.edu/physiotools/xview/${MY_PN}.tar.gz |
15 |
SRC_URI="http://physionet.caregroup.harvard.edu/physiotools/xview/src/${MY_PN}.tar.gz |
16 |
mirror://gentoo/${P}-gcc-4.1-v${GCC_PATCHVER}.patch.bz2" |
16 |
mirror://gentoo/${P}-gcc-4.1-v${GCC_PATCHVER}.patch.bz2" |
17 |
# mirror://debian/pool/main/x/xview/${SRC_PATCH}.gz |
17 |
# mirror://debian/pool/main/x/xview/${SRC_PATCH}.gz |
18 |
|
18 |
|
19 |
SLOT="0" |
19 |
SLOT="0" |
20 |
IUSE="" |
20 |
IUSE="" |
21 |
KEYWORDS="-alpha -amd64 ~ppc ~sparc x86" |
21 |
KEYWORDS="-alpha -amd64 ~ppc ~sparc ~x86" |
22 |
|
22 |
|
23 |
RDEPEND="x11-libs/libXpm |
23 |
RDEPEND="x11-libs/libXpm |
24 |
x11-proto/xextproto |
24 |
x11-proto/xextproto |
Lines 31-37
Link Here
|
31 |
x11-misc/gccmakedep |
31 |
x11-misc/gccmakedep |
32 |
x11-misc/imake" |
32 |
x11-misc/imake" |
33 |
|
33 |
|
34 |
S="${WORKDIR}/${MY_PN}" |
34 |
S=${WORKDIR}/${MY_PN} |
35 |
|
35 |
|
36 |
src_unpack() { |
36 |
src_unpack() { |
37 |
unpack ${A} |
37 |
unpack ${A} |
Lines 44-50
Link Here
|
44 |
# anyway. |
44 |
# anyway. |
45 |
# |
45 |
# |
46 |
# SRC_PATCH="${PN}_3.2p1.4-16woody2.diff" |
46 |
# SRC_PATCH="${PN}_3.2p1.4-16woody2.diff" |
47 |
epatch "${FILESDIR}"/CAN-2005-0076.patch |
|
|
48 |
epatch "${FILESDIR}"/lseek.diff |
47 |
epatch "${FILESDIR}"/lseek.diff |
49 |
epatch "${DISTDIR}"/${P}-gcc-4.1-v${GCC_PATCHVER}.patch.bz2 |
48 |
epatch "${DISTDIR}"/${P}-gcc-4.1-v${GCC_PATCHVER}.patch.bz2 |
50 |
|
49 |
|
Lines 57-82
Link Here
|
57 |
# (#120910) Look for imake in the right place |
56 |
# (#120910) Look for imake in the right place |
58 |
sed -i -e 's:\/X11::' imake || die "imake sed failed" |
57 |
sed -i -e 's:\/X11::' imake || die "imake sed failed" |
59 |
|
58 |
|
60 |
sed -i -e 's:/usr/X11R6:/usr:' "${S}"/config/XView.cf "${S}"/Build-LinuxXView.bash |
59 |
sed -i -e 's:/usr/X11R6:/usr:' "${S}/config/XView.cf" "${S}/Build-XView.bash" |
|
|
60 |
|
61 |
# Nasty hacks to force CC and CFLAGS |
62 |
sed -e "s:^\(IMAKEINCLUDE=.*\)\"$:\1 -DCcCmd=$(tc-getCC)\":" \ |
63 |
-e "s:usr/lib/X11/config:usr/$(get_libdir)/X11/config:" -i Build-XView.bash |
64 |
sed -e "s:\(.*STD_DEFINES =.*\)$:\1 -D_GNU_SOURCE ${CFLAGS}:" -i config/XView.obj |
65 |
sed -e "s:\(.*define LibXViewDefines .*\)$:\1 -D_GNU_SOURCE ${CFLAGS}:" -i config/XView.cf |
66 |
sed -e "s:^\(MORECCFLAGS.*\)$:\1 -D_GNU_SOURCE ${CFLAGS}:" -i clients/olvwm-4.1/Imakefile |
61 |
} |
67 |
} |
62 |
|
68 |
|
63 |
src_compile() { |
69 |
src_compile() { |
64 |
# Create the makefile |
|
|
65 |
imake -DUseInstalled -I"${S}"/config -I/usr/$(get_libdir)/X11/config \ |
66 |
|| die "imake failed" |
67 |
|
68 |
export OPENWINHOME="/usr" |
70 |
export OPENWINHOME="/usr" |
69 |
export X11DIR="/usr" |
71 |
export X11DIR="/usr" |
70 |
|
72 |
|
71 |
# This is crazy and I know it, but wait till you read the code in |
73 |
# This is crazy and I know it, but wait till you read the code in |
72 |
# Build-LinuxXView.bash. |
74 |
# Build-XView.bash. |
73 |
bash Build-LinuxXView.bash libs \ |
75 |
bash Build-XView.bash libs \ |
74 |
|| die "building libs failed" |
76 |
|| die "building libs failed" |
75 |
bash Build-LinuxXView.bash clients \ |
77 |
bash Build-XView.bash clients \ |
76 |
|| die "building clients failed" |
78 |
|| die "building clients failed" |
77 |
bash Build-LinuxXView.bash contrib \ |
79 |
bash Build-XView.bash contrib \ |
78 |
|| die "building contrib failed" |
80 |
|| die "building contrib failed" |
79 |
bash Build-LinuxXView.bash olvwm \ |
81 |
bash Build-XView.bash olvwm \ |
80 |
|| die "building olvwm failed" |
82 |
|| die "building olvwm failed" |
81 |
} |
83 |
} |
82 |
|
84 |
|
Lines 85-97
Link Here
|
85 |
export X11DIR="/usr" |
87 |
export X11DIR="/usr" |
86 |
export DESTDIR="${D}" |
88 |
export DESTDIR="${D}" |
87 |
|
89 |
|
88 |
bash Build-LinuxXView.bash instlibs \ |
90 |
bash Build-XView.bash instlibs \ |
89 |
|| die "installing libs failed" |
91 |
|| die "installing libs failed" |
90 |
bash Build-LinuxXView.bash instclients \ |
92 |
bash Build-XView.bash instclients \ |
91 |
|| die "installing clients failed" |
93 |
|| die "installing clients failed" |
92 |
bash Build-LinuxXView.bash instcontrib \ |
94 |
bash Build-XView.bash instcontrib \ |
93 |
|| die "installing contrib failed" |
95 |
|| die "installing contrib failed" |
94 |
bash Build-LinuxXView.bash instolvwm \ |
96 |
bash Build-XView.bash instolvwm \ |
95 |
|| die "installing olvwm failed" |
97 |
|| die "installing olvwm failed" |
96 |
cd "${D}"/usr |
98 |
cd "${D}"/usr |
97 |
|
99 |
|