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-cddl
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-cddl')
-rw-r--r--sys-freebsd/freebsd-cddl/freebsd-cddl-10.2.ebuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys-freebsd/freebsd-cddl/freebsd-cddl-10.2.ebuild b/sys-freebsd/freebsd-cddl/freebsd-cddl-10.2.ebuild
index 9dcfe3cacd80..7da5b2f5afd9 100644
--- a/sys-freebsd/freebsd-cddl/freebsd-cddl-10.2.ebuild
+++ b/sys-freebsd/freebsd-cddl/freebsd-cddl-10.2.ebuild
@@ -25,7 +25,6 @@ EXTRACTONLY="
sbin/
sys/
"
-use build && EXTRACTONLY+="include/"
RDEPEND="=sys-freebsd/freebsd-lib-${RV}*
=sys-freebsd/freebsd-libexec-${RV}*
@@ -42,6 +41,11 @@ PATCHES=(
"${FILESDIR}/${PN}-10.2-underlink.patch"
)
+pkg_setup() {
+ # Add the required source files.
+ use build && EXTRACTONLY+="include/ "
+}
+
src_prepare() {
if [[ ! -e "${WORKDIR}/include" ]]; then
# Link in include headers.