summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuta Satoh <nigoro@gentoo.gr.jp>2015-11-23 20:56:34 +0900
committerYuta Satoh <nigoro@gentoo.gr.jp>2015-11-23 20:56:34 +0900
commit73a205d7991182e5d2e1f8135b8c1a4b7482ba4e (patch)
tree7a32089bc452d59fcd75694ba690b8a724b4e9b4 /sys-freebsd/freebsd-usbin
parentsys-devel/autogen: fix use of hardcoded /tmp paths during build #563352 (diff)
downloadgentoo-73a205d7991182e5d2e1f8135b8c1a4b7482ba4e.tar.gz
gentoo-73a205d7991182e5d2e1f8135b8c1a4b7482ba4e.tar.bz2
gentoo-73a205d7991182e5d2e1f8135b8c1a4b7482ba4e.zip
sys-freebsd: Move use call from global scope to pkg_setup.
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=566522
Diffstat (limited to 'sys-freebsd/freebsd-usbin')
-rw-r--r--sys-freebsd/freebsd-usbin/freebsd-usbin-10.2-r4.ebuild11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys-freebsd/freebsd-usbin/freebsd-usbin-10.2-r4.ebuild b/sys-freebsd/freebsd-usbin/freebsd-usbin-10.2-r4.ebuild
index 00a5cb592e9f..ddbe6c23c47f 100644
--- a/sys-freebsd/freebsd-usbin/freebsd-usbin-10.2-r4.ebuild
+++ b/sys-freebsd/freebsd-usbin/freebsd-usbin-10.2-r4.ebuild
@@ -30,13 +30,6 @@ EXTRACTONLY="
etc/
gnu/
"
-use nis && EXTRACTONLY+="libexec/"
-if use build ; then
- EXTRACTONLY+="
- sys/
- include/
- "
-fi
RDEPEND="=sys-freebsd/freebsd-lib-${RV}*[usb?,bluetooth?,netware?]
=sys-freebsd/freebsd-libexec-${RV}*
@@ -60,6 +53,10 @@ S="${WORKDIR}/usr.sbin"
IUSE="acpi atm audit bluetooth floppy ipv6 kerberos minimal netware nis pam ssl usb build"
pkg_setup() {
+ # Add the required source files.
+ use nis && EXTRACTONLY+="libexec/ "
+ use build && EXTRACTONLY+="sys/ include/ "
+
# Release crunch is something like minimal. It seems to remove everything
# which is not needed to work.
use minimal && mymakeopts="${mymakeopts} RELEASE_CRUNCH= "