public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-user] Simplified creation of ebuilds
  2009-01-13 12:58 [gentoo-user] Simplified creation of ebuilds Frank Schwidom
@ 2009-01-13 12:20 ` Daniel Pielmeier
  2009-01-13 12:55 ` Albert Hopkins
  2009-01-13 13:03 ` Momesso Andrea
  2 siblings, 0 replies; 4+ messages in thread
From: Daniel Pielmeier @ 2009-01-13 12:20 UTC (permalink / raw
  To: gentoo-user

2009/1/13 Frank Schwidom <schwidom@gmx.net>:
> im searching for a tool, which can create an ebuild of every download
> location. Is there any known tool?

There are many. The most powerful is the combination of yourbrain,
readdoc and $EDITOR ;-)

-- 
Regards,
Daniel



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

* Re: [gentoo-user] Simplified creation of ebuilds
  2009-01-13 12:58 [gentoo-user] Simplified creation of ebuilds Frank Schwidom
  2009-01-13 12:20 ` Daniel Pielmeier
@ 2009-01-13 12:55 ` Albert Hopkins
  2009-01-13 13:03 ` Momesso Andrea
  2 siblings, 0 replies; 4+ messages in thread
From: Albert Hopkins @ 2009-01-13 12:55 UTC (permalink / raw
  To: gentoo-user

On Tue, 2009-01-13 at 12:58 +0000, Frank Schwidom wrote:
> Hi,
> 
> im searching for a tool, which can create an ebuild of every download
> location. Is there any known tool?

Although your description itself is a bit ambiguous I'll assume you
meant: Given download location A is there a tool which I could pass A as
a parameter and have it automatically create an ebuild for it.

This requirement has a number of problems:

     1. The tool has no way of knowing what the download is or does.  It
        could probably get that info from the README (if there is one),
        but that's human-readable free text and is not easily
        machine-readable.
     2. The tool would need to know the license.  Again this can kinda
        be automated if there is a COPYING file, but you have the same
        restrictions as above.
     3. The tool would need to know compile-time and run-time
        dependencies.  Assuming you also want to automate that, the
        system must at least know the download locations of its
        dependencies. This is almost impossible to automate.
     4. The tool would need to know how to build the package.  There are
        many ways to do this (autoconf, cmake, xmkmf, eggs, gems, etc.).
        And all these utilities have their quirks which cannot be known
        to an automated tool.
     5. The system would need to know what patches, USE flags, CFLAGS,
        configure options to use for the build process.  The system must
        also know how to "massage" these options so that they fit into
        the overall Gentoo way of doing things.
     6. The system must know what steps to perform in the "install" and
        "post-install" process.  This varies from package to package and
        the only true way of knowing is through trial and error.

OTOH, portage comes with a lot of tools to help "automate" ebuild
writing.  They have sandbox, the portage API, automagically unpacking
archives in many different formats, automated patching, the mirror://
syntax, .eclasse's for common tasks/schemes, etc. etc.  All the stuff
that *can* be easily automated has already been automated.

So yes, one would write a tool to half-ass do what you want, and you
will spend as much time, if not more, wrangling with the
automated .ebuild to actually get it to work.  That's why package
maintainers make the big bucks ;-)

-a





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

* [gentoo-user] Simplified creation of ebuilds
@ 2009-01-13 12:58 Frank Schwidom
  2009-01-13 12:20 ` Daniel Pielmeier
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Frank Schwidom @ 2009-01-13 12:58 UTC (permalink / raw
  To: gentoo-user

Hi,

im searching for a tool, which can create an ebuild of every download
location. Is there any known tool?

Regards




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

* Re: [gentoo-user] Simplified creation of ebuilds
  2009-01-13 12:58 [gentoo-user] Simplified creation of ebuilds Frank Schwidom
  2009-01-13 12:20 ` Daniel Pielmeier
  2009-01-13 12:55 ` Albert Hopkins
@ 2009-01-13 13:03 ` Momesso Andrea
  2 siblings, 0 replies; 4+ messages in thread
From: Momesso Andrea @ 2009-01-13 13:03 UTC (permalink / raw
  To: gentoo-user

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

On Tue, Jan 13, 2009 at 12:58:37PM +0000, Frank Schwidom wrote:
> Hi,
> 
> im searching for a tool, which can create an ebuild of every download
> location. Is there any known tool?
> 
> Regards
> 
I find this [1] tool to be very useful.

[1] http://devmanual.gentoo.org/

TopperH

===========================
Momesso Andrea
http://topperh.blogspot.com
===========================

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

end of thread, other threads:[~2009-01-13 13:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-13 12:58 [gentoo-user] Simplified creation of ebuilds Frank Schwidom
2009-01-13 12:20 ` Daniel Pielmeier
2009-01-13 12:55 ` Albert Hopkins
2009-01-13 13:03 ` Momesso Andrea

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