Lines 6-12
Link Here
|
6 |
|
6 |
|
7 |
inherit eutils multilib |
7 |
inherit eutils multilib |
8 |
|
8 |
|
9 |
DESCRIPTION="Parrot is a virtual machine designed to efficiently compile and execute bytecode for dynamic languages" |
9 |
DESCRIPTION="Virtual machine designed to efficiently compile and execute bytecode for dynamic languages" |
10 |
HOMEPAGE="http://www.parrot.org/" |
10 |
HOMEPAGE="http://www.parrot.org/" |
11 |
SRC_URI="ftp://ftp.parrot.org/pub/parrot/releases/devel/${PV}/${P}.tar.gz" |
11 |
SRC_URI="ftp://ftp.parrot.org/pub/parrot/releases/devel/${PV}/${P}.tar.gz" |
12 |
|
12 |
|
Lines 16-27
Link Here
|
16 |
IUSE="opengl nls doc examples gdbm gmp ssl unicode pcre" |
16 |
IUSE="opengl nls doc examples gdbm gmp ssl unicode pcre" |
17 |
|
17 |
|
18 |
RDEPEND="opengl? ( virtual/glut ) |
18 |
RDEPEND="opengl? ( virtual/glut ) |
19 |
nls? ( sys-devel/gettext ) |
19 |
nls? ( sys-devel/gettext ) |
20 |
unicode? ( >=dev-libs/icu-2.6 ) |
20 |
unicode? ( >=dev-libs/icu-2.6 ) |
21 |
gdbm? ( >=sys-libs/gdbm-1.8.3-r1 ) |
21 |
gdbm? ( >=sys-libs/gdbm-1.8.3-r1 ) |
22 |
gmp? ( >=dev-libs/gmp-4.1.4 ) |
22 |
gmp? ( >=dev-libs/gmp-4.1.4 ) |
23 |
ssl? ( dev-libs/openssl ) |
23 |
ssl? ( dev-libs/openssl ) |
24 |
pcre? ( dev-libs/libpcre )" |
24 |
pcre? ( dev-libs/libpcre )" |
25 |
|
25 |
|
26 |
DEPEND="dev-lang/perl[doc?] |
26 |
DEPEND="dev-lang/perl[doc?] |
27 |
${RDEPEND}" |
27 |
${RDEPEND}" |
Lines 31-57
Link Here
|
31 |
} |
31 |
} |
32 |
|
32 |
|
33 |
src_configure() { |
33 |
src_configure() { |
34 |
myconf="" |
34 |
myconf="" |
35 |
use unicode || myconf="$myconf --without-icu" |
35 |
use unicode || myconf="$myconf --without-icu" |
36 |
use ssl || myconf="$myconf --without-crypto" |
36 |
use ssl || myconf="$myconf --without-crypto" |
37 |
use gdbm || myconf="$myconf --without-gdbm" |
37 |
use gdbm || myconf="$myconf --without-gdbm" |
38 |
use nls || myconf="$myconf --without-gettext" |
38 |
use nls || myconf="$myconf --without-gettext" |
39 |
use gmp || myconf="$myconf --without-gmp" |
39 |
use gmp || myconf="$myconf --without-gmp" |
40 |
use opengl || myconf="$myconf --without-opengl" |
40 |
use opengl || myconf="$myconf --without-opengl" |
41 |
use pcre || myconf="$myconf --without-pcre" |
41 |
use pcre || myconf="$myconf --without-pcre" |
42 |
|
42 |
myconf="$myconf --disable-rpath" |
43 |
perl Configure.pl --prefix=/usr \ |
43 |
|
44 |
--libdir=/usr/$(get_libdir) \ |
44 |
perl Configure.pl --prefix=/usr \ |
45 |
--sysconfdir=/etc \ |
45 |
--libdir=/usr/$(get_libdir) \ |
46 |
--sharedstatedir=/var/lib/parrot \ |
46 |
--sysconfdir=/etc \ |
47 |
$myconf |
47 |
--sharedstatedir=/var/lib/parrot \ |
|
|
48 |
${myconf} |
49 |
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"${S}"/blib/lib |
48 |
} |
50 |
} |
49 |
|
51 |
|
50 |
src_compile() { |
52 |
src_compile() { |
51 |
emake || die |
53 |
emake || die |
52 |
use doc && make html |
54 |
use doc && make html |
53 |
} |
55 |
} |
54 |
|
56 |
|
55 |
src_install() { |
57 |
src_install() { |
56 |
emake -j1 install-dev DESTDIR="${D}" DOC_DIR="/usr/share/doc/${P}" || die |
58 |
emake -j1 install-dev DESTDIR="${D}" DOC_DIR="/usr/share/doc/${P}" || die |
|
|
59 |
} |
60 |
|
61 |
pkg_postinst() { |
62 |
elog "Development files which compilers need in their build process." |
63 |
elog "Have been installed /usr/src/${PN}" |
64 |
elog "Which compilers need in their build process." |
57 |
} |
65 |
} |