/[gentoo-x86]/sys-freebsd/freebsd-cddl/freebsd-cddl-10.1.ebuild
Gentoo

Contents of /sys-freebsd/freebsd-cddl/freebsd-cddl-10.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jun 5 16:43:55 2015 UTC (4 years, 4 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +11 -9 lines
Bump to EAPI=5. Use upstream tarballs.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-cddl/freebsd-cddl-10.1.ebuild,v 1.1 2015/03/08 14:01:56 mgorny Exp $
4
5 EAPI=5
6
7 inherit bsdmk freebsd toolchain-funcs multilib
8
9 DESCRIPTION="FreeBSD CDDL (opensolaris/zfs) extra software"
10 SLOT="0"
11
12 IUSE="build"
13 LICENSE="CDDL GPL-2"
14
15 if [[ ${PV} != *9999* ]]; then
16 KEYWORDS="~amd64-fbsd ~x86-fbsd"
17 fi
18
19 # sys is required.
20 EXTRACTONLY="
21 cddl/
22 contrib/
23 usr.bin/
24 lib/
25 sbin/
26 sys/
27 "
28 use build && EXTRACTONLY+="include/"
29
30 RDEPEND="=sys-freebsd/freebsd-lib-${RV}*
31 =sys-freebsd/freebsd-libexec-${RV}*
32 build? ( sys-apps/baselayout )"
33
34 DEPEND="${RDEPEND}
35 =sys-freebsd/freebsd-mk-defs-${RV}*
36 !build? ( =sys-freebsd/freebsd-sources-${RV}* )"
37
38 S="${WORKDIR}/cddl"
39
40 PATCHES=(
41 "${FILESDIR}/${PN}-9.2-libpaths.patch"
42 "${FILESDIR}/${PN}-10.1-underlink.patch"
43 )
44
45 src_prepare() {
46 if [[ ! -e "${WORKDIR}/include" ]]; then
47 # Link in include headers.
48 ln -s "/usr/include" "${WORKDIR}/include" || die "Symlinking /usr/include.."
49 fi
50 }
51
52 src_install() {
53 # Install libraries proper place
54 local mylibdir=$(get_libdir)
55 mkinstall SHLIBDIR="/usr/${mylibdir}" LIBDIR="/usr/${mylibdir}" || die
56
57 gen_usr_ldscript -a avl nvpair umem uutil zfs zpool zfs_core
58
59 # Install zfs volinit script.
60 newinitd "${FILESDIR}"/zvol.initd-9.0 zvol
61
62 # Install zfs script
63 newinitd "${FILESDIR}"/zfs.initd zfs
64
65 keepdir /etc/zfs
66 }

  ViewVC Help
Powered by ViewVC 1.1.20