Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/geneweb/
Date: Wed, 01 Jan 2020 13:31:45
Message-Id: 1577885488.1169c46d85c716ede02bd1f45c9dc983b406d68b.tupone@gentoo
1 commit: 1169c46d85c716ede02bd1f45c9dc983b406d68b
2 Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 1 13:30:45 2020 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 1 13:31:28 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1169c46d
7
8 app-misc/geneweb: EAPI 7 & use GLEP81
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.16
11 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
12
13 app-misc/geneweb/geneweb-6.08-r2.ebuild | 77 +++++++++++++++++++++++++++++++++
14 1 file changed, 77 insertions(+)
15
16 diff --git a/app-misc/geneweb/geneweb-6.08-r2.ebuild b/app-misc/geneweb/geneweb-6.08-r2.ebuild
17 new file mode 100644
18 index 00000000000..cab25ce0668
19 --- /dev/null
20 +++ b/app-misc/geneweb/geneweb-6.08-r2.ebuild
21 @@ -0,0 +1,77 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +inherit eutils
27 +
28 +DESCRIPTION="Genealogy software program with a Web interface"
29 +HOMEPAGE="https://github.com/geneanet/geneweb"
30 +SRC_URI="https://github.com/geneweb/geneweb/archive/v6.08.tar.gz -> ${P}.tar.gz
31 + https://dev.gentoo.org/~tupone/${P}-ocaml-4.patch.gz"
32 +
33 +LICENSE="GPL-2"
34 +SLOT="0"
35 +KEYWORDS="~amd64 ~x86"
36 +IUSE="+ocamlopt"
37 +RESTRICT="strip"
38 +
39 +RDEPEND="dev-lang/ocaml[ocamlopt?]
40 + dev-ml/camlp5[ocamlopt?]
41 + acct-user/geneweb
42 + acct-group/geneweb"
43 +DEPEND="${RDEPEND}"
44 +
45 +PATCHES=(
46 + "${WORKDIR}"/${P}-ocaml-4.patch
47 + "${FILESDIR}"/${PF}-gentoo.patch
48 + "${FILESDIR}"/${P}-parallellbuild.patch )
49 +
50 +src_compile() {
51 + if use ocamlopt; then
52 + emake
53 + else
54 + emake OCAMLC=ocamlc OCAMLOPT=ocamlopt out
55 + # If using bytecode we dont want to strip the binary as it would remove
56 + # the bytecode and only leave ocamlrun...
57 + fi
58 +}
59 +
60 +src_install() {
61 + dodoc ICHANGES
62 + emake new_distrib
63 + emake wrappers
64 + # Install doc
65 + cd distribution
66 + dodoc CHANGES.txt
67 + # Install binaries
68 + cd gw
69 + dobin gwc gwc1 gwc2 consang gwd gwu update_nldb ged2gwb ged2gwb2 gwb2ged gwsetup
70 + insinto /usr/lib/${PN}
71 + doins -r gwtp_tmp/*
72 + dodoc a.gwf
73 + insinto /usr/share/${PN}
74 + doins -r etc images lang setup gwd.arg only.txt
75 +
76 + cd ../..
77 +
78 + # Install binaries
79 + dobin src/check_base
80 + # Install manpages
81 + doman man/*
82 +
83 + # Install doc
84 + dodoc -r contrib
85 + docompress -x /usr/share/doc/${PF}/contrib
86 +
87 + newinitd "${FILESDIR}/geneweb.initd" geneweb
88 + newconfd "${FILESDIR}/geneweb.confd" geneweb
89 +}
90 +
91 +pkg_postinst() {
92 + einfo "A CGI program has been installed in /usr/lib/${PN}. Follow the"
93 + einfo "instructions on the README in that directory to use it"
94 + einfo "For 64 bits architecture you need to rebuild the database"
95 + einfo "\"gwu foo > foo.gw \" will save the database (use the previous"
96 + einfo "version to do that). \"gwc2 foo.gw -o bar \" will restore it "
97 + einfo "(using the current package)"
98 +}