summaryrefslogtreecommitdiff
blob: d7c8fab167e7eb6d8ae40def63e8c5af8280d8ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
EAPI="4"
inherit eutils

DESCRIPTION="Palmer Dabbelt's Configure Replacement"
HOMEPAGE="http://www.dabbelt.com/~palmer/software/pconfigure/"
SRC_URI="https://github.com/palmer-dabbelt/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 amd64-linux arm"
IUSE="scala"

RDEPEND="dev-util/pkgconfig
         dev-util/strace
         sys-devel/make
         sys-devel/gcc
         sys-libs/talloc
         scala? ( dev-lang/scala )
         "

DEPEND="${RDEPEND}"

src_configure() {
    echo "LIBDIR = lib64" >> Configfile.local

    echo "LANGUAGES += c" >> Configfile.local
    for i in $(echo ${CFLAGS}); do
        echo "COMPILEOPTS += ${i}" >> Configfile.local
    done
    echo "COMPILEOPTS += -DPBASHC_SHEBANG=\\\"\#\!${EPREFIX}/bin/bash\\\""\
         >> Configfile.local

    echo "LANGUAGES += c++" >> Configfile.local
    for i in $(echo ${CXXFLAGS}); do
        echo "COMPILEOPTS += ${i}" >> Configfile.local
    done
    echo "COMPILEOPTS += -DPBASHC_SHEBANG=\\\"\#\!${EPREFIX}/bin/bash\\\""\
         >> Configfile.local

    sh bootstrap.sh --prefix ${EPREFIX}/usr \
           || die "Failed to bootstap pconfigure"
}