1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
12 DESCRIPTION="Genealogy software program with a Web interface"
13 HOMEPAGE="http://opensource.geneanet.org/projects/geneweb"
14 SRC_URI="http://opensource.geneanet.org/attachments/download/240/${MY_P}-src.tgz
15 mirror://gentoo/${P}-reduce-utf8.ml.patch.gz"
22 RDEPEND="dev-lang/ocaml[ocamlopt?]
23 dev-ml/camlp5[ocamlopt?]"
25 !net-p2p/ghostwhitecrab"
27 S=${WORKDIR}/gw-${PV}-src
31 epatch "${FILESDIR}"/${P}-gentoo.patch \
32 "${FILESDIR}"/${P}-parallellbuild.patch \
33 ../${P}-reduce-utf8.ml.patch
40 emake OCAMLC=ocamlc OCAMLOPT=ocamlopt out
41 # If using bytecode we dont want to strip the binary as it would remove
42 # the bytecode and only leave ocamlrun...
43 export STRIP_MASK="*/bin/*"
55 dobin gwc gwc1 gwc2 consang gwd gwu update_nldb ged2gwb ged2gwb2 gwb2ged gwsetup
56 insinto /usr/lib/${PN}
59 insinto /usr/share/${PN}
60 doins -r etc images lang setup gwd.arg only.txt
70 insinto /usr/share/doc/${PF}/contrib
71 doins -r contrib/{gwdiff,misc}
73 newinitd "${FILESDIR}/geneweb.initd" geneweb
74 newconfd "${FILESDIR}/geneweb.confd" geneweb
78 enewuser geneweb "" "/bin/bash" /var/lib/geneweb
79 einfo "A CGI program has been installed in /usr/lib/${PN}. Follow the"
80 einfo "instructions on the README in that directory to use it"
81 einfo "For 64 bits architecture you need to rebuild the database"
82 einfo "\"gwu foo > foo.gw \" will save the database (use the previous"
83 einfo "version to do that). \"gwc2 foo.gw -o bar \" will restore it "
84 einfo "(usiing the current package)"