Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20664 - ruby-postgres-0.7.1.ebuild (New Package)
Summary: ruby-postgres-0.7.1.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: Tom Payne (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-08 20:36 UTC by Jeremy James
Modified: 2005-06-11 19:20 UTC (History)
0 users

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


Attachments
ruby-postgres-0.7.1 (ruby-postgres.tar.gz,812 bytes, application/octet-stream)
2003-05-08 20:39 UTC, Jeremy James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy James 2003-05-08 20:36:41 UTC
Attached file ruby-postgres.tar.gz contains ruby-postgres-0.7.1.ebuild,
Changelog, files/digest-ruby-postgres-0.7.1

ruby-postgres is an extension library to access a PostgreSQL database from Ruby.
 Details about the library can be found at http://www.postgresql.jp/interfaces/ruby/

Requirements
----
Ruby 1.3.4 or later.
PostgreSQL 6.4 or later.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




my bugs.gentoo.org email address is incorrect.  I can be contacted at
jjames@somepoint.org.
Comment 1 Jeremy James 2003-05-08 20:39:37 UTC
Created attachment 11704 [details]
ruby-postgres-0.7.1

This is my first attempt at submitting an ebuild.  Please let me know if there
is something I should do differently in the future.

jjames@somepoint.org
Comment 2 Tom Payne (RETIRED) gentoo-dev 2003-05-09 07:38:28 UTC
Jeremy,

Thanks for the ebuild. I'll put it in portage shortly.

Some guidelines:
1) You only need to submit the .ebuild file itself. The digest is generated automatically and the ChangeLog is created/updated by whoever commits it to portage.
2) No need to tar everything up. Instead please add .ebuilds as single files with a type of plain/text. They can then be viewed in Bugzilla.
3) RDEPEND should not be set if it's the same as DEPEND (ruby-postgres still needs ruby and postgresql to run!)

Everything looks great.
Comment 3 Tom Payne (RETIRED) gentoo-dev 2003-05-09 07:47:14 UTC
Now in CVS.

BTW, ${S} defaults to ${WORKDIR}/${P} so no need to set it explicitly.
Comment 4 Tom Payne (RETIRED) gentoo-dev 2003-05-14 19:29:28 UTC
Jeremy --

Hope you see this. I tried to email you but got a bounce:

  jjames@somepoint.org                                                                           
    It appears that the DNS operator for somepoint.org                                           
has installed an invalid MX record with an IP address                                            
instead of a domain name on the right hand side.

Email zhen@gentoo.org for bugzilla changes.

Regards,

Tom
Comment 5 Eugene Koontz 2005-06-11 19:20:03 UTC
This worked fine for me but only AFTER I set :

export POSTGRES_INCLUDE=/usr/include/postgresql/pgsql

in the shell before emerging it.

Otherwise I got :

>>> emerge (1 of 7) dev-ruby/ruby-postgres-0.7.1 to /
>>> md5 files   ;-) metadata.xml
>>> md5 files   ;-) ChangeLog
>>> md5 files   ;-) ruby-postgres-0.7.1.ebuild
>>> md5 files   ;-) files/digest-ruby-postgres-0.7.1
>>> md5 src_uri ;-) ruby-postgres-0.7.1.tar.gz
>>> Unpacking source...
>>> Unpacking ruby-postgres-0.7.1.tar.gz to
/var/tmp/portage/ruby-postgres-0.7.1/work
>>> Source unpacked.
checking for cygwin32_socket() in -lwsock32... no
checking for socket() in -lsocket... no
checking for gethostbyname() in -linet... no
checking for gethostbyname() in -lnsl... yes
checking for sys/un.h... yes
checking for socket()... yes
checking for hsterror()... no
checking for gethostname()... yes
checking for PQsetdbLogin() in -lpq... yes
checking for PQsetClientEncoding()... yes
checking for pg_encoding_to_char()... yes
checking for PQescapeString()... yes
creating Makefile
i486-pc-linux-gnu-gcc -fPIC   -I. -I/usr/lib/ruby/1.8/i486-linux
-I/usr/lib/ruby/1.8/i486-linux -I. -DHAVE_SYS_UN_H -DHAVE_SOCKET
-DHAVE_GETHOSTNAME -DHAVE_PQSETCLIENTENCODING -DHAVE_PG_ENCODING_TO_CHAR
-DHAVE_PQESCAPESTRING  -c postgres.c
postgres.c:19:70: libpq/libpq-fs.h: No such file or directory