summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2013-04-12 09:13:27 +0000
committerAlfredo Tupone <tupone@gentoo.org>2013-04-12 09:13:27 +0000
commit7e8de9de27073b9d4b0fb3e770ca01c543d78d9e (patch)
treea2838ade861abebf48d74c8ba04094e6823c3431 /app-misc/geneweb
parentFix farstream build failures. (diff)
downloadgentoo-2-7e8de9de27073b9d4b0fb3e770ca01c543d78d9e.tar.gz
gentoo-2-7e8de9de27073b9d4b0fb3e770ca01c543d78d9e.tar.bz2
gentoo-2-7e8de9de27073b9d4b0fb3e770ca01c543d78d9e.zip
Version bump to 6.02
(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key 0145142D)
Diffstat (limited to 'app-misc/geneweb')
-rw-r--r--app-misc/geneweb/ChangeLog11
-rw-r--r--app-misc/geneweb/files/geneweb-6.02-amd64.patch11
-rw-r--r--app-misc/geneweb/files/geneweb-6.02-gentoo.patch30
-rw-r--r--app-misc/geneweb/files/geneweb-6.02-parallellbuild.patch12
-rw-r--r--app-misc/geneweb/geneweb-6.02.ebuild78
5 files changed, 140 insertions, 2 deletions
diff --git a/app-misc/geneweb/ChangeLog b/app-misc/geneweb/ChangeLog
index 84c53633abd7..cce2a5f44af1 100644
--- a/app-misc/geneweb/ChangeLog
+++ b/app-misc/geneweb/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-misc/geneweb
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/geneweb/ChangeLog,v 1.20 2012/06/01 01:56:55 zmedico Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/geneweb/ChangeLog,v 1.21 2013/04/12 09:13:27 tupone Exp $
+
+*geneweb-6.02 (12 Apr 2013)
+
+ 12 Apr 2013; Alfredo Tupone <tupone@gentoo.org> +geneweb-6.02.ebuild,
+ +files/geneweb-6.02-amd64.patch, +files/geneweb-6.02-gentoo.patch,
+ +files/geneweb-6.02-parallellbuild.patch:
+ Version bump to 6.02
01 Jun 2012; Zac Medico <zmedico@gentoo.org> geneweb-5.02.ebuild:
inherit user for enewuser
diff --git a/app-misc/geneweb/files/geneweb-6.02-amd64.patch b/app-misc/geneweb/files/geneweb-6.02-amd64.patch
new file mode 100644
index 000000000000..6ca0c3197a9f
--- /dev/null
+++ b/app-misc/geneweb/files/geneweb-6.02-amd64.patch
@@ -0,0 +1,11 @@
+--- src/iovalue.ml.old 2011-09-29 08:55:02.000000000 +0200
++++ src/iovalue.ml 2011-09-29 08:55:42.000000000 +0200
+@@ -10,7 +10,7 @@
+ read inside a value output by output_value (no headers) must
+ match OCaml's input_value system (intern.c) *)
+
+-value sizeof_long = Sys.word_size / 8;
++value sizeof_long = 32 / 8;
+ value sign_extend_shift = (sizeof_long - 1) * 8 - 1;
+ value sign_extend x = (x lsl sign_extend_shift) asr sign_extend_shift;
+
diff --git a/app-misc/geneweb/files/geneweb-6.02-gentoo.patch b/app-misc/geneweb/files/geneweb-6.02-gentoo.patch
new file mode 100644
index 000000000000..a7cdff7a44c5
--- /dev/null
+++ b/app-misc/geneweb/files/geneweb-6.02-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.02-parallellbuild.patch b/app-misc/geneweb/files/geneweb-6.02-parallellbuild.patch
new file mode 100644
index 000000000000..a1307b9b4872
--- /dev/null
+++ b/app-misc/geneweb/files/geneweb-6.02-parallellbuild.patch
@@ -0,0 +1,12 @@
+--- 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
diff --git a/app-misc/geneweb/geneweb-6.02.ebuild b/app-misc/geneweb/geneweb-6.02.ebuild
new file mode 100644
index 000000000000..b2c899cee200
--- /dev/null
+++ b/app-misc/geneweb/geneweb-6.02.ebuild
@@ -0,0 +1,78 @@
+# 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.02.ebuild,v 1.1 2013/04/12 09:13:27 tupone Exp $
+
+EAPI=4
+inherit eutils user
+
+MY_PN=gw
+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/126/${MY_P}-src.tgz"
+
+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}/${MY_P}-src
+
+src_prepare() {
+ esvn_clean
+ epatch "${FILESDIR}"/${P}-gentoo.patch \
+ "${FILESDIR}"/${P}-amd64.patch \
+ "${FILESDIR}"/${P}-parallellbuild.patch
+ cp tools/Makefile.inc.unix tools/Makefile.inc
+}
+
+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() {
+ make distrib
+ cd distribution/gw
+ # Install doc
+ dodoc CHANGES.txt
+ # Install binaries
+ dobin gwc gwc1 gwc2 consang gwd gwu update_nldb ged2gwb gwb2ged gwsetup
+ insinto /usr/lib/${PN}
+ doins -r gwtp_tmp/*
+ dodoc a.gwf
+ insinto /usr/share/${PN}
+ doins -r css 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"
+}