Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17393 - root-3.05.03.ebuild
Summary: root-3.05.03.ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-12 14:26 UTC by Dmitry Kustov
Modified: 2003-04-25 16:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild (root-3.05.03.ebuild,1.60 KB, patch)
2003-03-12 14:28 UTC, Dmitry Kustov
Details | Diff
patch (root-makefile.patch,837 bytes, patch)
2003-03-12 14:29 UTC, Dmitry Kustov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Kustov 2003-03-12 14:26:34 UTC
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/dev-libs/root/root-3.05.03.ebuild,v 1.0
2003/03/12 22:22:22 Dmitry Kustov Exp $

inherit flag-o-matic eutils

S=${WORKDIR}/${PN}
DESCRIPTION="An Object-Oriented Data Analysis Framework"
SRC_URI="ftp://root.cern.ch/root/root_v${PV}.source.tar.gz"
HOMEPAGE="http://root.cern.ch/"

SLOT="0"
LICENSE="as-is"
KEYWORDS="x86 sparc ~ppc"
IUSE="mysql postgres opengl"

DEPEND="virtual/x11
        opengl? ( virtual/opengl virtual/glu )
        openldap? ( >=net-nds/openldap-2.0.27 )
        mysql? ( >=dev-db/mysql-3.23.53 )
        postgres? ( >=dev-db/postgresql-7.3 )"

src_unpack() {
        unpack ${A}
        cd ${S}
        epatch ${FILESDIR}/root-makefile.patch
}

src_compile() {

        case $SYSTEM_ARCH in
                ppc)
                        append-flags "-fsigned-char";;
        esac
        export GENTOO_CFLAGS="${CFLAGS}" GENTOO_CXXFLAGS="${CXXFLAGS}"
        ./configure \
                linux \
                --prefix=/usr \
                --docdir=/usr/share/doc/${P} \
                --enable-shared \
                --disable-rpath \
                --enable-thread \
                --disable-afs \
                --disable-alien \
                --disable-cern \
                --disable-sapdb \
                --disable-rfio \
                --disable-dcache \
                --disable-srp \
                --disable-krb5 \
                --enable-shadowpw \
                --disable-pythia \
                --disable-pythia6 \
                --disable-venus \
                --enable-soversion \
                `use_enable opengl` \
                `use_enable ldap` \ 
                `use_enable mysql` \ 
                `use_enable postgres pgsql` \
                ${myconf} || die "./configure failed"
        make || die
}

src_install() {
        make DESTDIR=${D} install || die
        
        dodir /etc/env.d
        echo "LDPATH=/usr/lib/root" > ${D}/etc/env.d/60root
}


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Below the file root-makefile.patch
_________________________________________________________


--- root/config/Makefile.linux.old      2003-03-12 14:08:36.000000000 +0000
+++ root/config/Makefile.linux  2003-03-12 14:10:03.000000000 +0000
@@ -5,7 +5,7 @@
 PLATFORM      = linux
 
 DEBUGFLAGS    = -g
-OPTFLAGS      = -O
+OPTFLAGS      =
 ifeq (debug,$(findstring debug,$(ROOTBUILD)))
 OPT           = $(DEBUGFLAGS)
 NOOPT         =
@@ -15,8 +15,8 @@
 endif
 
 # Compiler:
-CXX           = g++
-CC            = gcc
+CXX           = g++ $(GENTOO_CXXFLAGS)
+CC            = gcc $(GENTOO_CFLAGS)
 CXXFLAGS      = -pipe -Wall -Woverloaded-virtual -fPIC $(EXTRA_CXXFLAGS)
 CFLAGS        = -pipe -Wall -fPIC $(EXTRA_CFLAGS)
 CINTCXXFLAGS  = -pipe -Wall -Woverloaded-virtual -fPIC $(EXTRA_CXXFLAGS) \
@@ -41,7 +41,7 @@
 
 # Fortran:
 F77           = g77
-F77FLAGS      =
+F77FLAGS      = $(GENTOO_CFLAGS)
 F77LIBS       = -lg2c -lnsl
 
 # Extras
Comment 1 Dmitry Kustov 2003-03-12 14:28:39 UTC
Created attachment 9308 [details, diff]
ebuild
Comment 2 Dmitry Kustov 2003-03-12 14:29:52 UTC
Created attachment 9309 [details, diff]
patch
Comment 3 Dmitry Kustov 2003-03-13 03:01:55 UTC
line
IUSE="mysql postgres opengl"
should be replaced by
IUSE="ldap mysql postgres opengl"
Comment 4 Luca Barbato gentoo-dev 2003-04-25 12:02:20 UTC
Sorry to be in late, there is a newer version and the previous didn't build on my system, could you try the new one in portage and report me if there is something to fix, please.

Thank you for you submissiom
Comment 5 Dmitry Kustov 2003-04-25 16:27:13 UTC
See #19911