From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1D6311381FA for ; Mon, 31 Dec 2012 09:52:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0CB5FE060D; Mon, 31 Dec 2012 09:51:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7E0E5E05DB for ; Mon, 31 Dec 2012 09:51:54 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8CC0133D0AF for ; Mon, 31 Dec 2012 09:51:53 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id A4177E544F for ; Mon, 31 Dec 2012 09:51:50 +0000 (UTC) From: "Yuta SATOH" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yuta SATOH" Message-ID: <1356941360.bf01dfe1530b4298201bca966634595867044ccc.yuta_satoh@gentoo> Subject: [gentoo-commits] proj/gentoo-bsd:master commit in: eclass/ X-VCS-Repository: proj/gentoo-bsd X-VCS-Files: eclass/freebsd.eclass X-VCS-Directories: eclass/ X-VCS-Committer: yuta_satoh X-VCS-Committer-Name: Yuta SATOH X-VCS-Revision: bf01dfe1530b4298201bca966634595867044ccc X-VCS-Branch: master Date: Mon, 31 Dec 2012 09:51:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1ec4cd6d-b6f3-427d-a0c5-def0dfabdcc5 X-Archives-Hash: da55d5b575553abba1f0f07233eeda64 commit: bf01dfe1530b4298201bca966634595867044ccc Author: Yuta SATOH gentoo gr jp> AuthorDate: Mon Dec 31 08:09:20 2012 +0000 Commit: Yuta SATOH 0x100 com> CommitDate: Mon Dec 31 08:09:20 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=commit;h=bf01dfe1 freebsd.eclass: add support live svn ebuild -9.1.9999: releng/9.1 -9.9999: stable/9 -9999: head --- eclass/freebsd.eclass | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/eclass/freebsd.eclass b/eclass/freebsd.eclass index 53a0b8a..0c6b444 100644 --- a/eclass/freebsd.eclass +++ b/eclass/freebsd.eclass @@ -29,6 +29,20 @@ CDDL="freebsd-cddl-${PV}" # Release version (5.3, 5.4, 6.0, etc) RV="$(get_version_component_range 1-2)" +if [ "${PV%.9999}" != "${PV}" ]; then + inherit subversion + if [[ "${PV%.9999}" == *\.* ]]; then + ESVN_REPO_URI="svn://svn.freebsd.org/base/releng/${PV%.9999}" + ESVN_PROJECT="freebsd-releng" + else + ESVN_REPO_URI="svn://svn.freebsd.org/base/stable/${PV%.9999}" + ESVN_PROJECT="freebsd-stable" + fi +else + ESVN_REPO_URI="svn://svn.freebsd.org/base/head" + ESVN_PROJECT="freebsd-head" +fi + if [[ ${PN} != "freebsd-share" ]] && [[ ${PN} != freebsd-sources ]]; then IUSE="profile" fi @@ -90,8 +104,13 @@ freebsd_rename_libraries() { } freebsd_src_unpack() { - unpack ${A} - cd "${S}" + if [[ ${PV} == *9999* ]]; then + S="${WORKDIR}" subversion_src_unpack + cd "${S}" + else + unpack ${A} + cd "${S}" + fi dummy_mk ${REMOVE_SUBDIRS}