Re: [gentoo-dev] Ebuild Writing

2008-01-22 Thread Thomas Kahle
-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-


[gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-util/qmtest: qmtest-2.3.ebuild ChangeLog qmtest-2.4.ebuild

2008-01-22 Thread Tiziano Müller
Donnie Berkholz wrote:

> On 19:54 Mon 21 Jan , Joel D. Martin (kanaka) wrote:
>> 1.1  dev-util/qmtest/qmtest-2.4.ebuild
>> 
>> file :
>>
http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/qmtest/qmtest-2.4.ebuild?rev=1.1&view=markup
>> plain:
>>
http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/qmtest/qmtest-2.4.ebuild?rev=1.1&content-type=text/plain
>> 
>> Index: qmtest-2.4.ebuild
>> ===
>> # Copyright 1999-2008 Gentoo Foundation
>> # Distributed under the terms of the GNU General Public License v2
>> # $Header: /var/cvsroot/gentoo-x86/dev-util/qmtest/qmtest-2.4.ebuild,v
>> # 1.1 2008/01/21 19:54:35 kanaka Exp $
>> 
>> inherit eutils
>> DESCRIPTION="CodeSourcery's test harness system"
>> HOMEPAGE="http://www.codesourcery.com/qmtest/";
>> SRC_URI="http://www.codesourcery.com/public/${PN}/${PF}/${PF}.tar.gz";
>> LICENSE="GPL-2"
>> SLOT="0"
>> 
>> KEYWORDS="~amd64 ~x86"
>> IUSE=""
>> 
>> DEPEND="dev-lang/python"
>> 
>> src_compile() {
>> python setup.py build || die "setup.py build failed"
>> }
>> 
>> src_install() {
>> python setup.py install --root ${D} \
>> || die "setup.py install failed"
>> 
>> sed -i "[EMAIL PROTECTED]@/usr@" 
>> ${D}/usr/lib*/python2.4/site-packages/qm/config.py
>> \ || die "Could not adjust install path in config.py"
>> }
> 
> This looks like it should use distutils.eclass.

And it will fail with python-2.5. You should definitely use the
distutils.eclass which also handles the byte-compilation/-cleanup.

Please also implement a src_test to run the provided tests. If unsure on how
to do that correctly, check other python ebuilds or join #gentoo-python.


-- 
gentoo-dev@lists.gentoo.org mailing list



[gentoo-dev] lastrite: x11-misc/fluxconf

2008-01-22 Thread Samuli Suominen
# Samuli Suominen <[EMAIL PROTECTED]> (22 Jan 2008)
# See bug 96631, it segfaults and doesn't save
# settings destroying fluxbox menu. Unmaintained
# upstream. Masked for removal in 30 days.
x11-misc/fluxconf

..and it already has blockers both ways, doesn't make sense 
to keep it around anymore.

-drac
-- 
gentoo-dev@lists.gentoo.org mailing list



[gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in eclass: java-ant-2.eclass

2008-01-22 Thread Donnie Berkholz
On 21:57 Tue 22 Jan , Petteri Raty (betelgeuse) wrote:
> Revision  ChangesPath
> 1.26 eclass/java-ant-2.eclass
> 
> file : 
> http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-ant-2.eclass?rev=1.26&view=markup
> plain: 
> http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-ant-2.eclass?rev=1.26&content-type=text/plain
> diff : 
> http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-ant-2.eclass?r1=1.25&r2=1.26

> @@ -262,6 +262,14 @@
>   eval xml-rewrite-2.py ${files} \
>   -c -e ${JAVA_PKG_BSFIX_TARGET_TAGS// / 
> -e } \
>   -a nowarn -v yes ${output} || 
> _bsfix_die "xml-rewrite2 failed: ${file}"
> +
> + if [[ ${JAVA_ANT_REWRITE_CLASSPATH} ]]; then
> + eval echo "Adding gentoo.classpath to 
> javac tasks"
> + eval xml-rewrite-2.py ${files} \
> +  -c -e javac -e xjavac -a 
> classpath -v \
> +  '\${gentoo.classpath}' \
> +  || _bsfix_die "xml-rewrite2 
> failed"
> + fi
>   else
>   debug-print "Using third generation rewriter"
>   eval echo "Rewriting attributes" ${output}

What's up with all the eval use in here?

Thanks,
Donnie
-- 
gentoo-dev@lists.gentoo.org mailing list



[gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in x11-wm/sawfish: ChangeLog sawfish-1.3.2.ebuild sawfish-1.3_p20050816-r1.ebuild sawfish-1.3_p20060816.ebuild sawfish-1.3.20040120.ebuild sawfish-1

2008-01-22 Thread Donnie Berkholz
On 20:58 Tue 22 Jan , Harald van Dijk (truedfx) wrote:
> 1.1  x11-wm/sawfish/sawfish-1.3.2.ebuild
> 
> file : 
> http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/sawfish/sawfish-1.3.2.ebuild?rev=1.1&view=markup
> plain: 
> http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/sawfish/sawfish-1.3.2.ebuild?rev=1.1&content-type=text/plain

This ebuild has some interesting code that's worth taking a look at, 
both the snapshot stuff and how econf arguments are set up.

Thanks,
Donnie

> Index: sawfish-1.3.2.ebuild
> ===
> # Copyright 1999-2008 Gentoo Foundation
> # Distributed under the terms of the GNU General Public License v2
> # $Header: /var/cvsroot/gentoo-x86/x11-wm/sawfish/sawfish-1.3.2.ebuild,v 1.1 
> 2008/01/22 20:58:35 truedfx Exp $
> 
> # detect cvs snapshots; fex. 1.3_p20040120
> [[ $PV == *_p[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] ]]
> (( snapshot = !$? ))
> 
> if (( snapshot )); then
>   WANT_AUTOCONF=latest
>   WANT_AUTOMAKE=latest
>   inherit eutils autotools
> else
>   inherit eutils
> fi
> 
> DESCRIPTION="Extensible window manager using a Lisp-based scripting language"
> HOMEPAGE="http://sawmill.sourceforge.net/";
> if (( snapshot )); then
>   SRC_URI="mirror://gentoo/${P}.tar.bz2"
> else
>   SRC_URI="mirror://sourceforge/sawmill/${P}.tar.gz"
> fi
> 
> LICENSE="GPL-2"
> SLOT="0"
> # Will remain masked until a report of a segfault on the mailing list
> # is resolved
> KEYWORDS="" # ~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86
> IUSE="gnome esd nls audiofile pango"
> 
> DEPEND=">=dev-util/pkgconfig-0.12.0
>   >=x11-libs/rep-gtk-0.17
>   >=dev-libs/librep-0.16
>   >=x11-libs/gtk+-2.0.8
>   audiofile? ( >=media-libs/audiofile-0.2.3 )
>   esd? ( >=media-sound/esound-0.2.23 )
>   nls? ( sys-devel/gettext )"
> RDEPEND="${DEPEND}"
> 
> if (( snapshot )); then
>   S="${WORKDIR}/${PN}"
> fi
> 
> src_unpack() {
>   unpack ${A}
>   cd "${S}"
>   epatch "${FILESDIR}"/libtool.patch
>   epatch "${FILESDIR}"/${PN}-wm_name.patch
> 
>   if (( snapshot )); then
>   eaclocal || die
>   eautoconf || die
>   fi
> }
> 
> src_compile() {
>   # Make sure we include freetype2 headers before freetype1 headers,
>   # else Xft2 borks, <[EMAIL PROTECTED]> (13 Dec 2002)
>   export C_INCLUDE_PATH="${C_INCLUDE_PATH}:/usr/include/freetype2"
>   export CPLUS_INCLUDE_PATH="${CPLUS_INCLUDE_PATH}:/usr/include/freetype2"
> 
>   set -- \
>   --disable-themer \
>   --with-gdk-pixbuf \
>   $(use_with audiofile) \
>   $(use_with esd) \
>   $(use_with pango)
> 
>   if use gnome; then
>   set -- "$@" \
>   --with-gnome-prefix=/usr \
>   --enable-gnome-widgets \
>   --enable-capplet
>   else
>   set -- "$@" \
>   --disable-gnome-widgets \
>   --disable-capplet
>   fi
> 
>   if ! use nls; then
>   # Use a space because configure script reads 
> --enable-linguas="" as
>   # "install everything"
>   # Don't use --disable-linguas, because that means 
> --enable-linguas="no",
>   # which means "install Norwegian translations"
>   set -- "$@" --enable-linguas=" "
>   elif [[ "${LINGUAS+set}" == "set" ]]; then
>   strip-linguas -i po
>   set -- "$@" --enable-linguas=" ${LINGUAS} "
>   else
>   set -- "$@" --enable-linguas=""
>   fi
> 
>   econf "$@" || die "configure failed"
> 
>   # The following two lines allow sawfish to compile with gcc 2.95
>   # (see bug 18294)
>   sed -i -e 's:REP_CFLAGS=:REP_CFLAGS=-I/usr/include/freetype2 :' Makedefs
> 
>   # Parallel build didn't work, but appears to work now. This needs
>   # extra checking before this version is unmasked.
>   emake || die "make failed"
> }
-- 
gentoo-dev@lists.gentoo.org mailing list



[gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in eclass: java-ant-2.eclass

2008-01-22 Thread Petteri Räty

Donnie Berkholz kirjoitti:

On 21:57 Tue 22 Jan , Petteri Raty (betelgeuse) wrote:

Revision  ChangesPath
1.26 eclass/java-ant-2.eclass

file : 
http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-ant-2.eclass?rev=1.26&view=markup
plain: 
http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-ant-2.eclass?rev=1.26&content-type=text/plain
diff : 
http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-ant-2.eclass?r1=1.25&r2=1.26



@@ -262,6 +262,14 @@
eval xml-rewrite-2.py ${files} \
-c -e ${JAVA_PKG_BSFIX_TARGET_TAGS// / 
-e } \
-a nowarn -v yes ${output} || _bsfix_die 
"xml-rewrite2 failed: ${file}"
+
+   if [[ ${JAVA_ANT_REWRITE_CLASSPATH} ]]; then
+   eval echo "Adding gentoo.classpath to javac 
tasks"
+   eval xml-rewrite-2.py ${files} \
+-c -e javac -e xjavac -a 
classpath -v \
+'\${gentoo.classpath}' \
+|| _bsfix_die "xml-rewrite2 
failed"
+   fi
else
debug-print "Using third generation rewriter"
eval echo "Rewriting attributes" ${output}


What's up with all the eval use in here?

Thanks,
Donnie


Seems I forgot ${output} from there. Fixed now. For the xml-rewrite-2.py 
lines the eval could probably be dropped.


Regards,
Petteri



signature.asc
Description: OpenPGP digital signature


[gentoo-dev] Last Rites Summary: January 14th - January 20th, 2008

2008-01-22 Thread Ryan Hill

Yep, I'm late.  Attached is the list of packages masked for removal this week.

GMN ppl, let me know if this format works for you.


--
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
net-libs/dclibcRaúl Porcel <[EMAIL PROTECTED]>   15 Feb 
2008
app-emacs/uboatUlrich Mueller <[EMAIL PROTECTED]>  16 
Feb 2008
net-p2p/eztorrent  Raúl Porcel <[EMAIL PROTECTED]>>   16 Feb 
2008
dev-java/jsx   Petteri Räty <[EMAIL PROTECTED]>>   19 Feb 2008
sys-apps/list  Stefan Schweizer <[EMAIL PROTECTED]>19 Feb 
2008



 
 Package:
 Removal date:
 Contact:
 



 http://packages.gentoo.org/package/net-libs/dclibc";>net-libs/dclibc
 15 Feb 2008
 Raúl Porcel
 


 http://packages.gentoo.org/package/app-emacs/uboat";>app-emacs/uboat
 16 Feb 2008
 Ulrich Mueller
 


 http://packages.gentoo.org/package/net-p2p/eztorrent";>net-p2p/eztorrent
 16 Feb 2008
 Raúl Porcel
 


 http://packages.gentoo.org/package/dev-java/jsx";>dev-java/jsx
 19 Feb 2008
 Petteri Räty
 


 http://packages.gentoo.org/package/sys-apps/list";>sys-apps/list
 19 Feb 2008
 Stefan Schweizer
 





signature.asc
Description: OpenPGP digital signature


[gentoo-dev] Re: Last Rites Summary: January 14th - January 20th, 2008 [take two]

2008-01-22 Thread Ryan Hill

Ryan Hill wrote:
Yep, I'm late.  Attached is the list of packages masked for removal this 
week.


GMN ppl, let me know if this format works for you.


Oop, some extra brackets snuck in and armin76's email had an extra g.  Attached 
again.



--
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
net-libs/dclibcRaúl Porcel <[EMAIL PROTECTED]>15 Feb 
2008
app-emacs/uboatUlrich Mueller <[EMAIL PROTECTED]>  16 
Feb 2008
net-p2p/eztorrent  Raúl Porcel <[EMAIL PROTECTED]>16 Feb 
2008
dev-java/jsx   Petteri Räty <[EMAIL PROTECTED]>19 Feb 2008
sys-apps/list  Stefan Schweizer <[EMAIL PROTECTED]>19 Feb 
2008



 
 Package:
 Removal date:
 Contact:
 



 http://packages.gentoo.org/package/net-libs/dclibc";>net-libs/dclibc
 15 Feb 2008
 Raúl Porcel
 


 http://packages.gentoo.org/package/app-emacs/uboat";>app-emacs/uboat
 16 Feb 2008
 Ulrich Mueller
 


 http://packages.gentoo.org/package/net-p2p/eztorrent";>net-p2p/eztorrent
 16 Feb 2008
 Raúl Porcel
 


 http://packages.gentoo.org/package/dev-java/jsx";>dev-java/jsx
 19 Feb 2008
 Petteri Räty
 


 http://packages.gentoo.org/package/sys-apps/list";>sys-apps/list
 19 Feb 2008
 Stefan Schweizer
 





signature.asc
Description: OpenPGP digital signature


[gentoo-dev] Re: Last Rites Summary: January 14th - January 20th, 2008 [take two]

2008-01-22 Thread Ryan Hill

Ryan Hill wrote:

Ryan Hill wrote:
Yep, I'm late.  Attached is the list of packages masked for removal 
this week.


GMN ppl, let me know if this format works for you.


Oop, some extra brackets snuck in and armin76's email had an extra g.  
Attached again.


I'm apparently having unicode problems.  I'll repost these when I figure out 
what's going wrong.



--
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



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in x11-wm/sawfish: ChangeLog sawfish-1.3.2.ebuild sawfish-1.3_p20050816-r1.ebuild sawfish-1.3_p20060816.ebuild sawfish-1.3.20040120.ebuild sawfi

2008-01-22 Thread Mike Frysinger
On Tuesday 22 January 2008, Donnie Berkholz wrote:
> On 20:58 Tue 22 Jan , Harald van Dijk (truedfx) wrote:
> > WANT_AUTOCONF=latest
> > WANT_AUTOMAKE=latest

redundant, please drop

> > eaclocal || die
> > eautoconf || die

these things call die themselves ... an reason you're using these instead of 
eautoreconf ?  aclocal/autoconf changes often imply having to regenerate 
Makefile.in ...
-mike


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in x11-wm/sawfish: ChangeLog sawfish-1.3.2.ebuild sawfish-1.3_p20050816-r1.ebuild sawfish-1.3_p20060816.ebuild sawfish-1.3.20040120.ebuild sawfi

2008-01-22 Thread Harald van Dijk
On Tue, Jan 22, 2008 at 11:21:26PM -0500, Mike Frysinger wrote:
> On Tuesday 22 January 2008, Donnie Berkholz wrote:
> > On 20:58 Tue 22 Jan , Harald van Dijk (truedfx) wrote:
> > >   WANT_AUTOCONF=latest
> > >   WANT_AUTOMAKE=latest
> 
> redundant, please drop

Done.

> > >   eaclocal || die
> > >   eautoconf || die
> 
> these things call die themselves ...
> an reason you're using these instead of 
> eautoreconf ?  aclocal/autoconf changes often imply having to regenerate 
> Makefile.in ...

sawfish doesn't use automake (except for aclocal), and eautoreconf used
to force automake. As it no longer has that problem, I've switched to
eautoreconf.

Thanks for the comments.
-- 
gentoo-dev@lists.gentoo.org mailing list