blob: 18e811724980af051a3cbc2750b17083bf6faea6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-6.0-r1.ebuild,v 1.3 2006/04/19 00:28:30 flameeyes Exp $
inherit bsdmk freebsd
DESCRIPTION="Makefiles definitions used for building and installing libraries and system files"
SLOT="0"
KEYWORDS="~x86-fbsd"
IUSE=""
SRC_URI="mirror://gentoo/${SHARE}.tar.bz2"
RDEPEND=""
DEPEND=""
RESTRICT="nostrip"
S="${WORKDIR}/share/mk"
src_unpack() {
unpack ${A}
cd ${WORKDIR}/share
epatch "${FILESDIR}/${PN}-${RV}-gentoo.patch"
epatch "${FILESDIR}/${PN}-flex.patch"
epatch "${FILESDIR}/${PN}-${RV}-strip.patch"
epatch "${FILESDIR}/${PN}-${RV}-nowerror.patch"
[[ ${CHOST} != *-*bsd* || ${CHOST} == *-gnu ]] && \
sed -i -e 's:${INSTALL} -C:${INSTALL}:g' "${S}/"*
}
src_compile() {
einfo "Nothing to compile"
}
src_install() {
if [[ ${CHOST} != *-freebsd* ]]; then
insinto /usr/share/mk/freebsd
else
insinto /usr/share/mk
fi
doins *.mk
}
|