Files
@ c2781a98f8c9
Branch filter:
Location: ohnobinki_overlay/dev-util/build/build-0.3.5.ebuild - annotation
c2781a98f8c9
1.5 KiB
application/vnd.gentoo.ebuild
media-libs/libao: Initial import from Gentoo's Portage
dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 5b9a15f07dd6 5b9a15f07dd6 8900cf1d2d77 dc769ef7eb51 dc769ef7eb51 8900cf1d2d77 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 8900cf1d2d77 5b9a15f07dd6 dc769ef7eb51 dc769ef7eb51 5b9a15f07dd6 5b9a15f07dd6 5b9a15f07dd6 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 5b9a15f07dd6 3dfe3708b676 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 dc769ef7eb51 | # Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit versionator
SLOT=$(get_version_component_range 1-2)
DESCRIPTION="A massively-parallel software build system implemented on top of GNU make"
HOMEPAGE="http://kolpackov.net/projects/build/"
SRC_URI="ftp://kolpackov.net/pub/projects/${PN}/${SLOT}/${P}.tar.bz2"
LICENSE="GPL-2"
KEYWORDS="~amd64"
IUSE="doc examples"
src_prepare() {
if use examples; then
# fix examples to use installed build
sed -i -e "s;^include.\*bootstrap.make\$;include build-${SLOT}/bootstrap.make;" \
$(find examples -name bootstrap.make) || die "patching examples failed"
rm examples/cxx/hello/hello/build/import/libhello || die "preparing examples for installation failed"
fi
if use doc; then
mv documentation/index.{x,}html || die
fi
}
src_install() {
emake install_prefix="${D}/usr" install || die "emake install failed"
dodoc NEWS README || die "dodoc failed"
if use doc; then
dohtml documentation/{default.css,index.html} || die "installing HTML docs failed"
dodoc $(find documentation -type f -regex '[^.]*') || die "installing plaintext docs failed"
fi
if use examples; then
local docdir=/usr/share/doc/${PF}
insinto ${docdir}
# preserve symlinks and avoid cp:
doins -r examples || die "installing examples failed"
dosym ../../../libhello/build/import/libhello ${docdir}/examples/cxx/hello/hello/build/import/libhello || die "repairing examples symlink failed"
fi
}
|