public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] ebuild question
@ 2003-05-30 11:15 MAL
  2003-05-30 11:29 ` Alastair Tse
  0 siblings, 1 reply; 40+ messages in thread
From: MAL @ 2003-05-30 11:15 UTC (permalink / raw
  To: gentoo-dev

gucharmap didn't have an uptodate ebuild, so I thought I'd put one 
together, but..

The configure/Makefile for gucharmap-0.6.1 attempts to rebuild the GTK 
input module cache file during install.  Obviously portage catches this, 
so what's the best way to handle this?

It basically executes:

gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules


The possibilities I can see are:

a) possibly portage has a function to specify that access to 
/etc/gtk-2.0/gtk.immodules is allowed.

or

b) I provide a patch to the sources to stop this happening, then do it 
myself in the ebuild after install.


Any other ideas? What's best?

Cheers,
MAL


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 40+ messages in thread
* [gentoo-dev] ebuild question
@ 2005-03-03  3:40 pepone pepone
  2005-03-03  3:47 ` Jeremy Hanmer
  0 siblings, 1 reply; 40+ messages in thread
From: pepone pepone @ 2005-03-03  3:40 UTC (permalink / raw
  To: gentoo-dev

Hello I ´m trying to create a new ebuild for Ice (Internet Comunication Engine)
       http://www.zeroc.com

       this is my first ebuild and i want know how in my ebuild can
detect the version of a  program that is installed in the system

the problem is that in order to suscefuly compile my package i need to
export DB_FLAGS  and DB_IFLAGS acording to the db version that is instaled
in the system

thanks in adavantage

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 40+ messages in thread
* [gentoo-dev] ebuild question
@ 2003-09-19 14:57 Philippe Lafoucrière
  2003-09-19 15:03 ` Georgi Georgiev
  2003-09-19 15:05 ` Thomas de Grenier de Latour
  0 siblings, 2 replies; 40+ messages in thread
From: Philippe Lafoucrière @ 2003-09-19 14:57 UTC (permalink / raw
  To: Gentoo-dev

warning : noob question...

I've made an ebuild for the new plastik theme for KDE. When emerging, I
have some warnings like this :

/usr/sbin/ebuild.sh: line 108: /dev/stdout: Permission denied

Any idea ?

here's the ebuild :




# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header:$

inherit kde
need-kde 3.1

DESCRIPTION="Plastik is a widget style and window decoration for KDE
3.x."
HOMEPAGE="http://www.kde-look.org/content/show.php?content=7559"
SRC_URI="http://www.kdelook.org/content/files/7559-${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
DEPEND="kde-base/kdebase"
KEYWORDS="x86 ~ppc ~sparc ~alpha"
RESTRICT="nomirror"

pkg_postinst(){
        ewarn "HOW TO USE THIS THEME FOR KDE:"
        einfo ""
        einfo "Open the KDE-Menu and start the Control Center."
        einfo "Select \"Look and Feel\"."
        einfo "Select \"Style\" if the package you installed was a
style, or"
        einfo "select \"Theme Manager\" if the package you installed was
a theme."
        einfo "Select your theme or style."
        einfo "Click \"Apply\""
        einfo ""
        einfo "Have fun! :-)"
}


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 40+ messages in thread
* [gentoo-dev] ebuild question
@ 2003-06-10 14:25 MAL
  2003-06-12 11:34 ` Amiel Martin
  0 siblings, 1 reply; 40+ messages in thread
From: MAL @ 2003-06-10 14:25 UTC (permalink / raw
  To: gentoo-dev

I'm writing an ebuild for ZoneMinder, and I have a few problems/queries..

The program is a bunch of php and a few cgi apps.  After configuring, 
the package asks you to run a perl script which interactively asks you 
for initial configuration, then updates the .php files with this info. 
'make install' then installs the .php files into your document root, 
(and the cgi into your cgi-bin dir).

Now, I don't want to break the non-interactivity of portage, but I can't 
just leave an 'einfo' message to the user after install, asking them to 
run the perl script, because this must be done before install.

So, do I either:

* Use expect to answer the perl script's questions with some sensible 
defaults, then leave a message to the user on how to change these 
defaults after install, (in which case, should I add expect to the 
DEPEND line?)

* Re-package the software entirely, (there is a compiled part and a 
non-compiled php part.. maybe separate the php part out).  I'm kinda 
loathed to do this, as it seems like unnecessary maintenance.

* Modify the perl script to automatically set certain defaults.


Additionally, what do I do about the location of apache, and the 
user/group to set the php files as? :)
I noticed the recent eclass submission, but I'm assuming I can't use 
that just yet, so /home/httpd/htdocs and apache:apache ?

Cheers,
MAL


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 40+ messages in thread
* [gentoo-dev] ebuild question
@ 2003-05-30 15:17 William Hubbs
  2003-05-30 15:27 ` Grant Goodyear
  0 siblings, 1 reply; 40+ messages in thread
From: William Hubbs @ 2003-05-30 15:17 UTC (permalink / raw
  To: Gentoo Developers

Hi all,

I am working on an ebuild for sus ( http://pdg.uow.edu.au/sus/).

This program doesn't use autoconf.  It just has a makefile which must be edited to set up the locations files should be installed.  What is the best way to handle this?  I can think of two options -- use sed to edit the file, or generate a patch.

Thanks,

William


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 40+ messages in thread
* [gentoo-dev] ebuild question
@ 2002-11-26 21:27 Per Wigren
  2002-11-26 21:23 ` Dan Armak
  0 siblings, 1 reply; 40+ messages in thread
From: Per Wigren @ 2002-11-26 21:27 UTC (permalink / raw
  To: gentoo-dev

Hi!

I'm making an ebuild for GOBO 3.0 (http://www.gobosoft.com), but I still have 
to finetune the install()-part of the ebuild... The problem is that it takes 
about 4 hours (!!) to compile, and everytime I make a small change it will 
rebuild the tmp-dir and recompile...

How can I tell "ebuild install" that it should NOT do that? Just do the 
install-part without recompiling for another 4 hours, even if I just changed 
the ebuild...

Regards
Per Wigren


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 40+ messages in thread
* [gentoo-dev] ebuild question
@ 2002-07-26 14:54 John Matthews
  0 siblings, 0 replies; 40+ messages in thread
From: John Matthews @ 2002-07-26 14:54 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1623 bytes --]

I finally got a Crystal Space ebuild that I can deal with. Unf. there is
one step I need assistance with.

When issuing a "make install", the system looks at either the default
destination directory or the one you set. I've been trying
/usr/local/crystal and if I use that, then "make install" gets a sandbox
violation. If, however, I use ${D}/usr/local/crystal then it installs
but right before that step it rewrites the cs-config script (like
sdl-config, gtk-config, etc.) to say that the location of the CS libs
and headers is /var/tmp/portage/crystal-0.94-r2/image//usr/local/crystal
(or something like that, I don't have it in front of me right now). Of
course, that'll be a bogus location when the package is actually
installed.

Do I need to do some sed magic to fix that somehow, by twiddling with
the cs-config file that's been installed in the image? Or is there some
sort of standard clever way to get around this problem with
non-./configure-style packages?

Random other info:
Meanwhile, I'm still in a position where I can't build optimized builds
with gcc 3.x and I can't use assembler at all. I've been told that CS
requires a special version of nasm or something like that, but haven't
found a direct reference for what works yet. Building a debug build with
no assembler gets me a working install image, I believe, on gcc 3.x and
gcc 2.95.

Regards and thanks,
matt

-- 
Matt Matthews     \ ph: 919.660.2811        \ Use GNU/Linux  _o) w00t
Duke Univ., Postdoc\ jvmatthe@math.duke.edu  \____________   /\\
Dept. of Mathematics\ http://www.math.duke.edu/~jvmatthe/ \ _\_V

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 40+ messages in thread
* [gentoo-dev] ebuild question
@ 2002-04-18  6:13 Avi Schwartz
  2002-04-18  6:59 ` George Shapovalov
  2002-04-18  7:15 ` Tod M Neidt
  0 siblings, 2 replies; 40+ messages in thread
From: Avi Schwartz @ 2002-04-18  6:13 UTC (permalink / raw
  To: Gentoo Dev

I am trying to create an ebuild for wingide.  I have couple of problems
I trying to solve here: 

1. The name of the archive is wingide-1.1.3-1.tar.gz.  I tried to call
the ebuild file wingide-1.1.3-1.ebuild but ebuild doesn't like it since
it thinks there are two version numbers.  So I changed the name to
wingide-1.1.3-r1.ebuild and I am sticking the -1 in the code: 

SRC_URI="ftp://ftp.wingide.com/pub/wingide/${PV}/${P}-1.tar.gzftp://ftp.wingide.com/pub/wingide/${PV}/bugfix/macro-bugfix-all-${PV}-1.tar         ftp://ftp.wingide.com/pub/wingide/${PV}/bugfix/print-bugfix-all-${PV}-1.tar         ftp://ftp.wingide.com/pub/wingide/${PV}/bugfix/reuse-app-instance-all-${PV}-1.tar" 

Is this an acceptable practice? The problem with this is that if they
come out with a -2 version, it will not be enough to rename the ebuild
file (although the bug fix files are breaking this anyway).

BTW, PV and ${D} are not documented in the developers HOWTO.  What else
is missing? 

2. Wingide comes with its own installation program which can be
controlled through the command line.  When its archive is expanded, it
creates a wingide-1.1.3-1 directory in which there is the installation
program and the program files.  Ho do I point to the installation
program?  I tried the following ${WORKDIR}/${P}-1/wing-install.py, is
this correct? 

3. The parameters it expects are the installation directory and binary
directory: 

    ${WORKDIR}/${P}-1/wing-install.py  \ 
        --winghome ${D}/usr/lib/wingide \ 
        --bin-dir ${D}/usr/bin 

again, does this make sense? 

4. Another problem I am having is that I see the following messages when
doing the install: 

>>> Install wingide-1.1.3-r1 into
/var/tmp/portage/wingide-1.1.3-r1/image/ category avi 

but when I look at the image directory I see that it didn't install a
thing. 

5. The last 3 files are archives that have to be extracted over the root
installation directory which will be ${D}/usr/lib/wingide.  Again, how
does one achieve this?

6.  The compile stage extracts all 4 files while I realy want only the
main file to be extracted since the other 3 need to be extracted over
the installed file.  Is there a way to control this?  I tried to put my
own code in src_compile(), but ebuild goes ahead and extracts the
archives before executing my code.

7. When the wingide archive is extracted, besides the installation
program there is another tar file extracted which containsall the files.
Another possibility for the installation of the main wingide archive is
to just extract this archive into ${D}/usr/lib.  The question is, do I
have to create ${D}/usr/lib if it doesn't exist yet or will ebuild do it
for me?

Thanks,
Avi
-- 
Avi Schwartz
avi@CFFtechnologies.com



^ permalink raw reply	[flat|nested] 40+ messages in thread
* [gentoo-dev] ebuild question
@ 2002-04-17  5:21 Richard Jackson
  2002-04-17  5:02 ` Jared H. Hudson
  0 siblings, 1 reply; 40+ messages in thread
From: Richard Jackson @ 2002-04-17  5:21 UTC (permalink / raw
  To: gentoo-dev

I have a ebuild script question. I'm working on adding Qt 3 to nethack. I 
think I saw a post at one point that someone else was doing this as well. 
Either way I'm going to do this as an educational experance. When I have it 
clean I will track down the other person working on it and see if they want 
what I have done. If not I will just calk it up to experance. I picked this 
one becase it has some uniqe issues and I thought if I could get this one 
right then the experance will help latter on.

Now to the question. 

Nethack is uniqe in that it can be compiled many differant ways 
1) Console - This is currently the only option
2) Qt 3 or 2 - I have this one pretty much done using Qt 3.
3) X11 
4) KDE
5) Gnome

The problem with this is that what it looks to be doing is compiling in 
support for Console and one widget set into one executable. And I can't seem 
to beable to get all 5 options to work at one time witch I kinda figured it 
wouldn't. So lets say the user has this in his/her USE statment:
USE="qt x11 kde gnome"

How would I go about handling the compile? 

Should I compile all 4 of them? Yes doing this would take some bash magic but 
not too much. If I should do all four of them what naming convention should I 
use for the differant executables? Some thing like nethackQt nethackGnome?

Should I just pick one of them and compile that one? What if I pick the one 
the user doesn't want?

Should I force some user interaction with the build process? Other words ask 
them which one they want? I don't really like this option myself.

And now even more questions. 
On instalation of the above should I create menu items in KDE and GNOME if the 
user has them? And a side question to that is it seems that KDE does not 
automaticly include the GNOME apps but GNOME does automaticly include he KDE 
apps so if I'm doing a KDE build should I add it to the GNOME menu if they 
have it. And the reverse if I'm doing a GNOME build should I add that to the 
KDE menus?

Any thoughts on the above would be helpfull.
Thanks
Richard Jackson


^ permalink raw reply	[flat|nested] 40+ messages in thread
* [gentoo-dev] ebuild question
@ 2002-02-07  3:44 Edward Muller
  2002-02-07  4:43 ` Tod M Neidt
  0 siblings, 1 reply; 40+ messages in thread
From: Edward Muller @ 2002-02-07  3:44 UTC (permalink / raw
  To: gentoo-dev

I need to build new oaf, ORBIT & bonobo ebuilds for the current builds.
I was looking at the current ORBit-0.5.13 ebuild and found the
followings types of lines:

...
docinto idl
...

What is docinto. I can't seem to find the script in /usr/lib/portage/bin
and a look at the developer docs on the website didn't mention docinto.
Is it an old script? Is it undocumented (and if, so why and where is it
kept?) Or did I miss something?



^ permalink raw reply	[flat|nested] 40+ messages in thread
* [gentoo-dev] ebuild question
@ 2001-08-05 15:50 Craig Joly
  2001-08-05 17:07 ` Daniel Robbins
  0 siblings, 1 reply; 40+ messages in thread
From: Craig Joly @ 2001-08-05 15:50 UTC (permalink / raw
  To: Gentoo Developers

Has it ever been suggested to add an src_configure() section to the
ebuild file?  It would be useful to be able to type
"ebuild foo.ebuild configure" and then look at the generated
makefiles.

Craig



^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2005-03-04  0:42 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-30 11:15 [gentoo-dev] ebuild question MAL
2003-05-30 11:29 ` Alastair Tse
2003-05-30 14:22   ` MAL
2003-05-30 14:33     ` Alastair Tse
2003-05-30 14:40       ` Todd Berman
2003-05-30 14:55         ` Jon Portnoy
2003-05-30 15:08           ` MAL
2003-05-30 14:39     ` Seemant Kulleen
2003-05-30 15:09       ` Seemant Kulleen
  -- strict thread matches above, loose matches on Subject: below --
2005-03-03  3:40 pepone pepone
2005-03-03  3:47 ` Jeremy Hanmer
2005-03-03 10:26   ` Aaron Walker
2005-03-03 20:23     ` Jeremy Hanmer
2005-03-04  0:42       ` Aaron Walker
2003-09-19 14:57 Philippe Lafoucrière
2003-09-19 15:03 ` Georgi Georgiev
2003-09-19 15:12   ` Philippe Lafoucrière
2003-09-19 15:26     ` Georgi Georgiev
2003-09-19 15:05 ` Thomas de Grenier de Latour
2003-09-19 15:15   ` Philippe Lafoucrière
2003-06-10 14:25 MAL
2003-06-12 11:34 ` Amiel Martin
2003-05-30 15:17 William Hubbs
2003-05-30 15:27 ` Grant Goodyear
2003-05-31  3:00   ` Georgi Georgiev
2002-11-26 21:27 Per Wigren
2002-11-26 21:23 ` Dan Armak
2002-11-27  0:03   ` Per Wigren
2002-07-26 14:54 John Matthews
2002-04-18  6:13 Avi Schwartz
2002-04-18  6:59 ` George Shapovalov
2002-04-18  7:15 ` Tod M Neidt
2002-04-17  5:21 Richard Jackson
2002-04-17  5:02 ` Jared H. Hudson
2002-04-17  6:05   ` Richard Jackson
2002-04-17  5:21     ` Jared H. Hudson
2002-02-07  3:44 Edward Muller
2002-02-07  4:43 ` Tod M Neidt
2001-08-05 15:50 Craig Joly
2001-08-05 17:07 ` Daniel Robbins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox