ebuildのinherit git-2でtagを指定する方法
以下のように書くだけです
EGIT_COMMIT=タグのなまえ
簡単ですね
具体例を書きますと
以下のようなebuildがあるとします
# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit font git-2 DESCRIPTION="A beautiful sans-serif monotype Japanese font designed for code listings" HOMEPAGE="http://save.sys.t.u-tokyo.ac.jp/~yusa/fonts/ricty.html" SRC_URI="" EGIT_REPO_URI="git://github.com/yascentur/Ricty.git" EGIT_BRANCH="master" if [ "${PV}" != "9999" ];then EGIT_COMMIT="${PV}" fi LICENSE="public-domain" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="media-gfx/fontforge >=media-fonts/mix-mplus-ipa-20111002 media-fonts/inconsolata" RDEPEND="${DEPEND}" FONT_SUFFIX="ttf" FONT_S="${S}" # Only installs fonts. RESTRICT="strip binchecks" src_compile(){ sh ricty_generator.sh \ "${EPREFIX}/usr/share/fonts/inconsolata/Inconsolata.otf" \ "${EPREFIX}/usr/share/fonts/mix-mplus-ipa/migu-1m-regular.ttf" \ "${EPREFIX}/usr/share/fonts/mix-mplus-ipa/migu-1m-bold.ttf" || die "failed ricty_generator.sh" }
この様に書くだけです
このRictyというリポジトリは
https://github.com/yascentur/Ricty/tags
ここを見てもらえるとわかるのですが
3.2.0とか3.1.3とか書いてありますね
それを書くだけです
終わり
詳しくは
http://devmanual.gentoo.org/eclass-reference/git-2.eclass/index.html
このページに乗ってます
http://devmanual.gentoo.org/eclass-reference/
ここに色んなeclassの説明が載っています
ちなみにこのebuildは
https://github.com/silenvx/portage/blob/master/media-fonts/ricty/ricty-3.2.0.ebuild
ここに置いてます
大半コピペなんですけどね…gentooにあるrictyは古いので書きました