summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2012-02-26 13:58:17 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2012-02-26 13:58:17 +0000
commit39f16eacf747a0015577aa1e6786f3f730901ae5 (patch)
tree00bbfd422b1992276fd3d1349439ae641919e2a4 /www-apps/redmine
parentdont assign EAPI twice, by Ulrich Müller in bug #405895 (diff)
downloadhistorical-39f16eacf747a0015577aa1e6786f3f730901ae5.tar.gz
historical-39f16eacf747a0015577aa1e6786f3f730901ae5.tar.bz2
historical-39f16eacf747a0015577aa1e6786f3f730901ae5.zip
Version bumped, bug #404245. Added einfo about sqlite3, bug #401087. Removed rubytree, bug #399503.
Package-Manager: portage-2.1.10.44/cvs/Linux x86_64
Diffstat (limited to 'www-apps/redmine')
-rw-r--r--www-apps/redmine/ChangeLog10
-rw-r--r--www-apps/redmine/Manifest37
-rw-r--r--www-apps/redmine/files/redmine-rubytree-r8214.patch261
-rw-r--r--www-apps/redmine/metadata.xml3
-rw-r--r--www-apps/redmine/redmine-1.1.3.ebuild154
-rw-r--r--www-apps/redmine/redmine-1.3.1.ebuild (renamed from www-apps/redmine/redmine-1.2.3.ebuild)33
6 files changed, 309 insertions, 189 deletions
diff --git a/www-apps/redmine/ChangeLog b/www-apps/redmine/ChangeLog
index dfd33d1065b8..adaa125227b2 100644
--- a/www-apps/redmine/ChangeLog
+++ b/www-apps/redmine/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for www-apps/redmine
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/ChangeLog,v 1.27 2012/01/11 15:56:00 matsuu Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/ChangeLog,v 1.28 2012/02/26 13:58:17 matsuu Exp $
+
+*redmine-1.3.1 (26 Feb 2012)
+
+ 26 Feb 2012; MATSUU Takuto <matsuu@gentoo.org>
+ +files/redmine-rubytree-r8214.patch, -redmine-1.1.3.ebuild,
+ -redmine-1.2.3.ebuild, +redmine-1.3.1.ebuild:
+ Version bumped, bug #404245. Added einfo about sqlite3, bug #401087. Removed
+ rubytree, bug #399503. Removed old versions.
11 Jan 2012; MATSUU Takuto <matsuu@gentoo.org> -redmine-1.2.1-r1.ebuild,
-redmine-1.2.2.ebuild, redmine-1.3.0.ebuild:
diff --git a/www-apps/redmine/Manifest b/www-apps/redmine/Manifest
index 9c7030904d2f..bc53cce5273b 100644
--- a/www-apps/redmine/Manifest
+++ b/www-apps/redmine/Manifest
@@ -2,30 +2,29 @@
Hash: SHA1
AUX 10_redmine_vhost.conf 343 RMD160 b4d6188a7579162b5d3ce891cab3ed1b7a1fc2f8 SHA1 e176c667402308b8475bec75890cca3a22d99a42 SHA256 4067d312a5fc8e7f1f98e8917d2e9c296a70a7e9847efaf92a8415d753387435
+AUX redmine-rubytree-r8214.patch 8082 RMD160 7b80533d66c61fac4f8261e5dbafdcf9af2cec17 SHA1 1987f421d323f909f3f3b9c5bb4b2c3457900c16 SHA256 4fea78ac11b90a44d94bca2f424c0c180ae9d9beb19212b8a88cf157408a5812
AUX redmine.confd 267 RMD160 03b2a3d9d4e156bc0a6bd6969a3ae8800c9a51d9 SHA1 9402fd36df731413ce130e7e63411729de391444 SHA256 2ac6b7dfc2d055554b7ee9380fcf1a49a708bbd866987b775507d7a3b30f2d41
AUX redmine.initd 1092 RMD160 bf656e18a7c03f096459dd66ba149dbcf632b9b3 SHA1 c4aa4daf30a286b665d821da123bb0117c7dd202 SHA256 c89d411280db50c9f57867ec79e1c13c73d241e5e6f7a833b1b84d94d1029595
-DIST redmine-1.1.3.tar.gz 4837121 RMD160 cb1a750ee6d5532dcead4de9b48a5d24b852db6a SHA1 6d8eb536a8bad6404a092b1f1efd9292759a2442 SHA256 9e8a914852dc4262e2718d44fc6a06ce6e943d715921b8d8d48bf87e432f5a46
-DIST redmine-1.2.3.tar.gz 6301383 RMD160 60d410954a09628143bc3ca91441514380778d09 SHA1 26c48136afc391a4a02ab20e02b8c7b50038cdc5 SHA256 3c8535b80987b89ec9c7710026bd96fd9e67901f940d9d740d17a44b8d0080c2
DIST redmine-1.3.0.tar.gz 6018236 RMD160 288f699629cfdd1b5fa281b1efcc78e7b68da4c8 SHA1 51ad635083f27de7d1e243471d229b30f4ae7292 SHA256 f09027513c85440adbc2513bc13a454ca872a87c77b8a9be9256f1fc6c1b3e52
-EBUILD redmine-1.1.3.ebuild 4958 RMD160 4143bd9fbe5ca8f2d65d46dc0a707d6c32000519 SHA1 88eb4aa4374be929918b6225d049767c6b562477 SHA256 3679c0965eabd5dc8dd5159fd87eccb0460ff41d88e161dd6f740d97db327ee8
-EBUILD redmine-1.2.3.ebuild 5303 RMD160 8fe83a2568dee1c6df75361944105b3e7a484f53 SHA1 ad3bb601828dfb8d63f1254c177f1e45bf8102bd SHA256 241d1e95e0c1154079284329c139c62e5dfc9041dc849f368b74d7a8de1e6011
+DIST redmine-1.3.1.tar.gz 6034718 RMD160 3a74bd620f9ac787f9e76c7e37417df446aea20f SHA1 7e500ab907dcada419584b5c101fbf2e507a6cb0 SHA256 144e4762169240eb35b7945cde1e9d96d1e0e2b002b2585d568f77653d4ab81d
EBUILD redmine-1.3.0.ebuild 5067 RMD160 b06eb586acfd3a1c4b6d8bf0aaec3837349ed2df SHA1 edfe10f56bad832819a1c8419610977c23c00eac SHA256 9a6ecf6305d2b6fade10a48ccfad08b4375af352939565247778b9d1ef3eabf5
-MISC ChangeLog 5038 RMD160 fef70ac3d9e86add1abb3325c88270729bbaedf1 SHA1 26a41e1e2abe495c288237c8067113de04e31572 SHA256 f9d796b85775c0c3b6a4d9109894d143fae344797d6f50cd034616de56fc12a7
-MISC metadata.xml 618 RMD160 f79e44b9a0dabbe58db6623b335f12cc2a70fd7f SHA1 9308b667a2be99c124948dfcd82de67a301422b6 SHA256 a4a25fbf4e75e2853c36057c5dc8f4c4e77bff791f732dbe61e298df2d670a10
+EBUILD redmine-1.3.1.ebuild 5514 RMD160 ed5c473ea434ffef8a5f6a039c649530f71f7ffd SHA1 203f4d6022b9bde457624cf4e2775ec903fc9a42 SHA256 09ca156467d414c8841decaf857b3eef663876e49ba8e9da5e54b499c457791b
+MISC ChangeLog 5354 RMD160 50273bdf81f6cf0d7f2c4f369c91dfb6b9b22029 SHA1 35705591499c39ed8b84e6c4e9a93449b529bf07 SHA256 1c15826abc0e7f23bef37c1afe7fb5d88f32bfcef1db7673f8eae924c4a737c3
+MISC metadata.xml 398 RMD160 735855f2c2c3938b5836087fd524fdef8feca7da SHA1 fdb1314393eb313bbdad99ed6824f998bc53bc00 SHA256 492fedc9e0ee6f7d2aad26b056be8d4f726159417554a5132c5bc3b91ddb68f0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
-iQIcBAEBAgAGBQJPDbEZAAoJECaGw+YFKA1p1gkQAKH+xLlP/qVT+4P/In9AHkCM
-eLZ0vWLYZVAXNKm0RuqcTao6nO9TJycGeT1qr7m5kwp9VCWi6938wsVOgYb5dL9J
-fPfjtzNn1zWSksHWoz5x0fY8If+NZuTe4AB2bJye37U0PZKKoWngZiOkGi40+9B1
-De7oxVXrQdu5RBhYZaha6XNFPDHr+hqqblU/yeKJCt6MLM4TwGKGZaugYB7ycFjs
-tJnHhf4vUczhls5x7M6cMJ2FrI7y9yL5fmqAjUt2pcza4SLz/g0GWIgsaD9E1BlI
-lLSBUnWdLCCiu98LOMB4XHgB9lVbwkmvW5kjptjTrSidMQHEf4og7DlNRmwyBMZA
-W19dYByeTDZwfjbzp/+nT6KeGKtoxm8lKSOBjoqOuyXad1WKzmvhU8iphhPsb3Or
-ffnAfk5ne79SPU8sj17KWkhTbsS3OenFhCC9bLnd81PG2SuM409qbX9o9PoF3kru
-tQ4Y+FjablycOwr0HwcL/I//AgKbrEOAX70xmC0xnr2lbi68FTOPrpwFSJLd7fys
-amAcWiOvVfQ7xK5iCdTrOUpYzBC+GbGGzsJ/fEsumqw/jOC4V9IRRmYqw3EEyJ1T
-U3cSs+0gexPx5OXLEtG3MczZRwMkKevAaNHL+9YAS5PidnRgxeIu8wxiSlsFZhwQ
-2HsPMmsADVho7HcAHqcY
-=OBxm
+iQIcBAEBAgAGBQJPSjqCAAoJECaGw+YFKA1pRKcP/2W1D35/GXNH3FHunqj5V1vL
+hHALziiK8WsAZvC73vwGVUP0T0kiS4y792Bzz179fM1qqbqh5Y+eNUXoGvyHJIiP
+qeBW8gacV1hnbQ7jkDl043VvI3+TJUOLbwKonyNg2GrF9u1j2IWu44kSug8ga3/s
+kb3bG64Kshri5LBr7HD9R9aCXq4tXgEAjsCGjBGpvQrGkvnUHy4h22rqKaTURo6o
+lDoqKeTb/n7ElRdr+ECNWe7/UAaDfIdu1AYLqLfOykrnlXgCBVGsQt2w2mWfMbZv
+g98oG0AUT7np4RbvSzQuhQl10TErJfE7o3A6jIHao8+Damoim6nCa1nfr8225SWg
+fwXLqXZj0WL6AZ68UX5cx+EvE73Hc6COuQApWhL6aRRqshHxbE5NGjbe9n7A1I76
+f+dAHgkD0OrJ8r7HRM6qlIYJp1VF0ACpBoMAXJ1kH8fmiInBB4cr7xHUlaMzJSzy
+A70+d2W16zZoCqjg/0Bfmk71qelB7YNaLxzjqEo9K9NbpkGZOmDosSamBWzvwRlH
+0cYqb/cwyQOPUWMxwaFYndgk/skVTLtKsY+SD9FnF+GK7e2IZZFGcKqQorS5RU3d
+2Bm64Q1sBF2Tx5DM9KIKyZo0Oq7AwhGVWU8eik30p0zC63wWTH5RxxgJCKwwRrBo
+WTLJXNsCxrpC70QSBAJa
+=ZTyh
-----END PGP SIGNATURE-----
diff --git a/www-apps/redmine/files/redmine-rubytree-r8214.patch b/www-apps/redmine/files/redmine-rubytree-r8214.patch
new file mode 100644
index 000000000000..af325ec63390
--- /dev/null
+++ b/www-apps/redmine/files/redmine-rubytree-r8214.patch
@@ -0,0 +1,261 @@
+Index: test/unit/lib/redmine/menu_manager/menu_item_test.rb
+===================================================================
+--- test/unit/lib/redmine/menu_manager/menu_item_test.rb (リビジョン 8213)
++++ test/unit/lib/redmine/menu_manager/menu_item_test.rb (リビジョン 8214)
+@@ -114,7 +114,7 @@
+
+ def test_has_children
+ parent_item = get_menu_item(:test_menu, :parent)
+- assert parent_item.hasChildren?
++ assert parent_item.children.present?
+ assert_equal 2, parent_item.children.size
+ assert_equal get_menu_item(:test_menu, :child_menu), parent_item.children[0]
+ assert_equal get_menu_item(:test_menu, :child2_menu), parent_item.children[1]
+Index: config/environment.rb
+===================================================================
+--- config/environment.rb (リビジョン 8213)
++++ config/environment.rb (リビジョン 8214)
+@@ -54,7 +54,6 @@
+ # It will automatically turn deliveries on
+ config.action_mailer.perform_deliveries = false
+
+- config.gem 'rubytree', :lib => 'tree'
+ config.gem 'coderay', :version => '~>1.0.0'
+
+ # Load any local configuration that is kept out of source control
+Index: lib/redmine/menu_manager.rb
+===================================================================
+--- lib/redmine/menu_manager.rb (リビジョン 8213)
++++ lib/redmine/menu_manager.rb (リビジョン 8214)
+@@ -15,93 +15,6 @@
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+-require 'tree' # gem install rubytree
+-
+-# Monkey patch the TreeNode to add on a few more methods :nodoc:
+-module TreeNodePatch
+- def self.included(base)
+- base.class_eval do
+- attr_reader :last_items_count
+-
+- alias :old_initilize :initialize
+- def initialize(name, content = nil)
+- old_initilize(name, content)
+- @childrenHash ||= {}
+- @last_items_count = 0
+- extend(InstanceMethods)
+- end
+- end
+- end
+-
+- module InstanceMethods
+- # Adds the specified child node to the receiver node. The child node's
+- # parent is set to be the receiver. The child is added as the first child in
+- # the current list of children for the receiver node.
+- def prepend(child)
+- raise "Child already added" if @childrenHash.has_key?(child.name)
+-
+- @childrenHash[child.name] = child
+- @children = [child] + @children
+- child.parent = self
+- return child
+-
+- end
+-
+- # Adds the specified child node to the receiver node. The child node's
+- # parent is set to be the receiver. The child is added at the position
+- # into the current list of children for the receiver node.
+- def add_at(child, position)
+- raise "Child already added" if @childrenHash.has_key?(child.name)
+-
+- @childrenHash[child.name] = child
+- @children = @children.insert(position, child)
+- child.parent = self
+- return child
+-
+- end
+-
+- def add_last(child)
+- raise "Child already added" if @childrenHash.has_key?(child.name)
+-
+- @childrenHash[child.name] = child
+- @children << child
+- @last_items_count += 1
+- child.parent = self
+- return child
+-
+- end
+-
+- # Adds the specified child node to the receiver node. The child node's
+- # parent is set to be the receiver. The child is added as the last child in
+- # the current list of children for the receiver node.
+- def add(child)
+- raise "Child already added" if @childrenHash.has_key?(child.name)
+-
+- @childrenHash[child.name] = child
+- position = @children.size - @last_items_count
+- @children.insert(position, child)
+- child.parent = self
+- return child
+-
+- end
+-
+- # Wrapp remove! making sure to decrement the last_items counter if
+- # the removed child was a last item
+- def remove!(child)
+- @last_items_count -= +1 if child && child.last
+- super
+- end
+-
+-
+- # Will return the position (zero-based) of the current child in
+- # it's parent
+- def position
+- self.parent.children.index(self)
+- end
+- end
+-end
+-Tree::TreeNode.send(:include, TreeNodePatch)
+-
+ module Redmine
+ module MenuManager
+ class MenuError < StandardError #:nodoc:
+@@ -169,7 +82,7 @@
+
+ def display_main_menu?(project)
+ menu_name = project && !project.new_record? ? :project_menu : :application_menu
+- Redmine::MenuManager.items(menu_name).size > 1 # 1 element is the root
++ Redmine::MenuManager.items(menu_name).children.present?
+ end
+
+ def render_menu(menu, project=nil)
+@@ -181,7 +94,7 @@
+ end
+
+ def render_menu_node(node, project=nil)
+- if node.hasChildren? || !node.child_menus.nil?
++ if node.children.present? || !node.child_menus.nil?
+ return render_menu_node_with_children(node, project)
+ else
+ caption, url, selected = extract_node_details(node, project)
+@@ -306,13 +219,13 @@
+ end
+
+ def items(menu_name)
+- @items[menu_name.to_sym] || Tree::TreeNode.new(:root, {})
++ @items[menu_name.to_sym] || MenuNode.new(:root, {})
+ end
+ end
+
+ class Mapper
+ def initialize(menu, items)
+- items[menu] ||= Tree::TreeNode.new(:root, {})
++ items[menu] ||= MenuNode.new(:root, {})
+ @menu = menu
+ @menu_items = items[menu]
+ end
+@@ -398,7 +311,102 @@
+ end
+ end
+
+- class MenuItem < Tree::TreeNode
++ class MenuNode
++ include Enumerable
++ attr_accessor :parent
++ attr_reader :last_items_count, :name
++
++ def initialize(name, content = nil)
++ @name = name
++ @childrenHash ||= {}
++ @children = []
++ @last_items_count = 0
++ end
++
++ def children
++ if block_given?
++ @children.each {|child| yield child}
++ else
++ @children
++ end
++ end
++
++ # Returns the number of descendants + 1
++ def size
++ @children.inject(1) {|sum, node| sum + node.size}
++ end
++
++ def each &block
++ yield self
++ children { |child| child.each(&block) }
++ end
++
++ # Adds a child at first position
++ def prepend(child)
++ raise "Child already added" if @childrenHash.has_key?(child.name)
++
++ @childrenHash[child.name] = child
++ @children = [child] + @children
++ child.parent = self
++ return child
++ end
++
++ # Adds a child at given position
++ def add_at(child, position)
++ raise "Child already added" if @childrenHash.has_key?(child.name)
++
++ @childrenHash[child.name] = child
++ @children = @children.insert(position, child)
++ child.parent = self
++ return child
++ end
++
++ # Adds a child as last child
++ def add_last(child)
++ raise "Child already added" if @childrenHash.has_key?(child.name)
++
++ @childrenHash[child.name] = child
++ @children << child
++ @last_items_count += 1
++ child.parent = self
++ return child
++ end
++
++ # Adds a child
++ def add(child)
++ raise "Child already added" if @childrenHash.has_key?(child.name)
++
++ @childrenHash[child.name] = child
++ position = @children.size - @last_items_count
++ @children.insert(position, child)
++ child.parent = self
++ return child
++ end
++ alias :<< :add
++
++ # Removes a child
++ def remove!(child)
++ @childrenHash.delete(child.name)
++ @children.delete(child)
++ @last_items_count -= +1 if child && child.last
++ child.parent = nil
++ child
++ end
++
++ # Returns the position for this node in it's parent
++ def position
++ self.parent.children.index(self)
++ end
++
++ # Returns the root for this node
++ def root
++ root = self
++ root = root.parent while root.parent
++ root
++ end
++ end
++
++ class MenuItem < MenuNode
+ include Redmine::I18n
+ attr_reader :name, :url, :param, :condition, :parent, :child_menus, :last
+
diff --git a/www-apps/redmine/metadata.xml b/www-apps/redmine/metadata.xml
index 89f6f7588169..7dbf569a0d17 100644
--- a/www-apps/redmine/metadata.xml
+++ b/www-apps/redmine/metadata.xml
@@ -7,9 +7,6 @@
<longdescription lang="en">
</longdescription>
<use>
- <flag name='darcs'>Enable support for <pkg>dev-vcs/darcs</pkg></flag>
- <flag name='git'>Enable support for <pkg>dev-vcs/git</pkg></flag>
- <flag name='mercurial'>Enable support for <pkg>dev-vcs/mercurial</pkg></flag>
<flag name='openid'>Enable support for OpenID</flag>
<flag name='passenger'>Enable support for <pkg>www-apache/passenger</pkg></flag>
</use>
diff --git a/www-apps/redmine/redmine-1.1.3.ebuild b/www-apps/redmine/redmine-1.1.3.ebuild
deleted file mode 100644
index 7bec1ac3d151..000000000000
--- a/www-apps/redmine/redmine-1.1.3.ebuild
+++ /dev/null
@@ -1,154 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/redmine-1.1.3.ebuild,v 1.2 2011/12/09 11:57:12 flameeyes Exp $
-
-EAPI="3"
-USE_RUBY="ruby18"
-inherit eutils depend.apache ruby-ng
-
-DESCRIPTION="Redmine is a flexible project management web application written using Ruby on Rails framework"
-HOMEPAGE="http://www.redmine.org/"
-SRC_URI="mirror://rubyforge/${PN}/${P}.tar.gz"
-
-KEYWORDS="~amd64 ~x86"
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="cvs darcs fastcgi git imagemagick mercurial openid passenger subversion"
-
-ruby_add_rdepend "virtual/rubygems
- =dev-ruby/coderay-0.9*
- >=dev-ruby/ruby-net-ldap-0.0.4
- ~dev-ruby/i18n-0.4.2
- ~dev-ruby/rack-1.0.1
- dev-ruby/rake
- fastcgi? ( dev-ruby/ruby-fcgi )
- imagemagick? ( dev-ruby/rmagick )
- openid? ( dev-ruby/ruby-openid )
- passenger? ( www-apache/passenger )"
-#ruby_add_rdepend ~dev-ruby/rails-2.3.5:2.3
-#ruby_add_rdepend "dev-ruby/activerecord:2.3[mysql?,postgres?,sqlite3?]"
-
-RDEPEND="${RDEPEND}
- cvs? ( >=dev-vcs/cvs-1.12 )
- darcs? ( dev-vcs/darcs )
- git? ( dev-vcs/git )
- mercurial? ( dev-vcs/mercurial )
- subversion? ( >=dev-vcs/subversion-1.3 )"
-
-REDMINE_DIR="/var/lib/${PN}"
-
-pkg_setup() {
- enewgroup redmine
- # home directory is required for SCM.
- enewuser redmine -1 -1 "${REDMINE_DIR}" redmine
-}
-
-all_ruby_prepare() {
- rm -r log files/delete.me || die
- rm -r vendor/gems/coderay-0.9.7 || die
- rm -r vendor/plugins/ruby-net-ldap-0.0.4 || die
- #rm -fr vendor/rails || die
- echo "CONFIG_PROTECT=\"${REDMINE_DIR}/config\"" > "${T}/50${PN}"
- echo "CONFIG_PROTECT_MASK=\"${REDMINE_DIR}/config/locales ${REDMINE_DIR}/config/settings.yml\"" >> "${T}/50${PN}"
-}
-
-all_ruby_install() {
- dodoc doc/{CHANGELOG,INSTALL,README_FOR_APP,RUNNING_TESTS,UPGRADING} || die
- rm -fr doc || die
-
- keepdir /var/log/${PN} || die
- dosym /var/log/${PN}/ "${REDMINE_DIR}/log" || die
-
- insinto "${REDMINE_DIR}"
- doins -r . || die
- keepdir "${REDMINE_DIR}/files" || die
- keepdir "${REDMINE_DIR}/public/plugin_assets" || die
-
- fowners -R redmine:redmine \
- "${REDMINE_DIR}/config/environment.rb" \
- "${REDMINE_DIR}/files" \
- "${REDMINE_DIR}/public/plugin_assets" \
- "${REDMINE_DIR}/tmp" \
- /var/log/${PN} || die
- # for SCM
- fowners redmine:redmine "${REDMINE_DIR}" || die
-
- if use passenger ; then
- has_apache
- insinto "${APACHE_VHOSTS_CONFDIR}"
- doins "${FILESDIR}/10_redmine_vhost.conf" || die
- else
- newconfd "${FILESDIR}/${PN}.confd" ${PN} || die
- newinitd "${FILESDIR}/${PN}.initd" ${PN} || die
- keepdir /var/run/${PN} || die
- fowners -R redmine:redmine /var/run/${PN} || die
- dosym /var/run/${PN}/ "${REDMINE_DIR}/tmp/pids" || die
- fi
- doenvd "${T}/50${PN}" || die
-}
-
-pkg_postinst() {
- einfo
- if [ -e "${ROOT}${REDMINE_DIR}/config/initializers/session_store.rb" ] ; then
- elog "Execute the following command to upgrade environment:"
- elog
- elog "# emerge --config \"=${CATEGORY}/${PF}\""
- elog
- elog "For upgrade instructions take a look at:"
- elog "http://www.redmine.org/wiki/redmine/RedmineUpgrade"
- else
- elog "Execute the following command to initlize environment:"
- elog
- elog "# cd ${REDMINE_DIR}"
- elog "# cp config/database.yml.example config/database.yml"
- elog "# \${EDITOR} config/database.yml"
- elog "# emerge --config \"=${CATEGORY}/${PF}\""
- elog
- elog "Installation notes are at official site"
- elog "http://www.redmine.org/wiki/redmine/RedmineInstall"
- fi
- einfo
-}
-
-pkg_config() {
- if [ ! -e "${REDMINE_DIR}/config/database.yml" ] ; then
- eerror "Copy ${REDMINE_DIR}/config/database.yml.example to ${REDMINE_DIR}/config/database.yml and edit this file in order to configure your database settings for \"production\" environment."
- die
- fi
-
- local RAILS_ENV=${RAILS_ENV:-production}
- local RUBY=${RUBY:-ruby18}
-
- cd "${REDMINE_DIR}"
- if [ -e "${REDMINE_DIR}/config/initializers/session_store.rb" ] ; then
- einfo
- einfo "Upgrade database."
- einfo
-
- einfo "Migrate database."
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake db:migrate || die
- einfo "Upgrade the plugin migrations."
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake db:migrate:upgrade_plugin_migrations # || die
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake db:migrate_plugins || die
- einfo "Clear the cache and the existing sessions."
- ${RUBY} -S rake tmp:cache:clear || die
- ${RUBY} -S rake tmp:sessions:clear || die
- else
- einfo
- einfo "Initialize database."
- einfo
-
- einfo "Generate a session store secret."
- ${RUBY} -S rake config/initializers/session_store.rb || die
- einfo "Create the database structure."
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake db:migrate || die
- einfo "Insert default configuration data in database."
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake redmine:load_default_data || die
- fi
-
- if [ ! -e "${REDMINE_DIR}/config/email.yml" ] ; then
- ewarn
- ewarn "Copy ${REDMINE_DIR}/config/email.yml.example to ${REDMINE_DIR}/config/email.yml and edit this file to adjust your SMTP settings."
- ewarn
- fi
-}
diff --git a/www-apps/redmine/redmine-1.2.3.ebuild b/www-apps/redmine/redmine-1.3.1.ebuild
index 7b3a423298e5..29fd43c8ed73 100644
--- a/www-apps/redmine/redmine-1.2.3.ebuild
+++ b/www-apps/redmine/redmine-1.3.1.ebuild
@@ -1,8 +1,12 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/redmine-1.2.3.ebuild,v 1.1 2011/12/12 16:39:48 matsuu Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/redmine-1.3.1.ebuild,v 1.1 2012/02/26 13:58:17 matsuu Exp $
EAPI="3"
+# ruby19: dev-ruby/rack has no ruby19
+# jruby: dev-ruby/rails has no jruby
+# rbx: dev-ruby/rails has no rbx
+#USE_RUBY="ruby18 ree18"
USE_RUBY="ruby18"
inherit eutils depend.apache ruby-ng
@@ -20,12 +24,12 @@ RDEPEND="$(ruby_implementation_depend ruby18 '>=' -1.8.6)[ssl]"
ruby_add_rdepend "virtual/ruby-ssl
virtual/rubygems
- =dev-ruby/coderay-0.9*
+ >=dev-ruby/coderay-1
>=dev-ruby/ruby-net-ldap-0.0.4
~dev-ruby/i18n-0.4.2
- ~dev-ruby/rack-1.1.0
+ >=dev-ruby/rack-1.1:0
dev-ruby/rake
- dev-ruby/rails:2.3
+ >=dev-ruby/rails-2.3.14:2.3
dev-ruby/activerecord:2.3
fastcgi? ( dev-ruby/ruby-fcgi )
imagemagick? ( dev-ruby/rmagick )
@@ -50,9 +54,14 @@ pkg_setup() {
all_ruby_prepare() {
rm -r log files/delete.me || die
- rm -r vendor/gems/coderay-0.9.7 || die
+ rm -r vendor/gems/coderay-1.0.0 || die
rm -r vendor/plugins/ruby-net-ldap-0.0.4 || die
rm -fr vendor/rails || die
+
+ # bug #399503
+ rm -r vendor/gems/rubytree-0.5.2 || die
+ epatch "${FILESDIR}/${PN}-rubytree-r8214.patch"
+
echo "CONFIG_PROTECT=\"${EPREFIX}${REDMINE_DIR}/config\"" > "${T}/50${PN}"
echo "CONFIG_PROTECT_MASK=\"${EPREFIX}${REDMINE_DIR}/config/locales ${EPREFIX}${REDMINE_DIR}/config/settings.yml\"" >> "${T}/50${PN}"
sed -i -e "/RAILS_GEM_VERSION/s/'.*'/'$(best_version dev-ruby/rails:2.3|cut -d- -f3)'/" config/environment.rb || die
@@ -150,11 +159,11 @@ pkg_config() {
RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake db:migrate || die
einfo "Insert default configuration data in database."
RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake redmine:load_default_data || die
- fi
-
- if [ ! -e "${EPREFIX}${REDMINE_DIR}/config/email.yml" ] ; then
- ewarn
- ewarn "Copy ${EPREFIX}${REDMINE_DIR}/config/email.yml.example to ${EPREFIX}${REDMINE_DIR}/config/email.yml and edit this file to adjust your SMTP settings."
- ewarn
+ einfo
+ einfo "If you use sqlite3. please do not forget to change the ownership of the sqlite files."
+ einfo
+ einfo "# cd \"${EPREFIX}${REDMINE_DIR}\""
+ einfo "# chown redmine db/ db/*.sqlite3"
+ einfo
fi
}