diff --git a/app-misc/geneweb/Manifest b/app-misc/geneweb/Manifest index bf27665d03ff2..88814284dc798 100644 --- a/app-misc/geneweb/Manifest +++ b/app-misc/geneweb/Manifest @@ -1 +1,2 @@ +DIST geneweb-7.1.0_beta2.tar.gz 8920128 BLAKE2B 5abf714b261edf219497c5a6fcfe9f853f5912f047a29d79bcb4a46eee1ab74edb0d38b020bdd5a46828c146a98e7c0b2264f5bba04f67e4d6cbdaa0a8366d82 SHA512 1d32d5d4b7cc389ae6bf77b95f40ceb563fe048ef76235bb59a548e1c27258ca4e935327b3b4a34a81c59c1c7d818159453ae819d587368e7d6e3b37d2b41283 DIST geneweb-7.1_beta.tar.gz 14465662 BLAKE2B d63713c3b160fdfed8a79cf9c63738a743321f659a038f57ebec372324a02be5262079b3b3f522aa4a0a50d595feb294b719e352240bcf320e321b7cd0df4b8d SHA512 d45d69866b94869495788b4fd10e74bb23b70a0fb32547afb7385bbaa62a4526916d66217f354e434b12faca883c8624e606c5593d1a3740fb07005b53abff76 diff --git a/app-misc/geneweb/files/geneweb-7.1.0_beta2-no-not-ocamlfind.patch b/app-misc/geneweb/files/geneweb-7.1.0_beta2-no-not-ocamlfind.patch new file mode 100644 index 0000000000000..bf319831903c6 --- /dev/null +++ b/app-misc/geneweb/files/geneweb-7.1.0_beta2-no-not-ocamlfind.patch @@ -0,0 +1,15 @@ +--- a/bin/ged2gwb/dune 2026-11-13 12:00:47.031133248 +0100 ++++ b/bin/ged2gwb/dune 2026-11-13 12:03:07.127288339 +0100 +@@ -6,11 +6,7 @@ + (preprocess + (action + (run +- not-ocamlfind +- preprocess +- -package +- camlp5.extend,camlp5.quotations,camlp5.pr_o +- -syntax + camlp5o ++ -I +camlp5 pa_extend.cmo q_MLast.cmo o_keywords.cmo pr_o.cmo + %{input-file}))) + (libraries camlp5 unix str geneweb_db geneweb)) diff --git a/app-misc/geneweb/files/geneweb-7.1.0_beta2-test.patch b/app-misc/geneweb/files/geneweb-7.1.0_beta2-test.patch new file mode 100644 index 0000000000000..23336e8a9950c --- /dev/null +++ b/app-misc/geneweb/files/geneweb-7.1.0_beta2-test.patch @@ -0,0 +1,22 @@ +--- a/test/calendar_test.ml 2025-04-19 22:26:32.658549756 +0200 ++++ b/test/calendar_test.ml 2025-04-19 22:26:55.499277089 +0200 +@@ -53,19 +53,6 @@ + + let v = + [ +- ( (* this fail because Calendars library does not work on incomplete dates (day|month) = 0 *) +- (* see issue 2172 *) +- "calendar-sdn", +- [ +- expect_failure "Calendar gregorian <-> sdn" `Quick +- (round_trip (gregorian_of_sdn Def.Sure) sdn_of_gregorian data_sure); +- expect_failure "Calendar julian <-> sdn" `Quick +- (round_trip (julian_of_sdn Def.Sure) sdn_of_julian data_sure); +- expect_failure "Calendar french <-> sdn" `Quick +- (round_trip (french_of_sdn Def.Sure) sdn_of_french data_sure); +- expect_failure "Calendar hebrew <-> sdn" `Quick +- (round_trip (hebrew_of_sdn Def.Sure) sdn_of_hebrew data_sure); +- ] ); + ( "calendar-greg", + [ + test_case "Calendar gregorian <-> julian" `Quick diff --git a/app-misc/geneweb/geneweb-7.1.0_beta2.ebuild b/app-misc/geneweb/geneweb-7.1.0_beta2.ebuild new file mode 100644 index 0000000000000..8509b7fb2d7ed --- /dev/null +++ b/app-misc/geneweb/geneweb-7.1.0_beta2.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit dune +MYPV=${PV/_/-} + +DESCRIPTION="Genealogy software program with a Web interface" +HOMEPAGE="https://github.com/geneweb/geneweb" +SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${MYPV}.tar.gz + -> ${P}.tar.gz" + +S="${WORKDIR}"/${PN}-${MYPV} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+ocamlopt test" +RESTRICT="strip + !test? ( test )" + +DEPEND=" + acct-group/geneweb + acct-user/geneweb + =dev-ml/calendars-1*:=[ocamlopt?] + >=dev-ml/camlp5-8.03.00:=[ocamlopt?] + dev-ml/camlp-streams:=[ocamlopt?] + dev-ml/decompress:=[ocamlopt?] + dev-ml/digestif:=[ocamlopt?] + dev-ml/fmt:=[ocamlopt?] + dev-ml/jingoo:=[ocamlopt?] + dev-ml/markup:=[ocamlopt?] + dev-ml/num:=[ocamlopt?] + dev-ml/ppx_deriving:=[ocamlopt?] + dev-ml/ppx_import:=[ocamlopt?] + dev-ml/pp_loc:=[ocamlopt?] + dev-ml/re:=[ocamlopt?] + dev-ml/stdlib-shims:=[ocamlopt?] + dev-ml/logs-syslog:=[ocamlopt?] + dev-ml/unidecode:=[ocamlopt?] + dev-ml/uri:=[ocamlopt?] + dev-ml/uucp:= + dev-ml/uunf:= + dev-ml/uutf:=[ocamlopt?] + + dev-ml/zarith:=[ocamlopt?] +" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-ml/cppo + dev-ml/findlib + test? ( + dev-ml/alcotest + dev-ml/qcheck + )" + +PATCHES=( + "${FILESDIR}"/${P}-test.patch + "${FILESDIR}"/${P}-no-not-ocamlfind.patch +) + +src_configure() { + ocaml ./configure.ml --sosa-zarith || die +} + +src_compile() { + emake -j1 distrib + dune-compile ${PN} +} + +src_install() { + dune_src_install + rm "${D}"/usr/share/doc/${PF}/geneweb/LICENSE || die + mv "${D}"/usr/share/doc/${PF}/geneweb/* "${D}"/usr/share/doc/${PF}/ || die + + dodoc ICHANGES etc/README.txt etc/a.gwf + + # Install manpages + doman man/* + + cd distribution/gw + insinto /usr/share/${PN} + doins -r etc images lang setup gwd.arg + + keepdir /var/lib/${PN} + + newinitd "${FILESDIR}/geneweb.initd-r2" geneweb + newconfd "${FILESDIR}/geneweb.confd" geneweb +} + +pkg_postinst() { + einfo "If you come from an old version you need to rebuild the database" + einfo "\"geneweb.gwu foo -o foo.gw \" will save the database (use the previous" + einfo "version to do that). \"geneweb.gwc foo.gw -o bar \" will restore it " + einfo "(using the current package)" +}