Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158819 - request for RefDB ebuild
Summary: request for RefDB ebuild
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL: http://refdb.sourceforge.net/
Whiteboard: sunrise suggested
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-12-22 03:41 UTC by Gour
Modified: 2009-03-28 02:10 UTC (History)
3 users (show)

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


Attachments
dev-db/refdb-0.9.8.ebuild (refdb-0.9.8.ebuild,885 bytes, text/plain)
2006-12-26 04:35 UTC, Maxim Loginov
Details
app-emacs/refdb-elisp-1.3.ebuild (refdb-elisp-1.3.ebuild,510 bytes, text/plain)
2006-12-26 04:35 UTC, Maxim Loginov
Details
patch for the refdb-0.98.ebuild (refdb-0.98.patch,433 bytes, patch)
2006-12-26 09:10 UTC, Gour
Details | Diff
dev-db/refdb-0.9.8.1.ebuild (version bump + rc script) (refdb-0.9.8.1.ebuild,1017 bytes, text/plain)
2007-02-21 14:00 UTC, Maxim Loginov
Details
dev-db/refdb/files/init.refdb-0.9.8-1 (rc script) (init.refdb-0.9.8-1,404 bytes, text/plain)
2007-02-21 14:01 UTC, Maxim Loginov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gour 2006-12-22 03:41:46 UTC
Hi!

Gentoo misses RefDB (http://refdb.sourceforge.net/) package in Portage tree.

From the homepage: RefDB is a reference database and bibliography tool for SGML, XML, and LaTeX/BibTeX documents. It allows users to share databases over a network. It is lightweight and portable to basically all platforms with a decent C compiler. And it's released under the GNU General Public License.


So, it would be nice to have it in Gentoo for all those users requiring nice bibliography tool...

Sincerely,
Gour
Comment 1 Maxim Loginov 2006-12-26 04:35:06 UTC
Created attachment 104736 [details]
dev-db/refdb-0.9.8.ebuild

I created a simple ebuild, it lacks a lot of optional features (perl, apache and XML for example) and (probably) not perfect. some notes:
- refDB utilizes database through the dev-db/libdbi-drivers, so there is no reason to include database dependancy in it, since they already should be accounted by libdbi-drivers
- I introduced bibtex local USE flag for BibTeX import (additional dependancy)
- installation done by simple configure && make && make install (really simple)
- if emacs flag is installed, additional package will be installed for emacs mode (see next attachment, the ebuild is very simple again). I'm not sure which dependancies are required for it, probably it is possible to merge these ebuilds
- writing /etc/init.d/refdb script is desirable for running as service is desirable

both ebuilds work for me, but test/extension/improvement is necessary.
Comment 2 Maxim Loginov 2006-12-26 04:35:54 UTC
Created attachment 104737 [details]
app-emacs/refdb-elisp-1.3.ebuild
Comment 3 Gour 2006-12-26 09:09:45 UTC
(In reply to comment #1)

> I created a simple ebuild, it lacks a lot of optional features (perl, apache
> and XML for example) and (probably) not perfect. 

Thank you very much.

>some notes:

I added ~amd64 and fixed syntax error in the ebuild - missing parenthese around
bibtex test - see attachment.

> - refDB utilizes database through the dev-db/libdbi-drivers, so there is no
> reason to include database dependancy in it, since they already should be
> accounted by libdbi-drivers

Right.

> - I introduced bibtex local USE flag for BibTeX import (additional dependancy)

That's what I need the most thinking about using RefDB with lyx/latex :-)

> both ebuilds work for me, but test/extension/improvement is necessary.

There is error in redb-init script causing it to fail.

The fix is simple:

line #190 should read:

checkFile "/usr/share/refdb/sql/refdb.2.dump.sqlite" "read" \


I had a problem trying to run with sqlite3.

Sincerely,
Gour

> 
Comment 4 Gour 2006-12-26 09:10:38 UTC
Created attachment 104758 [details, diff]
patch for the refdb-0.98.ebuild

Hi!

Here is the patch.

Sincerely,
Gour
Comment 5 Maxim Loginov 2006-12-26 21:07:11 UTC
(In reply to comment #3)
> 
> There is error in redb-init script causing it to fail.
> 
> The fix is simple:
> 
> line #190 should read:
> 
> checkFile "/usr/share/refdb/sql/refdb.2.dump.sqlite" "read" \
> 
> I had a problem trying to run with sqlite3.
> 

I found this problem with refdb-init script also (already reported upstream, marked as closed, probably in svn), that's why I put warning in ebuild and setup database manually as described in docs. it works for me, both from command line and emacs.
Comment 6 Gour 2006-12-28 00:46:42 UTC
(In reply to comment #5)

> I found this problem with refdb-init script also (already reported upstream,
> marked as closed, probably in svn), that's why I put warning in ebuild and
> setup database manually as described in docs. it works for me, both from
> command line and emacs.

Are you aware of http://bugs.gentoo.org/show_bug.cgi?id=158847 ?

I simplified ebuild and bumped version to 0.35, as well as adding ~amd64 keyword.

Here RefDB works too...so we can slowly improve ebuild to get it into Portage ;)

Sincerely,
Gour 
Comment 7 Gour 2007-01-03 00:14:31 UTC
Hi!

I submitted bug for app-vim/ris-1.2 ebuild (see http://bugs.gentoo.org/show_bug.cgi?id=159815) which can be used to add support for editing RIS files in (g)vim - very handy for (g)vim users using RefDB.


Sincerely,
Gour
Comment 8 Maxim Loginov 2007-02-21 14:00:25 UTC
Created attachment 110833 [details]
dev-db/refdb-0.9.8.1.ebuild (version bump + rc script)

version bump
Comment 9 Maxim Loginov 2007-02-21 14:01:36 UTC
Created attachment 110834 [details]
dev-db/refdb/files/init.refdb-0.9.8-1 (rc script)

crude, but working rc-script /etc/init.d/refdb
Comment 10 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-03-28 02:10:11 UTC
(this is an automated message based on filtering criteria that matched this bug)
'EBUILD' is in the KEYWORDS which should mean that there is a ebuild attached 
to this bug.
This bug is assigned to maintainer-wanted which means that it is not in the 
main tree.
Heuristics show that no Gentoo developer has commented on your ebuild.

Hello, The Gentoo Team would like to firstly thank you for your ebuild 
submission. We also apologize for not being able to accommodate you in a timely
manner. There are simply too many new packages.

Allow me to use this opportunity to introduce you to Gentoo Sunrise. The 
sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to 
commit to and all users can have ebuilds reviewed by Gentoo devs for entry 
into the overlay. So, the sunrise team is suggesting that you look into this 
and submit your ebuild to the overlay where even *you* can commit to. =)

Because this is a mass message, we are also asking you to be patient with us. 
We anticipate a large number of requests in a short time. 

Thanks,
On behalf of the Gentoo Sunrise Team,
Jeremy.

[1]: http://www.gentoo.org/proj/en/sunrise/
[2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq