forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-lang/orc: bump to EAPI=6, switch to multilib-minimal
Do not build examples at all, binaries are not installed, thus avoiding bug #556160 altogether. Package-Manager: portage-2.3.0
- Loading branch information
Showing
1 changed file
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=6 | ||
|
||
inherit eutils flag-o-matic multilib-minimal pax-utils | ||
|
||
DESCRIPTION="The Oil Runtime Compiler, a just-in-time compiler for array operations" | ||
HOMEPAGE="https://gstreamer.freedesktop.org/" | ||
SRC_URI="https://gstreamer.freedesktop.org/src/${PN}/${P}.tar.xz" | ||
|
||
LICENSE="BSD BSD-2" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" | ||
IUSE="examples pax_kernel static-libs" | ||
|
||
RDEPEND="" | ||
DEPEND="${RDEPEND} | ||
app-arch/xz-utils | ||
>=dev-util/gtk-doc-am-1.12 | ||
" | ||
|
||
src_prepare() { | ||
default | ||
|
||
# Do not build examples | ||
sed -e '/SUBDIRS/ s:examples::' \ | ||
-i Makefile.am Makefile.in || die | ||
} | ||
|
||
multilib_src_configure() { | ||
# any optimisation on PPC/Darwin yields in a complaint from the assembler | ||
# Parameter error: r0 not allowed for parameter %lu (code as 0 not r0) | ||
# the same for Intel/Darwin, although the error message there is different | ||
# but along the same lines | ||
[[ ${CHOST} == *-darwin* ]] && filter-flags -O* | ||
|
||
# FIXME: handle backends per arch ? | ||
ECONF_SOURCE="${S}" econf \ | ||
--disable-gtk-doc \ | ||
--enable-backend=all \ | ||
$(use_enable static-libs static) | ||
} | ||
|
||
multilib_src_install() { | ||
emake DESTDIR="${D}" install | ||
prune_libtool_files --all | ||
|
||
if use pax_kernel; then | ||
pax-mark m "${ED}"usr/bin/orc-bugreport | ||
pax-mark m "${ED}"usr/bin/orcc | ||
pax-mark m "${ED}"usr/$(get_libdir)/liborc*.so* | ||
fi | ||
} | ||
|
||
multilib_src_install_all() { | ||
einstalldocs | ||
|
||
if use examples; then | ||
insinto /usr/share/doc/${PF}/examples | ||
doins examples/{*.c,*.orc} | ||
fi | ||
} | ||
|
||
pkg_postinst() { | ||
if use pax_kernel; then | ||
ewarn "Please run \"revdep-pax\" after installation". | ||
ewarn "It's provided by sys-apps/elfix." | ||
fi | ||
} |