summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2013-04-16 06:43:00 +0000
committerAlfredo Tupone <tupone@gentoo.org>2013-04-16 06:43:00 +0000
commit5c3d881958f7dd3fc455ec5cac5709f3ebcff38d (patch)
treef7edd41fac9398bc0f077c393ea81e28b134086b /app-misc/geneweb
parentdrop old -3.0.7, migration -> distutils-r1 (diff)
downloadgentoo-2-5c3d881958f7dd3fc455ec5cac5709f3ebcff38d.tar.gz
gentoo-2-5c3d881958f7dd3fc455ec5cac5709f3ebcff38d.tar.bz2
gentoo-2-5c3d881958f7dd3fc455ec5cac5709f3ebcff38d.zip
Use the new database format for amd64
(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/ChangeLog7
-rw-r--r--app-misc/geneweb/geneweb-6.02-r1.ebuild81
2 files changed, 87 insertions, 1 deletions
diff --git a/app-misc/geneweb/ChangeLog b/app-misc/geneweb/ChangeLog
index cce2a5f44af1..91841fe73539 100644
--- a/app-misc/geneweb/ChangeLog
+++ b/app-misc/geneweb/ChangeLog
@@ -1,6 +1,11 @@
# 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.21 2013/04/12 09:13:27 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/geneweb/ChangeLog,v 1.22 2013/04/16 06:43:00 tupone Exp $
+
+*geneweb-6.02-r1 (16 Apr 2013)
+
+ 16 Apr 2013; Alfredo Tupone <tupone@gentoo.org> +geneweb-6.02-r1.ebuild:
+ Use the new database format for amd64
*geneweb-6.02 (12 Apr 2013)
diff --git a/app-misc/geneweb/geneweb-6.02-r1.ebuild b/app-misc/geneweb/geneweb-6.02-r1.ebuild
new file mode 100644
index 000000000000..b72f16b466ae
--- /dev/null
+++ b/app-misc/geneweb/geneweb-6.02-r1.ebuild
@@ -0,0 +1,81 @@
+# 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-r1.ebuild,v 1.1 2013/04/16 06:43:00 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}-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"
+ 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)"
+}