View | Details | Raw Unified
Collapse All | Expand All

(-) com_err-1.38.ebuild (-12 / +21 lines)
 Lines 2-8    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/com_err/com_err-1.38.ebuild,v 1.7 2005/07/20 12:25:14 corsair Exp $
# $Header: /var/cvsroot/gentoo-x86/sys-libs/com_err/com_err-1.38.ebuild,v 1.7 2005/07/20 12:25:14 corsair Exp $
inherit eutils flag-o-matic toolchain-funcs
inherit eutils flag-o-matic toolchain-funcs libtool
DESCRIPTION="common error display library"
DESCRIPTION="common error display library"
HOMEPAGE="http://e2fsprogs.sourceforge.net/"
HOMEPAGE="http://e2fsprogs.sourceforge.net/"
 Lines 10-16    Link Here 
LICENSE="GPL-2"
LICENSE="GPL-2"
SLOT="0"
SLOT="0"
KEYWORDS="alpha amd64 arm ~hppa ~ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
KEYWORDS="alpha amd64 arm ~hppa ~ia64 m68k ~mips ppc ~ppc-macos ppc64 s390 sh sparc x86"
IUSE="nls"
IUSE="nls"
RDEPEND=""
RDEPEND=""
 Lines 22-28    Link Here 
	unpack ${A}
	unpack ${A}
	cd "${S}"
	cd "${S}"
	# Clean up makefile to suck less
	# Clean up makefile to suck less
	epatch "${FILESDIR}"/${PN}-1.37-makefile.patch
	#epatch "${FILESDIR}"/${PN}-1.37-makefile.patch
	# Keep the package from doing silly things
	# Keep the package from doing silly things
	export LDCONFIG=/bin/true
	export LDCONFIG=/bin/true
 Lines 31-40    Link Here 
}
}
src_compile() {
src_compile() {
	mycnf=
	mycnf="--with-ldopts=${LDFLAGS}"
	use userland_Darwin && mycnf="${mycnf} --enable-bsd-shlibs" \
		|| mycnf="${mycnf} --enable-elf-shlibs"
	econf \
	econf \
		--enable-elf-shlibs \
		--with-ldopts="${LDFLAGS}" \
		$(use_enable nls) \
		$(use_enable nls) \
		${mycnf} \
		|| die
		|| die
	emake -C lib/et || die
	emake -C lib/et || die
}
}
 Lines 44-59    Link Here 
}
}
src_install() {
src_install() {
	make -C lib/et DESTDIR="${D}" install || die
	if use userland_Darwin ; then
		dodir /usr/$(get_libdir)
		make -C lib/et DESTDIR="${D}" install || die
		dosym /usr/$(get_libdir)/libcom_err.1.1.dylib /usr/$(get_libdir)/libcom_err.dylib
	else	
		make -C lib/et 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)/
		gen_usr_ldscript libcom_err.so
	fi
	dosed '/^ET_DIR=/s:=.*:=/usr/share/et:' /usr/bin/compile_et
	dosed '/^ET_DIR=/s:=.*:=/usr/share/et:' /usr/bin/compile_et
	dosym et/com_err.h /usr/include/com_err.h
	dosym et/com_err.h /usr/include/com_err.h
	# 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/libcom_err.a || die "dolib.a"
	dolib.a lib/libcom_err.a || die "dolib.a"
	gen_usr_ldscript libcom_err.so
}
}
pkg_postinst() {
pkg_postinst() {