Bug 3969 - New ebuild for the FOX toolkit
Bug#: 3969 Product:  Gentoo Linux Version: 1.2 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: gnome@gentoo.org Reported By: bnolsen@attbi.com
Component: Ebuilds
URL: 
Summary: New ebuild for the FOX toolkit
Keywords:  
Status Whiteboard: 
Opened: 2002-06-21 00:53 0000
Description:   Opened: 2002-06-21 00:53 0000
Here's the ebuild I made for fox.
You may want to double check what I did, the doc/Makefile seemed hell bent on
putting the html documentation in $(prefix)/html (or /usr/fox/html) regardless
of configure options.  I stuck all the html user docs in
/usr/share/doc/fox-${VER}/html.


The ebuild:

----cut here----
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Brian Olsen <bnolsen@attbi.com>
# /space/gentoo/cvsroot/gentoo-x86/x11-libs/fltk/fltk-1.0.11-r2.ebuild,v 1.2 200
2/04/27 23:34:20 bangert Exp

S=${WORKDIR}/${P}

DESCRIPTION="C++ based Toolkit for developing Graphical User Interfaces easily a
nd effectively"

SRC_URI="http://www.fox-toolkit.org/ftp/${P}.tar.gz"

HOMEPAGE="http://www.fox-toolkit.org"

DEPEND="virtual/glibc
        virtual/x11
        opengl? ( virtual/opengl )"


src_compile() {

        local myconf

        use opengl || myconf="$myconf --with-opengl=no" #default enabled
        use cups && myconf="$myconf --enable-cups"      #default disabled
       
#Learned '${prefix}' trick from studying python ebuild
#There are no info files
    ./configure \
                --prefix=/usr \
                --mandir='${prefix}'/share/man \
                --host=${CHOST} \
                ${myconf} || die "Configuration Failed"
       
    emake || die "Parallel Make Failed"

}

src_install () {

    make prefix=${D}/usr/ \
                install || die "Installation Failed"
       
    dodoc README INSTALL LICENSE ADDITIONS AUTHORS TRACING

    dodir /usr/share/doc/${PF}/html
    mv ${D}/usr/fox/html/* ${D}/usr/share/doc/${PF}/html/
    rmdir ${D}/usr/fox/html
    rmdir ${D}/usr/fox

}

------- Comment #1 From Seemant Kulleen (RETIRED) 2002-06-23 02:07:45 0000 -------
*** Bug 4043 has been marked as a duplicate of this bug. ***

------- Comment #2 From Gabriele Giorgetti 2002-07-29 15:34:57 0000 -------
fox version 1.0.17 has been added to the portage tree, thank you.

------- Comment #3 From Brian Olsen 2002-11-13 01:39:50 0000 -------
Created an attachment (id=5630) [details]
new ebuild

Added in some packages into DEPEND and added RDEPEND declaration

------- Comment #4 From Brian Olsen 2002-11-13 01:40:24 0000 -------
added DEPEND and RDEPEND

------- Comment #5 From Brian Olsen 2002-11-13 01:43:52 0000 -------
Created an attachment (id=5631) [details]
duhh...typos,i should have checked these

oof mistypes, remind me not to do this past midnight during a work week

------- Comment #6 From foser (RETIRED) 2002-11-29 10:22:07 0000 -------
should these fixes still go in ? and you should also really do both
disable/enable stuff (like the opengl line, there needs to be an enable part).

------- Comment #7 From Felix Kurth 2003-01-13 06:41:09 0000 -------
This happems to me
my USE-Flags:

USE="mmx 3dnow apm cdr scanner gpg gpgme cups X -opengl dga xv fbcon kde qt arts
gtk -gnome -alsa -bonobo -evo gtkhtml sdl svga gif jpeg png tiff avi mpeg
-esd -mikmod oss -nas dvd xmms oggvorbis encode -flash ipv6 -snmp pam
ssl crypt imap -ldap maildir -mbox tcpd mozilla -mozctl spell truetype
pdflib tetex mysql samba -gpm mule zlib hbci"

g++ -DPACKAGE=\"fox\" -DVERSION=\"1.0.17\" -DHAVE_DLFCN_H=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_PNG_H=1
-DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_VSSCANF=1  -I. -I.  -I../include
-I../include    -DHAVE_XSHM -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1
-DHAVE_ZLIB_H=1 -DHAVE_CUPS_H=1 -Wall -W -Wmissing-prototypes
-Woverloaded-virtual -Wformat  -I/usr/X11R6/include -c datatarget.cpp
g++ -DPACKAGE=\"fox\" -DVERSION=\"1.0.17\" -DHAVE_DLFCN_H=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_PNG_H=1
-DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_VSSCANF=1  -I. -I.  -I../include
-I../include    -DHAVE_XSHM -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1
-DHAVE_ZLIB_H=1 -DHAVE_CUPS_H=1 -Wall -W -Wmissing-prototypes
-Woverloaded-virtual -Wformat  -I/usr/X11R6/include -c dctest.cpp
g++ -DPACKAGE=\"fox\" -DVERSION=\"1.0.17\" -DHAVE_DLFCN_H=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_PNG_H=1
-DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_VSSCANF=1  -I. -I.  -I../include
-I../include    -DHAVE_XSHM -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1
-DHAVE_ZLIB_H=1 -DHAVE_CUPS_H=1 -Wall -W -Wmissing-prototypes
-Woverloaded-virtual -Wformat  -I/usr/X11R6/include -c dialog.cpp
dctest.cpp: In member function `DCTestWindow::DCTestWindow(FXApp*)':
dctest.cpp:364: warning: unused variable `FXuint opts'
dctest.cpp:372: warning: unused variable `FXTooltip*tooltip'
dctest.cpp:528: warning: unused variable `FXTabItem*linesTab'
dctest.cpp:536: warning: unused variable `FXTabItem*shapesTab'
dctest.cpp:542: warning: unused variable `FXTabItem*imagesTab'
dctest.cpp: In member function `long int DCTestWindow::onCmdRedraw(FXObject*,
   unsigned int, void*)':
dctest.cpp:778: warning: unused parameter `FXSelector sel'
dctest.cpp: In member function `long int DCTestWindow::onCmdPrint(FXObject*,
   unsigned int, void*)':
dctest.cpp:920: cannot pass objects of non-POD type `class FXString' through
   `...'
make[1]: *** [dctest.o] Fehler 1
make[1]: *** Warte auf noch nicht beendete Prozesse...
make[1]: Leaving directory `/var/tmp/portage/fox-1.0.17/work/fox-1.0.17/tests'
make: *** [all-recursive] Fehler 1

!!! ERROR: x11-libs/fox-1.0.17 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! Parallel Make Failed

------- Comment #8 From robert jorgenson 2003-01-15 07:44:26 0000 -------
Same happens to me as felix kurth. 
USE="-3dfx 3dnow alsa -arts avi -cdr -crypt -cups dga -dvd encode -esd -evo gif
-gnome -gp
hoto2 -gpm gtk -gtk2 java jpeg -kde mmx mozilla mpeg mysql oggvorbis opengl -oss
-pcmcia p
dflib perl png pop3 -qt quicktime -rpm samba sdl -spell truetype X xface xmms xv"

CFLAGS="-march=athlon -mcpu=athlon -O3 -pipe"
CXXFLAGS="${CFLAGS}"

I think ill try with -02

------- Comment #9 From robert jorgenson 2003-01-15 08:03:05 0000 -------
same result with -02

------- Comment #10 From robert jorgenson 2003-01-15 10:25:57 0000 -------
cp /usr/portage/x11-libs/fox/fox-1.0.17.ebuild
/usr/local/portage/x11-libs/fox/fox-1.0.30.ebuild
ebuild /usr/local/portage/x11-libs/fox/fox-1.0.30.ebuild digest
emerge fox

It works :) you need to make sure PORTDIR_OVERLAY is set correctly in make.conf
or you can just keep it in main portage tree and redo everytime you rsync and it
wants to downgrade it :)

------- Comment #11 From Martin Holzer (RETIRED) 2003-04-17 19:58:28 0000 -------
in cvs