Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mapnik - help creating ebuild [solved] [new ebuild]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
fridrik
n00b
n00b


Joined: 18 Dec 2004
Posts: 51

PostPosted: Sat Jul 15, 2006 11:34 am    Post subject: Mapnik - help creating ebuild [solved] [new ebuild] Reply with quote

Hi all

I'm trying to set up an ebuild for Mapnik [0] but an
Code:
ebuild mapnik-0.3.0.ebuild compile

ends with a long set of
Code:
ACCESS DENIED  open_wr:   /usr/include/.scons29958
ACCESS DENIED  open_wr:   /usr/include/.sconsign
ACCESS DENIED  open_wr:   /usr/include/sys/.scons29958
ACCESS DENIED  open_wr:   /usr/include/sys/.sconsign
ACCESS DENIED  open_wr:   /usr/include/bits/.scons29958
ACCESS DENIED  open_wr:   /usr/include/bits/.sconsign
ACCESS DENIED  open_wr:   /usr/include/gnu/.scons29958
ACCESS DENIED  open_wr:   /usr/include/gnu/.sconsign
ACCESS DENIED  open_wr:   /usr/lib/.scons29958
ACCESS DENIED  open_wr:   /usr/lib/.sconsign
ACCESS DENIED  open_wr:   /usr/include/asm/.scons2995
[....]

followed by an equal set of
Code:
open_wr:   /usr/include/.scons29958
open_wr:   /usr/include/.sconsign
open_wr:   /usr/include/sys/.scons29958
open_wr:   /usr/include/sys/.sconsign
open_wr:   /usr/include/bits/.scons29958
open_wr:   /usr/include/bits/.sconsign
open_wr:   /usr/include/gnu/.scons29958
open_wr:   /usr/include/gnu/.sconsign
open_wr:   /usr/lib/.scons29958
open_wr:   /usr/lib/.sconsign
open_wr:   /usr/include/asm/.scons29958
open_wr:   /usr/include/asm/.sconsign
[...]


here is my ebuild
Code:
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Mapnik is a Free Toolkit for developing mapping applications"
HOMEPAGE="http://www.mapnik.org/"
SRC_URI="http://download.berlios.de/mapnik/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86"
IUSE="postgis proj python debug"
DEPEND="dev-util/scons
                >=dev-libs/boost-1.32.0
                >=media-libs/jpeg-6b
                >=media-libs/libpng-1.2.12
                >=media-libs/tiff-3.8.2
                >=sys-libs/zlib-1.2.3
                >=media-libs/freetype-2.1.10
                postgis? ( >=dev-db/libpq-8.1.4 )
                postgis? ( >=dev-db/postgis-1.1.2 )
                >=dev-lang/python-1.5.2
                python? ( >=dev-lang/python-2.2 )
                proj? ( >=sci-libs/proj-4.4.9 )"

pkg_setup() {
        if ! built_with_use 'dev-libs/boost' threads ; then
                die "${PN} requires dev-libs/boost emerged with USE='threads'"
        fi
}

src_compile() {
        cd ${S}
        sed -e "s:/usr/local/:/usr/:" -i SConstruct
        sed -e "s:/usr/local:$D/usr:" -i SConstruct
        #MAKEOPTS="${MAKEOPTS} PREFIX=${D}/usr"
        if ! use postgis ; then
                MAKEOPTS="${MAKEOPTS} INPUT_PLUGINS=shape,raster"
        fi
        if ! use python ; then
                MAKEOPTS="${MAKEOPTS} BINDINGS=none"
        fi
        if use debug ; then
                MAKEOPTS="${MAKEOPTS} DEBUG"
        fi
        scons ${MAKEOPTS}
}

src_install() {
        cd ${S}
        echo ${D}
        scons install
}


Do you have advices?

[0] http://www.mapnik.org


Last edited by fridrik on Tue Jul 18, 2006 10:00 pm; edited 2 times in total
Back to top
View user's profile Send private message
fridrik
n00b
n00b


Joined: 18 Dec 2004
Posts: 51

PostPosted: Sun Jul 16, 2006 3:00 pm    Post subject: Reply with quote

problem solved
the build script was actually writing files outside the sandbox. their modification solved the issue

please if you are interested in gis applications, try this new ebuild https://bugs.gentoo.org/show_bug.cgi?id=140599
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum