blob: 9ab56315a5ddac89fb86e8912fdcc66de57bd362 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/lesstif/lesstif-0.95.0-r1.ebuild,v 1.2 2008/05/29 11:05:47 ulm Exp $
inherit eutils multilib
DESCRIPTION="An OSF/Motif(R) clone"
HOMEPAGE="http://www.lesstif.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="LGPL-2 GPL-2 libXpm FVWM"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="static"
RDEPEND="!x11-libs/motif-config
!x11-libs/openmotif
!<=x11-libs/lesstif-0.95.0
x11-libs/libXp
x11-libs/libXt
x11-libs/libXft"
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/CAN-2005-0605.patch"
epatch "${FILESDIR}/${P}-vendorsp-cxx.patch"
}
src_compile() {
econf \
$(use_enable static) \
--enable-production \
--enable-verbose=no \
--with-x || die "econf failed"
emake CFLAGS="${CFLAGS}" \
mwmddir=/etc/X11/mwm \
|| die "emake failed"
}
src_install() {
emake DESTDIR="${D}" \
docdir=/usr/share/doc/${PF}/html \
appdir=/usr/share/X11/app-defaults \
mwmddir=/etc/X11/mwm \
install || die "emake install failed"
dodoc AUTHORS BUG-REPORTING ChangeLog CREDITS FAQ NEWS README \
ReleaseNotes.txt
newdoc "${D}"/etc/X11/mwm/README README.mwm
# cleanup
rm -f "${D}"/etc/X11/mwm/README
rm -f "${D}"/usr/bin/motif-config
rm -f "${D}"/usr/bin/mxmkmf
rm -fR "${D}"/usr/LessTif
rm -fR "${D}"/usr/$(get_libdir)/LessTif
rm -fR "${D}"/usr/share/aclocal/
}
|