Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FreeBASIC 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
iGentoo900
n00b
n00b


Joined: 02 Feb 2009
Posts: 15

PostPosted: Wed May 13, 2009 9:35 pm    Post subject: FreeBASIC ebuild Reply with quote

Yes, I know there's a request in bugzilla, but I whipped up my own ebuild. It works on x86. I need testing for other arches.
Ebuild:
Code:
# Copyright 1999-2009 Gentoo Foundation                                                             
# Distributed under the terms of the GNU General Public License v2                                   
# $Header: $                                                                                         

DESCRIPTION="A free cross-platform BASIC compiler"
HOMEPAGE="http://www.freebasic.org/"             
SRC_URI="http://download.sourceforge.net/fbc/FreeBASIC-v0.20.0b-src.tar.gz
http://downloads.sourceforge.net/fbc/FreeBASIC-v0.20.0b-linux-standalone.tar.gz"
# Don't try Gentoo mirrors
RESTRICT="nomirror"

LICENSE=""
SLOT="0"
KEYWORDS="x86"
IUSE="X"

DEPEND="X? ( x11-libs/libX11 x11-libs/libXext x11-libs/libXpm
x11-libs/libXrender x11-libs/libXrandr )"
RDEPEND=""
S="${WORKDIR}/FreeBASIC-v0.20.0b"

src_compile() {
        # In order to get the compiler to compile, we need fbc. Put the prebuilt binary
        # in the path.
        OLDPATH=$PATH
        PATH=${WORKDIR}/FreeBASIC:$PATH
        cd ${S}/src/compiler
        econf
        emake
        cd ${S}/src/rtlib
        econf
        emake
        cd ${S}/src/gfxlib2
        use X && econf
        use X && emake
        # Restore old path
        PATH=$OLDPATH
        unset OLDPATH
        cd ${S}
}

src_install() {
        # FreeBASIC is weird to install.
        cp src/compiler/fbc_new fbc
        cp src/rtlib/lib*.a lib/linux
        use X && cp src/gfxlib2/lib*.a lib/linux
        cp src/rtlib/fbrt0.o lib/linux
        mkdir ${S}/../../image/usr
        ./install.sh -i ${S}/../../image/usr || die "failed to install freebasic"
}

Place this in a overlay and run emerge 8)

This was my first ebuild I made (with few other expirements too). Please report problems.

I have tested this ebuild, it is not fake.


Last edited by iGentoo900 on Fri May 22, 2009 11:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
StringCheesian
l33t
l33t


Joined: 21 Oct 2003
Posts: 887

PostPosted: Sat May 16, 2009 8:54 pm    Post subject: Reply with quote

Nice work. It installs fine here on ~x86.

I think RESTRICT="nomirror" would prevent from trying all the gentoo mirrors before sourceforge.
Back to top
View user's profile Send private message
iGentoo900
n00b
n00b


Joined: 02 Feb 2009
Posts: 15

PostPosted: Fri May 22, 2009 11:13 pm    Post subject: Reply with quote

Yah... will edit ebuild.
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