Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
View | Details | Raw Unified | Return to bug 458570
Collapse All | Expand All

(-)freebsd.eclass.orig (-2 / +33 lines)
Lines 6-11 Link Here
6
6
7
inherit versionator eutils flag-o-matic bsdmk
7
inherit versionator eutils flag-o-matic bsdmk
8
8
9
# Drop patch level from ${PV}
10
MY_PV=${PV/_p*}
11
PLEVEL=${PV##*_p}
12
9
LICENSE="BSD"
13
LICENSE="BSD"
10
HOMEPAGE="http://www.freebsd.org/"
14
HOMEPAGE="http://www.freebsd.org/"
11
15
Lines 27-33 Link Here
27
CDDL="freebsd-cddl-${PV}"
31
CDDL="freebsd-cddl-${PV}"
28
32
29
# Release version (5.3, 5.4, 6.0, etc)
33
# Release version (5.3, 5.4, 6.0, etc)
30
RV="$(get_version_component_range 1-2)"
34
RV="$(get_version_component_range 1-2 ${MY_PV})"
35
36
# SVN ebuild support, details please see bug 458570.
37
if [[ ${MY_PV} == *9999* ]]; then
38
	inherit subversion
39
40
	# Set SVN revision using patch level.
41
	[[ ${PV} == *_p* ]] && ESVN_REVISION="${PLEVEL}"
42
43
	# freebsd-mk-defs is always run svn checkout/update.
44
	# Other packages use sources that it checked out.
45
	[[ ${PN} == freebsd-mk-defs ]] || ESVN_OFFLINE="1"
46
47
	case ${MY_PV%.9999} in
48
		*.*.*)	BRANCH="release";;
49
		*.*)	BRANCH="releng"	;;
50
		9999)	BRANCH="head"	;;
51
		*)	BRANCH="stable"	;;
52
	esac
53
	[[ ${BRANCH} == head ]] || SVN_SUB_URI="${BRANCH}/${MY_PV%.9999}"
54
	[[ ${BRANCH} == head ]] && SVN_SUB_URI="${BRANCH}"
55
	ESVN_REPO_URI="svn://svn.freebsd.org/base/${SVN_SUB_URI}"
56
	ESVN_PROJECT="freebsd-${BRANCH}"
57
fi
31
58
32
if [[ ${PN} != "freebsd-share" ]] && [[ ${PN} != freebsd-sources ]]; then
59
if [[ ${PN} != "freebsd-share" ]] && [[ ${PN} != freebsd-sources ]]; then
33
	IUSE="profile"
60
	IUSE="profile"
Lines 90-96 Link Here
90
}
117
}
91
118
92
freebsd_src_unpack() {
119
freebsd_src_unpack() {
93
	unpack ${A}
120
	if [[ ${MY_PV} == *9999* ]]; then
121
		S="${WORKDIR}" subversion_src_unpack
122
	else
123
		unpack ${A}
124
	fi
94
	cd "${S}"
125
	cd "${S}"
95
126
96
	dummy_mk ${REMOVE_SUBDIRS}
127
	dummy_mk ${REMOVE_SUBDIRS}

Return to bug 458570