From: "Walter Dnes" <waltdnes@waltdnes.org>
To: Gentoo Users List <gentoo-user@lists.gentoo.org>
Subject: [gentoo-user] Questions for my first ebuild
Date: Sun, 18 Apr 2010 01:03:57 -0400 [thread overview]
Message-ID: <20100418050357.GA5090@waltdnes.org> (raw)
I intend to get the Silicon Dust HDHomerun dual tuner box. It has a
linux library and CLI plus a separate gtk+ GUI. The linux source comes
with a makefile that puts stuff in /usr/local. But I want at least a
"wrapper" ebuild so that Portage knows about the files, and can manage
them. I'd prefer to write my own ebuild rather than depend on somebody
else to always have the most recent version supported somwehere in
layman. I've RTFM'd a lot, including
http://devmanual.gentoo.org/ebuild-writing/index.html but am still
unsure about a few things. Here's my setup so far...
* The latest file is
http://download.silicondust.com/hdhomerun/libhdhomerun_20100213.tgz
(underscore instead of hyphen, bleagh).
* I've set PORTDIR_OVERLAY="/usr/local/portage" in /etc/make.conf
* I've actually created /usr/local/portage/media-tv
* my ebuild file in media-tv is named libhdhomerun-20100213.ebuild
* here it is so far...
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="HD Homerun networked TV tuner base library and API"
ACTUAL_P="${PN}_${PV}"
SRC_URI="http://download.silicondust.com/hdhomerun/${ACTUAL_P}.tgz"
HOMEPAGE="http://www.silicondust.com/downloads/linux"
KEYWORDS="x86"
SLOT="0"
LICENSE="LGPL-3"
IUSE=""
RESTRICT="test"
src_install () {
emake -j1 DESTDIR="${D}" install || die "make failed"
dobin hdhomerun_config
dolib libhdhomerun.so
dodoc README
insinto /usr/include/local/libhdhomerun
doins *.h
}
Now for the questions...
1) do I need to create /usr/local/portage/distfiles?
2) the provided Makefile is supposed to put everything into the
/usr/local hierarchy. Does portage/emerge over-ride that, and if so,
what do I have to do to get send all files to the /usr/local hierarchy?
3) any glaring errors ?
I intend to pick it up next week, so I won't be able to test it
immediately. I do want my laptop to be ready to go when I bring the
tuner box home.
--
Walter Dnes <waltdnes@waltdnes.org>
next reply other threads:[~2010-04-18 5:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-18 5:03 Walter Dnes [this message]
2010-04-18 7:34 ` [gentoo-user] Questions for my first ebuild Amit Dor-Shifer
2010-04-18 15:07 ` Mark Knecht
2010-04-18 22:07 ` Walter Dnes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100418050357.GA5090@waltdnes.org \
--to=waltdnes@waltdnes.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox