diff options
Diffstat (limited to 'media-sound/alsa-headers/alsa-headers-1.0.25-r1.ebuild')
-rw-r--r-- | media-sound/alsa-headers/alsa-headers-1.0.25-r1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/media-sound/alsa-headers/alsa-headers-1.0.25-r1.ebuild b/media-sound/alsa-headers/alsa-headers-1.0.25-r1.ebuild new file mode 100644 index 000000000000..eaeb056ce884 --- /dev/null +++ b/media-sound/alsa-headers/alsa-headers-1.0.25-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-headers/alsa-headers-1.0.25-r1.ebuild,v 1.1 2013/04/16 04:09:12 ssuominen Exp $ + +EAPI=5 + +if [[ ${PV} = 9999* ]]; then + inherit git-2 +else + MY_P=${P/headers/driver} + SRC_URI="mirror://alsaproject/driver/${MY_P}.tar.bz2" + S=${WORKDIR}/${MY_P} + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +fi + +inherit eutils + +DESCRIPTION="Header files for Advanced Linux Sound Architecture kernel modules" +HOMEPAGE="http://www.alsa-project.org/" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +IUSE="" + +RESTRICT="binchecks strip" + +EGIT_REPO_URI="git://git.alsa-project.org/alsa-kmirror.git + http://git.alsa-project.org/http/alsa-kmirror.git" + +pkg_setup() { + local obsolete_symlink="${ROOT}"/usr/include/sound + if [[ -L ${obsolete_symlink} ]]; then + ebegin "Removing obsolete symlink ${obsolete_symlink}" + rm "${obsolete_symlink}" + eend $? + fi +} + +src_prepare() { + [[ ${PV} = 9999* ]] || epatch "${FILESDIR}"/${PN}-1.0.6a-user.patch +} + +src_configure() { :; } +src_compile() { :; } + +src_install() { + [[ ${PV} = 9999* ]] || cd alsa-kernel + insinto /usr/include/sound + doins include/*.h +} |