public inbox for gentoo-soc@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-soc] Ebuild Generator week 8 update
@ 2011-07-11  0:35 darkdefende
  2011-07-15 15:36 ` Donnie Berkholz
  0 siblings, 1 reply; 2+ messages in thread
From: darkdefende @ 2011-07-11  0:35 UTC (permalink / raw
  To: gentoo-soc

This week I continued working on the autoconf parser for the ebuild
generator. The project is on schedule.

Now I can parse the configure.ac files from both the xorg-server and the
"moc" project.
Sadly most of this week went into rewriting and planning as there were
quite a few corner cases that I didn't know could happen.
But with that out of the way I should be able to spend next week just
working with the information that the parser now outputs.

I think I had most of these problems because I don't really know shell
scripting and the autoconf docs seem to be written for more adept users.
So after looking at some shell scripting crash courses most of the
syntax in the autoconfigure files makes sense.

So for next week I hope I'll have the this structure working:
(top row is what files the ebuild generator parses)

configure.ac -→ Makefile.am -→ <source files provided by makefile.am>
   |               |                |
   v               v                v
 variables        sources,        includes
                  binaries,
                  etc

I will with the help off the varaibles that get defined in the configure
file guess the useflags for the project as they can pull in "EXTRA"
sources and/or add more binaries.
They will also come to use with the includes as they can be used to pull
in more/less includes.
I shall (as suggested) look for what variables that gets set with
AC_ARG_WITH and AC_ARG_ENABLE.

With all this information I hope I will be able to generate an ebuild
for a autotools project next week.



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

* Re: [gentoo-soc] Ebuild Generator week 8 update
  2011-07-11  0:35 [gentoo-soc] Ebuild Generator week 8 update darkdefende
@ 2011-07-15 15:36 ` Donnie Berkholz
  0 siblings, 0 replies; 2+ messages in thread
From: Donnie Berkholz @ 2011-07-15 15:36 UTC (permalink / raw
  To: gentoo-soc

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

On 02:35 Mon 11 Jul     , darkdefende@gmail.com wrote:
> Now I can parse the configure.ac files from both the xorg-server and the
> "moc" project.

Very cool!

> With all this information I hope I will be able to generate an ebuild 
> for a autotools project next week.

That's really exciting news. I would argue that this is *the* critical 
feature of your project.

-- 
Thanks,
Donnie

Donnie Berkholz
Admin, Summer of Code
Gentoo Linux and X.Org
Blog: http://dberkholz.com


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

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

end of thread, other threads:[~2011-07-15 15:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-11  0:35 [gentoo-soc] Ebuild Generator week 8 update darkdefende
2011-07-15 15:36 ` Donnie Berkholz

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