Ebuild
June 16, 2011, 18:58
fromcvs converts cvs to git, hg or sqlite database
| alpha | amd64 | arm | hppa | ia64 | m68k | mips | ppc | ppc64 | s390 | sh | sparc | x86 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0_pre132 | – | ~ | – | – | – | – | – | – | – | – | – | – | – |
ОПИСАНИЕ ПАКЕТА:
fromcvs converts cvs to git, hg or sqlite database
Категория:
СПИСОК ИЗМЕНЕНИЙ
# ChangeLog for dev-vcs/fromcvs # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/fromcvs/ChangeLog,v 1.4 2012/02/15 07:34:38 sochotnicky Exp $ *fromcvs-0_pre20120214 (14 Feb 2012) 14 Feb 2012; Stanislav Ochotnicky (sochotnicky) +fromcvs-0_pre20120214.ebuild, +files/0001-Fix-379271-require-rubygems-before-other-deps.patch: Get files from devspace (original home is inaccessible). Fix bug 379271 (finally) 18 Jun 2011; Stanislav Ochotnicky (sochotnicky) fromcvs-0_pre132-r1.ebuild: Added "|| die" to few commands to prevent possible problems *fromcvs-0_pre132-r1 (18 Jun 2011) 18 Jun 2011; Stanislav Ochotnicky (sochotnicky) +fromcvs-0_pre132-r1.ebuild, metadata.xml: Addition of git, mercurial and sqlite use flags. Rework ebuild to EAPI4. Cleaner use of ruby-ng eclass 16 Jun 2011; Stanislav Ochotnicky (sochotnicky) +fromcvs-0_pre132.ebuild, +metadata.xml: Moved from dev-ruby to dev-vcs *fromcvs-0_pre132 (15 Jun 2011) 15 Jun 2011; Stanislav Ochotnicky (sochotnicky) +fromcvs-0_pre132.ebuild, +metadata.xml: New ebuild for fromcvs added to the tree. Fixes #173341
ОШИБКИ
Ошибок не найдено
USE-ФЛАГИ
| elibc_FreeBSD | ELIBC setting for systems that use the FreeBSD C library |
| ruby_targets_ree18 | Build with Ruby Enterprise Edition 1.8.x |
| ruby_targets_ruby18 | Build with MRI Ruby 1.8.x |
| test | Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use anymore |
ЗАВИСИМОСТИ СБОРКИ
| dev-lang/ruby | An object-oriented scripting language |
| dev-lang/ruby-enterprise | Ruby Enterprise Edition is a branch of Ruby including various enhancements |
| dev-vcs/mercurial | Scalable distributed SCM |
ЗАВИСИМОСТИ ИСПОЛНЕНИЯ
| dev-lang/ruby | An object-oriented scripting language |
| dev-lang/ruby-enterprise | Ruby Enterprise Edition is a branch of Ruby including various enhancements |
| dev-ruby/rbtree | Ruby/RBTree module. |
| dev-ruby/rcsparse | rcsparse ruby module |
| dev-vcs/git | GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team |
ИСХОДНЫЙ КОД
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/fromcvs/fromcvs-0_pre132.ebuild,v 1.1
2011/06/16 18:58:34 sochotnicky Exp $
EAPI=2
USE_RUBY="ruby18 ree18"
#mercurial after ruby!
inherit ruby-ng mercurial
MY_PV="${PV#0_pre}"
DESCRIPTION="fromcvs converts cvs to git and hg"
HOMEPAGE="http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs"
SRC_URI=""
EHG_REPO_URI="http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs"
EHG_REVISION="${MY_PV}"
LICENSE="BSD-4"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RUBY_S="${PN}-${PV}"
RDEPEND="dev-ruby/rcsparse >=dev-ruby/rbtree-0.3.0-r2 dev-vcs/git"
# this is a workaround because combination of ruby-ng and mercurial is
# not working correctly for unpacking
src_prepare() {
for rubyv in ${USE_RUBY};do
mkdir "${WORKDIR}/${rubyv}"
cp -prl "${S}" "${WORKDIR}/${rubyv}/${RUBY_S}"
done
}
each_ruby_install() {
siteruby=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')
insinto ${siteruby}
doins *.rb || die "Installation of rb files failed"
make_script togit
make_script tohg
}
make_script() {
echo "ruby /usr/$(get_libdir)/ruby/site_ruby/$1.rb \$@" > $1
dobin $1
}