commit:     2c937af74b05fc1006a80db8e4cde7427027a95c
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 29 10:56:55 2015 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Mon Jun 29 10:56:55 2015 +0000
URL:        https://gitweb.gentoo.org/dev/mrueg.git/commit/?id=2c937af7

[www-apps/redmine_scrum] Initial version.

Package-Manager: portage-2.2.20

 www-apps/redmine_scrum/Manifest                    |  1 +
 www-apps/redmine_scrum/metadata.xml                |  8 +++
 www-apps/redmine_scrum/redmine_scrum-0.11.1.ebuild | 64 ++++++++++++++++++++++
 3 files changed, 73 insertions(+)

diff --git a/www-apps/redmine_scrum/Manifest b/www-apps/redmine_scrum/Manifest
new file mode 100644
index 0000000..01315c0
--- /dev/null
+++ b/www-apps/redmine_scrum/Manifest
@@ -0,0 +1 @@
+DIST redmine_scrum-0.11.1.tar.gz 159421 SHA256 
efabf88381c9a5bd630507a0c396ecbe94e5eb48b54ae61671ed16a76b89ccf8 SHA512 
d731b2f5fd4dd9463505de65b6f43b606fcc4e1655a58e1f584df962f8bf32d997dc4608a818a6d0aa76f8016094bc52e922431a3a49cc28f73ce4c3182b7b40
 WHIRLPOOL 
e1482b1e5c567231d230ce5d61c6d16f77079c9e31101e4bb300a94de40749bd52274f1c6bd61a2edabc3849815ddd5bf0aca10f17bd6514da8191dbb0e9c40b

diff --git a/www-apps/redmine_scrum/metadata.xml 
b/www-apps/redmine_scrum/metadata.xml
new file mode 100644
index 0000000..bfcb697
--- /dev/null
+++ b/www-apps/redmine_scrum/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>[email protected]</email>
+               <name>Manuel Rüger</name>
+       </maintainer>
+</pkgmetadata>

diff --git a/www-apps/redmine_scrum/redmine_scrum-0.11.1.ebuild 
b/www-apps/redmine_scrum/redmine_scrum-0.11.1.ebuild
new file mode 100644
index 0000000..c5220b3
--- /dev/null
+++ b/www-apps/redmine_scrum/redmine_scrum-0.11.1.ebuild
@@ -0,0 +1,64 @@
+# 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 Redmine plugin which allows to follow Scrum methodology"
+HOMEPAGE="https://redmine.ociotec.com/projects/redmine-plugin-scrum";
+SRC_URI="http://redmine.ociotec.com/attachments/download/335/scrum%20v${PV}.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="CC-BY-ND-4.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RUBY_S="scrum v${PV}"
+
+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 license.txt || 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}"
+       elog "Further information:"
+       elog "https://redmine.ociotec.com/projects/redmine-plugin-scrum";
+       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
+}

Reply via email to