diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-10-21 02:45:14 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-10-21 02:45:14 +0000 |
commit | c9a633ade79bebd40a3893025506f90c867b74f6 (patch) | |
tree | 8e6db5e9fcdc3ec8a409f263f2145a15da6a1326 | |
parent | dont install shared info pages #109945 (diff) | |
download | gentoo-2-c9a633ade79bebd40a3893025506f90c867b74f6.tar.gz gentoo-2-c9a633ade79bebd40a3893025506f90c867b74f6.tar.bz2 gentoo-2-c9a633ade79bebd40a3893025506f90c867b74f6.zip |
cleanup ebuild and use $(get_libdir) instead of /lib #109804
(Portage version: 2.0.53_rc5)
-rw-r--r-- | dev-libs/STLport/STLport-4.6.2-r2.ebuild | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/dev-libs/STLport/STLport-4.6.2-r2.ebuild b/dev-libs/STLport/STLport-4.6.2-r2.ebuild index 451fff55c334..7bf045bda432 100644 --- a/dev-libs/STLport/STLport-4.6.2-r2.ebuild +++ b/dev-libs/STLport/STLport-4.6.2-r2.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/STLport/STLport-4.6.2-r2.ebuild,v 1.4 2005/06/15 12:59:35 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/STLport/STLport-4.6.2-r2.ebuild,v 1.5 2005/10/21 02:45:14 vapier Exp $ -inherit eutils +inherit eutils multilib DESCRIPTION="C++ STL library" HOMEPAGE="http://www.stlport.org/" @@ -13,39 +13,38 @@ SLOT="0" KEYWORDS="amd64 ppc ~ppc64 sparc x86" IUSE="" -DEPEND="virtual/libc" +DEPEND="" src_unpack() { unpack ${A} - cd ${S} - epatch ${FILESDIR}/${PV}-optimize.patch - epatch ${FILESDIR}/${PV}-gcc-includes.patch + cd "${S}" + epatch "${FILESDIR}"/${PV}-optimize.patch + epatch "${FILESDIR}"/${PV}-gcc-includes.patch sed -i 's:-D_STLP_REAL_LOCALE_IMPLEMENTED::' src/gcc-linux.mak - if use ppc; then - epatch ${FILESDIR}/STLport-vector.patch + if use ppc ; then + epatch "${FILESDIR}"/STLport-vector.patch fi } src_compile() { - cd src - emake -f gcc-linux.mak || die "Compile failed" + emake -C src -f gcc-linux.mak || die "Compile failed" } src_install() { dodir /usr/include - cp -R ${S}/stlport ${D}/usr/include - rm -rf ${D}/usr/include/stlport/BC50 - chmod -R a+r ${D}/usr/include/stlport + cp -R "${S}"/stlport "${D}"/usr/include || die "doins include" + rm -rf "${D}"/usr/include/stlport/BC50 + chmod -R a+r "${D}"/usr/include/stlport - dodir /usr/lib - cp -R ${S}/lib/* ${D}/usr/lib/ - dosym libstlport_gcc_stldebug.so /usr/lib/libstlport_gcc_debug.so - rm -rf ${D}/usr/lib/obj + dodir /usr/$(get_libdir) + cp -R "${S}"/lib/* "${D}"/usr/$(get_libdir)/ || die "doins libs" + dosym libstlport_gcc_stldebug.so /usr/$(get_libdir)/libstlport_gcc_debug.so + rm -rf "${D}"/usr/$(get_libdir)/obj - cd ${S}/etc/ + cd "${S}"/etc/ dodoc ChangeLog* README TODO *.txt - cd ${S} + cd "${S}" dohtml -r doc } |