public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Thomas de Grenier de Latour <degrenier@easyconnect.fr>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Re: Problem writing my first ebuild
Date: Sat, 15 Jun 2002 01:52:19 +0200	[thread overview]
Message-ID: <20020615015219.1acbafd8.degrenier@easyconnect.fr> (raw)
In-Reply-To: 20020615010924.45b657a7.degrenier@easyconnect.fr

On Sat, 15 Jun 2002 01:09:24 +0200
Thomas de Grenier de Latour <degrenier@easyconnect.fr> wrote:

> a few files, some fonts to go in /usr/X11R6/lib/X11/fonts/misc, are
> shared by this two program, so I can't emerge my application because
> of a sandbox write lock.

Sorry about replying to myself, but I'm wondering if the problem is related to xawtv... I tried even after unmerging xawtv, and it still happens:

[...]
Making install in font
make[1]: Entering directory `/var/tmp/portage/xawdecode-1.6.1/work/xawdecode-1.6.1/font'
mkfontdir
mkdir -p //usr/X11R6/lib/X11/fonts/misc
for file in led-fixed.pcf; do \
	install -m 644 $file //usr/X11R6/lib/X11/fonts/misc; \
done
ACCESS DENIED  open_wr:   //usr/X11R6/lib/X11/fonts/misc/led-fixed.pcf
install: cannot create regular file `//usr/X11R6/lib/X11/fonts/misc/led-fixed.pcf': Permission denied
make[1]: *** [install] Error 1
[...]



For informations, here is my attempt of ebuild file (all the fonts related stuff is exact copy of the xawtv ebuild, wich I'm not sure to understand...) :

# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2 
# Author Thomas de Grenier de Latour <degrenier@easyconnect.fr>
# (based on xawtv-3.7.3.ebuild by Craig Dooley)

S=${WORKDIR}/${P}
DESCRIPTION="TV application for the bttv driver, with decrypting plugin support"
SRC_URI="http://www.geocities.com/Xawdecode/download/xawdecode-1.6.1.tar.gz"
HOMEPAGE="http://www.xawdecode.fr.st"
SLOT="0"
DEPEND="virtual/glibc
        >=media-libs/jpeg-6b
        >=x11-base/xfree-4.0.1
	encode? ( media-libs/divx4linux )
	encode? ( media-sound/lame )
# for lirc support, have a look here:
# http://bugs.gentoo.org/show_bug.cgi?id=3328
	lirc? ( sys-apps/lirc )"

src_unpack() {
        unpack ${PN}-${PV}.tar.gz
        cd ${S}
}

src_compile() {
        local myconf
        use encode && myconf="--enable-divx" \
                || myconf="--disable-divx"
        use lirc && myconf="$myconf --enable-lirc" \
                || myconf="$myconf --disable-lirc"


        ./configure  --prefix=/usr --host=${CHOST} \
                --enable-jpeg \
                --enable-xfree-ext \
                --enable-xvideo \
                --with-x $myconf || die

        emake || die
}

src_install() {
        fontdir=${D}/usr/X11R6/lib/X11/fonts/misc
	make install \
        prefix=${D}/usr \
        mandir=${D}/usr/share/man
	resdir=${D}/etc/X11 \
        fontdir=$fontdir || die
        
# remove the bogus fonts.dir so it isn't "owned" by this ebuild
        rm -f $fontdir/fonts.dir
		
        dodoc AUTHORS Changelog COPYING NEWS
	dodoc README* Readme*
}

src_postinst() {
        mkfontdir /usr/X11R6/lib/X11/fonts/misc
}

src_postrm() {
        mkfontdir /usr/X11R6/lib/X11/fonts/misc
}




      parent reply	other threads:[~2002-06-14 23:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-14 23:09 [gentoo-dev] Problem writing my first ebuild Thomas de Grenier de Latour
2002-06-14 23:35 ` Chad M. Huneycutt
2002-06-15  0:08   ` [gentoo-dev] " Thomas de Grenier de Latour
2002-06-14 23:52 ` Thomas de Grenier de Latour [this message]

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=20020615015219.1acbafd8.degrenier@easyconnect.fr \
    --to=degrenier@easyconnect.fr \
    --cc=gentoo-dev@gentoo.org \
    --cc=gentoo-dev@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