1 |
tupone 08/01/03 22:34:48 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: geneweb-5.01.ebuild |
5 |
Log: |
6 |
Version bump to 5.01 plus optional ocamlopt support. Bug #204110 |
7 |
(Portage version: 2.1.3.19) |
8 |
|
9 |
Revision Changes Path |
10 |
1.3 app-misc/geneweb/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/geneweb/ChangeLog?rev=1.3&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/geneweb/ChangeLog?rev=1.3&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/geneweb/ChangeLog?r1=1.2&r2=1.3 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-misc/geneweb/ChangeLog,v |
19 |
retrieving revision 1.2 |
20 |
retrieving revision 1.3 |
21 |
diff -u -r1.2 -r1.3 |
22 |
--- ChangeLog 26 Aug 2007 20:01:16 -0000 1.2 |
23 |
+++ ChangeLog 3 Jan 2008 22:34:47 -0000 1.3 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for app-misc/geneweb |
26 |
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-misc/geneweb/ChangeLog,v 1.2 2007/08/26 20:01:16 tupone Exp $ |
28 |
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-misc/geneweb/ChangeLog,v 1.3 2008/01/03 22:34:47 tupone Exp $ |
30 |
+ |
31 |
+*geneweb-5.01 (03 Jan 2008) |
32 |
+ |
33 |
+ 03 Jan 2008; Tupone Alfredo <tupone@g.o> |
34 |
+ +files/geneweb-5.01-gentoo.patch, +geneweb-5.01.ebuild: |
35 |
+ Version bump to 5.01 plus optional ocamlopt support. |
36 |
+ Bug #204110 by Alexis Ballier <aballier@g.o> |
37 |
|
38 |
26 Aug 2007; Tupone Alfredo <tupone@g.o> geneweb-5.00.ebuild: |
39 |
Added ~x86 keyword |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-misc/geneweb/geneweb-5.01.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/geneweb/geneweb-5.01.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/geneweb/geneweb-5.01.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: geneweb-5.01.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2008 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-misc/geneweb/geneweb-5.01.ebuild,v 1.1 2008/01/03 22:34:47 tupone Exp $ |
53 |
|
54 |
inherit eutils |
55 |
|
56 |
EAPI="1" |
57 |
|
58 |
DESCRIPTION="Genealogy software program with a Web interface." |
59 |
HOMEPAGE="http://cristal.inria.fr/~ddr/GeneWeb/" |
60 |
SRC_URI="ftp://ftp.inria.fr/INRIA/Projects/cristal/${PN}/Src/${P}.tgz" |
61 |
|
62 |
LICENSE="GPL-2" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64 ~x86" |
65 |
IUSE="+ocamlopt" |
66 |
|
67 |
DEPEND="dev-lang/ocaml |
68 |
dev-ml/camlp5" |
69 |
|
70 |
pkg_setup() { |
71 |
if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt |
72 |
then |
73 |
eerror "In order to build ${PN} with native code support from ocaml" |
74 |
eerror "You first need to have a native code ocaml compiler." |
75 |
eerror "You need to install dev-lang/ocaml with ocamlopt useflag on." |
76 |
die "Please install ocaml with ocamlopt useflag" |
77 |
fi |
78 |
} |
79 |
|
80 |
src_unpack() { |
81 |
unpack ${A} |
82 |
cd "${S}" |
83 |
epatch "${FILESDIR}"/${P}-gentoo.patch |
84 |
sed -i -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \ |
85 |
setup/setup.ml || die "Failed sed for gentoo path" |
86 |
} |
87 |
|
88 |
src_compile() { |
89 |
econf |
90 |
if use ocamlopt; then |
91 |
emake || die "Compiling native code executables failed" |
92 |
else |
93 |
emake OCAMLC=ocamlc OCAMLOPT=ocamlopt out \ |
94 |
|| die "Compiling byte code executables failed" |
95 |
# If using bytecode we dont want to strip the binary as it would remove |
96 |
# the bytecode and only leave ocamlrun... |
97 |
export STRIP_MASK="*/bin/*" |
98 |
fi |
99 |
} |
100 |
|
101 |
src_install() { |
102 |
# Install binaries |
103 |
dobin src/{consang,check_base,gwc,gwd,gwu} \ |
104 |
ged2gwb/ged2gwb gwb2ged/gwb2ged setup/gwsetup \ |
105 |
|| die "Failed installing binaries" |
106 |
# Install manpages |
107 |
doman man/* || die "Failed installing man pages" |
108 |
|
109 |
# Install doc |
110 |
dodoc ICHANGES etc/LISEZMOI.distrib.txt etc/README.distrib.txt \ |
111 |
CHANGES etc/a.gwf etc/LISEZMOI.distrib.txt README.distrib.txt |
112 |
insinto /usr/share/doc/${PF}/contrib |
113 |
doins -r contrib/{misc,templ} || die "Failed installing contributions" |
114 |
|
115 |
make distrib || die "Failed making distrib" |
116 |
insinto /usr/share/${PN} |
117 |
doins -r distribution/gw/{doc,etc,gwd.arg,images,lang,only.txt,setup} \ |
118 |
|| die "Failed installing data" |
119 |
insinto /usr/lib/${PN} |
120 |
doins -r distribution/gw/gwtp_tmp/* || die "Failed installing CGI program" |
121 |
|
122 |
newinitd "${FILESDIR}/geneweb.initd" geneweb |
123 |
newconfd "${FILESDIR}/geneweb.confd" geneweb |
124 |
} |
125 |
|
126 |
pkg_postinst() { |
127 |
enewuser geneweb "" "/bin/bash" /var/lib/geneweb |
128 |
einfo "A CGI program has been installed in /usr/lib/${PN}. Follow the" |
129 |
einfo "instructions on the README in that directory to use it" |
130 |
} |
131 |
|
132 |
|
133 |
|
134 |
-- |
135 |
gentoo-commits@g.o mailing list |