summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-devel/libtool/libtool-1.4.3-r3.ebuild')
-rw-r--r--sys-devel/libtool/libtool-1.4.3-r3.ebuild175
1 files changed, 175 insertions, 0 deletions
diff --git a/sys-devel/libtool/libtool-1.4.3-r3.ebuild b/sys-devel/libtool/libtool-1.4.3-r3.ebuild
new file mode 100644
index 000000000000..d18d6e128c4f
--- /dev/null
+++ b/sys-devel/libtool/libtool-1.4.3-r3.ebuild
@@ -0,0 +1,175 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/libtool/libtool-1.4.3-r3.ebuild,v 1.1 2003/11/17 00:12:03 azarah Exp ${P}-r1.ebuild,v 1.8 2002/10/04 06:34:42 vapier Exp $
+
+IUSE=
+
+inherit eutils gnuconfig
+
+# NOTE: We install libltdl of libtool-1.3x for compat reasons ...
+
+OLD_PV="1.3.5"
+S="${WORKDIR}/${P}"
+OLD_S="${WORKDIR}/${PN}-${OLD_PV}"
+DESCRIPTION="A shared library tool for developers"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz
+ mirror://gnu/${PN}/${PN}-${OLD_PV}.tar.gz"
+HOMEPAGE="http://www.gnu.org/software/libtool/libtool.html"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~ppc ~sparc ~alpha ~mips ~hppa ~arm ~ia64"
+
+DEPEND="virtual/glibc"
+
+
+lt_setup() {
+ export WANT_AUTOCONF_2_5=1
+ export WANT_AUTOMAKE_1_5=1
+}
+
+gen_ltmain_sh() {
+ local date=
+ local PACKAGE=
+ local VERSION=
+
+ rm -f ltmain.shT
+ date=`./mkstamp < ./ChangeLog` && \
+ eval `grep '^PACKAGE' configure` && \
+ eval `grep '^VERSION' configure` && \
+ sed -e "s/@PACKAGE@/${PACKAGE}/" -e "s/@VERSION@/${VERSION}/" \
+ -e "s%@TIMESTAMP@%$date%" ./ltmain.in > ltmain.shT || return 1
+
+ mv -f ltmain.shT ltmain.sh || {
+ (rm -f ltmain.sh && cp ltmain.shT ltmain.sh && rm -f ltmain.shT)
+ return 1
+ }
+
+ return 0
+}
+
+src_unpack() {
+ lt_setup
+
+ unpack ${A}
+
+ cd ${OLD_S}
+ echo
+ # Install updated missing script
+ portageq has_version / "sys-devel/automake" && {
+ rm -f missing
+ automake --add-missing
+ }
+
+ einfo "Patching ${OLD_S##*/} ..."
+ epatch ${FILESDIR}/${PV}/${PN}-1.2f-cache.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.3.5-nonneg.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.3.5-mktemp.patch
+
+ use hppa && S="${OLD_S}" gnuconfig_update
+
+ cd ${S}
+ echo
+ # Install updated missing script
+ portageq has_version / "sys-devel/automake" && {
+ rm -f missing
+ automake --add-missing
+ }
+
+ # Make sure non of the patches touch ltmain.sh, but rather ltmain.in
+ rm -f ltmain.sh*
+
+ einfo "Patching ${S##*/} ..."
+ # Redhat patches
+ epatch ${FILESDIR}/${PV}/${PN}-1.3.5-mktemp.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4-nonneg.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.2-s390_x86_64.patch
+ # Fix the relink problem where the relinked libs do not get
+ # installed. It is *VERY* important that you get a updated
+ # 'libtool-${PV}-relink.patch' if you update this, as it
+ # fixes a very serious bug. Please not that this patch is
+ # included in 'libtool-${PV}-gentoo.patch' for this ebuild.
+ #
+ # NOTE: all affected apps should get a 'libtoolize --copy --force'
+ # added to upate libtool
+ #
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.2-relink-58664.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.2-multilib.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.2-demo.patch
+ # Mandrake patches
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.3-quotes.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.3-lib64.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.2-add-x11r6-lib-in-ignores-for-rpath.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.2-fix-linkage-of-cxx-code-with-gcc.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.2-archive-shared.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.3-ltmain-SED.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.2-expsym-linux.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.3-amd64-alias.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.3-libtoolize--config-only.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.3-pass-thread-flags.patch
+ # Do not create bogus entries in $dependency_libs or $libdir
+ # with ${D} or ${S} in them.
+ #
+ # Azarah - 07 April 2002
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.2-portage.patch
+
+ einfo "Generate ltmain.sh ..."
+ gen_ltmain_sh || die "Failed to generate ltmain.sh!"
+}
+
+src_compile() {
+ lt_setup
+
+ #
+ # ************ libtool-1.3x ************
+ #
+
+ cd ${OLD_S}
+ einfo "Configuring ${OLD_S##*/} ..."
+ ./configure --host=${CHOST} \
+ --prefix=/usr \
+ --infodir=/usr/share/info || die
+
+ einfo "Building ${OLD_S##*/} ..."
+ emake || die
+
+ #
+ # ************ libtool-1.4x ************
+ #
+
+ cd ${S}
+ einfo "Configuring ${S##*/} ..."
+ ./configure --host=${CHOST} \
+ --prefix=/usr \
+ --infodir=/usr/share/info || die
+
+ einfo "Building ${S##*/} ..."
+ emake || die
+}
+
+src_install() {
+ #
+ # ************ libtool-1.3x ************
+ #
+
+ einfo "Installing ${OLD_S##*/} ..."
+ cd ${OLD_S}/libltdl; make DESTDIR=${D} install || die
+
+ # Remove stuff we are not going to use ...
+ for x in libltdl.a libltdl.la libltdl.so
+ do
+ [ -f ${x} ] && rm -f ${D}/usr/lib/${x}
+ done
+ rm -rf ${D}/usr/include
+
+ #
+ # ************ libtool-1.4x ************
+ #
+
+ einfo "Installing ${S##*/} ..."
+ cd ${S}; make DESTDIR=${D} install || die
+
+ dodoc AUTHORS COPYING ChangeLog* NEWS \
+ README THANKS TODO doc/PLATFORMS
+}
+