diff options
author | Ulrich Müller <ulm@gentoo.org> | 2008-03-25 15:23:28 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2008-03-25 15:23:28 +0000 |
commit | 59119fb836f4b92689ca9ece647fd8f5d398e273 (patch) | |
tree | b6c82bf3155ad133694d76d74484a6d3eaa1507a /x11-libs/openmotif-compat/openmotif-compat-2.2.3.ebuild | |
parent | Remove redudant ChangeLog entry accidentally committed (diff) | |
download | historical-59119fb836f4b92689ca9ece647fd8f5d398e273.tar.gz historical-59119fb836f4b92689ca9ece647fd8f5d398e273.tar.bz2 historical-59119fb836f4b92689ca9ece647fd8f5d398e273.zip |
Legacy Open Motif libraries for old binaries.
Moved here from x11-libs/openmotif:2.2, bug 210021.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'x11-libs/openmotif-compat/openmotif-compat-2.2.3.ebuild')
-rw-r--r-- | x11-libs/openmotif-compat/openmotif-compat-2.2.3.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/x11-libs/openmotif-compat/openmotif-compat-2.2.3.ebuild b/x11-libs/openmotif-compat/openmotif-compat-2.2.3.ebuild new file mode 100644 index 000000000000..897705b91168 --- /dev/null +++ b/x11-libs/openmotif-compat/openmotif-compat-2.2.3.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif-compat/openmotif-compat-2.2.3.ebuild,v 1.1 2008/03/25 15:23:28 ulm Exp $ + +WANT_AUTOCONF="latest" +WANT_AUTOMAKE="1.6" + +inherit eutils flag-o-matic multilib autotools + +MY_P=openMotif-${PV} +DESCRIPTION="Legacy Open Motif libraries for old binaries" +HOMEPAGE="http://www.motifzone.org/" +SRC_URI="ftp://ftp.ics.com/openmotif/2.2/${PV}/src/${MY_P}.tar.gz + mirror://gentoo/openmotif-${PV}-patches-1.tar.bz2" + +LICENSE="MOTIF" +SLOT="2.2" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="!x11-libs/motif-config + !x11-libs/lesstif + !=x11-libs/openmotif-2.2* + x11-libs/libXmu + x11-libs/libXaw + x11-libs/libXp" + +DEPEND="${RDEPEND} + x11-misc/xbitmaps + x11-proto/printproto" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + cd "${S}" + + EPATCH_SUFFIX=patch epatch + + # This replaces deprecated, obsoleted and now invalid AC_DEFINE + # with their proper alternatives. + sed -i -e 's:AC_DEFINE(\([^)]*\)):AC_DEFINE(\1, [], [\1]):g' \ + configure.in acinclude.m4 + + # Build only the libraries + sed -i -e '/^SUBDIRS/{:x;/\\$/{N;bx;};s/=.*/= lib clients/;}' Makefile.am + sed -i -e '/^SUBDIRS/{:x;/\\$/{N;bx;};s/=.*/= uil/;}' clients/Makefile.am + + eautoreconf +} + +src_compile() { + # get around some LANG problems in make (#15119) + unset LANG + + # bug #80421 + filter-flags -ftracer + + # multilib includes don't work right in this package... + has_multilib_profile && append-flags "-I$(get_ml_incdir)" + + # feel free to fix properly if you care + append-flags -fno-strict-aliasing + + econf --with-x || die "econf failed" + emake -j1 || die "emake failed" +} + +src_install() { + emake -j1 DESTDIR="${D}" install-exec || die "emake install failed" + + # cleanups + rm -Rf "${D}"/usr/bin + rm -f "${D}"/usr/$(get_libdir)/*.{so,la,a} + + dodoc README RELEASE RELNOTES BUGREPORT TODO +} |