diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2013-04-22 06:22:20 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2013-04-22 06:22:20 +0000 |
commit | 857192610b4321c2f19b7b29b5b2977711304a86 (patch) | |
tree | 8842fa72dc4f812af408e83e80945e5619a0b094 /app-misc | |
parent | Version bump (diff) | |
download | gentoo-2-857192610b4321c2f19b7b29b5b2977711304a86.tar.gz gentoo-2-857192610b4321c2f19b7b29b5b2977711304a86.tar.bz2 gentoo-2-857192610b4321c2f19b7b29b5b2977711304a86.zip |
Version bump to 6.07. Patch taken from debian experimental
(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key 0145142D)
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/geneweb/ChangeLog | 8 | ||||
-rw-r--r-- | app-misc/geneweb/files/geneweb-6.07-gentoo.patch | 30 | ||||
-rw-r--r-- | app-misc/geneweb/files/geneweb-6.07-parallellbuild.patch | 23 | ||||
-rw-r--r-- | app-misc/geneweb/geneweb-6.07.ebuild | 85 |
4 files changed, 145 insertions, 1 deletions
diff --git a/app-misc/geneweb/ChangeLog b/app-misc/geneweb/ChangeLog index 57b1114aaae6..a646eb901de5 100644 --- a/app-misc/geneweb/ChangeLog +++ b/app-misc/geneweb/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-misc/geneweb # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/geneweb/ChangeLog,v 1.24 2013/04/19 06:08:47 tupone Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/geneweb/ChangeLog,v 1.25 2013/04/22 06:22:20 tupone Exp $ + +*geneweb-6.07 (22 Apr 2013) + + 22 Apr 2013; Alfredo Tupone <tupone@gentoo.org> +geneweb-6.07.ebuild, + +files/geneweb-6.07-gentoo.patch, +files/geneweb-6.07-parallellbuild.patch: + Version bump to 6.07. Patch taken from debian experimental *geneweb-6.06 (19 Apr 2013) diff --git a/app-misc/geneweb/files/geneweb-6.07-gentoo.patch b/app-misc/geneweb/files/geneweb-6.07-gentoo.patch new file mode 100644 index 000000000000..a7cdff7a44c5 --- /dev/null +++ b/app-misc/geneweb/files/geneweb-6.07-gentoo.patch @@ -0,0 +1,30 @@ +--- setup/setup.ml.old 2007-08-07 19:25:13.000000000 +0200 ++++ setup/setup.ml 2007-08-07 19:24:59.000000000 +0200 +@@ -5,8 +5,8 @@ + + value port = ref 2316; + value default_lang = ref "en"; +-value setup_dir = ref "."; +-value bin_dir = ref ""; ++value setup_dir = ref "/usr/share/geneweb"; ++value bin_dir = ref "/usr/bin"; + value lang_param = ref ""; + value only_file = ref ""; + +--- tools/Makefile.inc.unix.old 2008-04-23 15:22:50.000000000 +0200 ++++ tools/Makefile.inc.unix 2008-04-23 15:23:04.000000000 +0200 +@@ -5,11 +5,11 @@ + CAMLP5F=-DUNIX + CAMLP5D=+camlp5 + LIBUNIX=-cclib -lunix +-OCAMLC=ocamlc.opt -warn-error A +-OCAMLOPT=ocamlopt.opt -warn-error A ++OCAMLC=ocamlc.opt ++OCAMLOPT=ocamlopt.opt + OCAMLI= + OCAMLD= +-STRIP=strip ++STRIP=true + RM=/bin/rm -f + EXE= + STATIC=-ccopt -static diff --git a/app-misc/geneweb/files/geneweb-6.07-parallellbuild.patch b/app-misc/geneweb/files/geneweb-6.07-parallellbuild.patch new file mode 100644 index 000000000000..a1b5fe742a17 --- /dev/null +++ b/app-misc/geneweb/files/geneweb-6.07-parallellbuild.patch @@ -0,0 +1,23 @@ +--- wserver/Makefile.old 2011-03-11 13:47:04.000000000 +0100 ++++ wserver/Makefile 2011-03-11 13:47:20.000000000 +0100 +@@ -5,7 +5,8 @@ + OBJS=wserver.cmo + + all:: pa_macro5.cmo $(OBJS) +-opt:: pa_macro5.cmo $(OBJS:.cmo=.cmx) ++opt:: pa_macro5.cmo ++ $(MAKE) $(OBJS:.cmo=.cmx) + + pa_macro5.cmo: pa_macro5.ml + camlp5r pa_extend.cmo q_MLast.cmo -o pa_macro5.ppo pa_macro5.ml +--- src/Makefile.old 2013-04-18 21:29:52.727049806 +0200 ++++ src/Makefile 2013-04-18 21:30:58.838414496 +0200 +@@ -153,6 +153,8 @@ + ) | \ + sort | uniq | grep -v '^$$' > i18n + ++config.cmi: gwdb.cmi ++ + always: + + depend: diff --git a/app-misc/geneweb/geneweb-6.07.ebuild b/app-misc/geneweb/geneweb-6.07.ebuild new file mode 100644 index 000000000000..2c92f668a8d3 --- /dev/null +++ b/app-misc/geneweb/geneweb-6.07.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/geneweb/geneweb-6.07.ebuild,v 1.1 2013/04/22 06:22:20 tupone Exp $ + +EAPI=4 +inherit eutils user + +MY_PN=gw +MY_PV=${PV/./-} +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Genealogy software program with a Web interface." +HOMEPAGE="http://opensource.geneanet.org/projects/geneweb" +SRC_URI="http://opensource.geneanet.org/attachments/download/211/${MY_P}-src.tgz + http://dev.gentoo.org/~tupone/${P}-reduce-utf8.ml.patch.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+ocamlopt" + +RDEPEND="dev-lang/ocaml[ocamlopt?] + dev-ml/camlp5" +DEPEND="${RDEPEND} + !net-p2p/ghostwhitecrab" + +S=${WORKDIR}/gw-${PV}-src + +src_prepare() { + esvn_clean + epatch "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/${P}-parallellbuild.patch \ + ../${P}-reduce-utf8.ml.patch +} + +src_compile() { + if use ocamlopt; then + emake + else + emake OCAMLC=ocamlc OCAMLOPT=ocamlopt out + # If using bytecode we dont want to strip the binary as it would remove + # the bytecode and only leave ocamlrun... + export STRIP_MASK="*/bin/*" + fi +} + +src_install() { + dodoc ICHANGES + make distrib + # Install doc + cd distribution + dodoc CHANGES.txt + # Install binaries + cd gw + dobin gwc gwc1 gwc2 consang gwd gwu update_nldb ged2gwb ged2gwb2 gwb2ged gwsetup + insinto /usr/lib/${PN} + doins -r gwtp_tmp/* + dodoc a.gwf + insinto /usr/share/${PN} + doins -r etc images lang setup gwd.arg only.txt + + cd ../.. + + # Install binaries + dobin src/check_base + # Install manpages + doman man/* + + # Install doc + insinto /usr/share/doc/${PF}/contrib + doins -r contrib/{gwdiff,misc} + + newinitd "${FILESDIR}/geneweb.initd" geneweb + newconfd "${FILESDIR}/geneweb.confd" geneweb +} + +pkg_postinst() { + enewuser geneweb "" "/bin/bash" /var/lib/geneweb + einfo "A CGI program has been installed in /usr/lib/${PN}. Follow the" + einfo "instructions on the README in that directory to use it" + einfo "For 64 bits architecture you need to rebuild the database" + einfo "\"gwu foo > foo.gw \" will save the database (use the previous" + einfo "version to do that). \"gwc2 foo.gw -o bar \" will restore it " + einfo "(usiing the current package)" +} |