Lines 4-9
Link Here
|
4 |
|
4 |
|
5 |
inherit eutils |
5 |
inherit eutils |
6 |
|
6 |
|
|
|
7 |
EAPI="1" |
8 |
|
7 |
DESCRIPTION="Genealogy software program with a Web interface." |
9 |
DESCRIPTION="Genealogy software program with a Web interface." |
8 |
HOMEPAGE="http://cristal.inria.fr/~ddr/GeneWeb/" |
10 |
HOMEPAGE="http://cristal.inria.fr/~ddr/GeneWeb/" |
9 |
SRC_URI="ftp://ftp.inria.fr/INRIA/Projects/cristal/${PN}/Src/${P}.tgz" |
11 |
SRC_URI="ftp://ftp.inria.fr/INRIA/Projects/cristal/${PN}/Src/${P}.tgz" |
Lines 11-28
Link Here
|
11 |
LICENSE="GPL-2" |
13 |
LICENSE="GPL-2" |
12 |
SLOT="0" |
14 |
SLOT="0" |
13 |
KEYWORDS="~amd64 ~x86" |
15 |
KEYWORDS="~amd64 ~x86" |
14 |
IUSE="" |
16 |
IUSE="+ocamlopt" |
|
|
17 |
|
18 |
DEPEND="dev-lang/ocaml |
19 |
dev-ml/camlp5" |
15 |
|
20 |
|
16 |
DEPEND="dev-lang/ocaml" |
21 |
pkg_setup() { |
|
|
22 |
if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then |
23 |
eerror "In order to build ${PN} with native code support from ocaml" |
24 |
eerror "You first need to have a native code ocaml compiler." |
25 |
eerror "You need to install dev-lang/ocaml with ocamlopt useflag on." |
26 |
die "Please install ocaml with ocamlopt useflag" |
27 |
fi |
28 |
} |
17 |
|
29 |
|
18 |
src_unpack() { |
30 |
src_unpack() { |
19 |
unpack ${A} |
31 |
unpack ${A} |
20 |
cd "${S}" |
32 |
cd "${S}" |
21 |
epatch "${FILESDIR}"/${P}-gentoo.patch |
33 |
epatch "${FILESDIR}"/${PN}-5.00-gentoo.patch |
22 |
sed -i -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \ |
34 |
sed -i -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \ |
23 |
setup/setup.ml || die "Failed sed for gentoo path" |
35 |
setup/setup.ml || die "Failed sed for gentoo path" |
24 |
} |
36 |
} |
25 |
|
37 |
|
|
|
38 |
src_compile() { |
39 |
econf |
40 |
if use ocamlopt; then |
41 |
emake || die "Compiling native code executables failed" |
42 |
else |
43 |
emake OCAMLC="ocamlc" out || die "Compiling native code executables failed" |
44 |
# If using bytecode we dont want to strip the binary as it would remove the |
45 |
# bytecode and only leave ocamlrun... |
46 |
export STRIP_MASK="*/bin/*" |
47 |
fi |
48 |
} |
49 |
|
26 |
src_install() { |
50 |
src_install() { |
27 |
# Install binaries |
51 |
# Install binaries |
28 |
dobin src/{consang,check_base,gwc,gwd,gwu} \ |
52 |
dobin src/{consang,check_base,gwc,gwd,gwu} \ |