From: "Alfredo Tupone" <tupone@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/geneweb/, app-misc/geneweb/files/
Date: Wed, 23 Apr 2025 19:39:17 +0000 (UTC) [thread overview]
Message-ID: <1745437135.02d10c8184ea955f8c83f14ccc25cc76498c3780.tupone@gentoo> (raw)
commit: 02d10c8184ea955f8c83f14ccc25cc76498c3780
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 23 19:38:35 2025 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Wed Apr 23 19:38:55 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02d10c81
app-misc/geneweb: add 7.1_beta
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
app-misc/geneweb/Manifest | 1 +
app-misc/geneweb/files/geneweb-7.1_beta-test.patch | 21 +++++
app-misc/geneweb/files/geneweb.initd-r2 | 21 +++++
app-misc/geneweb/geneweb-7.1_beta.ebuild | 89 ++++++++++++++++++++++
4 files changed, 132 insertions(+)
diff --git a/app-misc/geneweb/Manifest b/app-misc/geneweb/Manifest
index d269e176e23c..3afadfb42249 100644
--- a/app-misc/geneweb/Manifest
+++ b/app-misc/geneweb/Manifest
@@ -1,2 +1,3 @@
DIST Geneweb-1eaac340.tar.gz 14741729 BLAKE2B 828857f48175dc0e2af8162dde7b38548e1b9131dfe9acae9b7e8f9940866f27868a1efcfc4c08bdec0fda4789d8b8c87310ba2625cd4f3ba9bc557aaf274bf3 SHA512 ee3effc9b444c05547218b79242db0eb5a56f2ca00b67fcc9937c2395aeb7cbd4dd3524e8b774799e7fb87453ee77d53bc64edb930a1902be6896f8f8d6caa24
DIST geneweb-7.0.1_alpha2.tar.gz 14960087 BLAKE2B 46950389b3e0591daa4dd3672d7b133166df805ab091ac344fba32dd46c1c13c48d523dcd3fab0fcbf7d5f113eed9b4998fe52a20b3b85a5f67be0ff0bc676dc SHA512 454552bf6fec9ac5ba20caeae85d0df821c651c56521ebbdaace3c199a764436d3538cc7fd0e0abc71519d78e00cbef8696f5d5c5f7c6bdf61014b7a85800d74
+DIST geneweb-7.1_beta.tar.gz 14465662 BLAKE2B d63713c3b160fdfed8a79cf9c63738a743321f659a038f57ebec372324a02be5262079b3b3f522aa4a0a50d595feb294b719e352240bcf320e321b7cd0df4b8d SHA512 d45d69866b94869495788b4fd10e74bb23b70a0fb32547afb7385bbaa62a4526916d66217f354e434b12faca883c8624e606c5593d1a3740fb07005b53abff76
diff --git a/app-misc/geneweb/files/geneweb-7.1_beta-test.patch b/app-misc/geneweb/files/geneweb-7.1_beta-test.patch
new file mode 100644
index 000000000000..10e209a35bdb
--- /dev/null
+++ b/app-misc/geneweb/files/geneweb-7.1_beta-test.patch
@@ -0,0 +1,21 @@
+--- 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
+@@ -46,18 +46,6 @@
+
+ let v =
+ [
+- ( (* this fail because Calendars library does not work on incomplete dates (day|month) = 0 *)
+- "calendar-sdn",
+- [
+- test_case "Calendar gregorian <-> sdn" `Quick
+- (round_trip (gregorian_of_sdn Def.Sure) sdn_of_gregorian data_sure);
+- test_case "Calendar julian <-> sdn" `Quick
+- (round_trip (julian_of_sdn Def.Sure) sdn_of_julian data_sure);
+- test_case "Calendar french <-> sdn" `Quick
+- (round_trip (french_of_sdn Def.Sure) sdn_of_french data_sure);
+- test_case "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/files/geneweb.initd-r2 b/app-misc/geneweb/files/geneweb.initd-r2
new file mode 100644
index 000000000000..6faf6ab563ce
--- /dev/null
+++ b/app-misc/geneweb/files/geneweb.initd-r2
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting geneweb server"
+ start-stop-daemon -S -u geneweb -x /usr/bin/geneweb.gwd -- \
+ -bd /var/lib/geneweb -hd /usr/share/geneweb \
+ -lang $LANG -log /var/log/geneweb.log -daemon
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping geneweb server"
+ start-stop-daemon -K -u geneweb -x /usr/bin/geneweb.gwd
+ eend $?
+}
diff --git a/app-misc/geneweb/geneweb-7.1_beta.ebuild b/app-misc/geneweb/geneweb-7.1_beta.ebuild
new file mode 100644
index 000000000000..0f7f925914f7
--- /dev/null
+++ b/app-misc/geneweb/geneweb-7.1_beta.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2025 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 ~arm64 ~x86"
+IUSE="+ocamlopt test"
+RESTRICT="strip
+ !test? ( test )"
+
+DEPEND="
+ acct-group/geneweb
+ acct-user/geneweb
+ dev-ml/calendars:=[ocamlopt?]
+ >=dev-ml/camlp5-8.03.00:=[ocamlopt?]
+ dev-ml/camlp-streams:=[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/re:=[ocamlopt?]
+ dev-ml/stdlib-shims:=[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/dune-2.9
+ dev-ml/findlib
+ test? ( dev-ml/alcotest )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-7.0.1_alpha2-nogwrepl.patch
+ "${FILESDIR}"/${PN}-7.0.1_alpha2-camlp5.patch
+ "${FILESDIR}"/${P}-test.patch
+)
+
+src_configure() {
+ ocaml ./configure.ml --sosa-zarith || die
+}
+
+src_compile() {
+ emake -j1 distrib
+}
+
+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)"
+}
next reply other threads:[~2025-04-23 19:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-23 19:39 Alfredo Tupone [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-08 22:55 [gentoo-commits] repo/gentoo:master commit in: app-misc/geneweb/, app-misc/geneweb/files/ Alfredo Tupone
2024-06-03 19:55 Alfredo Tupone
2023-03-13 19:57 Alfredo Tupone
2021-09-18 16:51 Alfredo Tupone
2017-03-06 18:03 Alfredo Tupone
2017-03-06 17:58 Alfredo Tupone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1745437135.02d10c8184ea955f8c83f14ccc25cc76498c3780.tupone@gentoo \
--to=tupone@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox