diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2011-03-11 12:55:02 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2011-03-11 12:55:02 +0000 |
commit | 556b7e63b41729889dd5ef1af2b4aefe15650ffc (patch) | |
tree | 5c1a21de44a2c230bf486942c8a558d2d1d05837 /app-misc/geneweb | |
parent | Corrected to upstream Version, thanks flameeyes for telling me how (diff) | |
download | gentoo-2-556b7e63b41729889dd5ef1af2b4aefe15650ffc.tar.gz gentoo-2-556b7e63b41729889dd5ef1af2b4aefe15650ffc.tar.bz2 gentoo-2-556b7e63b41729889dd5ef1af2b4aefe15650ffc.zip |
Version bump to 5.02
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/geneweb')
-rw-r--r-- | app-misc/geneweb/ChangeLog | 11 | ||||
-rw-r--r-- | app-misc/geneweb/files/geneweb-5.02-gentoo.patch | 30 | ||||
-rw-r--r-- | app-misc/geneweb/files/geneweb-5.02-parallellbuild.patch | 12 | ||||
-rw-r--r-- | app-misc/geneweb/geneweb-5.02.ebuild | 80 |
4 files changed, 131 insertions, 2 deletions
diff --git a/app-misc/geneweb/ChangeLog b/app-misc/geneweb/ChangeLog index 7f057e616c19..9138b1ad7af5 100644 --- a/app-misc/geneweb/ChangeLog +++ b/app-misc/geneweb/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-misc/geneweb -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/geneweb/ChangeLog,v 1.12 2010/11/11 08:37:26 tupone Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/geneweb/ChangeLog,v 1.13 2011/03/11 12:55:01 tupone Exp $ + +*geneweb-5.02 (11 Mar 2011) + + 11 Mar 2011; Alfredo Tupone <tupone@gentoo.org> +geneweb-5.02.ebuild, + +files/geneweb-5.02-gentoo.patch, + +files/geneweb-5.02-parallellbuild.patch: + Version bump to 5.02 11 Nov 2010; Alfredo Tupone <tupone@gentoo.org> files/geneweb-5.01-gentoo.patch: diff --git a/app-misc/geneweb/files/geneweb-5.02-gentoo.patch b/app-misc/geneweb/files/geneweb-5.02-gentoo.patch new file mode 100644 index 000000000000..a7cdff7a44c5 --- /dev/null +++ b/app-misc/geneweb/files/geneweb-5.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-5.02-parallellbuild.patch b/app-misc/geneweb/files/geneweb-5.02-parallellbuild.patch new file mode 100644 index 000000000000..a1307b9b4872 --- /dev/null +++ b/app-misc/geneweb/files/geneweb-5.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-5.02.ebuild b/app-misc/geneweb/geneweb-5.02.ebuild new file mode 100644 index 000000000000..d7c14abc931b --- /dev/null +++ b/app-misc/geneweb/geneweb-5.02.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/geneweb/geneweb-5.02.ebuild,v 1.1 2011/03/11 12:55:01 tupone Exp $ + +EAPI=2 +inherit eutils + +DESCRIPTION="Genealogy software program with a Web interface." +HOMEPAGE="http://cristal.inria.fr/~ddr/GeneWeb/" +SRC_URI="ftp://ftp.inria.fr/INRIA/Projects/cristal/${PN}/Src/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+ocamlopt" + +RDEPEND="dev-lang/ocaml[ocamlopt?] + dev-ml/camlp5" +DEPEND="${RDEPEND} + !net-p2p/ghostwhitecrab" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/${P}-parallellbuild.patch + sed -i -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \ + setup/setup.ml || die "Failed sed for gentoo path" + rm -f contrib/gwdiff/.{cvsignore,depend} +} + +src_compile() { + if use ocamlopt; then + emake || die "Compiling native code executables failed" + else + emake OCAMLC=ocamlc OCAMLOPT=ocamlopt out \ + || die "Compiling byte code executables failed" + # 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 || die "Failed making distrib" + cd distribution/gw + # Install doc + dodoc CHANGES.txt + # Install binaries + dobin gwc gwc2 consang gwd gwu update_nldb ged2gwb gwb2ged gwsetup \ + || die "Failed installing binaries" + insinto /usr/lib/${PN} + doins -r gwtp_tmp/* || die "Failed installing CGI program" + dodoc a.gwf + dohtml -r doc/* + insinto /usr/share/${PN} + doins -r etc images lang setup gwd.arg only.txt\ + || die "Failed installing data" + + cd ../.. + + # Install binaries + dobin src/check_base \ + || die "Failed installing check_base binaries" + # Install manpages + doman man/* || die "Failed installing man pages" + + # Install doc + dodoc ICHANGES + insinto /usr/share/doc/${PF}/contrib + doins -r contrib/{gwdiff,misc,templ} \ + || die "Failed installing contributions" + + 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" +} |