Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280020 - dev-ruby/sinatra-0.9.4 (New Package)
Summary: dev-ruby/sinatra-0.9.4 (New Package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Default Assignee for New Packages
URL: http://www.sinatrarb.com
Whiteboard: sunrise-overlay
Keywords: InOverlay, InVCS
Depends on:
Blocks:
 
Reported: 2009-08-02 10:53 UTC by CS Shyam Sundar
Modified: 2009-08-27 08:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Sinatra 0.9.4 Ebuild ( Updated as per gentoo-sunrise comments ) (sinatra-0.9.4.ebuild,393 bytes, text/plain)
2009-08-02 10:54 UTC, CS Shyam Sundar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CS Shyam Sundar 2009-08-02 10:53:34 UTC
Greetings,

Please find the attachment of sinatra-0.9.4.ebuild. Known to work in ruby 1.9 also.

Sinatra is a DSL for quickly creating web applications in Ruby with minimal effort: 

eg:
# myapp.rb
require 'rubygems'
require 'sinatra'
get '/' do
  'Hello world!'
end

Install the gem and run with:

emerge sinatra
ruby myapp.rb

View at: http://localhost:4567 

I suggest dev-ruby/sinatra. 

-- CS3
Comment 1 CS Shyam Sundar 2009-08-02 10:54:10 UTC
Created attachment 199894 [details]
Sinatra 0.9.4 Ebuild ( Updated as per gentoo-sunrise comments )
Comment 2 CS Shyam Sundar 2009-08-02 10:59:24 UTC
Can someone assign it to ruby@gentoo.org
Comment 3 CS Shyam Sundar 2009-08-03 07:32:56 UTC
Comment on attachment 199894 [details]
Sinatra 0.9.4 Ebuild ( Updated as per gentoo-sunrise comments )

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit gems

DESCRIPTION="Classy web-development dressed in a DSL"
HOMEPAGE="http://www.sinatrarb.com"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

USE_RUBY="ruby18 ruby19"
DEPEND=">=dev-ruby/rack-1.0.0"
Comment 4 CS Shyam Sundar 2009-08-03 18:35:41 UTC
Comment on attachment 199894 [details]
Sinatra 0.9.4 Ebuild ( Updated as per gentoo-sunrise comments )

Checked in a peer reviewd version on Sunrise Overlay.
Comment 5 Hans de Graaff gentoo-dev Security 2009-08-03 18:37:41 UTC
(In reply to comment #3)

> DEPEND=">=dev-ruby/rack-1.0.0"

Broken. RDEPEND also needs to be set because this is a runtime dependency. (And we need DEPEND also because the gem checks for its presence when installing).
Comment 6 CS Shyam Sundar 2009-08-03 18:42:02 UTC
Yes, I was pointed out. The ebuild in sunrise overlay has 'rack' as both runtime and buildtime dependency. The ebuild contents displayed and code attached are obsolete. 

(In reply to comment #5)
> (In reply to comment #3)
> 
> > DEPEND=">=dev-ruby/rack-1.0.0"
> 
> Broken. RDEPEND also needs to be set because this is a runtime dependency. (And
> we need DEPEND also because the gem checks for its presence when installing).
> 

Comment 7 CS Shyam Sundar 2009-08-04 08:38:15 UTC
The Ebuild has been uploaded to
overlays.gentoo.org/svn/proj/sunrise/sunrise/dev-ruby/sinatra. Visit
http://overlays.gentoo.org/proj/sunrise/changeset/8936 .
Can the ruby herd members review it and add to overlay.
Comment 8 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-08-27 08:41:13 UTC
Whoopsy. Didn't see this bug but added it to the tree in the meantime.

We can't do USE_RUBY="ruby18 ruby19", as rack doesn't have the ruby19 yet, but I'll add the ~x86.

Thanks for the ebuild!