From: "Yuta SATOH" <nigoro.gentoo@0x100.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-bsd:master commit in: eclass/
Date: Fri, 4 Jan 2013 10:59:01 +0000 (UTC) [thread overview]
Message-ID: <1357297128.e4ff9f0653225e14443d8ced71b4a7fc5f8864fc.yuta_satoh@gentoo> (raw)
commit: e4ff9f0653225e14443d8ced71b4a7fc5f8864fc
Author: Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp>
AuthorDate: Fri Jan 4 10:58:48 2013 +0000
Commit: Yuta SATOH <nigoro.gentoo <AT> 0x100 <DOT> com>
CommitDate: Fri Jan 4 10:58:48 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=commit;h=e4ff9f06
freebsd.eclass: Changed from if to case, conditional branching
---
eclass/freebsd.eclass | 25 +++++++++++++++----------
1 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/eclass/freebsd.eclass b/eclass/freebsd.eclass
index c9a433e..c709f91 100644
--- a/eclass/freebsd.eclass
+++ b/eclass/freebsd.eclass
@@ -31,18 +31,24 @@ RV="$(get_version_component_range 1-2)"
if [[ "${PV}" == *9999* ]]; then
inherit subversion
- if [ "${PV%.9999}" != "${PV}" ]; then
- if [[ "${PV%.9999}" == *\.* ]]; then
+ case ${PV%.9999} in
+ *.*.*)
+ ESVN_REPO_URI="svn://svn.freebsd.org/base/release/${PV%.9999}"
+ ESVN_PROJECT="freebsd-release"
+ ;;
+ *.*)
ESVN_REPO_URI="svn://svn.freebsd.org/base/releng/${PV%.9999}"
ESVN_PROJECT="freebsd-releng"
- else
+ ;;
+ 9999)
+ ESVN_REPO_URI="svn://svn.freebsd.org/base/head"
+ ESVN_PROJECT="freebsd-head"
+ ;;
+ *)
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
+ ;;
+ esac
fi
if [[ ${PN} != "freebsd-share" ]] && [[ ${PN} != freebsd-sources ]]; then
@@ -108,11 +114,10 @@ freebsd_rename_libraries() {
freebsd_src_unpack() {
if [[ ${PV} == *9999* ]]; then
S="${WORKDIR}" subversion_src_unpack
- cd "${S}"
else
unpack ${A}
- cd "${S}"
fi
+ cd "${S}"
dummy_mk ${REMOVE_SUBDIRS}
next reply other threads:[~2013-01-04 10:59 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-04 10:59 Yuta SATOH [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-10-11 13:46 [gentoo-commits] proj/gentoo-bsd:master commit in: eclass/ Yuta SATOH
2016-10-09 9:18 Yuta SATOH
2016-10-09 8:28 Yuta SATOH
2016-10-09 8:28 Yuta SATOH
2016-10-09 8:28 Yuta SATOH
2016-10-07 12:12 Yuta SATOH
2016-09-28 12:25 Yuta SATOH
2016-09-28 12:25 Yuta SATOH
2015-07-11 23:32 Yuta SATOH
2014-10-28 12:03 Yuta SATOH
2013-10-31 17:08 Yuta SATOH
2013-08-31 16:01 Yuta SATOH
2013-08-30 18:30 Yuta SATOH
2013-08-30 18:30 Yuta SATOH
2013-08-30 18:30 Yuta SATOH
2013-08-29 13:46 Yuta SATOH
2013-08-13 13:06 Yuta SATOH
2013-07-23 16:14 Yuta SATOH
2013-07-11 15:11 Yuta SATOH
2013-06-20 12:20 Yuta SATOH
2013-06-18 12:57 Yuta SATOH
2013-02-16 15:05 Yuta SATOH
2013-02-11 11:26 Yuta SATOH
2013-02-07 15:56 Yuta SATOH
2013-02-07 15:48 Yuta SATOH
2013-02-01 11:25 Yuta SATOH
2013-01-10 11:58 Yuta SATOH
2013-01-08 13:55 Yuta SATOH
2013-01-08 11:56 Yuta SATOH
2013-01-06 11:19 Yuta SATOH
2013-01-01 15:10 Yuta SATOH
2012-12-31 10:04 Yuta SATOH
2012-12-31 9:51 Yuta SATOH
2012-12-31 9:51 Yuta SATOH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1357297128.e4ff9f0653225e14443d8ced71b4a7fc5f8864fc.yuta_satoh@gentoo \
--to=nigoro.gentoo@0x100.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox