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
Created attachment 32113 [details] hamlib-1.1.4.ebuild
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.
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
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.
Created attachment 32227 [details, diff] app-ham/hamlib/files/hamlib-pkgconfig-fix.diff patch 1 of 1.
Committed to media-libs/