* [gentoo-dev] Ebuild Writing
@ 2008-01-21 21:31 Thomas Kahle
2008-01-21 23:19 ` Mike Frysinger
2008-01-22 10:20 ` [gentoo-dev] Ebuild Writing Thomas Kahle
0 siblings, 2 replies; 6+ messages in thread
From: Thomas Kahle @ 2008-01-21 21:31 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 965 bytes --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
i'm not sure if this is the right place for my question, if not, please
tell me the right one.
I'm trying to write an ebuild for a math software called polymake. It
uses a non-autotools, makefile and perl based configuration mechanism.
This thing will ask questions to the user during the make process.
These questions can be answered using the information from make.conf, so
it should be automated?
Now my question is: How to do it in a clean way?
a) Patch the makefile?
b) Use a tool like "expect" to answer the questions?
Attached you find my first try (which just asks the questions during merge).
Thanks already, any comment is appreciated.
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHlQ8frpEWPKIUt7MRAu4iAJ91qP9PbuoQD/K03ZnbaMDYk0jG+ACfYjgr
bTHNPH5uenMxa3pF/FrNsco=
=qIaQ
-----END PGP SIGNATURE-----
[-- Attachment #2: polymake-2.3.ebuild --]
[-- Type: text/plain, Size: 1116 bytes --]
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
inherit eutils
IUSE="fullconfig"
DESCRIPTION="research tool for polyhedral geometry"
SRC_URI="http://www.math.tu-berlin.de/polymake/download/polymake-2.3.tar.bz2"
HOMEPAGE="http://www.math.tu-berlin.de/polymake"
SLOT="0"
LICENSE="GPL-3"
KEYWORDS="~x86"
DEPEND="dev-libs/gmp
>=sys-devel/gcc-4.1.2"
src_compile(){
# Interactive Configuration
if use fullconfig; then
emake configure || die "configuration failed"
fi
einfo "Due to heavy template usage by the package it requires"
einfo "up to 300MB of RAM per process. Use MAKEOPTS="-j1" if"
einfo "you run into trouble."
if ! use fullconfig; then
elog "Polymake will be built with -O3 which is considered safe"
elog "Set useflag fullconfig to change"
fi
emake || die "emake failed"
}
src_install(){
emake DESTDIR="${D}" install || die "install failed"
}
pkg_postinst(){
elog "You will need to set up your PATH to use Polymake"
elog "If you use bash add "
elog "PATH=\$PATH:/usr/local/polymake/bin;"
elog "to your .bashrc"
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] Ebuild Writing
2008-01-21 21:31 [gentoo-dev] Ebuild Writing Thomas Kahle
@ 2008-01-21 23:19 ` Mike Frysinger
2008-01-22 7:46 ` [gentoo-dev] gentoo-devhelp@g.o exists Torsten Veller
2008-01-22 10:20 ` [gentoo-dev] Ebuild Writing Thomas Kahle
1 sibling, 1 reply; 6+ messages in thread
From: Mike Frysinger @ 2008-01-21 23:19 UTC (permalink / raw
To: gentoo-dev; +Cc: Thomas Kahle
[-- Attachment #1: Type: text/plain, Size: 1150 bytes --]
On Monday 21 January 2008, Thomas Kahle wrote:
> i'm not sure if this is the right place for my question, if not, please
> tell me the right one.
i dont think there's a mailing list for this stuff, but there is an irc
channel (#gentoo-dev-help iirc)
> I'm trying to write an ebuild for a math software called polymake. It
> uses a non-autotools, makefile and perl based configuration mechanism.
> This thing will ask questions to the user during the make process.
> These questions can be answered using the information from make.conf, so
> it should be automated?
ebuilds should always be automated
> Now my question is: How to do it in a clean way?
> a) Patch the makefile?
it sounded like you can write the answers into make.conf ahead of time ?
> b) Use a tool like "expect" to answer the questions?
yikes, i doubt most people nowadays know what expect is let alone how to use
it :)
you can usually cheat if there is a set # of questions and they'd always be
asked in the same order ...
./some-curious-command.sh <<-EOF
first answer
${second_answer_from_a_var}
$(third answer from a command)
EOF
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-dev] gentoo-devhelp@g.o exists
2008-01-21 23:19 ` Mike Frysinger
@ 2008-01-22 7:46 ` Torsten Veller
2008-01-25 4:02 ` [gentoo-dev] " Ryan Hill
0 siblings, 1 reply; 6+ messages in thread
From: Torsten Veller @ 2008-01-22 7:46 UTC (permalink / raw
To: gentoo-dev
* Mike Frysinger <vapier@gentoo.org>:
> On Monday 21 January 2008, Thomas Kahle wrote:
> > i'm not sure if this is the right place for my question, if not, please
> > tell me the right one.
>
> i dont think there's a mailing list for this stuff, but there is an irc
> channel (#gentoo-dev-help iirc)
gentoo-devhelp was created some days ago.
More info on <http://www.gentoo.org/main/en/lists.xml>.
--
gentoo-dev@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] Ebuild Writing
2008-01-21 21:31 [gentoo-dev] Ebuild Writing Thomas Kahle
2008-01-21 23:19 ` Mike Frysinger
@ 2008-01-22 10:20 ` Thomas Kahle
1 sibling, 0 replies; 6+ messages in thread
From: Thomas Kahle @ 2008-01-22 10:20 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1205 bytes --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi again
Thanks for your comments, I will try dev-help next time.
I will submit (fully automated version) to bugzilla tonight if it works
on all the machines i find here...
- -tom
Thomas Kahle wrote:
> Hi all,
>
> i'm not sure if this is the right place for my question, if not, please
> tell me the right one.
>
> I'm trying to write an ebuild for a math software called polymake. It
> uses a non-autotools, makefile and perl based configuration mechanism.
> This thing will ask questions to the user during the make process.
> These questions can be answered using the information from make.conf, so
> it should be automated?
> Now my question is: How to do it in a clean way?
> a) Patch the makefile?
> b) Use a tool like "expect" to answer the questions?
>
> Attached you find my first try (which just asks the questions during merge).
>
> Thanks already, any comment is appreciated.
>
> Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHlcNxrpEWPKIUt7MRAsYYAJ4oUGKDRPDZb8IYzSJ7XaA2mBAkQgCfcI63
nEz4YpGlpYC8ylAJuBmiQ3o=
=U8HR
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-dev] Re: gentoo-devhelp@g.o exists
2008-01-22 7:46 ` [gentoo-dev] gentoo-devhelp@g.o exists Torsten Veller
@ 2008-01-25 4:02 ` Ryan Hill
2008-01-29 3:56 ` Ryan Hill
0 siblings, 1 reply; 6+ messages in thread
From: Ryan Hill @ 2008-01-25 4:02 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 432 bytes --]
Torsten Veller wrote:
> gentoo-devhelp was created some days ago.
> More info on <http://www.gentoo.org/main/en/lists.xml>.
I filed a request to get it on GMane. Should be available in a bit.
--
fonts, by design, by neglect
gcc-porting, for a fact or just for effect
wxwindows @ gentoo EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-dev] Re: gentoo-devhelp@g.o exists
2008-01-25 4:02 ` [gentoo-dev] " Ryan Hill
@ 2008-01-29 3:56 ` Ryan Hill
0 siblings, 0 replies; 6+ messages in thread
From: Ryan Hill @ 2008-01-29 3:56 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 501 bytes --]
Ryan Hill wrote:
> Torsten Veller wrote:
>
>> gentoo-devhelp was created some days ago.
>> More info on <http://www.gentoo.org/main/en/lists.xml>.
>
> I filed a request to get it on GMane. Should be available in a bit.
She's up. gmane.linux.gentoo.devhelp
--
fonts, by design, by neglect
gcc-porting, for a fact or just for effect
wxwindows @ gentoo EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-01-29 3:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-21 21:31 [gentoo-dev] Ebuild Writing Thomas Kahle
2008-01-21 23:19 ` Mike Frysinger
2008-01-22 7:46 ` [gentoo-dev] gentoo-devhelp@g.o exists Torsten Veller
2008-01-25 4:02 ` [gentoo-dev] " Ryan Hill
2008-01-29 3:56 ` Ryan Hill
2008-01-22 10:20 ` [gentoo-dev] Ebuild Writing Thomas Kahle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox