diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2023-03-13 20:55:55 +0100 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2023-03-13 20:56:48 +0100 |
commit | 743de4500bb8459dc125aed847790eab7264720d (patch) | |
tree | 08b65df8c74ff6c1caf1fd4b68d64f9c6b990b7a /app-misc | |
parent | sys-apps/pkgcore: Stabilize 0.12.20 ALLARCHES, #901073 (diff) | |
download | gentoo-743de4500bb8459dc125aed847790eab7264720d.tar.gz gentoo-743de4500bb8459dc125aed847790eab7264720d.tar.bz2 gentoo-743de4500bb8459dc125aed847790eab7264720d.zip |
app-misc/geneweb: add 7.0.0_p1
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/geneweb/Manifest | 1 | ||||
-rw-r--r-- | app-misc/geneweb/files/geneweb-7.0.0_p1-gentoo.patch | 35 | ||||
-rw-r--r-- | app-misc/geneweb/files/geneweb.initd-r1 | 19 | ||||
-rw-r--r-- | app-misc/geneweb/geneweb-7.0.0_p1.ebuild | 86 |
4 files changed, 141 insertions, 0 deletions
diff --git a/app-misc/geneweb/Manifest b/app-misc/geneweb/Manifest index 0004dbb0e0f2..3655f8daabfb 100644 --- a/app-misc/geneweb/Manifest +++ b/app-misc/geneweb/Manifest @@ -1 +1,2 @@ +DIST Geneweb-1eaac340.tar.gz 14741729 BLAKE2B 828857f48175dc0e2af8162dde7b38548e1b9131dfe9acae9b7e8f9940866f27868a1efcfc4c08bdec0fda4789d8b8c87310ba2625cd4f3ba9bc557aaf274bf3 SHA512 ee3effc9b444c05547218b79242db0eb5a56f2ca00b67fcc9937c2395aeb7cbd4dd3524e8b774799e7fb87453ee77d53bc64edb930a1902be6896f8f8d6caa24 DIST geneweb-7.0.0.tar.gz 14767981 BLAKE2B 3a0a777a934d26fa91bd94d20311c6147e749961035b57aed8322c4e96f5cead2edde3a96e362b5de35073fa594d4cb5f3ef0f4d7eeaebea2095bfeef37740b6 SHA512 359b8e2258d572198a7516dd03830e536038392d552482f25fe4b93ded76dccebfe3c420eb2ba1a566500200755c87cbe19a2060eaeea895bd84c505b7b65345 diff --git a/app-misc/geneweb/files/geneweb-7.0.0_p1-gentoo.patch b/app-misc/geneweb/files/geneweb-7.0.0_p1-gentoo.patch new file mode 100644 index 000000000000..58d306f6282d --- /dev/null +++ b/app-misc/geneweb/files/geneweb-7.0.0_p1-gentoo.patch @@ -0,0 +1,35 @@ +diff --git a/bin/gwrepl/mk_data.ml b/bin/gwrepl/mk_data.ml +index b2a808b65..e497a238c 100644 +--- a/bin/gwrepl/mk_data.ml ++++ b/bin/gwrepl/mk_data.ml +@@ -42,7 +42,7 @@ let partition_map p l = + Printf.fprintf out "\n#endif\n" + + let () = +- let opam_swich_prefix = Sys.getenv "OPAM_SWITCH_PREFIX" in ++ let opam_swich_prefix = "/usr" in + let opam_swich_prefix_lib = opam_swich_prefix // "lib" in + + let dune_root, root, ( directories0, files0 ) = +@@ -157,7 +157,7 @@ let () = + List.iter aux [ "ocaml" // "stublibs" // "dllcamlstr.so" + ; "ocaml" // "stublibs" // "dllunix.so" + ] ; +- if_sosa_zarith out (fun () -> aux ("stublibs" // "dllzarith.so")) ; ++ if_sosa_zarith out (fun () -> aux ("ocaml" // "stublibs" // "dllzarith.so")) ; + end ; + Printf.fprintf out {||];;|} + end ; +diff --git a/test/dune.in b/test/dune.in +index ef891bbce..ac2a2b9e1 100644 +--- a/test/dune.in ++++ b/test/dune.in +@@ -7,7 +7,7 @@ + + (executable + (name test) +- (libraries %%%SOSA_PKG%%% dummy_gwdb geneweb geneweb_def_show oUnit stdlib-shims) ++ (libraries %%%SOSA_PKG%%% dummy_gwdb geneweb geneweb_def_show ounit2 stdlib-shims) + (preprocess (pps ppx_deriving.show)) + (modules + test diff --git a/app-misc/geneweb/files/geneweb.initd-r1 b/app-misc/geneweb/files/geneweb.initd-r1 new file mode 100644 index 000000000000..d01c1cc27911 --- /dev/null +++ b/app-misc/geneweb/files/geneweb.initd-r1 @@ -0,0 +1,19 @@ +#!/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 -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.0.0_p1.ebuild b/app-misc/geneweb/geneweb-7.0.0_p1.ebuild new file mode 100644 index 000000000000..a57bf577da4b --- /dev/null +++ b/app-misc/geneweb/geneweb-7.0.0_p1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit dune + +TagId=Geneweb-1eaac340 +DESCRIPTION="Genealogy software program with a Web interface" +HOMEPAGE="https://github.com/geneweb/geneweb" +SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/${TagId}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+ocamlopt test" +RESTRICT="strip + !test? ( test )" + +DEPEND=" + dev-ml/re:= + dev-ml/uutf:= + dev-ml/uunf:= + dev-ml/uucp:= + dev-ml/unidecode:= + dev-ml/calendars:= + dev-ml/zarith:= + dev-ml/markup:= + dev-ml/jingoo:= + >=dev-ml/camlp5-8:=[ocamlopt?] + dev-ml/ppx_import:= + dev-ml/ppx_blob:= + acct-user/geneweb + acct-group/geneweb +" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-ml/cppo + test? ( dev-ml/ounit2 )" + +QA_FLAGS_IGNORED='.*' + +S="${WORKDIR}"/${PN}-${TagId} + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_prepare() { + default + sed -i \ + -e "/opam_swich_prefix_lib/s|\"lib|\"$(get_libdir)|" \ + bin/gwrepl/mk_data.ml \ + || die +} + +src_configure() { + ocaml ./configure.ml --sosa-zarith || die +} + +src_compile() { + emake 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 + + newinitd "${FILESDIR}/geneweb.initd-r1" 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)" +} |