summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Wendel <lanius@gentoo.org>2005-04-26 13:56:50 +0000
committerHeinrich Wendel <lanius@gentoo.org>2005-04-26 13:56:50 +0000
commitc482068f57cf381d1cd1f9ca6e8864106600e212 (patch)
tree632effbe075dace85ff49b53ed23d04350521687 /x11-libs/lesstif/lesstif-0.94.4.ebuild
parentFix building with gcc4. (diff)
downloadhistorical-c482068f57cf381d1cd1f9ca6e8864106600e212.tar.gz
historical-c482068f57cf381d1cd1f9ca6e8864106600e212.tar.bz2
historical-c482068f57cf381d1cd1f9ca6e8864106600e212.zip
motif-config-0.9
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'x11-libs/lesstif/lesstif-0.94.4.ebuild')
-rw-r--r--x11-libs/lesstif/lesstif-0.94.4.ebuild105
1 files changed, 105 insertions, 0 deletions
diff --git a/x11-libs/lesstif/lesstif-0.94.4.ebuild b/x11-libs/lesstif/lesstif-0.94.4.ebuild
new file mode 100644
index 000000000000..e74f78040978
--- /dev/null
+++ b/x11-libs/lesstif/lesstif-0.94.4.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/lesstif/lesstif-0.94.4.ebuild,v 1.1 2005/04/26 13:56:47 lanius Exp $
+
+# disable sandbox, needed for motif-config
+SANDBOX_DISABLED="1"
+
+inherit libtool flag-o-matic multilib
+
+DESCRIPTION="An OSF/Motif(R) clone"
+HOMEPAGE="http://www.lesstif.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2"
+SLOT="2.1"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~ppc-macos ~sparc ~x86 ~ia64"
+IUSE="static"
+
+RDEPEND="virtual/libc
+ virtual/x11
+ >=x11-libs/motif-config-0.9"
+
+DEPEND="dev-lang/perl
+ ${RDEPEND}"
+
+PROVIDE="virtual/motif"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/CAN-2005-0605.patch
+}
+
+src_compile() {
+ use ppc-macos || libtoolize --force --copy
+
+ if use ppc-macos; then
+ append-ldflags -L/usr/X11R6/lib -lX11 -lXt
+ fi
+
+ econf \
+ $(use_enable static) \
+ --enable-production \
+ --enable-verbose=no \
+ --with-x || die "./configure failed"
+
+ emake CFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die "make install"
+
+
+ einfo "Fixing binaries"
+ dodir /usr/$(get_libdir)/lesstif-2.1
+ for file in `ls ${D}/usr/bin`
+ do
+ mv ${D}/usr/bin/${file} ${D}/usr/$(get_libdir)/lesstif-2.1/${file}
+ done
+
+ einfo "Fixing libraries"
+ mv ${D}/usr/lib/* ${D}/usr/$(get_libdir)/lesstif-2.1/
+
+ einfo "Fixing includes"
+ dodir /usr/include/lesstif-2.1/
+ mv ${D}/usr/include/* ${D}/usr/include/lesstif-2.1
+
+ einfo "Fixing man pages"
+ mans="1 3 5"
+ for man in $mans; do
+ dodir /usr/share/man/man${man}
+ for file in `ls ${D}/usr/share/man/man${man}`
+ do
+ file=${file/.${man}/}
+ mv ${D}/usr/share/man/man$man/${file}.${man} ${D}/usr/share/man/man${man}/${file}-lesstif-2.1.${man}
+ done
+ done
+
+
+ einfo "Fixing docs"
+ dodir /usr/share/doc/
+ mv ${D}/usr/LessTif ${D}/usr/share/doc/${P}
+ rm -fR ${D}/usr/$(get_libdir)/LessTif
+
+ # cleanup
+ rm -f ${D}/usr/$(get_libdir)/lesstif-2.1/mxmkmf
+ rm -fR ${D}/usr/share/aclocal/
+ rm -fR ${D}/usr/$(get_libdir)/lesstif-2.1/LessTif/
+ rm -fR ${D}/usr/$(get_libdir)/lesstif-2.1/X11/
+ rm -fR ${D}/usr/$(get_libdir)/X11/
+
+ # profile stuff
+ dodir /etc/env.d
+ echo "LDPATH=/usr/lib/lesstif-2.1" > ${D}/etc/env.d/15lesstif-2.1
+ dodir /usr/$(get_libdir)/motif
+ echo "PROFILE=lesstif-2.1" > ${D}/usr/$(get_libdir)/motif/lesstif-2.1
+}
+
+pkg_postinst() {
+ motif-config -s
+}
+
+pkg_postrm() {
+ motif-config -s
+}