summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Smathers <jsin@gentoo.org>2007-09-16 01:46:22 +0000
committerJason Smathers <jsin@gentoo.org>2007-09-16 01:46:22 +0000
commitbdae6ba9ec4bbb949a41badbf00b98c568125f60 (patch)
tree0a7601691297a51ce56ee33c6b9c6382653b46a8 /x11-libs
parentNew local use flag "xft" for OpenMotif (diff)
downloadgentoo-2-bdae6ba9ec4bbb949a41badbf00b98c568125f60.tar.gz
gentoo-2-bdae6ba9ec4bbb949a41badbf00b98c568125f60.tar.bz2
gentoo-2-bdae6ba9ec4bbb949a41badbf00b98c568125f60.zip
new ebuild per bug #183736
(Portage version: 2.1.2.12)
Diffstat (limited to 'x11-libs')
-rw-r--r--x11-libs/openmotif/ChangeLog8
-rw-r--r--x11-libs/openmotif/files/digest-openmotif-2.3.06
-rw-r--r--x11-libs/openmotif/openmotif-2.3.0.ebuild128
3 files changed, 141 insertions, 1 deletions
diff --git a/x11-libs/openmotif/ChangeLog b/x11-libs/openmotif/ChangeLog
index d5887f224300..d692305c3874 100644
--- a/x11-libs/openmotif/ChangeLog
+++ b/x11-libs/openmotif/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for x11-libs/openmotif
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/ChangeLog,v 1.136 2007/05/11 21:22:19 bangert Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/ChangeLog,v 1.137 2007/09/16 01:46:21 jsin Exp $
+
+*openmotif-2.3.0 (16 Sep 2007)
+
+ 16 Sep 2007; Jason Smathers (jsin) <jsin@gentoo.org>
+ +openmotif-2.3.0.ebuild:
+ adding ebuild submitted by Dmitry S. Kulyabov in bug #183736
11 May 2007; Thilo Bangert <bangert@gentoo.org> metadata.xml:
fix herd
diff --git a/x11-libs/openmotif/files/digest-openmotif-2.3.0 b/x11-libs/openmotif/files/digest-openmotif-2.3.0
new file mode 100644
index 000000000000..e0de7b7caf7b
--- /dev/null
+++ b/x11-libs/openmotif/files/digest-openmotif-2.3.0
@@ -0,0 +1,6 @@
+MD5 c10131bbd85c4cb4addf5b2c8be82aa2 openmotif-2.3.0-manual.pdf.tgz 4195259
+RMD160 45b1a17a653b01ccf0324e0bc70fd1ef5db5a395 openmotif-2.3.0-manual.pdf.tgz 4195259
+SHA256 49692fd4d5441d2dbb5ca36199b209c8503452fda9b36e929d1aa3673bffaecb openmotif-2.3.0-manual.pdf.tgz 4195259
+MD5 99d0ecb84d3504da421021a19ff70500 openmotif-2.3.0.tar.gz 5661471
+RMD160 317c8d13d59c6fdd4a9f0e3b63000695f6677b6c openmotif-2.3.0.tar.gz 5661471
+SHA256 81d63e4145fab729621cba38bb0e88fccfbcbb5918473319e9b01a6fbe909544 openmotif-2.3.0.tar.gz 5661471
diff --git a/x11-libs/openmotif/openmotif-2.3.0.ebuild b/x11-libs/openmotif/openmotif-2.3.0.ebuild
new file mode 100644
index 000000000000..b594f7ed9046
--- /dev/null
+++ b/x11-libs/openmotif/openmotif-2.3.0.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/openmotif-2.3.0.ebuild,v 1.1 2007/09/16 01:46:21 jsin Exp $
+
+WANT_AUTOCONF="latest"
+WANT_AUTOMAKE="1.6"
+
+inherit eutils libtool flag-o-matic multilib autotools
+
+DESCRIPTION="Open Motif"
+HOMEPAGE="http://www.motifzone.org/"
+SRC_URI="ftp://ftp.ics.com/openmotif/2.3/${PV}/${P}.tar.gz
+ doc? ( http://www.motifzone.net/files/documents/${P}-manual.pdf.tgz )"
+
+LICENSE="MOTIF"
+SLOT="2.3"
+KEYWORDS="~x86 ~x86-fbsd"
+IUSE="doc xft jpeg png examples"
+
+RDEPEND="virtual/libc
+ x11-libs/libXmu
+ x11-libs/libXaw
+ x11-libs/libXp
+ x11-proto/printproto
+ xft? ( x11-libs/libXft )
+ jpeg? ( media-libs/jpeg )
+ png? ( media-libs/libpng )
+ >=x11-libs/motif-config-0.9"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4
+ x11-misc/xbitmaps"
+
+PROVIDE="virtual/motif"
+
+pkg_setup() {
+ # multilib includes don't work right in this package...
+ [ -n "${ABI}" ] && append-flags "-I/usr/include/gentoo-multilib/${ABI}"
+}
+
+src_compile() {
+ local myconf
+
+ # get around some LANG problems in make (#15119)
+ unset LANG
+
+ # bug #80421
+ filter-flags -ftracer
+
+ append-flags -fno-strict-aliasing
+
+ use xft && myconf="${myconf} `use_enable xft`"
+ use jpeg && myconf="${myconf} `use_enable jpeg`"
+ use png && myconf="${myconf} `use_enable png`"
+
+ econf --with-x \
+ ${myconf} || die "configuration failed"
+
+ emake -j1 || die "make failed, if you have lesstif installed removed it, compile openmotif and recompile lesstif"
+}
+
+
+src_install() {
+ make DESTDIR=${D} install || die "make install failed"
+
+ # cleanups
+ rm -fR ${D}/usr/$(get_libdir)/X11
+ rm -fR ${D}/usr/$(get_libdir)/X11/bindings
+ rm -fR ${D}/usr/include/X11/
+
+ list="/usr/share/man/man1/mwm.1 /usr/share/man/man4/mwmrc.4"
+ for f in $list; do
+ dosed 's:/usr/lib/X11/\(.*system\\&\.mwmrc\):/etc/X11/mwm/\1:g' "$f"
+ dosed 's:/usr/lib/X11/app-defaults:/etc/X11/app-defaults:g' "$f"
+ done
+
+
+ einfo "Fixing binaries"
+ dodir /usr/$(get_libdir)/openmotif-${SLOT}
+ for file in `ls ${D}/usr/bin`
+ do
+ mv ${D}/usr/bin/${file} ${D}/usr/$(get_libdir)/openmotif-${SLOT}/${file}
+ done
+
+ einfo "Fixing libraries"
+ mv ${D}/usr/$(get_libdir)/* ${D}/usr/$(get_libdir)/openmotif-${SLOT}/
+
+ einfo "Fixing includes"
+ dodir /usr/include/openmotif-${SLOT}/
+ mv ${D}/usr/include/* ${D}/usr/include/openmotif-${SLOT}
+
+ einfo "Fixing man pages"
+ mans="1 3 4 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}-openmotif-2.2.${man}
+ done
+ done
+
+ # install docs
+ dodoc README RELEASE RELNOTES BUGREPORT TODO
+
+ use doc && cp ${WORKDIR}/*.pdf ${D}/usr/share/doc/${PF}
+
+ if ( use examples )
+ then
+ dodir /usr/share/doc/${PF}/demos
+ mv ${D}/usr/share/Xm ${D}/usr/share/doc/${PF}/demos
+ else
+ rm -rf ${D}/usr/share/Xm
+ fi
+
+ # profile stuff
+ dodir /etc/env.d
+ echo "LDPATH=/usr/$(get_libdir)/openmotif-${SLOT}" > ${D}/etc/env.d/15openmotif-${SLOT}
+ dodir /usr/$(get_libdir)/motif
+ echo "PROFILE=openmotif-${SLOT}" > ${D}/usr/$(get_libdir)/motif/openmotif-${SLOT}
+}
+
+pkg_postinst() {
+ /usr/bin/motif-config -s
+}
+
+pkg_postrm() {
+ /usr/bin/motif-config -s
+}