aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Presnyakov <flagist0@gmail.com>2015-06-13 14:06:07 +0300
committerAlexander Presnyakov <flagist0@gmail.com>2015-06-13 14:06:07 +0300
commitcdf83fa51f24ee7beeb0cd715326a31b471a5720 (patch)
treea14482070cc66a46253f77ba58116b75b04c9de4 /media-libs/avbin-bin
parentneuro/sci: media-libs/avbin-bin build fixed -- package S (source directory) d... (diff)
downloadsci-cdf83fa51f24ee7beeb0cd715326a31b471a5720.tar.gz
sci-cdf83fa51f24ee7beeb0cd715326a31b471a5720.tar.bz2
sci-cdf83fa51f24ee7beeb0cd715326a31b471a5720.zip
neuro/sci: media-libs/avbin-bin build fixed -- moved source directory determination to pkg_setup
Package-Manager: portage-2.2.14
Diffstat (limited to 'media-libs/avbin-bin')
-rw-r--r--media-libs/avbin-bin/ChangeLog4
-rw-r--r--media-libs/avbin-bin/avbin-bin-7.ebuild13
2 files changed, 11 insertions, 6 deletions
diff --git a/media-libs/avbin-bin/ChangeLog b/media-libs/avbin-bin/ChangeLog
index 761bf88f1..5b1f30334 100644
--- a/media-libs/avbin-bin/ChangeLog
+++ b/media-libs/avbin-bin/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 13 Jun 2015; Alexander Presnyakov <flagist0@gmail.com> avbin-bin-7.ebuild:
+ neuro/sci: media-libs/avbin-bin build fixed -- moved source directory
+ determination to pkg_setup
+
09 Jun 2015; Alexander Presnyakov <flagist0@gmail.com> avbin-bin-7.ebuild:
neuro/sci: media-libs/avbin-bin build fixed -- package S (source directory)
depends on architecture
diff --git a/media-libs/avbin-bin/avbin-bin-7.ebuild b/media-libs/avbin-bin/avbin-bin-7.ebuild
index db4bcf723..8d655a44c 100644
--- a/media-libs/avbin-bin/avbin-bin-7.ebuild
+++ b/media-libs/avbin-bin/avbin-bin-7.ebuild
@@ -15,12 +15,13 @@ SLOT="0"
KEYWORDS="~amd64 ~x86 -*"
IUSE=""
-if use amd64; then
- S="${WORKDIR}"/avbin-linux-x86-64-${PV}
-elif use x86; then
- S="${WORKDIR}"/avbin-linux-x86-32-${PV}
-fi
-
+pkg_setup(){
+ if use amd64; then
+ S="${WORKDIR}"/avbin-linux-x86-64-${PV}
+ elif use x86; then
+ S="${WORKDIR}"/avbin-linux-x86-32-${PV}
+ fi
+}
src_install() {
ln -s libavbin.so.${PV} libavbin.so || die
dolib libavbin.so*