summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Faulhammer <opfer@gentoo.org>2007-06-29 17:04:50 +0000
committerChristian Faulhammer <opfer@gentoo.org>2007-06-29 17:04:50 +0000
commit8249420b936c22ae396df0ac4ceeb15ebfc429ca (patch)
tree2ae584bd9807b0e020c3fa6963d102a1766a4b3b /x11-libs/lesstif
parentscribus cairo/X-check (diff)
downloadgentoo-2-8249420b936c22ae396df0ac4ceeb15ebfc429ca.tar.gz
gentoo-2-8249420b936c22ae396df0ac4ceeb15ebfc429ca.tar.bz2
gentoo-2-8249420b936c22ae396df0ac4ceeb15ebfc429ca.zip
version bump, fixes bug 145863; taken from mgass in Sunrise Portage-Review; added a lot of quotes
(Portage version: 2.1.2.7)
Diffstat (limited to 'x11-libs/lesstif')
-rw-r--r--x11-libs/lesstif/ChangeLog9
-rw-r--r--x11-libs/lesstif/files/digest-lesstif-0.94.43
-rw-r--r--x11-libs/lesstif/lesstif-0.95.0.ebuild114
3 files changed, 122 insertions, 4 deletions
diff --git a/x11-libs/lesstif/ChangeLog b/x11-libs/lesstif/ChangeLog
index 3331c1c1eff9..0ecfc2abcf0e 100644
--- a/x11-libs/lesstif/ChangeLog
+++ b/x11-libs/lesstif/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for x11-libs/lesstif
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/lesstif/ChangeLog,v 1.81 2007/01/04 18:55:05 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/lesstif/ChangeLog,v 1.82 2007/06/29 17:04:50 opfer Exp $
+
+*lesstif-0.95.0 (29 Jun 2007)
+
+ 29 Jun 2007; Christian Faulhammer <opfer@gentoo.org>
+ +lesstif-0.95.0.ebuild:
+ version bump, fixes bug 145863; taken from mgass in Sunrise Portage-Review;
+ added a lot of quotes
04 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> lesstif-0.94.4.ebuild:
Remove libtoolize call on ppc-macos.
diff --git a/x11-libs/lesstif/files/digest-lesstif-0.94.4 b/x11-libs/lesstif/files/digest-lesstif-0.94.4
deleted file mode 100644
index d6e76074c439..000000000000
--- a/x11-libs/lesstif/files/digest-lesstif-0.94.4
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 3096ca456c0bc299d895974d307c82d8 lesstif-0.94.4.tar.bz2 2447156
-RMD160 1025f6b662437a4e47a909aed7098901abf02c3c lesstif-0.94.4.tar.bz2 2447156
-SHA256 b98df416bc718fc0016288ba9a72411581695f80dcc19cb957efe217ebe37ab8 lesstif-0.94.4.tar.bz2 2447156
diff --git a/x11-libs/lesstif/lesstif-0.95.0.ebuild b/x11-libs/lesstif/lesstif-0.95.0.ebuild
new file mode 100644
index 000000000000..98bccc2d165d
--- /dev/null
+++ b/x11-libs/lesstif/lesstif-0.95.0.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2007 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.ebuild,v 1.1 2007/06/29 17:04:50 opfer Exp $
+
+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 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="static"
+
+RDEPEND="virtual/libc
+ x11-libs/libXp
+ x11-libs/libXt
+ >=x11-libs/motif-config-0.9"
+
+DEPEND="dev-lang/perl
+ ${RDEPEND}
+ x11-libs/libXaw
+ x11-libs/libXft
+ x11-proto/printproto
+ >=sys-devel/libtool-1.5.10"
+
+PROVIDE="virtual/motif"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/CAN-2005-0605.patch"
+}
+
+src_compile() {
+ 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"
+
+ # fix linkage against already installed version
+ perl -pi -e 's/^(hardcode_into_libs)=.*/$1=no/' libtool
+
+ emake CFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ # fix linkage against already installed version
+ for f in `find . -name \*.la -type f` ; do
+ perl -pi -e 's/^(relink_command=.*)/# $1/' $f
+ done
+
+ emake 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/"
+ rm -f "${D}/usr/$(get_libdir)/lesstif-2.1/motif-config"
+
+ # 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
+}