Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52155 - New ebuild for ham radio control libraries (hamlib)
Summary: New ebuild for ham radio control libraries (hamlib)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 All
: High enhancement (vote)
Assignee: Joel Martin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 49456 52158 52307
  Show dependency tree
 
Reported: 2004-05-26 20:28 UTC by Robb Romans (RETIRED)
Modified: 2004-06-03 21:40 UTC (History)
2 users (show)

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


Attachments
hamlib-1.1.4.ebuild (hamlib-1.1.4.ebuild,1.92 KB, text/plain)
2004-05-26 20:31 UTC, Robb Romans (RETIRED)
Details
Cleanup up ebuild (hamlib-1.1.4.ebuild,1.53 KB, text/plain)
2004-05-27 12:56 UTC, Joel Martin (RETIRED)
Details
hamlib - better ebuild. (hamlib-1.1.4.ebuild,1.56 KB, text/plain)
2004-05-27 19:43 UTC, Robb Romans (RETIRED)
Details
hamlib-1.1.4.ebuild (hamlib-1.1.4.ebuild,1.81 KB, text/plain)
2004-05-28 20:50 UTC, Robb Romans (RETIRED)
Details
app-ham/hamlib/files/hamlib-pkgconfig-fix.diff (hamlib-pkgconfig-fix.diff,373 bytes, patch)
2004-05-28 20:50 UTC, Robb Romans (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robb Romans (RETIRED) gentoo-dev 2004-05-26 20:28:27 UTC
I'd like to start adding ebuilds for some ham radio applications. The first, hamlib, is a library used by several Linux ham radio apps to control a ham radio.

Ideally, this will require a new category, "app-ham", and a new USE flag: hamlib.

Tested on x86, will test on PPC.

More ham ebuilds to come. These are my first ebuilds, so feedback is appreciated.

Thanks,
Robb
Comment 1 Robb Romans (RETIRED) gentoo-dev 2004-05-26 20:31:15 UTC
Created attachment 32113 [details]
hamlib-1.1.4.ebuild
Comment 2 Joel Martin (RETIRED) gentoo-dev 2004-05-27 12:56:14 UTC
Created attachment 32157 [details]
Cleanup up ebuild

Notes:
- There were a few lines that use tabs instead of spaces.
- You don't need PROVIDE unless there are other libraries out there that
  provide the same interface to applications as hamlib (in other words, some
  other drop in replacement).
- DEPEND and RDEPEND can be simplified by refering to RDEPEND in DEPEND.
- Once you add gd to make.conf, you just need to remerge hamlib to get libgd.
- There is an error during make doc, it can't find hamlib.css
- The ebuild installs all the library files to /usr/lib, since there are so
  many of them, it would probably be better to install them into a subdirectory

  such as /usr/lib/hamlib

I will attach a cleaned up ebuild, if you fix the make doc issue and install
dir
issue, then I should be able to submit it to the tree.
Comment 3 Robb Romans (RETIRED) gentoo-dev 2004-05-27 19:43:49 UTC
Created attachment 32184 [details]
hamlib - better ebuild.

Second attempt. A little cleaner with libraries relocated to /usr/lib/hamlib as
requested.

All binding support appears to be buggy. Disabled for now. Also, this ebuild
does not build docs unless "doc" flag is set. Does not require X. "tlf" is a
small footprint console logging app that uses hamlib, for example.

The "cannot find hamlib.css" error during doc building is harmless.

Package builds ok on athlon and alpha ev56.

Thanks for the feedback. Please let me know if you want any further changes.

		Robb
Comment 4 Robb Romans (RETIRED) gentoo-dev 2004-05-28 20:50:10 UTC
Created attachment 32226 [details]
hamlib-1.1.4.ebuild

Ok, after moving libs to /usr/lib/hamlib/*, I noticed that progs using
pkgconfig would not find these libs. So, I modified hamlib.pc.in to reflect the
new locations. Also moved include files to /usr/include/hamlib/*.

Now my xlog ebuild finds the hamlib libraries correctly during build. However,
I have to manually add "/usr/lib/hamlib" to /etc/ld.so.conf in order for xlog
to find the shared libraries at runtime. I do not know the accepted Gentoo
practice to handle this kind of issue.
Comment 5 Robb Romans (RETIRED) gentoo-dev 2004-05-28 20:50:57 UTC
Created attachment 32227 [details, diff]
app-ham/hamlib/files/hamlib-pkgconfig-fix.diff

patch 1 of 1.
Comment 6 Ryan Phillips (RETIRED) gentoo-dev 2004-06-03 21:40:43 UTC
Committed to media-libs/