From: "Manuel Rüger" <mrueg@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/mrueg:master commit in: www-apps/redmine_code_review/
Date: Mon, 29 Jun 2015 18:31:08 +0000 (UTC) [thread overview]
Message-ID: <1435602657.e266e16472db3dfb344de7fc1428e796b4270b75.mrueg@gentoo> (raw)
commit: e266e16472db3dfb344de7fc1428e796b4270b75
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 29 18:30:57 2015 +0000
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Mon Jun 29 18:30:57 2015 +0000
URL: https://gitweb.gentoo.org/dev/mrueg.git/commit/?id=e266e164
[www-apps/redmine_code_review] Initial version.
Package-Manager: portage-2.2.20
www-apps/redmine_code_review/Manifest | 1 +
www-apps/redmine_code_review/metadata.xml | 8 +++
.../redmine_code_review-0.7.0.ebuild | 62 ++++++++++++++++++++++
3 files changed, 71 insertions(+)
diff --git a/www-apps/redmine_code_review/Manifest b/www-apps/redmine_code_review/Manifest
new file mode 100644
index 0000000..d6c3d54
--- /dev/null
+++ b/www-apps/redmine_code_review/Manifest
@@ -0,0 +1 @@
+DIST redmine_code_review-0.7.0.zip 324438 SHA256 250afb533a2ef460c35638eb003707f4bd9c21bb06ef262e7b656faa46b70caf SHA512 a289027fa62ca86bc3425ba4e56fcea5bf4cb363ebdb60d88212efdb59dedf76f19679f9577f448f585b0da6cddc98415f6889882324378087fcdc7899c57bee WHIRLPOOL 1ecb6554b748e9fc7d465ad269b9ae7abe2fe8ae3b6d485ba182207068cab0c26015264fa2a88098180b1d3096035ae4e0686c4e13e6381e3f986df129e92832
diff --git a/www-apps/redmine_code_review/metadata.xml b/www-apps/redmine_code_review/metadata.xml
new file mode 100644
index 0000000..bfcb697
--- /dev/null
+++ b/www-apps/redmine_code_review/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/www-apps/redmine_code_review/redmine_code_review-0.7.0.ebuild b/www-apps/redmine_code_review/redmine_code_review-0.7.0.ebuild
new file mode 100644
index 0000000..a69384c
--- /dev/null
+++ b/www-apps/redmine_code_review/redmine_code_review-0.7.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+USE_RUBY="ruby20"
+inherit ruby-ng user
+
+DESCRIPTION="A plugin which lets you annotate source code within the repository browser"
+HOMEPAGE="http://www.r-labs.org/projects/codereview https://bitbucket.org/haru_iida/redmine_code_review"
+SRC_URI="https://bitbucket.org/haru_iida/redmine_code_review/downloads/${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND+=" app-arch/unzip"
+
+ruby_add_rdepend ">=www-apps/redmine-3"
+
+REDMINE_DIR="/var/lib/redmine"
+
+pkg_setup() {
+ enewgroup redmine
+ enewuser redmine -1 -1 "${REDMINE_DIR}" redmine
+}
+
+all_ruby_install() {
+ dodoc README.rdoc
+ rm README.rdoc GPL.txt rmv-installer rvm.env || die
+ dodir "${REDMINE_DIR}"/plugins/${PN}
+ insinto "${REDMINE_DIR}"/plugins/${PN}
+ doins -r .
+ fowners -R redmine:redmine "${REDMINE_DIR}"/plugins/${PN}
+}
+
+pkg_postinst() {
+ einfo
+ elog "Please run emerge --config =${PF}"
+ einfo
+}
+
+pkg_config() {
+ local RAILS_ENV=${RAILS_ENV:-production}
+ if [ ! -L /usr/bin/ruby ]; then
+ eerror "/usr/bin/ruby is not a valid symlink to any ruby implementation."
+ eerror "Please update it via `eselect ruby`"
+ die
+ fi
+ if [[ $RUBY_TARGETS != *$( eselect ruby show | awk 'NR==2' | tr -d ' ' )* ]]; then
+ eerror "/usr/bin/ruby is currently not included in redmine's ruby targets: ${RUBY_TARGETS}."
+ eerror "Please update it via `eselect ruby`"
+ die
+ fi
+
+ local RUBY=${RUBY:-ruby}
+ einfo "Upgrading the plugin migrations."
+ cd "${EPREFIX}${REDMINE_DIR}" || die
+ RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake redmine:plugins:migrate || die
+}
next reply other threads:[~2015-06-29 18:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-29 18:31 Manuel Rüger [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-06-29 18:35 [gentoo-commits] dev/mrueg:master commit in: www-apps/redmine_code_review/ Manuel Rüger
2015-06-29 18:36 Manuel Rüger
2015-07-04 11:31 Manuel Rüger
2016-08-29 0:11 Manuel Rüger
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=1435602657.e266e16472db3dfb344de7fc1428e796b4270b75.mrueg@gentoo \
--to=mrueg@gentoo.org \
--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