1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="Genealogy software program with a Web interface"
8 HOMEPAGE="https://github.com/geneanet/geneweb"
9 SRC_URI="https://github.com/geneweb/geneweb/archive/v6.08.tar.gz -> ${P}.tar.gz
10 https://dev.gentoo.org/~tupone/${P}-ocaml-4.patch.gz"
18 RDEPEND="dev-lang/ocaml[ocamlopt?]
19 dev-ml/camlp5[ocamlopt?]"
21 !net-p2p/ghostwhitecrab"
24 "${WORKDIR}"/${P}-ocaml-4.patch
25 "${FILESDIR}"/${PF}-gentoo.patch
26 "${FILESDIR}"/${P}-parallellbuild.patch )
32 emake OCAMLC=ocamlc OCAMLOPT=ocamlopt out
33 # If using bytecode we dont want to strip the binary as it would remove
34 # the bytecode and only leave ocamlrun...
47 dobin gwc gwc1 gwc2 consang gwd gwu update_nldb ged2gwb ged2gwb2 gwb2ged gwsetup
48 insinto /usr/lib/${PN}
51 insinto /usr/share/${PN}
52 doins -r etc images lang setup gwd.arg only.txt
62 insinto /usr/share/doc/${PF}/contrib
63 doins -r contrib/{gwdiff,misc}
65 newinitd "${FILESDIR}/geneweb.initd" geneweb
66 newconfd "${FILESDIR}/geneweb.confd" geneweb
70 enewuser geneweb "" "/bin/bash" /var/lib/geneweb
71 einfo "A CGI program has been installed in /usr/lib/${PN}. Follow the"
72 einfo "instructions on the README in that directory to use it"
73 einfo "For 64 bits architecture you need to rebuild the database"
74 einfo "\"gwu foo > foo.gw \" will save the database (use the previous"
75 einfo "version to do that). \"gwc2 foo.gw -o bar \" will restore it "
76 einfo "(using the current package)"