Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111154 - dev-ruby/ruby-odbc-0.966.ebuild (NEW PACKAGE)
Summary: dev-ruby/ruby-odbc-0.966.ebuild (NEW PACKAGE)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Ruby Team
URL: http://www.ch-werner.de/rubyodbc/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 150146
  Show dependency tree
 
Reported: 2005-11-01 08:29 UTC by Hein Rigolo
Modified: 2006-10-05 22:03 UTC (History)
2 users (show)

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


Attachments
ruby-odbc-0.996.ebuild (ruby-odbc-0.996.ebuild,853 bytes, text/plain)
2005-11-01 08:32 UTC, Hein Rigolo
Details
ruby-odbc-0.966-r1.ebuild (ruby-odbc-0.996-r1.ebuild,540 bytes, text/plain)
2005-11-02 04:37 UTC, Hein Rigolo
Details
Changelog for ruby-odbc (Changelog,488 bytes, text/plain)
2005-11-02 04:53 UTC, Hein Rigolo
Details
ruby-odbc.ebuold (ruby-odbc-0.996-r1.ebuild,488 bytes, text/plain)
2006-06-20 16:51 UTC, Josip Dzolonga
Details
ruby-odbc-0.9993.ebuild (ruby-odbc-0.9993.ebuild,495 bytes, text/plain)
2006-10-05 01:24 UTC, Richard Brown (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hein Rigolo 2005-11-01 08:29:58 UTC
Hi,

While trying to install Ruby on Rails to work with an MS SQL Server database
according to the instruction on the Ruby on Rails wiki (see
http://wiki.rubyonrails.com/rails/pages/HowtoConnectToMicrosoftSQLServerFromRailsOnLinux)
I found that there was no ebuild for Ruby ODBC (http://www.ch-werner.de/rubyodbc/)

Based on the Ruby-DBI ebuild I created an ebuild for this package. There is a
dependency with unixODBC and ofcourse Ruby.

I was able to get this ebuild working on a clean 2005.1 install with Ruby 1.8.3
and unixODBC-2.2.11-r1

This is my first attempt at creating an ebuild, so please check if it is correct.

Hein
Comment 1 Hein Rigolo 2005-11-01 08:32:59 UTC
Created attachment 71875 [details]
ruby-odbc-0.996.ebuild

First Version of the ruby-odbc-0.996.ebuild
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2005-11-01 15:09:11 UTC
- the ebuild header is invalid
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2005-11-01 15:09:11 UTC
- the ebuild header is invalid¹
- inheriting eutils is not necessary
- ruby-odbc-${PV} == ${P}
- GPL is not a valid license, please have a look at /usr/portage/licenses
- remove S=${WORKDIR}/ruby-odbc-${PV}
- src_unpack() is superfluous
- in src_compile() call emake instead make


[1] http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=3
Comment 4 Hein Rigolo 2005-11-02 04:37:13 UTC
Created attachment 71922 [details]
ruby-odbc-0.966-r1.ebuild

New ebuild based on recommendations of Carsten Lohrke
Comment 5 Hein Rigolo 2005-11-02 04:53:45 UTC
Created attachment 71925 [details]
Changelog for ruby-odbc

Changelog for this ebuild
Comment 6 Hein Rigolo 2005-11-02 04:54:48 UTC
(In reply to comment #2)
> - the ebuild header is invalid
Comment 7 Hein Rigolo 2005-11-02 04:54:48 UTC
(In reply to comment #2)
> - the ebuild header is invalid¹
Changed
> - inheriting eutils is not necessary
Removed
> - ruby-odbc-${PV} == ${P}
Changed the SRC_URI line
> - GPL is not a valid license, please have a look at /usr/portage/licenses
Change licence to GPL-2 but this program is dual licenced. Should I provide the
other licence as a new licence? or how do I indicate that this package is dual
licenced?
> - remove S=${WORKDIR}/ruby-odbc-${PV}
done
> - src_unpack() is superfluous
remove
> - in src_compile() call emake instead make
changed

Thanks for the feedback. Shoud I als change the make command in the src_install
section to emake?

This software can also be configured with UTF-8 support (see
http://www.ch-werner.de/rubyodbc/README) but than the scr_compile and
src_install commands are different? how do I implement that?
Comment 8 Carsten Lohrke (RETIRED) gentoo-dev 2005-11-02 09:56:07 UTC
(In reply to comment #5)
> Change licence to GPL-2 but this program is dual licenced. Should I provide the
> other licence as a new licence? or how do I indicate that this package is dual
> licenced?

Yes. LICENSE="|| ( GPL-2 <foo> )" is the correct expression.

> Shoud I als change the make command in the src_install section to emake?

No.
 
> This software can also be configured with UTF-8 support (see
> http://www.ch-werner.de/rubyodbc/README) but than the scr_compile and
> src_install commands are different? how do I implement that?

Usually you add something alike

IUSE="unicode"

and  

local myconf=""
use unicode && myconf="utf8"


I just don't know how ruby handles different encodings and if using the existing
global unicode use flag may be misleading.
Comment 9 Josip Dzolonga 2006-06-20 16:51:44 UTC
Created attachment 89677 [details]
ruby-odbc.ebuold

A fixed version, added ruby.eclass inheritance, changed the dependancies a little and some tweaks. Works on amd64, so I keyworded it ~amd64.
Comment 10 Richard Brown (RETIRED) gentoo-dev 2006-10-05 01:24:40 UTC
Created attachment 98822 [details]
ruby-odbc-0.9993.ebuild

Ebuild for latest version of ruby-dbi. When I let the ebuild use ruby_src_compile the installed .so wouldn't work.
Comment 11 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2006-10-05 20:18:10 UTC
(In reply to comment #8)
> Created an attachment (id=98822) [edit]
> ruby-odbc-0.9993.ebuild
> 
> Ebuild for latest version of ruby-dbi. When I let the ebuild use
> ruby_src_compile the installed .so wouldn't work.
> 

Richard, did you really test it on all ~x86 ~amd64 ~ia64 ~ppc ~sparc?
Comment 12 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2006-10-05 22:03:49 UTC
InCVS