# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-libs/ss/ss-1.38.ebuild,v 1.3 2005/07/15 17:52:54 gustavoz Exp $ inherit eutils flag-o-matic toolchain-funcs DESCRIPTION="Subsystem command parsing library" HOMEPAGE="http://e2fsprogs.sourceforge.net/" SRC_URI="mirror://sourceforge/e2fsprogs/e2fsprogs-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh sparc x86" IUSE="nls" RDEPEND="~sys-libs/com_err-${PV}" DEPEND="${RDEPEND} nls? ( sys-devel/gettext )" S=${WORKDIR}/e2fsprogs-${PV} src_unpack() { unpack ${A} cd "${S}" # Clean up makefile to suck less epatch "${FILESDIR}"/${PN}-1.37-makefile.patch # Keep the package from doing silly things export LDCONFIG=/bin/true export CC=$(tc-getCC) export STRIP=/bin/true } src_compile() { econf \ --enable-elf-shlibs \ --with-ldopts="${LDFLAGS}" \ $(use_enable nls) \ || die emake -C lib/ss COMPILE_ET=compile_et || die "make ss failed" } src_test() { make -C lib/ss check || die "make check failed" } src_install() { dodir /usr/share/man/man1 make -C lib/ss DESTDIR="${D}" install || die # Move shared libraries to /lib/, install static libraries to /usr/lib/, # and install linker scripts to /usr/lib/. dodir /$(get_libdir) mv "${D}"/usr/$(get_libdir)/*.so* "${D}"/$(get_libdir)/ dolib.a lib/libss.a || die "dolib.a" gen_usr_ldscript libss.so }